summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-02 02:02:43 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2002-12-02 02:02:43 +0000
commitb2adb3e05da397436a4979b670ecdc9fa68ac3ec (patch)
tree128f9ced4eaaa438007954623565baa81ee1eb90
parent43459c36ac5f830588e4c20ad9b4bd47e9e642aa (diff)
downloadppe42-gcc-b2adb3e05da397436a4979b670ecdc9fa68ac3ec.tar.gz
ppe42-gcc-b2adb3e05da397436a4979b670ecdc9fa68ac3ec.zip
* config/h8300/h8300.c (h8300_output_function_prologue):
Remove variable idx. (h8300_output_function_epilogue): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59703 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/h8300/h8300.c12
2 files changed, 10 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1bb85343604..4a7d372619f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-12-01 Kazu Hirata <kazu@cs.umass.edu>
+
+ * config/h8300/h8300.c (h8300_output_function_prologue):
+ Remove variable idx.
+ (h8300_output_function_epilogue): Likewise.
+
2002-12-01 Zack Weinberg <zack@codesourcery.com>
* config/frv/xm-frv.h: Delete, unnecessary.
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index d94904ec38c..84ce43684a0 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -510,7 +510,7 @@ h8300_output_function_prologue (file, size)
HOST_WIDE_INT size;
{
int fsize = round_frame_size (size);
- int idx;
+ int regno;
int saved_regs;
int n_regs;
@@ -580,10 +580,8 @@ h8300_output_function_prologue (file, size)
/* Push the rest of the registers in ascending order. */
saved_regs = compute_saved_regs ();
- for (idx = 0; idx < FIRST_PSEUDO_REGISTER; idx += n_regs)
+ for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno += n_regs)
{
- int regno = idx;
-
n_regs = 1;
if (saved_regs & (1 << regno))
{
@@ -621,7 +619,7 @@ h8300_output_function_epilogue (file, size)
HOST_WIDE_INT size;
{
int fsize = round_frame_size (size);
- int idx;
+ int regno;
rtx insn = get_last_insn ();
int saved_regs;
int n_regs;
@@ -648,10 +646,8 @@ h8300_output_function_epilogue (file, size)
/* Pop the saved registers in descending order. */
saved_regs = compute_saved_regs ();
- for (idx = 0; idx < FIRST_PSEUDO_REGISTER; idx += n_regs)
+ for (regno = FIRST_PSEUDO_REGISTER - 1; regno >= 0; regno -= n_regs)
{
- int regno = (FIRST_PSEUDO_REGISTER - 1) - idx;
-
n_regs = 1;
if (saved_regs & (1 << regno))
{
OpenPOWER on IntegriCloud