[Bug rtl-optimization/58997] [4.7/4.8/4.9 Regression] ICE on valid code at -O3 on x86_64-linux-gnu (affecting gcc trunk and 4.8.2)
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 5 19:39:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58997
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Nov 5 19:37:51 2013
New Revision: 204413
URL: http://gcc.gnu.org/viewcvs?rev=204413&root=gcc&view=rev
Log:
PR rtl-optimization/58997
* loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
get_iv_value to be in iv->mode rather than iv->extend_mode.
(iv_extend): Likewise. Otherwise, if iv->extend != extend,
use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
* loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
mode.
* gcc.c-torture/compile/pr58997.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr58997.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/loop-iv.c
trunk/gcc/loop-unswitch.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list