Commit a38d360d by Geoff Keating Committed by Geoffrey Keating

rs6000.c (first_reg_to_save): Save PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.

* config/rs6000/rs6000.c (first_reg_to_save): Save
PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.

From-SVN: r30542
parent ae673f14
Tue Nov 16 14:37:52 1999 Geoffrey Keating <geoffk@cygnus.com>
* config/rs6000/rs6000.c (first_reg_to_save): Save
PIC_OFFSET_TABLE_REGNUM when -fpic even though it is fixed.
1999-11-15 Jason Merrill <jason@casey.cygnus.com>
* dwarf2out.c (scope_die_for): Don't rely on the decl_scope_table
......
......@@ -3508,7 +3508,11 @@ first_reg_to_save ()
/* Find lowest numbered live register. */
for (first_reg = 13; first_reg <= 31; first_reg++)
if (regs_ever_live[first_reg] && ! call_used_regs[first_reg])
if (regs_ever_live[first_reg]
&& (! call_used_regs[first_reg]
|| (first_reg == PIC_OFFSET_TABLE_REGNUM
&& (DEFAULT_ABI == ABI_V4 || DEFAULT_ABI == ABI_SOLARIS)
&& flag_pic == 1)))
break;
if (profile_flag)
......
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