[Bug c/44546] [4.5/4.6 Regression] ICE in extract_insn, at recog.c:2103 with -ffast-math -Os (compiling graphviz)

2010-06-15 Thread hjl dot tools at gmail dot com


-- 

hjl dot tools at gmail dot com changed:

   What|Removed |Added

Summary|4.5 ICE in extract_insn, at |[4.5/4.6 Regression] ICE in
   |recog.c:2103 with -ffast-   |extract_insn, at
   |math -Os (compiling |recog.c:2103 with -ffast-
   |graphviz)   |math -Os (compiling
   ||graphviz)
   Target Milestone|--- |4.5.1


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



[Bug c/44546] [4.5/4.6 Regression] ICE in extract_insn, at recog.c:2103 with -ffast-math -Os (compiling graphviz)

2010-06-15 Thread ubizjak at gmail dot com


--- Comment #5 from ubizjak at gmail dot com  2010-06-15 18:09 ---
Confirmed.

bbro pass is blindly changing:

(jump_insn 55 57 23 2 pr44546.c:10 (set (pc)
(if_then_else (unle (reg:CCFP 17 flags)
(const_int 0 [0]))
(label_ref:SI 28)
(pc))) 576 {*jcc_1} (expr_list:REG_DEAD (reg:CCFP 17 flags)
(expr_list:REG_BR_PROB (const_int 7929 [0x1ef9])
(nil)))
to

(jump_insn 55 57 28 2 pr44546.c:10 (set (pc)
(if_then_else (gt (reg:CCFP 17 flags)
(const_int 0 [0]))
(label_ref:SI 89)
(pc))) 576 {*jcc_1} (expr_list:REG_DEAD (reg:CCFP 17 flags)
(expr_list:REG_BR_PROB (const_int 2071 [0x817])
(nil)))

This is not valid insn, since GT condition does not satisfy
ix86_trivial_fp_comparison_operator predicate.


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

  Known to fail|4.5.0   |4.5.0 4.6.0


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



[Bug c/44546] [4.5/4.6 Regression] ICE in extract_insn, at recog.c:2103 with -ffast-math -Os (compiling graphviz)

2010-06-15 Thread ubizjak at gmail dot com


--- Comment #6 from ubizjak at gmail dot com  2010-06-15 18:16 ---
(In reply to comment #5)

> bbro pass is blindly changing:

Ooops, scrap this. Post-reload splitter is splitting in a wrong way.


-- 


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



[Bug c/44546] [4.5/4.6 Regression] ICE in extract_insn, at recog.c:2103 with -ffast-math -Os (compiling graphviz)

2010-06-20 Thread ubizjak at gmail dot com


--- Comment #7 from ubizjak at gmail dot com  2010-06-20 16:59 ---
Created an attachment (id=20946)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20946&action=view)
Proposed patch

Patch in testing.


-- 

ubizjak at gmail dot com changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |ubizjak at gmail dot com
   |dot org |
 Status|NEW |ASSIGNED


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