Commit 294dac80 by Jim Wilson Committed by Jim Wilson

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
parent 5e2ee78d
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> 2000-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth): * cppinit.c (no_arg, no_ass, no_dir, no_fil, no_mac, no_pth):
......
...@@ -521,6 +521,10 @@ ia64_compute_frame_size (size) ...@@ -521,6 +521,10 @@ ia64_compute_frame_size (size)
int regno; int regno;
HARD_REG_SET mask; 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); CLEAR_HARD_REG_SET (mask);
/* Calculate space needed for general registers. */ /* Calculate space needed for general registers. */
......
...@@ -1907,10 +1907,10 @@ do { \ ...@@ -1907,10 +1907,10 @@ do { \
#define REGISTER_MOVE_COST(FROM, TO) \ #define REGISTER_MOVE_COST(FROM, TO) \
((FROM) == BR_REGS && (TO) == BR_REGS ? 8 \ ((FROM) == BR_REGS && (TO) == BR_REGS ? 8 \
: ((FROM) == BR_REGS && (TO) != GENERAL_REGS \ : (((FROM) == BR_REGS && (TO) != GENERAL_REGS) \
|| (TO) == BR_REGS && (FROM) != GENERAL_REGS) ? 6 \ || ((TO) == BR_REGS && (FROM) != GENERAL_REGS)) ? 6 \
: ((FROM) == FR_FP_REGS && (TO) == FR_INT_REGS \ : (((FROM) == FR_FP_REGS && (TO) == FR_INT_REGS) \
|| (FROM) == FR_INT_REGS && (TO) == FR_FP_REGS) ? 4 \ || ((FROM) == FR_INT_REGS && (TO) == FR_FP_REGS)) ? 4 \
: 2) : 2)
/* A C expression for the cost of moving data of mode M between a register and /* A C expression for the cost of moving data of mode M between a register and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment