[rtlanal] Fix rtl-optimization/71295
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 2 Jun 2016 12:26:42 +0000 (12:26 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 2 Jun 2016 12:26:42 +0000 (12:26 +0000)
commitb5bd197890a8394028e77e0345cf8c326bfc419f
treea941aa68273c5d9bb083a41f678ef943244940f1
parent8aa5bdd61e96a7adeec6dad22847be27faad7122
[rtlanal] Fix rtl-optimization/71295

PR rtl-optimization/71295
* rtlanal.c (subreg_get_info): If taking a subreg at the requested
offset would go over the size of the inner mode reject it.

* gcc.c-torture/compile/pr71295.c: New test.

From-SVN: r237034
gcc/ChangeLog
gcc/rtlanal.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr71295.c [new file with mode: 0644]