rs6000.c (rs6000_stack_info): Don't compare against previous stack info.
authorAlan Modra <amodra@gmail.com>
Thu, 7 Apr 2011 11:17:05 +0000 (20:47 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 7 Apr 2011 11:17:05 +0000 (20:47 +0930)
* config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
previous stack info.

From-SVN: r172096

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 7d80ceaf10e92e4dbab5f1b6f9f0eb4709022359..7cbbbfb12254a88d7dd8f027de59c01407f4fc01 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-07  Alan Modra  <amodra@gmail.com>
+
+       * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
+       previous stack info.
+
 2011-04-07  Tom de Vries  <tom@codesourcery.com>
 
        PR target/43920
index d6441963375dffc10246a73a1887ac79c1a7a9f0..4657ed331cd3d02b6efd1664f33e6fbc9ecd98af 100644 (file)
@@ -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;
 }