From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1440 invoked by alias); 11 Mar 2015 17:19: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 Received: (qmail 1379 invoked by uid 48); 11 Mar 2015 17:19:48 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/57059] [4.8/4.9/5 Regression] Host configuration of loose_warn breaks for build components for Canadian crosses Date: Wed, 11 Mar 2015 17:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-03/txt/msg01238.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57059 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aldyh at gcc dot gnu.org --- Comment #7 from Aldy Hernandez --- I can't reproduce this on mainline. I'm building: /source/gcc/configure --host=3Dppc64-linux --target=3Di386-elf --build=3Dx86-64-linux-gnu I am cheating with the cross tools by setting links to native compilers to speed up the process. My x86-64 build compilers are 4.6 based (gcc, g++, x86-64-unknown-linux-gnu-gcc, etc in the list below) and do not have support for -Wnarrowing. My cross compiler is ppc64-linux-g* which is the system compiler and supports -Wnarrowing: -rwxr-xr-x. 4 aldyh aldyh 1027379 Mar 11 08:16 c++ -rwxr-xr-x. 1 aldyh aldyh 1024943 Mar 11 08:16 cpp -rwxr-xr-x. 4 aldyh aldyh 1027379 Mar 11 08:16 g++ -rwxr-xr-x. 3 aldyh aldyh 1022232 Mar 11 08:16 gcc -rwxr-xr-x. 1 aldyh aldyh 135016 Mar 11 08:16 gcov lrwxrwxrwx. 1 aldyh aldyh 11 Mar 11 09:36 ppc64-linux-ar -> /usr/bin/ar lrwxrwxrwx. 1 aldyh aldyh 11 Mar 11 09:36 ppc64-linux-as -> /usr/bin/as lrwxrwxrwx. 1 aldyh aldyh 12 Mar 11 09:51 ppc64-linux-g++ -> /usr/bin/= g++ lrwxrwxrwx. 1 aldyh aldyh 12 Mar 11 09:51 ppc64-linux-gcc -> /usr/bin/= gcc lrwxrwxrwx. 1 aldyh aldyh 11 Mar 11 09:36 ppc64-linux-ld -> /usr/bin/ld lrwxrwxrwx. 1 aldyh aldyh 11 Mar 11 09:36 ppc64-linux-nm -> /usr/bin/nm lrwxrwxrwx. 1 aldyh aldyh 16 Mar 11 09:36 ppc64-linux-objcopy -> /usr/bin/objcopy lrwxrwxrwx. 1 aldyh aldyh 16 Mar 11 09:36 ppc64-linux-objdump -> /usr/bin/objdump lrwxrwxrwx. 1 aldyh aldyh 15 Mar 11 09:36 ppc64-linux-ranlib -> /usr/bin/ranlib lrwxrwxrwx. 1 aldyh aldyh 16 Mar 11 09:36 ppc64-linux-readelf -> /usr/bin/readelf lrwxrwxrwx. 1 aldyh aldyh 14 Mar 11 09:36 ppc64-linux-strip -> /usr/bin/strip -rwxr-xr-x. 4 aldyh aldyh 1027379 Mar 11 08:16 x86_64-unknown-linux-gnu-c++ -rwxr-xr-x. 4 aldyh aldyh 1027379 Mar 11 08:16 x86_64-unknown-linux-gnu-g++ -rwxr-xr-x. 3 aldyh aldyh 1022232 Mar 11 08:16 x86_64-unknown-linux-gnu-gcc -rwxr-xr-x. 3 aldyh aldyh 1022232 Mar 11 08:16 x86_64-unknown-linux-gnu-gcc-4.6.4 # build compiler with no support for -Wnarrowing: reynosa:/build/gcc46/install/bin$ gcc -c -Wnarrowing a.c cc1: error: unrecognized command line option =E2=80=98-Wnarrowing=E2=80=99 # cross compiler with support for -Wnarrowing: reynosa:/build/gcc46/install/bin$ ppc64-linux-gcc -c -Wnarrowing a.c reynosa:/build/gcc46/install/bin$=20 I see the GCC configury correctly determining that -Wnarrowing is available= for the cross compiler: [gcc/config.log] configure:6367: checking whether ppc64-linux-gcc supports -Wnarrowing configure:6384: ppc64-linux-gcc -c -Wnarrowing conftest.c >&5 configure:6384: $? =3D 0 configure:6393: result: yes ... ... acx_cv_prog_cc_warning__Wnarrowing=3Dyes However, building build/genconstants.o with the x86-64-linux 4.6 compiler d= oes not use -Wno-narrowing, and is being compiled correctly: g++ -c -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -DGENERATOR_FILE -I. -Ibuild -I/s ource/gcc/gcc -I/source/gcc/gcc/build -I/source/gcc/gcc/../include=20 -I/source/gc c/gcc/../libcpp/include \ -o build/genconstants.o /source/gcc/gcc/genconstants.c Further in the build process, the cross compiler is being used correctly, b= ut this time with -Wno-narrowing as expected: ppc64-linux-g++ -c -DIN_GCC_FRONTEND -g -O2 -DIN_GCC=20 -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common=20 -DHAVE_CONFIG_H -I. -Ic -I/source/gcc/gcc -I/source/gcc/gcc/c -I/source/gcc/gcc/../include -I/source/gcc/gcc/../libcpp/include=20 -I/source/gcc/gcc/../libdecnumber -I/source/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/source/gcc/gcc/../libbacktrace -o c/c-parser.o -MT c/c-parser.o -MMD -MP -MF c/.deps/c-parser.TPo /source/gcc/gcc/c/c-parser.c This was last confirmed by Andrew Pinski on 4.8. I am inclined to remove t= his as a regression on GCC 5. >>From gcc-bugs-return-480095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 11 17:22:03 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6284 invoked by alias); 11 Mar 2015 17:22:02 -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 6012 invoked by uid 48); 11 Mar 2015 17:21:59 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/62173] [5 Regression] 64bit Arch can't ivopt while 32bit Arch can Date: Wed, 11 Mar 2015 17:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jiwang 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg01239.txt.bz2 Content-length: 216 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62173 --- Comment #34 from Jakub Jelinek --- Any progress on this? This is a P1 PR, but no comments have been added for more than a month...