This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/61391] [4.10 Regression] ICE in execute_one_pass at -O3 and above
- From: "ysrumyan at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jun 2014 08:57:31 +0000
- Subject: [Bug other/61391] [4.10 Regression] ICE in execute_one_pass at -O3 and above
- Auto-submitted: auto-generated
- References: <bug-61391-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61391
--- Comment #3 from Yuri Rumyantsev <ysrumyan at gmail dot com> ---
A check that stmt-bb belongs to loop is missed in is_cond_scalar_reduction, if
we add the following lines
if (gimple_code (stmt) != GIMPLE_ASSIGN
|| gimple_has_volatile_ops (stmt))
return false;
+
+ if (!flow_bb_inside_loop_p (loop, gimple_bb (stmt)))
+ return false;
test will be compiled successfully.
I will prepare a patch after required testing completion.