* [Bug optimization/14868] 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
@ 2004-04-06 18:22 ` nick at ilm dot com
2004-04-06 18:23 ` [Bug optimization/14868] 3.3/3.4 ICE with -msse2 " nick at ilm dot com
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: nick at ilm dot com @ 2004-04-06 18:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nick at ilm dot com 2004-04-06 18:22 -------
Created an attachment (id=6045)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6045&action=view)
testcase that triggers the ICE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug optimization/14868] 3.3/3.4 ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
2004-04-06 18:22 ` [Bug optimization/14868] " nick at ilm dot com
@ 2004-04-06 18:23 ` nick at ilm dot com
2004-04-06 18:30 ` [Bug optimization/14868] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: nick at ilm dot com @ 2004-04-06 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nick at ilm dot com 2004-04-06 18:23 -------
typo in description -msse -> -msse2
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|3.3/3.4 ICE with -msse - |3.3/3.4 ICE with -msse2 -
|mfpmath=sse -fnon-call- |mfpmath=sse -fnon-call-
|exceptions |exceptions
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
2004-04-06 18:22 ` [Bug optimization/14868] " nick at ilm dot com
2004-04-06 18:23 ` [Bug optimization/14868] 3.3/3.4 ICE with -msse2 " nick at ilm dot com
@ 2004-04-06 18:30 ` pinskia at gcc dot gnu dot org
2004-04-06 20:41 ` bangerth at dealii dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-06 18:30 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-06 18:30 -------
Confirmed on the mainline:
#0 find_if_block (ce_info=0xbffebc00) at /home/gates/pinskia/src/gnu/gcc/src/gcc/ifcvt.c:1633
#1 0x08451201 in if_convert (x_life_data_ok=0) at /home/gates/pinskia/src/gnu/gcc/src/gcc/ifcvt.c:
2325
#2 0x083e428c in rest_of_compilation (decl=0x40159798) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/passes.c:852
#3 0x084086b7 in tree_rest_of_compilation (fndecl=0x40159798, nested_p=false)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/tree-optimize.c:202
#4 0x0812c68e in expand_body (fn=0x40159798) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/
semantics.c:2928
#5 0x0840ab4e in cgraph_expand_function (node=0x401816c0) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cgraphunit.c:791
#6 0x0840ac76 in cgraph_assemble_pending_functions () at /home/gates/pinskia/src/gnu/gcc/src/
gcc/cgraphunit.c:287
#7 0x0840b995 in cgraph_finalize_function (decl=0x40159798, nested=false)
at /home/gates/pinskia/src/gnu/gcc/src/gcc/cgraphunit.c:368
#8 0x0812c9c3 in expand_or_defer_fn (fn=0x40159798) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/cp/semantics.c:3011
#9 0x0809e10e in instantiate_decl (d=0x40159798, defer_ok=0) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/cp/pt.c:11281
#10 0x080a9797 in instantiate_pending_templates () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/
pt.c:11358
#11 0x080d804b in finish_file () at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/decl2.c:2582
#12 0x0817f6b5 in c_common_parse_file (set_yydebug=0) at /home/gates/pinskia/src/gnu/gcc/src/
gcc/c-opts.c:1235
#13 0x083b88ee in toplev_main (argc=48, argv=0xbffec074) at /home/gates/pinskia/src/gnu/gcc/
src/gcc/toplev.c:1575
#14 0x0818319e in main (argc=48, argv=0x30) at /home/gates/pinskia/src/gnu/gcc/src/gcc/main.c:
35
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-valid-code
Known to fail| |3.2.3 3.2.2 3.3.3 3.5.0
| |3.3.1
Last reconfirmed|0000-00-00 00:00:00 |2004-04-06 18:30:23
date| |
Summary|3.3/3.4 ICE with -msse2 - |ICE with -msse2 -mfpmath=sse
|mfpmath=sse -fnon-call- |-fnon-call-exceptions
|exceptions |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (2 preceding siblings ...)
2004-04-06 18:30 ` [Bug optimization/14868] " pinskia at gcc dot gnu dot org
@ 2004-04-06 20:41 ` bangerth at dealii dot org
2004-04-06 21:03 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: bangerth at dealii dot org @ 2004-04-06 20:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-04-06 20:41 -------
This is the shortest I can come up with:
---------------
void foo () throw (int)
{
for (int i = 0; i < 3 ; i++)
{
double tmp;
if (tmp < 0)
tmp = -tmp;
}
}
----------------------
g/x> /home/bangerth/bin/gcc-3.2.3/bin/c++ -msse -mfpmath=sse
-fnon-call-exceptions -O -c x.cc
x.cc: In function `void foo()':
x.cc:9: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -msse -mfpmath=sse
-fnon-call-exceptions -O -c x.cc
x.cc: In function `void foo()':
x.cc:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -msse -mfpmath=sse
-fnon-call-exceptions -O -c x.cc
x.cc: In function `void foo()':
x.cc:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -msse -mfpmath=sse
-fnon-call-exceptions -O -c x.cc
x.cc: In function `void foo()':
x.cc:9: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
All *-pre compilers were updated 2004-04-02.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.2.3 3.2.2 3.3.3 3.5.0 |3.2.3 3.2.2 3.3.3 3.5.0
|3.3.1 |3.3.1 3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (3 preceding siblings ...)
2004-04-06 20:41 ` bangerth at dealii dot org
@ 2004-04-06 21:03 ` pinskia at gcc dot gnu dot org
2004-07-06 7:52 ` [Bug rtl-optimization/14868] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-06 21:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-06 21:02 -------
The problem is that if convert is trying to convert
if (tmp < 0)
tmp = -tmp;
into
fabs(tmp);
but hitting a NULL pointer.
Note this does not happen on the tree-ssa for some reason.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (4 preceding siblings ...)
2004-04-06 21:03 ` pinskia at gcc dot gnu dot org
@ 2004-07-06 7:52 ` pinskia at gcc dot gnu dot org
2005-02-01 23:45 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-06 7:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-06 07:52 -------
Fixed, as I can no longer reproduce this on the mainline. Most likely the merge of the tree-ssa changed
the RTL somehow.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (5 preceding siblings ...)
2004-07-06 7:52 ` [Bug rtl-optimization/14868] " pinskia at gcc dot gnu dot org
@ 2005-02-01 23:45 ` pinskia at gcc dot gnu dot org
2005-02-02 0:15 ` steven at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-01 23:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-01 23:45 -------
*** Bug 19744 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (6 preceding siblings ...)
2005-02-01 23:45 ` pinskia at gcc dot gnu dot org
@ 2005-02-02 0:15 ` steven at gcc dot gnu dot org
2005-02-02 1:05 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-02-02 0:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From steven at gcc dot gnu dot org 2005-02-02 00:15 -------
This may be fixed on mainline, but it's still broken in 3.4 and before.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (7 preceding siblings ...)
2005-02-02 0:15 ` steven at gcc dot gnu dot org
@ 2005-02-02 1:05 ` pinskia at gcc dot gnu dot org
2005-02-02 1:49 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-02 1:05 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-02 01:05 -------
Hmm, the problem is that the earliest compare is not in the same BB as the jump.
The reason why we don't ICE on the mainline is because they are in the same BB (but that might be
wrong).
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (8 preceding siblings ...)
2005-02-02 1:05 ` pinskia at gcc dot gnu dot org
@ 2005-02-02 1:49 ` pinskia at gcc dot gnu dot org
2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-02 1:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-02 01:49 -------
Hmm, x86 split the branch by itself.
ix86_split_fp_branch
But we don't recombine the branch again why?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (9 preceding siblings ...)
2005-02-02 1:49 ` pinskia at gcc dot gnu dot org
@ 2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
2005-04-14 2:15 ` nick at ilm dot com
2005-07-14 1:00 ` [Bug rtl-optimization/14868] [3.4 only] " pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-12 23:23 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (10 preceding siblings ...)
2005-02-12 23:23 ` pinskia at gcc dot gnu dot org
@ 2005-04-14 2:15 ` nick at ilm dot com
2005-07-14 1:00 ` [Bug rtl-optimization/14868] [3.4 only] " pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: nick at ilm dot com @ 2005-04-14 2:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nick at ilm dot com 2005-04-14 02:15 -------
testcase compiles successfuly with gcc-4.0.0-20050410
on x68 and amd64, removed 4.0.0 from known to fail line.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.2.3 3.2.2 3.3.3 4.0.0 |3.2.3 3.2.2 3.3.3 3.3.1
|3.3.1 3.4.0 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug rtl-optimization/14868] [3.4 only] ICE with -msse2 -mfpmath=sse -fnon-call-exceptions
2004-04-06 18:20 [Bug optimization/14868] New: 3.3/3.4 ICE with -msse -mfpmath=sse -fnon-call-exceptions nick at ilm dot com
` (11 preceding siblings ...)
2005-04-14 2:15 ` nick at ilm dot com
@ 2005-07-14 1:00 ` pinskia at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 1:00 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-04-06 18:30:23 |2005-07-14 00:54:22
date| |
Summary|ICE with -msse2 -mfpmath=sse|[3.4 only] ICE with -msse2 -
|-fnon-call-exceptions |mfpmath=sse -fnon-call-
| |exceptions
Target Milestone|--- |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14868
^ permalink raw reply [flat|nested] 14+ messages in thread