s390.c (s390_fixup_clobbered_return_reg): Do nothing if __builtin_return_address was not used.

* config/s390/s390.c (s390_fixup_clobbered_return_reg):
	Do nothing if __builtin_return_address was not used.

From-SVN: r65133
This commit is contained in:
Ulrich Weigand 2003-04-01 17:32:33 +00:00 committed by Ulrich Weigand
parent e1fea6ee0b
commit 7fe317e4ea
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.c (s390_fixup_clobbered_return_reg):
Do nothing if __builtin_return_address was not used.
Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
* i386.md (test patterns): Allow memory operand in operand1.

View File

@ -4905,6 +4905,12 @@ s390_fixup_clobbered_return_reg (return_reg)
bool replacement_done = 0;
rtx insn;
/* If we never called __builtin_return_address, register 14
might have been used as temp during the prolog; we do
not want to touch those uses. */
if (!has_hard_reg_initial_val (Pmode, REGNO (return_reg)))
return false;
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
{
rtx reg, off, new_insn;