This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/47351] New: Segmentation fault in MinGW
- From: "gcc.hall at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jan 2011 21:06:53 +0000
- Subject: [Bug c/47351] New: Segmentation fault in MinGW
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47351
Summary: Segmentation fault in MinGW
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gcc.hall@gmail.com
Created attachment 23021
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23021
Source file
I had the following crash while creating an assembler listing with MinGW gcc.
It is possible -mtune=generic affected the problem as -mtune=i386 was fine?
The identical run on Linux GCC 4.5.1 does not crash. Neither does it crash
when I do a normal build with MinGW and the same options.
------------------------------------------------------------------------
$ make asm
gcc -pipe -std=c99 -funsigned-char -DFILE_TABS=4 -DSCREEN_TABS=2 -DUSER_TABS=1
g.c -S -masm=intel
-fverbose-asm -Os -Wall -Wextra -Wno-char-subscripts -ffast-math -mfpmath=387
-mpc80 -mhard-float
-mieee-fp -s -fno-ident -fshort-enums -fwhole-program -minline-all-stringops
-fmerge-all-constants
-fomit-frame-pointer -fno-non-call-exceptions -fno-asynchronous-unwind-tables
-fno-exceptions
-fno-unwind-tables -fira-loop-pressure -fstrict-aliasing -fstrict-overflow
-lcurses -aux-info
g.info -march=i386 -mtune=generic -o g.s
g.c: In function 'se_execute':
g.c:9275:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [asm] Error 1
-------------------------------------------------------------------------
$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.5.0/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++
--disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp
--disable-win32-registry
--enable-version-specific-runtime-libs --disable-werror --build=mingw32
--prefix=/mingw
Thread model: win32
gcc version 4.5.0 (GCC)
---------------------------------------------------------------------------