aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>2000-03-12 08:00:08 +0000
committerJim Wilson <wilson@gcc.gnu.org>2000-03-12 00:00:08 -0800
commit294dac808144f0fa0746cf1ac1e0c2ba7818797a (patch)
tree59bba5f7cd120a82fcc2f4b4bc8e586089b61337 /gcc
parent5e2ee78da91c2fa3dddd8775523126b3dc575ee0 (diff)
downloadgcc-294dac808144f0fa0746cf1ac1e0c2ba7818797a.zip
gcc-294dac808144f0fa0746cf1ac1e0c2ba7818797a.tar.gz
gcc-294dac808144f0fa0746cf1ac1e0c2ba7818797a.tar.bz2
Fix bug found by make bootstrap failure. Eliminate some warnings.
* config/ia64/ia64.c (ia64_compute_frame_size): Align size to STACK_BOUNDARY. * config/ia64/ia64.h (REGISTER_MOVE_COST): Add missing parentheses. From-SVN: r32487
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/ia64/ia64.c4
-rw-r--r--gcc/config/ia64/ia64.h8
3 files changed, 14 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 153770a..5fa7759 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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):
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index 9dee885..e12fd38 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -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. */
diff --git a/gcc/config/ia64/ia64.h b/gcc/config/ia64/ia64.h
index 2a18d6e..a5951a5 100644
--- a/gcc/config/ia64/ia64.h
+++ b/gcc/config/ia64/ia64.h
@@ -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