diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2015-10-13 17:31:06 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2015-10-13 17:31:06 +0200 |
commit | 63b8ef40c432b8045bc6d7665ff17baf50c2fcb8 (patch) | |
tree | 7388cdbc965e45fd2aec2d93466f6dab63a9c68c /gcc/config/sparc/sparc.h | |
parent | fdce493deb6604758d71ea759676ff5f3b4dafd7 (diff) | |
download | gcc-63b8ef40c432b8045bc6d7665ff17baf50c2fcb8.zip gcc-63b8ef40c432b8045bc6d7665ff17baf50c2fcb8.tar.gz gcc-63b8ef40c432b8045bc6d7665ff17baf50c2fcb8.tar.bz2 |
sparc.h (SPARC_STACK_ALIGN): Implement using ROUND_UP macro and UNITS_PER_WORD * 2.
* config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
ROUND_UP macro and UNITS_PER_WORD * 2.
* config/sparc/sparc.c (sparc_compute_frame_size):
Use ROUND_UP and ROUND_DOWN macros where applicable.
(function_arg_record_value, function_arg_record_value_1)
(function_arg_record_value_1): Ditto.
(emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
alignment to double-word.
(sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
(sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
rounded_size.
From-SVN: r228768
Diffstat (limited to 'gcc/config/sparc/sparc.h')
-rw-r--r-- | gcc/config/sparc/sparc.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h index 2cbe0d9..d2782a4 100644 --- a/gcc/config/sparc/sparc.h +++ b/gcc/config/sparc/sparc.h @@ -510,8 +510,7 @@ extern enum cmodel sparc_cmodel; #define SPARC_STACK_BOUNDARY_HACK (TARGET_ARCH64 && TARGET_STACK_BIAS) /* ALIGN FRAMES on double word boundaries */ -#define SPARC_STACK_ALIGN(LOC) \ - (TARGET_ARCH64 ? (((LOC)+15) & ~15) : (((LOC)+7) & ~7)) +#define SPARC_STACK_ALIGN(LOC) ROUND_UP ((LOC), UNITS_PER_WORD * 2) /* Allocation boundary (in *bits*) for the code of a function. */ #define FUNCTION_BOUNDARY 32 |