public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/47351] New: Segmentation fault in MinGW
@ 2011-01-18 21:17 gcc.hall at gmail dot com
  2011-01-18 21:25 ` [Bug c/47351] " gcc.hall at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gcc.hall at gmail dot com @ 2011-01-18 21:17 UTC (permalink / raw)
  To: gcc-bugs

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)

---------------------------------------------------------------------------


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

* [Bug c/47351] Segmentation fault in MinGW
  2011-01-18 21:17 [Bug c/47351] New: Segmentation fault in MinGW gcc.hall at gmail dot com
@ 2011-01-18 21:25 ` gcc.hall at gmail dot com
  2011-01-18 21:29 ` gcc.hall at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gcc.hall at gmail dot com @ 2011-01-18 21:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jeremy <gcc.hall at gmail dot com> 2011-01-18 21:08:37 UTC ---
Created attachment 23022
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23022
the makefile


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

* [Bug c/47351] Segmentation fault in MinGW
  2011-01-18 21:17 [Bug c/47351] New: Segmentation fault in MinGW gcc.hall at gmail dot com
  2011-01-18 21:25 ` [Bug c/47351] " gcc.hall at gmail dot com
@ 2011-01-18 21:29 ` gcc.hall at gmail dot com
  2011-01-19 11:43 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: gcc.hall at gmail dot com @ 2011-01-18 21:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jeremy <gcc.hall at gmail dot com> 2011-01-18 21:11:23 UTC ---
Please find attached the source file  g.c  and the makefile.

The target "asm" causes the crash.  The target "win" does a successful build.

The program is a small screen editor, it is self contained in this one source
file, and for mingw, needs no extra libraries.


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

* [Bug c/47351] Segmentation fault in MinGW
  2011-01-18 21:17 [Bug c/47351] New: Segmentation fault in MinGW gcc.hall at gmail dot com
  2011-01-18 21:25 ` [Bug c/47351] " gcc.hall at gmail dot com
  2011-01-18 21:29 ` gcc.hall at gmail dot com
@ 2011-01-19 11:43 ` rguenth at gcc dot gnu.org
  2011-01-19 14:51 ` gcc.hall at gmail dot com
  2011-01-26  8:39 ` ktietz at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-19 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-01-19 10:47:25 UTC ---
Can you try a more recent release from the 4.5 branch, like 4.5.1 or 4.5.2?


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

* [Bug c/47351] Segmentation fault in MinGW
  2011-01-18 21:17 [Bug c/47351] New: Segmentation fault in MinGW gcc.hall at gmail dot com
                   ` (2 preceding siblings ...)
  2011-01-19 11:43 ` rguenth at gcc dot gnu.org
@ 2011-01-19 14:51 ` gcc.hall at gmail dot com
  2011-01-26  8:39 ` ktietz at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: gcc.hall at gmail dot com @ 2011-01-19 14:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jeremy <gcc.hall at gmail dot com> 2011-01-19 13:06:41 UTC ---
Done.  I can report that the problem does not occur with GCC 4.5.2


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

* [Bug c/47351] Segmentation fault in MinGW
  2011-01-18 21:17 [Bug c/47351] New: Segmentation fault in MinGW gcc.hall at gmail dot com
                   ` (3 preceding siblings ...)
  2011-01-19 14:51 ` gcc.hall at gmail dot com
@ 2011-01-26  8:39 ` ktietz at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu.org @ 2011-01-26  8:39 UTC (permalink / raw)
  To: gcc-bugs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2011-01-26 07:17:59 UTC ---
Well, as problem doesn't occure with 4.5.2 anymore and 4.5.0 is already a
closed version, please update to newer version. We can't fix this issue in
4.5.0, so I close it as wont-fix.


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

end of thread, other threads:[~2011-01-26  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 21:17 [Bug c/47351] New: Segmentation fault in MinGW gcc.hall at gmail dot com
2011-01-18 21:25 ` [Bug c/47351] " gcc.hall at gmail dot com
2011-01-18 21:29 ` gcc.hall at gmail dot com
2011-01-19 11:43 ` rguenth at gcc dot gnu.org
2011-01-19 14:51 ` gcc.hall at gmail dot com
2011-01-26  8:39 ` ktietz 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).