diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-03-20 17:05:41 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-03-20 17:05:41 +0100 |
commit | d02b6ac7447cbd5fb19ce2200f39cc82cae428b0 (patch) | |
tree | 0c30a78485da5e9dc7584db7d98c5125a1cafc20 | |
parent | e2f98c017ca66fa44b990a5f5be6f1bf3f915b24 (diff) | |
download | gcc-d02b6ac7447cbd5fb19ce2200f39cc82cae428b0.zip gcc-d02b6ac7447cbd5fb19ce2200f39cc82cae428b0.tar.gz gcc-d02b6ac7447cbd5fb19ce2200f39cc82cae428b0.tar.bz2 |
re PR target/60568 (lto1: internal compiler error: in insn_min_length, at config/i386/i386.md:1599)
PR target/60568
* config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
into CONST, put pic register as first operand of PLUS. Use
gen_const_mem for both 32-bit and 64-bit PIC got loads.
From-SVN: r208706
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 7 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81b0f60..bc43ad2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-03-20 Jakub Jelinek <jakub@redhat.com> + + PR target/60568 + * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT + into CONST, put pic register as first operand of PLUS. Use + gen_const_mem for both 32-bit and 64-bit PIC got loads. + 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com> * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index bd7fef0..842be68 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -38753,7 +38753,7 @@ x86_output_mi_thunk (FILE *file, { tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOTPCREL); tmp = gen_rtx_CONST (Pmode, tmp); - fnaddr = gen_rtx_MEM (Pmode, tmp); + fnaddr = gen_const_mem (Pmode, tmp); } } else @@ -38773,8 +38773,9 @@ x86_output_mi_thunk (FILE *file, output_set_got (tmp, NULL_RTX); fnaddr = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOT); - fnaddr = gen_rtx_PLUS (Pmode, fnaddr, tmp); - fnaddr = gen_rtx_MEM (Pmode, fnaddr); + fnaddr = gen_rtx_CONST (Pmode, fnaddr); + fnaddr = gen_rtx_PLUS (Pmode, tmp, fnaddr); + fnaddr = gen_const_mem (Pmode, fnaddr); } } |