2012/03/10

GCC 4.7.0-RC-20120302 の巻

ちょっとだけ試してみました。

ソースは、Haiku 版 4.6.2 に、4.6.3、4.7.0 RC とパッチを当てて作成です。クロスコンパイラのビルドは何とかできましたが、4.7.0 RC は警告が厳しくなっているようで、Haiku のビルドには、C++ の知識が必要な修正があちこち出てくるようです。もちょっと勉強しないと…

4.7.0 RC のパッチのようなもの。たぶんこのほかに crtstuff 関係の修正が必要かも。
diff --git a/gcc/gcc/config/i386/haiku.h b/gcc/gcc/config/i386/haiku.h
index 5669a12..4d9fd1a 100644
--- a/gcc/gcc/config/i386/haiku.h
+++ b/gcc/gcc/config/i386/haiku.h
@@ -20,7 +20,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */


-#define TARGET_VERSION fprintf (stderr, " (i386 Haiku/ELF)");
+/* #define TARGET_VERSION fprintf (stderr, " (i386 Haiku/ELF)"); */

/* The SVR4 ABI for the i386 says that records and unions are returned
in memory. */
diff --git a/gcc/libgcc/config.host b/gcc/libgcc/config.host
index 10c0788..9af5f9e 100644
--- a/gcc/libgcc/config.host
+++ b/gcc/libgcc/config.host
@@ -68,7 +68,7 @@
# runtime interface routines.

asm_hidden_op=.hidden
-enable_execute_stack=
+enable_execute_stack=enable-execute-stack-empty.c
extra_parts=
tmake_file=
tm_file=

0 件のコメント:

コメントを投稿