diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-20 15:31:07 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-20 15:31:07 +0000 |
commit | 9deca14330e6dc2b5e48ad7e10366f151351409e (patch) | |
tree | f2a036aa6c5ddc9cea8214484bc779aa6de095b1 /gcc/config/alpha | |
parent | 66205a6d2be62fc683ddc2499e9481328efae4d4 (diff) | |
download | gcc-9deca14330e6dc2b5e48ad7e10366f151351409e.tar.gz |
* config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
(ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
* config/alpha/alpha.c (alpha_function_arg_advance): Update
ALPHA_ARG_SIZE usage.
(alpha_arg_partial_bytes): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229084 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r-- | gcc/config/alpha/alpha.c | 6 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.h | 14 |
2 files changed, 11 insertions, 9 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index c8cd651e806..d22bf67e52b 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -5613,7 +5613,7 @@ alpha_function_arg_advance (cumulative_args_t cum_v, machine_mode mode, { CUMULATIVE_ARGS *cum = get_cumulative_args (cum_v); bool onstack = targetm.calls.must_pass_in_stack (mode, type); - int increment = onstack ? 6 : ALPHA_ARG_SIZE (mode, type, named); + int increment = onstack ? 6 : ALPHA_ARG_SIZE (mode, type); #if TARGET_ABI_OSF *cum += increment; @@ -5635,10 +5635,10 @@ alpha_arg_partial_bytes (cumulative_args_t cum_v, #if TARGET_ABI_OPEN_VMS if (cum->num_args < 6 - && 6 < cum->num_args + ALPHA_ARG_SIZE (mode, type, named)) + && 6 < cum->num_args + ALPHA_ARG_SIZE (mode, type)) words = 6 - cum->num_args; #elif TARGET_ABI_OSF - if (*cum < 6 && 6 < *cum + ALPHA_ARG_SIZE (mode, type, named)) + if (*cum < 6 && 6 < *cum + ALPHA_ARG_SIZE (mode, type)) words = 6 - *cum; #else #error Unhandled ABI diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index 668b2620dc3..97f5680a8c2 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -383,7 +383,7 @@ extern enum alpha_fp_trap_mode alpha_fptm; but can be less for certain modes in special long registers. */ #define HARD_REGNO_NREGS(REGNO, MODE) \ - ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD) + CEIL (GET_MODE_SIZE (MODE), UNITS_PER_WORD) /* Value is 1 if hard register REGNO can hold a value of machine-mode MODE. On Alpha, the integer registers can hold any mode. The floating-point @@ -674,13 +674,15 @@ extern int alpha_memory_latency; #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT, N_NAMED_ARGS) \ (CUM) = 0 -/* Define intermediate macro to compute the size (in registers) of an argument - for the Alpha. */ +/* Define intermediate macro to compute + the size (in registers) of an argument. */ -#define ALPHA_ARG_SIZE(MODE, TYPE, NAMED) \ +#define ALPHA_ARG_SIZE(MODE, TYPE) \ ((MODE) == TFmode || (MODE) == TCmode ? 1 \ - : (((MODE) == BLKmode ? int_size_in_bytes (TYPE) : GET_MODE_SIZE (MODE)) \ - + (UNITS_PER_WORD - 1)) / UNITS_PER_WORD) + : CEIL (((MODE) == BLKmode \ + ? int_size_in_bytes (TYPE) \ + : GET_MODE_SIZE (MODE)), \ + UNITS_PER_WORD)) /* Make (or fake) .linkage entry for function call. IS_LOCAL is 0 if name is used in call, 1 if name is used in definition. */ |