This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: the Right place to change a target default for a common compiler flag?
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: gcc at gcc dot gnu dot org
- Cc: developer at sandoe-acoustics dot co dot uk
- Date: Wed, 23 Sep 2009 15:42:41 +0200
- Subject: Re: the Right place to change a target default for a common compiler flag?
Iain,
I am currently bootstrapping on i686-apple-darwin9 with the current patch:
diff -uN /opt/gcc/_gcc_clean/config/mh-intel-darwin /opt/gcc/gcc-4.5-work/config/mh-intel-darwin
--- /opt/gcc/_gcc_clean/config/mh-intel-darwin 1970-01-01 01:00:00.000000000 +0100
+++ /opt/gcc/gcc-4.5-work/config/mh-intel-darwin 2009-09-23 13:47:12.000000000 +0200
@@ -0,0 +1,3 @@
+# Set strict-dwarf for Darwin
+
+BOOT_CFLAGS += -gstrict-dwarf
diff -uN /opt/gcc/_gcc_clean/config/mh-ppc-darwin /opt/gcc/gcc-4.5-work/config/mh-ppc-darwin
--- /opt/gcc/_gcc_clean/config/mh-ppc-darwin 2008-02-25 11:00:23.000000000 +0100
+++ /opt/gcc/gcc-4.5-work/config/mh-ppc-darwin 2009-09-23 12:07:12.000000000 +0200
@@ -2,4 +2,4 @@
# 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
--- /opt/gcc/_gcc_clean/configure 2009-09-22 20:04:27.000000000 +0200
+++ /opt/gcc/gcc-4.5-work/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"
;;
I am currently at stage 3 and I see -gstrict-dwarf in the log file.
I don't know if it is the Right place, but it seems to work so far.
Cheers,
Dominique