Bug 59187 - internal error with -O2
Summary: internal error with -O2
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-19 09:33 UTC by Alessio
Modified: 2013-11-27 08:36 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
preprocess file (890.79 KB, application/octet-stream)
2013-11-19 09:36 UTC, Alessio
Details
.s generate (197.28 KB, application/octet-stream)
2013-11-19 09:38 UTC, Alessio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessio 2013-11-19 09:33:39 UTC
Hi, I get a internal error when compiling with MinGw 4.8.0.
I attach the preprocess file where I get the error.

The flags in the makefile:

CC            = gcc
CXX           = g++
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -D_DENTALCAD_PRO_MACRO_ -DNOMINMAX -DNDEBUG -DQT_DLL -DQT_NO_DEBUG -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
CFLAGS        = -O2 -Wall $(DEFINES)
CXXFLAGS      = -fpermissive -save-temps -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES)

 
I have compiled my code in ubuntu with gcc 4.8.1 and compile correctly in release.
In windows fails with mingw 4.8.0 e mingw 4.8.1.
I saw that if I use the flag -O1 compile while with -O2 I get the error.
Comment 1 Alessio 2013-11-19 09:36:44 UTC
Created attachment 31246 [details]
preprocess file
Comment 2 Alessio 2013-11-19 09:38:45 UTC
Created attachment 31247 [details]
.s generate
Comment 3 Mikael Pettersson 2013-11-23 17:40:56 UTC
I can reproduce the ICE with 4.8.1 configured as a cross to x86_64-w64-mingw32 hosted on x86_64-linux, but not with 4.8.2.  Looks like you need to upgrade.
Comment 4 Kai Tietz 2013-11-25 21:16:00 UTC
Yes, bug was already fixed. Therefore closed
Comment 5 Alessio 2013-11-27 08:36:52 UTC
Hello,
when you fix a mingw bug where can I download the new version of compiler?
I should wait a new release or I can get from trunk?!?! I get another internal error.



Il Lunedì 25 Novembre 2013 22:16, ktietz at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org> ha scritto:
 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59187

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

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

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Yes, bug was already fixed. Therefore closed