re PR rtl-optimization/65321 (ICE on valid code at -O2 and -O3 with -g enabled in...
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Mar 2015 06:36:50 +0000 (07:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Mar 2015 06:36:50 +0000 (07:36 +0100)
commit26d83bccd1ed42a08b5940ba73742537b81efa2b
tree1f964f2790839401b1c39db959a82bdc5757d7c1
parentcaf2df93de6eda7d35f78e31517a13a3676b1f5c
re PR rtl-optimization/65321 (ICE on valid code at -O2 and -O3 with -g enabled in decompose, at rtl.h:2007)

PR rtl-optimization/65321
* cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
than shift mode.
* var-tracking.c (use_narrower_mode): Likewise.

* gcc.dg/pr65321.c: New test.

From-SVN: r221298
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr65321.c [new file with mode: 0644]
gcc/var-tracking.c