PR rtl-optimization/56275
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Feb 2013 16:05:44 +0000 (16:05 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Feb 2013 16:05:44 +0000 (16:05 +0000)
commitffc1977a9d0e485ad63906c4ad8998166e7250b9
tree75844929969655f7bf9fe5bbc236484d6ff418c5
parenta7ddc63a88753bfe3af708b9b45d9be9b7683350
PR rtl-optimization/56275
* simplify-rtx.c (avoid_constant_pool_reference): Check that
offset is non-negative and less than cmode size before
calling simplify_subreg.

testsuite/ChangeLog:

PR rtl-optimization/56275
* gcc.dg/pr56275.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195944 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56275.c [new file with mode: 0644]