public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/37414] [4.4 regression] ICE with -ffast-math
2008-09-07 22:24 [Bug middle-end/37414] New: [4.4 regression] ICE with -ffast-math reichelt at gcc dot gnu dot org
@ 2008-09-07 22:24 ` reichelt at gcc dot gnu dot org
2008-09-08 6:51 ` ubizjak at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-07 22:24 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37414
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37414] New: [4.4 regression] ICE with -ffast-math
@ 2008-09-07 22:24 reichelt at gcc dot gnu dot org
2008-09-07 22:24 ` [Bug middle-end/37414] " reichelt at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-09-07 22:24 UTC (permalink / raw)
To: gcc-bugs
The following code snippet triggers an ICE on mainline (i686-pc-linux-gnu)#
when compiled with "-ffast-math":
=======================================
double foo(double x) { return x; }
double y = 2*foo(1);
=======================================
bug0.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The bug was introduced between 2008-08-23 and 2008-08-29.
--
Summary: [4.4 regression] ICE with -ffast-math
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37414
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37414] [4.4 regression] ICE with -ffast-math
2008-09-07 22:24 [Bug middle-end/37414] New: [4.4 regression] ICE with -ffast-math reichelt at gcc dot gnu dot org
2008-09-07 22:24 ` [Bug middle-end/37414] " reichelt at gcc dot gnu dot org
@ 2008-09-08 6:51 ` ubizjak at gmail dot com
2008-09-08 21:33 ` jakub at gcc dot gnu dot org
2008-09-08 21:33 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2008-09-08 6:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ubizjak at gmail dot com 2008-09-08 06:50 -------
Confirmed:
Program received signal SIGSEGV, Segmentation fault.
0x082ac655 in optimize_function_for_speed_p (fun=0x0) at
../../gcc-svn/trunk/gcc/predict.c:205
/home/uros/gcc-svn/trunk/gcc/predict.c:205:6178:beg:0x82ac655
(gdb) bt
#0 0x082ac655 in optimize_function_for_speed_p (fun=0x0) at
../../gcc-svn/trunk/gcc/predict.c:205
#1 0x081f3c53 in fold_binary (code=MULT_EXPR, type=0xb7c4e478, op0=0xb7f56294,
op1=0xb7cd39bc) at ../../gcc-svn/trunk/gcc/fold-const.c:10414
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-08 06:50:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37414
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37414] [4.4 regression] ICE with -ffast-math
2008-09-07 22:24 [Bug middle-end/37414] New: [4.4 regression] ICE with -ffast-math reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-09-08 21:33 ` jakub at gcc dot gnu dot org
@ 2008-09-08 21:33 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-08 21:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-09-08 21:32 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37414
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug middle-end/37414] [4.4 regression] ICE with -ffast-math
2008-09-07 22:24 [Bug middle-end/37414] New: [4.4 regression] ICE with -ffast-math reichelt at gcc dot gnu dot org
2008-09-07 22:24 ` [Bug middle-end/37414] " reichelt at gcc dot gnu dot org
2008-09-08 6:51 ` ubizjak at gmail dot com
@ 2008-09-08 21:33 ` jakub at gcc dot gnu dot org
2008-09-08 21:33 ` jakub at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-08 21:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-09-08 21:31 -------
Subject: Bug 37414
Author: jakub
Date: Mon Sep 8 21:30:23 2008
New Revision: 140122
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140122
Log:
PR middle-end/37414
* predict.c (optimize_function_for_size_p): Don't segfault if
FUN is NULL.
* fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
tree_swap_operands_p): Don't test cfun != NULL before calling
optimize_function_for_s*_p.
* g++.dg/opt/init2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/init2.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/predict.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37414
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-08 21:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-07 22:24 [Bug middle-end/37414] New: [4.4 regression] ICE with -ffast-math reichelt at gcc dot gnu dot org
2008-09-07 22:24 ` [Bug middle-end/37414] " reichelt at gcc dot gnu dot org
2008-09-08 6:51 ` ubizjak at gmail dot com
2008-09-08 21:33 ` jakub at gcc dot gnu dot org
2008-09-08 21:33 ` jakub at gcc dot gnu dot 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).