re PR target/60648 (ICE (segmentation fault) in expand_binop)
commite7f317893469434eeb833e29fa888ee33a488f3e
authorJeff Law <law@redhat.com>
Fri, 28 Mar 2014 22:02:32 +0000 (28 16:02 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 28 Mar 2014 22:02:32 +0000 (28 16:02 -0600)
tree3c054d8b3672d6ff1f01c490ff6c443f86c08e5c
parent5294e4c32d617f2a52e47fb08d9b83b83885f469
re PR target/60648 (ICE (segmentation fault) in expand_binop)

PR target/60648
       * expr.c (do_tablejump): Use simplify_gen_binary rather than
       gen_rtx_{PLUS,MULT} to build up the address expression.

       * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
       creating non-canonical RTL.

       PR target/60648
       * g++.dg/pr60648.C: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r208924
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr60648.C [new file with mode: 0644]