Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit 6051a96

Browse files
aswatermanpalmer-dabbelt
authored andcommitted
Revert "For RV32I ABIs, stack alignment should only be 64 bits"
This reverts commit 18b6db6.
1 parent 8e983a3 commit 6051a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/config/riscv/riscv.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ along with GCC; see the file COPYING3. If not see
124124
#define FUNCTION_BOUNDARY (TARGET_RVC ? 16 : 32)
125125

126126
/* There is no point aligning anything to a rounder boundary than this. */
127-
#define BIGGEST_ALIGNMENT (TARGET_RVE ? BITS_PER_WORD : (2 * BITS_PER_WORD))
127+
#define BIGGEST_ALIGNMENT (TARGET_RVE ? 32 : 128)
128128

129129
/* The user-level ISA permits unaligned accesses, but they are not required
130130
of the privileged architecture. */
@@ -472,7 +472,7 @@ enum reg_class
472472
`crtl->outgoing_args_size'. */
473473
#define OUTGOING_REG_PARM_STACK_SPACE(FNTYPE) 1
474474

475-
#define STACK_BOUNDARY BIGGEST_ALIGNMENT
475+
#define STACK_BOUNDARY (TARGET_RVE ? 32 : 128)
476476

477477
/* Symbolic macros for the registers used to return integer and floating
478478
point values. */

0 commit comments

Comments
 (0)