public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW
@ 2011-03-28  6:33 gordon.magnusson at gmail dot com
  2011-03-28  7:45 ` [Bug lto/48309] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gordon.magnusson at gmail dot com @ 2011-03-28  6:33 UTC (permalink / raw)
  To: gcc-bugs

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 <iostream>
#include <ostream>
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 <stdio.h>

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/48309] gcc -flto -fuse-linker-plugin generates crashing executables on MinGW
  2011-03-28  6:33 [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW gordon.magnusson at gmail dot com
@ 2011-03-28  7:45 ` pinskia at gcc dot gnu.org
  2011-03-28  8:59 ` d.g.gorbachev at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-03-28  7:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48309

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
           Severity|critical                    |normal


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/48309] gcc -flto -fuse-linker-plugin generates crashing executables on MinGW
  2011-03-28  6:33 [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW gordon.magnusson at gmail dot com
  2011-03-28  7:45 ` [Bug lto/48309] " pinskia at gcc dot gnu.org
@ 2011-03-28  8:59 ` d.g.gorbachev at gmail dot com
  2011-03-28  9:53 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-03-28  8:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48309

--- Comment #1 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-03-28 08:12:57 UTC ---
It can be a duplicate of bug 47891.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/48309] gcc -flto -fuse-linker-plugin generates crashing executables on MinGW
  2011-03-28  6:33 [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW gordon.magnusson at gmail dot com
  2011-03-28  7:45 ` [Bug lto/48309] " pinskia at gcc dot gnu.org
  2011-03-28  8:59 ` d.g.gorbachev at gmail dot com
@ 2011-03-28  9:53 ` rguenth at gcc dot gnu.org
  2011-03-28 11:59 ` d.g.gorbachev at gmail dot com
  2011-03-28 17:18 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-28  9:53 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48309

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.03.28 09:45:36
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-03-28 09:45:36 UTC ---
Please also specify the exact linker version you are using.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/48309] gcc -flto -fuse-linker-plugin generates crashing executables on MinGW
  2011-03-28  6:33 [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW gordon.magnusson at gmail dot com
                   ` (2 preceding siblings ...)
  2011-03-28  9:53 ` rguenth at gcc dot gnu.org
@ 2011-03-28 11:59 ` d.g.gorbachev at gmail dot com
  2011-03-28 17:18 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: d.g.gorbachev at gmail dot com @ 2011-03-28 11:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48309

--- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-03-28 11:35:37 UTC ---
(In reply to comment #2)

Gordon Magnusson wrote:
> C:\bugreport>ld -v
> GNU ld (GNU Binutils) 2.21.51.20110326


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug lto/48309] gcc -flto -fuse-linker-plugin generates crashing executables on MinGW
  2011-03-28  6:33 [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW gordon.magnusson at gmail dot com
                   ` (3 preceding siblings ...)
  2011-03-28 11:59 ` d.g.gorbachev at gmail dot com
@ 2011-03-28 17:18 ` pinskia at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-03-28 17:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48309

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-03-28 17:03:25 UTC ---


*** This bug has been marked as a duplicate of bug 47891 ***


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-28 17:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-28  6:33 [Bug lto/48309] New: gcc -flto -fuse-linker-plugin generates crashing executables on MinGW gordon.magnusson at gmail dot com
2011-03-28  7:45 ` [Bug lto/48309] " pinskia at gcc dot gnu.org
2011-03-28  8:59 ` d.g.gorbachev at gmail dot com
2011-03-28  9:53 ` rguenth at gcc dot gnu.org
2011-03-28 11:59 ` d.g.gorbachev at gmail dot com
2011-03-28 17:18 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).