]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mips.c (mips_frame_info): Remove gp_reg_size and and fp_reg_size.
authorRichard Sandiford <rsandifo@nildram.co.uk>
Thu, 18 Oct 2007 19:50:08 +0000 (19:50 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 18 Oct 2007 19:50:08 +0000 (19:50 +0000)
gcc/
* config/mips/mips.c (mips_frame_info): Remove gp_reg_size and
and fp_reg_size.
(mips_compute_frame_info): Remove associated code.
(mips16e_build_save_restore): Check num_fp instead of fp_reg_size.

From-SVN: r129461

gcc/ChangeLog
gcc/config/mips/mips.c

index 4b18b7b5939ce9cfaf62db7160868c994091084b..569d9eb9968d57f3cf11f7c23d9f96c3589636cf 100644 (file)
@@ -1,3 +1,10 @@
+2007-10-18  Richard Sandiford  <rsandifo@nildram.co.uk>
+
+       * config/mips/mips.c (mips_frame_info): Remove gp_reg_size and
+       and fp_reg_size.
+       (mips_compute_frame_info): Remove associated code.
+       (mips16e_build_save_restore): Check num_fp instead of fp_reg_size.
+
 2007-10-18  Richard Sandiford  <rsandifo@nildram.co.uk>
 
        * config/mips/mips-protos.h (compute_frame_size): Delete.
index 22b0c790c0dd96f1493c56ae40086044e1fb5059..39b34fa6efd6bc5f0aeec6b0891c4c8e5f5a6513 100644 (file)
@@ -250,10 +250,6 @@ struct mips_frame_info GTY(())
      is no such slot.  */
   HOST_WIDE_INT cprestore_size;
 
-  /* The size in bytes of the GPR and FPR save areas.  */
-  HOST_WIDE_INT gp_reg_size;
-  HOST_WIDE_INT fp_reg_size;
-
   /* Bit X is set if the function saves or restores GPR X.  */
   unsigned int mask;
 
@@ -7461,7 +7457,7 @@ mips16e_build_save_restore (bool restore_p, unsigned int *mask_ptr,
   unsigned int i, regno;
   int n;
 
-  gcc_assert (cfun->machine->frame.fp_reg_size == 0);
+  gcc_assert (cfun->machine->frame.num_fp == 0);
 
   /* Calculate the number of elements in the PARALLEL.  We need one element
      for the stack adjustment, one for each argument register save, and one
@@ -7960,8 +7956,7 @@ mips_compute_frame_info (void)
   /* Move above the GPR save area.  */
   if (frame->num_gp > 0)
     {
-      frame->gp_reg_size = frame->num_gp * UNITS_PER_WORD;
-      offset += MIPS_STACK_ALIGN (frame->gp_reg_size);
+      offset += MIPS_STACK_ALIGN (frame->num_gp * UNITS_PER_WORD);
       frame->gp_sp_offset = offset - UNITS_PER_WORD;
     }
 
@@ -7978,8 +7973,7 @@ mips_compute_frame_info (void)
   /* Move above the FPR save area.  */
   if (frame->num_fp > 0)
     {
-      frame->fp_reg_size = frame->num_fp * UNITS_PER_FPREG;
-      offset += MIPS_STACK_ALIGN (frame->fp_reg_size);
+      offset += MIPS_STACK_ALIGN (frame->num_fp * UNITS_PER_FPREG);
       frame->fp_sp_offset = offset - UNITS_PER_HWFPVALUE;
     }