remove unneeded #if for HARD_FRAME_POINTER_IS_ARG_POINTER

gcc/ChangeLog:

2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
	check HARD_FRAME_POINTER_IS_ARG_POINTER.

From-SVN: r228689
This commit is contained in:
Trevor Saunders 2015-10-11 00:48:22 +00:00 committed by Trevor Saunders
parent a9e0a99876
commit 38b0b09304
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
check HARD_FRAME_POINTER_IS_ARG_POINTER.
2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* defaults.h (FRAME_ADDR_RTX): New default definition.

View File

@ -915,8 +915,7 @@ expand_builtin_setjmp_receiver (rtx receiver_label)
emit_clobber (hard_frame_pointer_rtx);
}
#if !HARD_FRAME_POINTER_IS_ARG_POINTER
if (fixed_regs[ARG_POINTER_REGNUM])
if (!HARD_FRAME_POINTER_IS_ARG_POINTER && fixed_regs[ARG_POINTER_REGNUM])
{
#ifdef ELIMINABLE_REGS
/* If the argument pointer can be eliminated in favor of the
@ -941,7 +940,6 @@ expand_builtin_setjmp_receiver (rtx receiver_label)
copy_to_reg (get_arg_pointer_save_area ()));
}
}
#endif
if (receiver_label != NULL && targetm.have_builtin_setjmp_receiver ())
emit_insn (targetm.gen_builtin_setjmp_receiver (receiver_label));