From: Thomas Preud'homme Date: Wed, 22 Nov 2017 13:57:48 +0000 (+0000) Subject: arm.c (cmse_nonsecure_call_clear_caller_saved): Get rid of padding_bits_to_clear_ptr. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=902c4e8f958707fcddf8e641edf8a586ee629319;p=gcc.git arm.c (cmse_nonsecure_call_clear_caller_saved): Get rid of padding_bits_to_clear_ptr. 2017-11-22 Thomas Preud'homme gcc/ * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Get rid of padding_bits_to_clear_ptr. (cmse_nonsecure_entry_clear_before_return): Likewise. From-SVN: r255056 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cefff5ad2e..24190a70d4e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-11-22 Thomas Preud'homme + + * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Get rid of + padding_bits_to_clear_ptr. + (cmse_nonsecure_entry_clear_before_return): Likewise. + 2017-11-22 Thomas Preud'homme * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Use diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 36f35573c88..63b4f2eae3c 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -17020,7 +17020,6 @@ cmse_nonsecure_call_clear_caller_saved (void) bool using_r4, first_param = true; function_args_iterator args_iter; uint32_t padding_bits_to_clear[4] = {0U, 0U, 0U, 0U}; - uint32_t * padding_bits_to_clear_ptr = &padding_bits_to_clear[0]; if (!NONDEBUG_INSN_P (insn)) continue; @@ -17104,7 +17103,7 @@ cmse_nonsecure_call_clear_caller_saved (void) to_clear_args_mask = compute_not_to_clear_mask (arg_type, arg_rtx, REGNO (arg_rtx), - padding_bits_to_clear_ptr); + &padding_bits_to_clear[0]); if (to_clear_args_mask) { for (regno = R0_REGNUM; regno <= maxregno; regno++) @@ -25152,7 +25151,6 @@ cmse_nonsecure_entry_clear_before_return (void) { int regno, maxregno = TARGET_HARD_FLOAT ? LAST_VFP_REGNUM : IP_REGNUM; uint32_t padding_bits_to_clear = 0; - uint32_t * padding_bits_to_clear_ptr = &padding_bits_to_clear; auto_sbitmap to_clear_bitmap (maxregno + 1); tree result_type; rtx result_rtl; @@ -25205,7 +25203,7 @@ cmse_nonsecure_entry_clear_before_return (void) gcc_assert (REG_P (result_rtl)); to_clear_return_mask = compute_not_to_clear_mask (result_type, result_rtl, 0, - padding_bits_to_clear_ptr); + &padding_bits_to_clear); if (to_clear_return_mask) { gcc_assert ((unsigned) maxregno < sizeof (long long) * __CHAR_BIT__);