OSDN Git Service

* h8300.c (WORD_REG_USED): Fix typo.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 1998 10:54:45 +0000 (10:54 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Oct 1998 10:54:45 +0000 (10:54 +0000)
        (initial_offset): Use WORD_REG_USED.
        * h8300.c (handle_pragma): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22755 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 2e92aa0..fcb480e 100644 (file)
@@ -1,3 +1,10 @@
+Fri Oct  2 11:52:35 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * h8300.c (WORD_REG_USED): Fix typo.
+       (initial_offset): Use WORD_REG_USED.
+
+       * h8300.c (handle_pragma): Fix typo.
+
 Fri Oct  2 10:51:35 1998  Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>
 
        * caller-save.c (insert_save_restore): Break this function up
index 92af431..603b3e0 100644 (file)
@@ -127,7 +127,7 @@ byte_reg (x, b)
    (interrupt_handler                                          \
     || pragma_saveall                                          \
     || (regno == FRAME_POINTER_REGNUM && regs_ever_live[regno])        \
-    || (regs_ever_live[regno] & !call_used_regs[regno])))
+    || (regs_ever_live[regno] && !call_used_regs[regno])))
 
 /* Output assembly language to FILE for the operation OP with operand size
    SIZE to adjust the stack pointer.  */
@@ -856,7 +856,7 @@ eq_operator (x, mode)
    with this attribute may be safely used in an interrupt vector.  */
 
 int
-handle_pragma (p_getc, p_ungetc, name)
+handle_pragma (p_getc, p_ungetc, pname)
      int (*  p_getc) PROTO ((void));
      void (* p_ungetc) PROTO ((int));
      char * pname;
@@ -1574,8 +1574,7 @@ initial_offset (from, to)
       int regno;
 
       for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
-       if ((regs_ever_live[regno]
-            && (!call_used_regs[regno] || regno == FRAME_POINTER_REGNUM)))
+       if (WORD_REG_USED (regno))
          offset += UNITS_PER_WORD;
 
       /* See the comments for get_frame_size.  We need to round it up to