From 38b0b09304b5b87eb69fa1ddfbafbc500aacb315 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sun, 11 Oct 2015 00:48:22 +0000 Subject: [PATCH] remove unneeded #if for HARD_FRAME_POINTER_IS_ARG_POINTER gcc/ChangeLog: 2015-10-10 Trevor Saunders * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to check HARD_FRAME_POINTER_IS_ARG_POINTER. From-SVN: r228689 --- gcc/ChangeLog | 5 +++++ gcc/builtins.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ab61ec2e553..4bf73e465bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-10 Trevor Saunders + + * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to + check HARD_FRAME_POINTER_IS_ARG_POINTER. + 2015-10-10 Trevor Saunders * defaults.h (FRAME_ADDR_RTX): New default definition. diff --git a/gcc/builtins.c b/gcc/builtins.c index 65aa71f659d..b4ac53553fe 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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)); -- 2.30.2