Skip to content

Commit 023e91c

Browse files
clazissartemiy-volkov
authored andcommitted
Change stack boundary to 64
1 parent 2f2ae50 commit 023e91c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gcc/config/arc64/arc64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ typedef struct GTY (()) machine_function
115115
/* N.B. Vectors have alignment exceeding BIGGEST_ALIGNMENT.
116116
ARC_FUNCTION_ARG_BOUNDARY reduces this to no more than 32 bit. */
117117
#define ROUND_ADVANCE_CUM(CUM, MODE, TYPE) \
118-
((((CUM) - 1) | (32 - 1)/BITS_PER_WORD) \
119-
+ 1)
118+
((((CUM) - 1) | (PARM_BOUNDARY - 1)/BITS_PER_WORD) + 1)
120119

121120
/* ARC64 stack frame generated by this compiler looks like:
122121
@@ -233,7 +232,8 @@ arc64_compute_frame_info (void)
233232
frame->saved_outargs_size = crtl->outgoing_args_size;
234233

235234
/* 2. Size of locals and temporaries. */
236-
frame->saved_locals_size = ARC_STACK_ALIGN (get_frame_size ());
235+
frame->saved_locals_size = ROUND_UP (get_frame_size (),
236+
STACK_BOUNDARY / BITS_PER_UNIT);
237237

238238
/* 3. Size of the saved registers (including FP/BLINK).
239239
FIXME! FPR registers. */

gcc/config/arc64/arc64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
/* Boundaries. */
5151
#define PARM_BOUNDARY 64
52-
#define STACK_BOUNDARY 128
52+
#define STACK_BOUNDARY 64
5353
#define FUNCTION_BOUNDARY 32
5454
#define EMPTY_FIELD_BOUNDARY 32
5555
#define STRUCTURE_SIZE_BOUNDARY 8

0 commit comments

Comments
 (0)