[Bug middle-end/50316] ICE on fortran code with -O2 and -march=core2 options

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 9 10:10:00 GMT 2011


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

--- Comment #5 from Uros Bizjak <ubizjak at gmail dot com> 2011-09-09 09:58:51 UTC ---
(In reply to comment #4)
> Hi Tobias, I have upgraded to version 4.7.0 and the cse bug is gone. 
> However, when I tried to compile shelxl (crystal structure refinement 
> program) with this version, throwing the -O3 switch produced the 
> following output below. The source file is large and not freeware, so I 
> have not attached it. Pls tell me whether this is a known bug; if not, I 
> can send the source later.

> shelxl.for: In function 'sx3c':
> shelxl.for:3682:0: error: insn does not satisfy its constraints:
> (insn 6270 6269 5781 151 (set (reg/v/f:SI 14 st(6) [orig:3470 ff ] [3470])
>          (mem/c:SI (plus:SI (reg/f:SI 7 sp)
>                  (const_int 40 [0x28])) [0 S4 A32])) shelxl.for:3295 50 
> {*movsi_i
> nternal}
>       (nil))
> shelxl.for:3682:0: internal compiler error: in 
> reload_cse_simplify_operands, at
> postreload.c:403

It is not known bug, register allocator assigns x87 stack register to SImode
(integer) move.  This bug can't be solved without (minimized) testcase.



More information about the Gcc-bugs mailing list