From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2454 invoked by alias); 28 Mar 2011 04:59:13 -0000 Received: (qmail 2441 invoked by uid 22791); 28 Mar 2011 04:59:11 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_DC,TW_JL X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Mar 2011 04:59:06 +0000 From: "gordon.magnusson at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: gordon.magnusson 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 28 Mar 2011 06:33:00 -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 X-SW-Source: 2011-03/txt/msg02826.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48309 Summary: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: critical Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: gordon.magnusson@gmail.com Host: i686-pc-mingw32 Target: i686-pc-mingw32 Build: i686-pc-mingw32 C:\bugreport>ld -v GNU ld (GNU Binutils) 2.21.51.20110326 C:\bugreport>gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/i686-pc-mingw32/4.6.0/lto-wrapper.exe Target: i686-pc-mingw32 Configured with: ../src/configure --prefix=/c/temp/gcc/dest --enable-languages=c,c++ --with-arch=i686 --with-tune=generic --disable-libstdcxx-pch --disable-nls --disable-shared --disable-sjlj-exceptions --disable-win32-registry --enable-checking=release --enable-lto Thread model: win32 gcc version 4.6.0 (GCC) C:\bugreport>type foo.cpp #include #include using namespace std; int main() { cout << "Hello, C++ world!" << endl; } C:\bugreport>g++ foo.cpp -o foo1.exe C:\bugreport>foo1 Hello, C++ world! C:\bugreport>g++ -flto -fno-use-linker-plugin foo.cpp -o foo2.exe C:\bugreport>foo2 Hello, C++ world! C:\bugreport>g++ -flto -fuse-linker-plugin foo.cpp -o foo3.exe C:\bugreport>foo3 Hello, C++ world! C:\bugreport>type bar.c #include int main(void) { puts("Hello, C world!"); return 0; } C:\bugreport>gcc bar.c -o bar1.exe C:\bugreport>bar1 Hello, C world! C:\bugreport>gcc -flto -fno-use-linker-plugin bar.c -o bar2.exe C:\bugreport>bar2 Hello, C world! C:\bugreport>gcc -flto -fuse-linker-plugin bar.c -o bar3.exe C:\bugreport>bar3 [Window Title] Microsoft Windows [Main Instruction] bar3.exe has stopped working [Content] Windows can check online for a solution to the problem. [^] Hide problem details [Check online for a solution and close the program] [Close the program] Problem signature: Problem Event Name: APPCRASH Application Name: bar3.exe Application Version: 0.0.0.0 Application Timestamp: 4d90117c Fault Module Name: StackHash_fd00 Fault Module Version: 0.0.0.0 Fault Module Timestamp: 00000000 Exception Code: c0000005 Exception Offset: 00000000 OS Version: 6.0.6002.2.2.0.256.1 Locale ID: 1033 Additional Information 1: fd00 Additional Information 2: ea6f5fe8924aaa756324d57f87834160 Additional Information 3: fd00 Additional Information 4: ea6f5fe8924aaa756324d57f87834160 Read our privacy statement: http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409