Commit 3418dd3a by Franz Sirl Committed by Mark Mitchell

rs6000.c (rs6000_return_addr): Use PIC code for AIX, even without flag_pic.

	* config/rs6000/rs6000.c (rs6000_return_addr): Use PIC
	code for AIX, even without flag_pic.

From-SVN: r39464
parent 45677496
...@@ -5057,12 +5057,15 @@ rs6000_return_addr (count, frame) ...@@ -5057,12 +5057,15 @@ rs6000_return_addr (count, frame)
/* Currently we don't optimize very well between prolog and body code and /* Currently we don't optimize very well between prolog and body code and
for PIC code the code can be actually quite bad, so don't try to be for PIC code the code can be actually quite bad, so don't try to be
too clever here. */ too clever here. */
if (count != 0 || flag_pic != 0) if (count != 0
|| flag_pic != 0
|| DEFAULT_ABI == ABI_AIX
|| DEFAULT_ABI == ABI_AIX_NODESC)
{ {
cfun->machine->ra_needs_full_frame = 1; cfun->machine->ra_needs_full_frame = 1;
return return
gen_rtx_MEM (Pmode, gen_rtx_MEM (Pmode,
memory_address (Pmode, memory_address (Pmode,
plus_constant (copy_to_reg (gen_rtx_MEM (Pmode, plus_constant (copy_to_reg (gen_rtx_MEM (Pmode,
memory_address (Pmode, frame))), memory_address (Pmode, frame))),
RETURN_ADDRESS_OFFSET))); RETURN_ADDRESS_OFFSET)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment