https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70964
Chengnian Sun <chengniansun at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chengniansun at gmail dot com
--- Comment #4 from Chengnian Sun <chengniansun at gmail dot com> ---
(In reply to ktkachov from comment #3)
> Another testcase that started ICEing with r235842.
>
> int a, b;
> int
> fn1 (int p1)
> {
> return p1 < 0 ? p1 : a;
> }
>
> void
> fn2 ()
> {
> lbl_100:
> b = 1;
> for (; b != 21; b = fn1 (b))
> ;
> goto lbl_100;
> }
>
> with -Ofast with a different backtrace:
> ice.c:9:1: internal compiler error: in combine_blocks, at tree-if-conv.c:2219
> fn2 ()
> ^~~
> 0xb49a15 combine_blocks
> $SRC/gcc/tree-if-conv.c:2219
> 0xb4b17b tree_if_conversion
> $SRC/gcc/tree-if-conv.c:2741
> 0xb4b17b execute
> $SRC/gcc/tree-if-conv.c:2829
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <http://gcc.gnu.org/bugs.html> for instructions.
Hi,
May I know how did you find this bug-triggering test case? Is it generated by
some program generator or from the torture test suite?
Thank you.