From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12509 invoked by alias); 24 Sep 2009 09:06:19 -0000 Received: (qmail 12415 invoked by uid 48); 24 Sep 2009 09:05:59 -0000 Date: Thu, 24 Sep 2009 09:06:00 -0000 Message-ID: <20090924090559.12414.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/41405] [4.5 Regression] Bootstrap fails on *-apple-darwin* due to revision 151815 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dominiq at lps dot ens dot fr" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg02266.txt.bz2 ------- 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