------- Comment #61 from dominiq at lps dot ens dot fr  2009-09-24 09:05 -------
I have followed a path different from the one in comment #58, trying to use
-gstrict-dwarf during bootstrap. For that I have made the following changes:

diff -uN ../_gcc_clean/config/mh-intel-darwin config/mh-intel-darwin
--- ../_gcc_clean/config/mh-intel-darwin        1970-01-01 01:00:00.000000000
+0100
+++ config/mh-intel-darwin      2009-09-23 23:02:59.000000000 +0200
@@ -0,0 +1,5 @@
+# Set strict-dwarf for Darwin
+
+BOOT_CFLAGS += -gstrict-dwarf
+CFLAGS_FOR_TARGET += -gstrict-dwarf
+CFLAGS += -gstrict-dwarf
diff -uN ../_gcc_clean/config/mh-ppc-darwin config/mh-ppc-darwin
--- ../_gcc_clean/config/mh-ppc-darwin  2008-02-25 11:00:23.000000000 +0100
+++ config/mh-ppc-darwin        2009-09-23 23:56:42.000000000 +0200
@@ -2,4 +2,6 @@
 # position-independent-code -- the usual default on Darwin. This fix speeds
 # compiles by 3-5%.

-BOOT_CFLAGS += -mdynamic-no-pic
+BOOT_CFLAGS += -mdynamic-no-pic -gstrict-dwarf
+CFLAGS_FOR_TARGET += -gstrict-dwarf
+CFLAGS += -gstrict-dwarf
--- ../_gcc_clean/configure     2009-09-22 20:04:27.000000000 +0200
+++ configure   2009-09-23 13:50:29.000000000 +0200
@@ -3655,6 +3655,12 @@
   powerpc-*-darwin*)
     host_makefile_frag="config/mh-ppc-darwin"
     ;;
+  i[3456789]86-*-darwin*)
+    host_makefile_frag="config/mh-intel-darwin"
+    ;;
+  x86_64-*-darwin[912]*)
+    host_makefile_frag="config/mh-intel-darwin"
+    ;;
   powerpc-*-aix*)
     host_makefile_frag="config/mh-ppc-aix"
     ;;

With these changes I have successfully bootstrapped revision 152076 on
i686-apple-darwin9 and I am currently bootstrapping revision 152100 on
powerpc-apple-darwin9 (modulo pr41457).

I have found that the change 'CFLAGS_FOR_TARGET += -gstrict-dwarf' is needed to
bootstrap, while the change 'CFLAGS += -gstrict-dwarf' (nor the others) does
not allow to propagate -gstrict-dwarf for the libraries, hence "Assertion
failed: (!"Unknown one-operand")..." for them.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41405

Reply via email to