public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12214] New: [3.3.1 regression] ICE in make_label_edge with -fnon-call-exceptions -fno-gcse -O2
@ 2003-09-08 20:10 nick at ilm dot com
2003-09-08 20:18 ` [Bug optimization/12214] " nick at ilm dot com
0 siblings, 1 reply; 2+ messages in thread
From: nick at ilm dot com @ 2003-09-08 20:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12214
Summary: [3.3.1 regression] ICE in make_label_edge with -fnon-
call-exceptions -fno-gcse -O2
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: nick at ilm dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
The following code triggers an ICE in the 3.3.1 release:
/dept/rnd/vendor/gcc-3.3.1-notpatched/bin/g++ -E gcc331_ie.C > gcc331_ie.ii
/dept/rnd/vendor/gcc-3.3.1-notpatched/bin/g++ -fnon-call-exceptions -fno-gcse
-O2 gcc331_ie.ii -o gcc331_ie
gcc331_ie.C: In function `int main(int, const char**)':
gcc331_ie.C:39: internal compiler error: in make_label_edge, at cfgbuild.c:238
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
---------
#include <string>
void getArg( int &i, int argc, const char **argv, float &arg0 )
{
if ( i < argc )
{
arg0 = atof( argv[i++] );
}
}
int main (int argc, const char **argv)
{
float val = 0.0;
int i = 1;
//
// Parse the arguments
//
try {
while ( i < argc )
{
std::string arg( argv[i++]);
if ( arg == "-" )
{
int e=0;
throw( e );
}
else if ( arg == "-op" )
{
getArg( i, argc, argv, val );
}
}
} catch (...) {
}
return 0;
}
-----
It compiles with 3.2.3. It also compiles if gcse is enabled, but
bug 11646 is keeping us from doing that with the rest of the code :/
-nick
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug optimization/12214] [3.3.1 regression] ICE in make_label_edge with -fnon-call-exceptions -fno-gcse -O2
2003-09-08 20:10 [Bug optimization/12214] New: [3.3.1 regression] ICE in make_label_edge with -fnon-call-exceptions -fno-gcse -O2 nick at ilm dot com
@ 2003-09-08 20:18 ` nick at ilm dot com
0 siblings, 0 replies; 2+ messages in thread
From: nick at ilm dot com @ 2003-09-08 20:18 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12214
nick at ilm dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From nick at ilm dot com 2003-09-08 20:18 -------
Accidental double submission of this bug... 12215 has the attachment, so
I'm flagging this as a dup of that.
-nick
*** This bug has been marked as a duplicate of 12215 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-08 20:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-08 20:10 [Bug optimization/12214] New: [3.3.1 regression] ICE in make_label_edge with -fnon-call-exceptions -fno-gcse -O2 nick at ilm dot com
2003-09-08 20:18 ` [Bug optimization/12214] " nick at ilm dot com
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).