From: Alan Modra Date: Thu, 7 Apr 2011 11:17:05 +0000 (+0930) Subject: rs6000.c (rs6000_stack_info): Don't compare against previous stack info. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20c033673b645e883b34e2695f7af287bf839fa9;p=gcc.git rs6000.c (rs6000_stack_info): Don't compare against previous stack info. * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against previous stack info. From-SVN: r172096 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7d80ceaf10e..7cbbbfb1225 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-07 Alan Modra + + * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against + previous stack info. + 2011-04-07 Tom de Vries PR target/43920 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index d6441963375..4657ed331cd 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -18774,9 +18774,6 @@ rs6000_savres_strategy (rs6000_stack_t *info, static rs6000_stack_t * rs6000_stack_info (void) { -#ifdef ENABLE_CHECKING - static rs6000_stack_t info_save; -#endif rs6000_stack_t *info_ptr = &stack_info; int reg_size = TARGET_32BIT ? 4 : 8; int ehrd_size; @@ -18785,14 +18782,10 @@ rs6000_stack_info (void) HOST_WIDE_INT non_fixed_size; bool using_static_chain_p; -#ifdef ENABLE_CHECKING - memcpy (&info_save, &stack_info, sizeof stack_info); -#else if (reload_completed && info_ptr->reload_completed) return info_ptr; -#endif - memset (&stack_info, 0, sizeof (stack_info)); + memset (info_ptr, 0, sizeof (*info_ptr)); info_ptr->reload_completed = reload_completed; if (TARGET_SPE) @@ -19096,10 +19089,6 @@ rs6000_stack_info (void) if (! info_ptr->cr_save_p) info_ptr->cr_save_offset = 0; -#ifdef ENABLE_CHECKING - gcc_assert (!(reload_completed && info_save.reload_completed) - || memcmp (&info_save, &stack_info, sizeof stack_info) == 0); -#endif return info_ptr; }