From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7357 invoked by alias); 8 Apr 2015 09:25:15 -0000 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 Received: (qmail 7296 invoked by uid 48); 8 Apr 2015 09:25:07 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65351] [5 Regression] libiberty's pic version contains non-pic code on m32 darwin; causes bootstrap fail building libcc1. Date: Wed, 08 Apr 2015 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00515.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65351 --- Comment #25 from Iain Sandoe --- (In reply to Jakub Jelinek from comment #24) > So perhaps for the top level something like: yeah looks better than what i was drafting. > --- config/mh-darwin 2013-09-30 22:13:57.243907474 +0200 > +++ config/mh-darwin 2015-04-08 10:36:58.100665592 +0200 > @@ -1,18 +1,29 @@ > # The -mdynamic-no-pic ensures that the compiler executable is built wit= hout > # position-independent-code -- the usual default on Darwin. This fix spe= eds > -# compiles by 3-5%. > -BOOT_CFLAGS +=3D \ > +# compiles by 3-5%. Don't add it if the compiler doesn't also support > +# -mno-dynamic-no-pic to undo it. > +DARWIN_MDYNAMIC_NO_PIC :=3D \ > `case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \ > - echo -mdynamic-no-pic ;; esac;` > + $(CC) -S -xc /dev/null -o /dev/null -mno-dynamic-no-pic 2>/dev/null \ > + && echo -mdynamic-no-pic ;; esac` > +DARWIN_GCC_MDYNAMIC_NO_PIC :=3D \ > +`case ${host} in i?86-*-darwin* | powerpc-*-darwin*) \ > + $(CC) -S -xc /dev/null -o /dev/null -mno-dynamic-no-pic 2>/dev/null \ > + || echo -mdynamic-no-pic ;; esac` I don't think we need the test here ^ ? > # ld on Darwin versions >=3D 10.7 defaults to PIE executables. Disable t= his > for > # gcc components, since it is incompatible with our pch implementation. > -BOOT_LDFLAGS +=3D \ > -`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;` > +DARWIN_NO_PIE :=3D `case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pi= e ;; > esac;` > + > +BOOT_CFLAGS +=3D $(DARWIN_MDYNAMIC_NO_PIC) > +BOOT_LDFLAGS +=3D $(DARWIN_NO_PIE) >=20=20 > # Similarly, for cross-compilation. > -STAGE1_CFLAGS +=3D \ > -`case ${host} in i?86-*-darwin* | powerpc-*-darwin*)\ > - echo -mdynamic-no-pic ;; esac;` > -STAGE1_LDFLAGS +=3D \ > -`case ${host} in *-*-darwin[1][1-9]*) echo -Wl,-no_pie ;; esac;` > +STAGE1_CFLAGS +=3D $(DARWIN_MDYNAMIC_NO_PIC) > +STAGE1_LDFLAGS +=3D $(DARWIN_NO_PIE) > + > +# Without -mno-dynamic-no-pic support, add -mdynamic-no-pic just to later > +# stages when we know it is built with gcc. > +STAGE2_CFLAGS +=3D $(DARWIN_GCC_MDYNAMIC_NO_PIC) > +STAGE3_CFLAGS +=3D $(DARWIN_GCC_MDYNAMIC_NO_PIC) > +STAGE4_CFLAGS +=3D $(DARWIN_GCC_MDYNAMIC_NO_PIC) >=20 > Thus, add -mdynamic-no-pic for gcc (or fixed clang) bootstrap compiler to > BOOT_CFLAGS and STAGE1_CFLAGS, but only to STAGE{2,3,4}_CFLAGS otherwise? >=20 > Then GCC_PICFLAG, being a configure snippet, can surely just use normal > autoconfy way. well, GCC_PICFLAG is not really very autoconf-y at present, just a bunch of tests of triple. Will try to find some cycles later on. >>From gcc-bugs-return-482964-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 08 09:27:52 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23626 invoked by alias); 8 Apr 2015 09:27:52 -0000 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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23590 invoked by uid 48); 8 Apr 2015 09:27:48 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65422] [C++11] Rejected valid double expansion packs. Date: Wed, 08 Apr 2015 09:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg00516.txt.bz2 Content-length: 480 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65422 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-04-08 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1