Fix for aliasing problem reported by Michael Matz.

* config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
	GR_ARG_FIRST.

From-SVN: r74120
This commit is contained in:
James E Wilson 2003-12-01 19:04:53 +00:00 committed by Jim Wilson
parent d78e147a14
commit 93868a8e5a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-12-01 James E Wilson <wilson@specifixinc.com>
* config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
GR_ARG_FIRST.
2003-12-01 Zack Weinberg <zack@codesourcery.com>
* common.opt: Remove -fgnu-linker.

View File

@ -1383,7 +1383,7 @@ do { \
On many machines, no registers can be used for this purpose since all
function arguments are pushed on the stack. */
#define FUNCTION_ARG_REGNO_P(REGNO) \
(((REGNO) >= GR_ARG_FIRST && (REGNO) < (GR_ARG_FIRST + MAX_ARGUMENT_SLOTS)) \
(((REGNO) >= AR_ARG_FIRST && (REGNO) < (AR_ARG_FIRST + MAX_ARGUMENT_SLOTS)) \
|| ((REGNO) >= FR_ARG_FIRST && (REGNO) < (FR_ARG_FIRST + MAX_ARGUMENT_SLOTS)))
/* Implement `va_arg'. */