OSDN Git Service

Fix bug found by make bootstrap failure. Eliminate some warnings.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Mar 2000 08:00:08 +0000 (08:00 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Mar 2000 08:00:08 +0000 (08:00 +0000)
* config/ia64/ia64.c (ia64_compute_frame_size): Align size to
STACK_BOUNDARY.
* config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.

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

gcc/ChangeLog
gcc/config/ia64/ia64.c
gcc/config/ia64/ia64.h

index 153770a..5fa7759 100644 (file)
@@ -1,3 +1,9 @@
+Sat Mar 11 23:54:26 2000  Jim Wilson  <wilson@cygnus.com>
+
+       * config/ia64/ia64.c (ia64_compute_frame_size): Align size to
+       STACK_BOUNDARY.
+       * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses.
+
 2000-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
index 9dee885..e12fd38 100644 (file)
@@ -521,6 +521,10 @@ ia64_compute_frame_size (size)
   int regno;
   HARD_REG_SET mask;
 
+  /* Reload used to round the frame size to STACK_BOUNDARY.  Now we do it
+     here.  */
+  size = IA64_STACK_ALIGN (size);
+
   CLEAR_HARD_REG_SET (mask);
 
   /* Calculate space needed for general registers.  */
index 2a18d6e..a5951a5 100644 (file)
@@ -1907,10 +1907,10 @@ do {                                                                    \
 
 #define REGISTER_MOVE_COST(FROM, TO) \
 ((FROM) == BR_REGS && (TO) == BR_REGS ? 8                              \
- : ((FROM) == BR_REGS && (TO) != GENERAL_REGS                          \
-    || (TO) == BR_REGS && (FROM) != GENERAL_REGS) ? 6                  \
- : ((FROM) == FR_FP_REGS && (TO) == FR_INT_REGS                                \
-    || (FROM) == FR_INT_REGS && (TO) == FR_FP_REGS) ? 4                        \
+ : (((FROM) == BR_REGS && (TO) != GENERAL_REGS)                                \
+    || ((TO) == BR_REGS && (FROM) != GENERAL_REGS)) ? 6                        \
+ : (((FROM) == FR_FP_REGS && (TO) == FR_INT_REGS)                      \
+    || ((FROM) == FR_INT_REGS && (TO) == FR_FP_REGS)) ? 4              \
  : 2)
 
 /* A C expression for the cost of moving data of mode M between a register and