From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3209 invoked by alias); 25 Mar 2015 21:47:09 -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 3160 invoked by uid 48); 25 Mar 2015 21:47:03 -0000 From: "t.poechtrager at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65544] LTO link fails with -static-libstdc++ + weak new/delete operators Date: Wed, 25 Mar 2015 22:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: t.poechtrager at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: 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/msg02870.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65544 --- Comment #3 from Thomas P=C3=B6chtrager = --- (In reply to Richard Biener from comment #2) > Can you verify if the cross compiler uses a linker-plugin by specifying > -fuse-linker-plugin? Without that errors like this are unfortunately > expected. The problem persits with -fuse-linker-plugin. $ i686-w64-mingw32-g++ test.cpp -fuse-linker-plugin -flto -static-libstdc++= -v Using built-in specs. COLLECT_GCC=3Di686-w64-mingw32-g++ COLLECT_LTO_WRAPPER=3D/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/= 4.9.2/lto-wrapper Target: i686-w64-mingw32 Configured with: ../configure --prefix=3D/opt/compiler/mingw-w64 --target=3Di686-w64-mingw32 --with-gnu-ld --with-gnu-as --enable-languages=3Dc,c++,lto --disable-multilib --enable-lto --enable-threads=3Dposix Thread model: posix gcc version 4.9.2 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-fuse-linker-plugin' '-flto' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' /opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/cc1plus -quiet = -v -D_REENTRANT test.cpp -quiet -dumpbase test.cpp -mtune=3Dgeneric -march=3Dpentiumpro -auxbase test -version -fuse-linker-plugin -flto -o /tmp/ccnj4m7D.s GNU C++ (GCC) version 4.9.2 (i686-w64-mingw32) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 warning: MPFR header version 3.1.2-p3 differs from library version 3.1.2-p1= 1. warning: MPC header version 1.0.2 differs from library version 1.0.3. GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 ignoring nonexistent directory "/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w6= 4-mingw32/sys-include" #include "..." search starts here: #include <...> search starts here: /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/include/c++/4.9.2 /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/include/c++/4.9.2/i686-w64-mingw32 /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/include/c++/4.9.2/backward /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/include /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/include-fixed /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/include End of search list. GNU C++ (GCC) version 4.9.2 (i686-w64-mingw32) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 warning: MPFR header version 3.1.2-p3 differs from library version 3.1.2-p1= 1. warning: MPC header version 1.0.2 differs from library version 1.0.3. GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: a4174c607d6c7ea8e319dc3ef635686f COLLECT_GCC_OPTIONS=3D'-fuse-linker-plugin' '-flto' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/bin/as -v -o /tmp/ccy6gCyh.o /tmp/ccnj4m7D.s GNU assembler version 2.25 (i686-w64-mingw32) using BFD version (GNU Binuti= ls) 2.25 COMPILER_PATH=3D/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/= :/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/compiler/= mingw-w64/libexec/gcc/i686-w64-mingw32/:/opt/compiler/mingw-w64/lib/gcc/i68= 6-w64-mingw32/4.9.2/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/:/opt= /compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-min= gw32/bin/ LIBRARY_PATH=3D/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/:/opt= /compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-min= gw32/lib/../lib/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../= ../../../i686-w64-mingw32/lib/ COLLECT_GCC_OPTIONS=3D'-fuse-linker-plugin' '-flto' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' /opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/collect2 -plugin /opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/liblto_plugin.so -plugin-opt=3D/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/lt= o-wrapper -plugin-opt=3D-fresolution=3D/tmp/ccFrtw0U.res -plugin-opt=3D-pass-through= =3D-lmingw32 -plugin-opt=3D-pass-through=3D-lgcc_s -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lmoldname -plugin-opt=3D-pass-through=3D-lmi= ngwex -plugin-opt=3D-pass-through=3D-lmsvcrt -plugin-opt=3D-pass-through=3D-lpthr= ead -plugin-opt=3D-pass-through=3D-ladvapi32 -plugin-opt=3D-pass-through=3D-lsh= ell32 -plugin-opt=3D-pass-through=3D-luser32 -plugin-opt=3D-pass-through=3D-lkern= el32 -plugin-opt=3D-pass-through=3D-lmingw32 -plugin-opt=3D-pass-through=3D-lgcc= _s -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lmoldname -plugin-opt=3D-pass-through=3D-lmingwex -plugin-opt=3D-pass-through=3D-lmsv= crt -flto -m i386pe -Bdynamic /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/crt2.o /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/crtbegin.o -L/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2 -L/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w= 64-mingw32/lib/../lib -L/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w= 64-mingw32/lib /tmp/ccy6gCyh.o -Bstatic -lstdc++ -Bdynamic -lmingw32 -lgcc_s -lgcc -lmoldn= ame -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -lmin= gw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/crtend.o i686-w64-mingw32-g++ @/tmp/ccZ86xan.args Using built-in specs. COLLECT_GCC=3Di686-w64-mingw32-g++ Target: i686-w64-mingw32 Configured with: ../configure --prefix=3D/opt/compiler/mingw-w64 --target=3Di686-w64-mingw32 --with-gnu-ld --with-gnu-as --enable-languages=3Dc,c++,lto --disable-multilib --enable-lto --enable-threads=3Dposix Thread model: posix gcc version 4.9.2 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-c' '-fexceptions' '-fno-trapv' '-fno-strict-overflo= w' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fuse-linker-plugin' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out' '-fwpa' '-fresolution=3D/tmp/ccFrtw0U.res' '-shared-libgcc' /opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/lto1 -quiet -dumpbase ccy6gCyh.o -mtune=3Dgeneric -march=3Dpentiumpro -mtune=3Dgeneric -march=3Dpentiumpro -auxbase ccy6gCyh -version -fexceptions -fno-trapv -fno-strict-overflow -fuse-linker-plugin -fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out -fwpa -fresolution=3D/tmp/ccFrtw0U.res @/tmp/ccQ6SiBJ GNU GIMPLE (GCC) version 4.9.2 (i686-w64-mingw32) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 warning: MPFR header version 3.1.2-p3 differs from library version 3.1.2-p1= 1. warning: MPC header version 1.0.2 differs from library version 1.0.3. GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU GIMPLE (GCC) version 4.9.2 (i686-w64-mingw32) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 warning: MPFR header version 3.1.2-p3 differs from library version 3.1.2-p1= 1. warning: MPC header version 1.0.2 differs from library version 1.0.3. GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 COMPILER_PATH=3D/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/= :/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/compiler/= mingw-w64/libexec/gcc/i686-w64-mingw32/:/opt/compiler/mingw-w64/lib/gcc/i68= 6-w64-mingw32/4.9.2/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/:/opt= /compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-min= gw32/bin/:/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/= compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/compiler/mingw-= w64/libexec/gcc/i686-w64-mingw32/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-= mingw32/4.9.2/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/:/opt/compi= ler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/b= in/ LIBRARY_PATH=3D/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/:/opt= /compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-min= gw32/lib/../lib/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../= ../../../i686-w64-mingw32/lib/ COLLECT_GCC_OPTIONS=3D'-c' '-fexceptions' '-fno-trapv' '-fno-strict-overflo= w' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fuse-linker-plugin' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out' '-fwpa' '-fresolution=3D/tmp/ccFrtw0U.res' '-shared-libgcc' i686-w64-mingw32-g++ @/tmp/ccLYvNbE.args Using built-in specs. COLLECT_GCC=3Di686-w64-mingw32-g++ Target: i686-w64-mingw32 Configured with: ../configure --prefix=3D/opt/compiler/mingw-w64 --target=3Di686-w64-mingw32 --with-gnu-ld --with-gnu-as --enable-languages=3Dc,c++,lto --disable-multilib --enable-lto --enable-threads=3Dposix Thread model: posix gcc version 4.9.2 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-c' '-fexceptions' '-fno-trapv' '-fno-strict-overflo= w' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fuse-linker-plugin' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out' '-fltrans' '-o' '/tmp/cc3wRNFJ.ltrans0.ltrans.o' '-shared-libgcc' /opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/lto1 -quiet -dumpbase cc3wRNFJ.ltrans0.o -mtune=3Dgeneric -march=3Dpentiumpro -mtune=3D= generic -march=3Dpentiumpro -auxbase-strip /tmp/cc3wRNFJ.ltrans0.ltrans.o -version -fexceptions -fno-trapv -fno-strict-overflow -fuse-linker-plugin -fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out -fltrans @/tmp/ccMz2RJJ -o /tmp/ccXAazgn.s GNU GIMPLE (GCC) version 4.9.2 (i686-w64-mingw32) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 warning: MPFR header version 3.1.2-p3 differs from library version 3.1.2-p1= 1. warning: MPC header version 1.0.2 differs from library version 1.0.3. GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU GIMPLE (GCC) version 4.9.2 (i686-w64-mingw32) compiled by GNU C version 4.9.1, GMP version 6.0.0, MPFR version 3.1.2-p3, MPC version 1.0.2 warning: MPFR header version 3.1.2-p3 differs from library version 3.1.2-p1= 1. warning: MPC header version 1.0.2 differs from library version 1.0.3. GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 COLLECT_GCC_OPTIONS=3D'-c' '-fexceptions' '-fno-trapv' '-fno-strict-overflo= w' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fuse-linker-plugin' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out' '-fltrans' '-o' '/tmp/cc3wRNFJ.ltrans0.ltrans.o' '-shared-libgcc' /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/bin/as -v -o /tmp/cc3wRNFJ.ltrans0.ltrans.o /tmp/ccXAazgn.s GNU assembler version 2.25 (i686-w64-mingw32) using BFD version (GNU Binuti= ls) 2.25 COMPILER_PATH=3D/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/= :/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/compiler/= mingw-w64/libexec/gcc/i686-w64-mingw32/:/opt/compiler/mingw-w64/lib/gcc/i68= 6-w64-mingw32/4.9.2/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/:/opt= /compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-min= gw32/bin/:/opt/compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/= compiler/mingw-w64/libexec/gcc/i686-w64-mingw32/4.9.2/:/opt/compiler/mingw-= w64/libexec/gcc/i686-w64-mingw32/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-= mingw32/4.9.2/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/:/opt/compi= ler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/b= in/ LIBRARY_PATH=3D/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/:/opt= /compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-min= gw32/lib/../lib/:/opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../= ../../../i686-w64-mingw32/lib/ COLLECT_GCC_OPTIONS=3D'-c' '-fexceptions' '-fno-trapv' '-fno-strict-overflo= w' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fuse-linker-plugin' '-v' '-shared-libgcc' '-mtune=3Dgeneric' '-march=3Dpentiumpro' '-fltrans-output-list=3D/tmp/cc3wRNFJ.ltrans.out' '-fltrans' '-o' '/tmp/cc3wRNFJ.ltrans0.ltrans.o' '-shared-libgcc' `__ZdlPv' referenced in section `.text$_ZNSt9exceptionD0Ev' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(eh_exception.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZNSt13bad_exceptionD0Ev' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(eh_exception.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZN10__cxxabiv115__forced_unwindD0Ev= ' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(eh_exception.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZN10__cxxabiv119__foreign_exceptionD0Ev' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(eh_exception.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZN9__gnu_cxx24__concurrence_lock_errorD0Ev[__ZN9__gnu_cxx24__concur= rence_lock_errorD0Ev]' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(eh_alloc.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZN9__gnu_cxx26__concurrence_unlock_errorD0Ev[__ZN9__gnu_cxx26__conc= urrence_unlock_errorD0Ev]' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(eh_alloc.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZN10__cxxabiv120__si_class_type_infoD0Ev' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(si_class_type_info.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZNSt9type_infoD0Ev' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(tinfo.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) `__ZdlPv' referenced in section `.text$_ZN10__cxxabiv117__class_type_infoD0= Ev' of /opt/compiler/mingw-w64/lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64= -mingw32/lib/../lib/libstdc++.a(class_type_info.o): defined in discarded section `.text' of /tmp/ccy6gCyh.o (symbol from plugin) collect2: error: ld returned 1 exit status >>From gcc-bugs-return-481727-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 25 21:56:47 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12616 invoked by alias); 25 Mar 2015 21:56:45 -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 12227 invoked by uid 48); 25 Mar 2015 21:56:41 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65536] LTO line number information garbled Date: Wed, 25 Mar 2015 22:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu 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: 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/msg02871.txt.bz2 Content-length: 427 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65536 --- Comment #38 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Jan Hubicka from comment #27) > I simply use --save-temps --verbose and use lto1 invocation from there. It > is easy ;) When I add those two options to an invokation of xg++, I get back the call = to collect2 but no call to lto1, although I can see that lto1 is running. >>From gcc-bugs-return-481728-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 25 21:56:47 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12679 invoked by alias); 25 Mar 2015 21:56:47 -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 12238 invoked by uid 48); 25 Mar 2015 21:56:41 -0000 From: "t.poechtrager at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65544] LTO link fails with -static-libstdc++ + weak new/delete operators Date: Wed, 25 Mar 2015 23:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: t.poechtrager at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: 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/msg02872.txt.bz2 Content-length: 207 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65544 --- Comment #4 from Thomas P=C3=B6chtrager = --- If it matters, there are no linker errors with -fno-use-linker-plugin. >>From gcc-bugs-return-481729-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Mar 25 22:04:20 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24428 invoked by alias); 25 Mar 2015 22:04:20 -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 24392 invoked by uid 48); 25 Mar 2015 22:04:16 -0000 From: "eldlistmailingz at tropicsoft dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/65547] Gcc not giving preprocessor error for invalid invocation of variadic macro Date: Wed, 25 Mar 2015 23:11: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: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eldlistmailingz at tropicsoft dot com X-Bugzilla-Status: RESOLVED 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: 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/msg02873.txt.bz2 Content-length: 1133 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65547 --- Comment #7 from Edward Diener --- (In reply to Jonathan Wakely from comment #5) > And as has been documented forever, the way to get diagnostics for GNU > extensions that contradict the ISO standard is the -pedantic switch: > > https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Warning-Options.html#index- > pedantic-279 > > There is no bug here. So the GNU extension in this case is that the programmer does not have to pass an argument when a variadic parameter is used in a macro ? That would not even bother me if there were a compiler flag which allowed it. But you appear to be telling me that this non-C++ is by default. OK, how do I tell gcc to actually follow the C++ standard ? Do I pass '-pedantic' for that ? I realize gcc is used by many programmers and is loath to change the way it has done things so as not to upset long-time users of the compiler. Nonetheless I am going to suggest that the default should always be conformance to the C++ standard, and that GNU extensions should be turned on with some compiler option.