re PR target/66412 (ICE on valid code at -O2 and -O3 with -g enabled in simplify_subr...
authorUros Bizjak <ubizjak@gmail.com>
Fri, 26 Jun 2015 07:45:07 +0000 (09:45 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Fri, 26 Jun 2015 07:45:07 +0000 (09:45 +0200)
commit6c1a2b3d11403f75927cd065580acf1678c32368
treebb2f7b3c740c925dd909f9eb86215584258900c8
parentcf3e5186466c0c10bd0f0eb70cfb07cd94879ea3
re PR target/66412 (ICE on valid code at -O2 and -O3 with -g enabled in simplify_subreg, at simplify-rtx.c:5748)

PR target/66412
* config/i386/i386.md (various splitters): Use shallow_copy_rtx
before doing PUT_MODE or PUT_CODE on operands to avoid
in-place RTX modification.

testsuite/ChangeLog:

PR target/66412
* gcc.target/i386/pr66412.c: New test.

Co-Authored-By: Segher Boessenkool <segher@kernel.crashing.org>
From-SVN: r224994
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr66412.c [new file with mode: 0644]