Skip to content

Commit 22bed18

Browse files
clazissartemiy-volkov
authored andcommitted
Fix trampoline.
1 parent 2366d4e commit 22bed18

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

gcc/config/arc64/arc64.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,13 @@ arc64_limm_addr_p (rtx op)
17611761
#undef TARGET_ASM_FUNCTION_PROLOGUE
17621762
#define TARGET_ASM_FUNCTION_PROLOGUE arc64_output_function_prologue
17631763

1764+
#undef TARGET_CONSTANT_ALIGNMENT
1765+
#define TARGET_CONSTANT_ALIGNMENT constant_alignment_word_strings
1766+
1767+
#undef TARGET_PROMOTE_FUNCTION_MODE
1768+
#define TARGET_PROMOTE_FUNCTION_MODE \
1769+
default_promote_function_mode_always_promote
1770+
17641771
struct gcc_target targetm = TARGET_INITIALIZER;
17651772

17661773
#include "gt-arc64.h"

gcc/config/arc64/arc64.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
uses alloca. */
189189
#define EXIT_IGNORE_STACK (cfun->calls_alloca)
190190

191-
#define STATIC_CHAIN_REGNUM R14_REGNUM
191+
#define STATIC_CHAIN_REGNUM R11_REGNUM
192192
#define HARD_FRAME_POINTER_REGNUM R27_REGNUM
193193
#define FRAME_POINTER_REGNUM SFP_REGNUM
194194
#define STACK_POINTER_REGNUM SP_REGNUM
@@ -268,6 +268,8 @@ enum reg_class
268268
/* Stack layout; function entry, exit and calling. */
269269
#define STACK_GROWS_DOWNWARD 1
270270

271+
/* Addresses of local variables slots are at negative offsets from the
272+
frame pointer. */
271273
#define FRAME_GROWS_DOWNWARD 1
272274

273275
/* If defined, the maximum amount of space required for outgoing

0 commit comments

Comments
 (0)