On 02/10/13 09:32, Uros Bizjak wrote:
Hello!

Attached patch prevents out-of-bounds offset in the call to
simplify_subreg, where the subreg offset is taken from the offset of a
memory access. The problem triggers on 4.6 branch and is latent on 4.7
and mainline.

2013-02-10  Uros Bizjak  <ubiz...@gmail.com>

        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:

2013-02-10  Uros Bizjak  <ubiz...@gmail.com>

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

Tested on x86_64-pc-linux-gnu {,-m32}.

OK for mainline and release branches?
OK for mainline. Please check with the appropriate release manager for the release branches.

Thanks,
Jeff

Reply via email to