diff options
author | Bob Wilson <bwilson@gcc.gnu.org> | 2005-11-01 18:07:13 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2005-11-01 18:07:13 +0000 |
commit | 85333688895cefaebe95c3023f803f8852e0c82b (patch) | |
tree | 7aa8b0d45844be3c80196bd4e1e7b6aac8ec9bd2 /gcc/config/xtensa | |
parent | f415efe34cae185cd18b422011518922098b0943 (diff) | |
download | gcc-85333688895cefaebe95c3023f803f8852e0c82b.tar.gz |
xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
* config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
(TRAMPOLINE_SIZE): Round up to 60.
* config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
From-SVN: r106336
Diffstat (limited to 'gcc/config/xtensa')
-rw-r--r-- | gcc/config/xtensa/lib2funcs.S | 2 | ||||
-rw-r--r-- | gcc/config/xtensa/xtensa.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/xtensa/lib2funcs.S b/gcc/config/xtensa/lib2funcs.S index 943b5953def..c8584565a21 100644 --- a/gcc/config/xtensa/lib2funcs.S +++ b/gcc/config/xtensa/lib2funcs.S @@ -151,7 +151,7 @@ __xtensa_nonlocal_goto: make sure that the modified instructions are loaded into the instruction fetch buffer. */ -#define TRAMPOLINE_SIZE 59 +#define TRAMPOLINE_SIZE 60 .text .align 4 diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h index 3329ec605d3..3fc8abdc3a4 100644 --- a/gcc/config/xtensa/xtensa.h +++ b/gcc/config/xtensa/xtensa.h @@ -831,11 +831,13 @@ typedef struct xtensa_args /* jump to the instruction following the entry */ \ fprintf (STREAM, "\taddi\ta8, a8, 3\n"); \ fprintf (STREAM, "\tjx\ta8\n"); \ + fprintf (STREAM, "\t.byte\t0\n"); \ fprintf (STREAM, "\t.end no-transform\n"); \ } while (0) -/* Size in bytes of the trampoline, as an integer. */ -#define TRAMPOLINE_SIZE 59 +/* Size in bytes of the trampoline, as an integer. Make sure this is + a multiple of TRAMPOLINE_ALIGNMENT to avoid -Wpadded warnings. */ +#define TRAMPOLINE_SIZE 60 /* Alignment required for trampolines, in bits. */ #define TRAMPOLINE_ALIGNMENT (32) |