Skip to content
Snippets Groups Projects
Commit d02b6ac7 authored by Jakub Jelinek's avatar Jakub Jelinek Committed by Jakub Jelinek
Browse files

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
parent e2f98c01
No related branches found
No related tags found
No related merge requests found
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> 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
* config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete. * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
......
...@@ -38753,7 +38753,7 @@ x86_output_mi_thunk (FILE *file, ...@@ -38753,7 +38753,7 @@ x86_output_mi_thunk (FILE *file,
{ {
tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOTPCREL); tmp = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOTPCREL);
tmp = gen_rtx_CONST (Pmode, tmp); tmp = gen_rtx_CONST (Pmode, tmp);
fnaddr = gen_rtx_MEM (Pmode, tmp); fnaddr = gen_const_mem (Pmode, tmp);
} }
} }
else else
...@@ -38773,8 +38773,9 @@ x86_output_mi_thunk (FILE *file, ...@@ -38773,8 +38773,9 @@ x86_output_mi_thunk (FILE *file,
output_set_got (tmp, NULL_RTX); output_set_got (tmp, NULL_RTX);
   
fnaddr = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOT); fnaddr = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, fnaddr), UNSPEC_GOT);
fnaddr = gen_rtx_PLUS (Pmode, fnaddr, tmp); fnaddr = gen_rtx_CONST (Pmode, fnaddr);
fnaddr = gen_rtx_MEM (Pmode, fnaddr); fnaddr = gen_rtx_PLUS (Pmode, tmp, fnaddr);
fnaddr = gen_const_mem (Pmode, fnaddr);
} }
} }
   
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment