Bug 62081 - [5 Regression] ICE: in fix_loop_structure, at loop-init.c:208 with -fno-tree-ch -fno-tree-cselim -fno-tree-dominator-opts -fno-tree-reassoc -fno-tree-sink
Summary: [5 Regression] ICE: in fix_loop_structure, at loop-init.c:208 with -fno-tree-...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 5.0
: P3 normal
Target Milestone: 5.0
Assignee: Richard Biener
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2014-08-10 11:07 UTC by Zdenek Sojka
Modified: 2014-08-14 13:15 UTC (History)
0 users

See Also:
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Build: x86_64-pc-linux-gnu
Known to work: 4.8.4, 4.9.2
Known to fail: 5.0
Last reconfirmed: 2014-08-11 00:00:00


Attachments
reduced testcase (73 bytes, text/x-csrc)
2014-08-10 11:07 UTC, Zdenek Sojka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zdenek Sojka 2014-08-10 11:07:00 UTC
Created attachment 33283 [details]
reduced testcase

Compiler output:
$ gcc -O -fno-tree-ch -fno-tree-cselim -fno-tree-dominator-opts -fno-tree-reassoc -fno-tree-sink testcase.c
testcase.c: In function 'foo':
testcase.c:4:1: internal compiler error: in fix_loop_structure, at loop-init.c:208
 foo ()
 ^
0x9defdf fix_loop_structure(bitmap_head*)
        /mnt/svn/gcc-trunk/gcc/loop-init.c:208
0xcb93fe gate_loop
        /mnt/svn/gcc-trunk/gcc/tree-ssa-loop.c:62
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.

Tested revisions:
r213777 - ICE
4_9 r212703 - OK
4_8 r212702 - OK
Comment 1 Richard Biener 2014-08-11 08:46:44 UTC
I will have a look.
Comment 2 Richard Biener 2014-08-14 13:15:02 UTC
Author: rguenth
Date: Thu Aug 14 13:14:24 2014
New Revision: 213961

URL: https://gcc.gnu.org/viewcvs?rev=213961&root=gcc&view=rev
Log:
2014-08-14  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/62081
	* tree-ssa-loop.c (pass_fix_loops): New pass.
	(pass_tree_loop::gate):  Do not fixup loops here.
	* tree-pass.h (make_pass_fix_loops): Declare.
	* passes.def: Schedule pass_fix_loops before GIMPLE loop passes.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/passes.def
    trunk/gcc/tree-pass.h
    trunk/gcc/tree-ssa-loop.c
Comment 3 Richard Biener 2014-08-14 13:15:35 UTC
Fixed.