From: dominiq@lps.ens.fr (Dominique Dhumieres)
To: gcc@gcc.gnu.org
Cc: developer@sandoe-acoustics.co.uk
Subject: Re: the Right place to change a target default for a common compiler flag?
Date: Wed, 23 Sep 2009 13:42:00 -0000 [thread overview]
Message-ID: <20090923134241.97AFA3BE85@mailhost.lps.ens.fr> (raw)
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
next reply other threads:[~2009-09-23 13:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-23 13:42 Dominique Dhumieres [this message]
2009-09-23 13:53 ` IainS
2009-09-23 14:47 ` Dominique Dhumieres
-- strict thread matches above, loose matches on Subject: below --
2009-09-23 10:41 IainS
2009-09-23 11:43 ` Joern Rennecke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090923134241.97AFA3BE85@mailhost.lps.ens.fr \
--to=dominiq@lps.ens.fr \
--cc=developer@sandoe-acoustics.co.uk \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).