backport: re PR target/53448 ([avr] ignoring __attribute__((aligned(2))))
Backport from 2012-05-23 mainline r187803 PR target/53448 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1. * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use ASM_OUTPUT_ALIGN. From-SVN: r187804
This commit is contained in:
parent
4fc14ef79b
commit
37bcae54f5
|
@ -1,3 +1,12 @@
|
|||
2012-05-23 Georg-Johann Lay <avr@gjlay.de>
|
||||
|
||||
Backport from 2012-05-23 mainline r187803
|
||||
|
||||
PR target/53448
|
||||
* config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
|
||||
* config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
|
||||
ASM_OUTPUT_ALIGN.
|
||||
|
||||
2012-05-23 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
|
||||
|
||||
Backport from 2012-05-03 mainline r187075
|
||||
|
|
|
@ -549,10 +549,10 @@ typedef struct avr_args {
|
|||
#define ASM_OUTPUT_ADDR_VEC_ELT(STREAM, VALUE) \
|
||||
avr_output_addr_vec_elt(STREAM, VALUE)
|
||||
|
||||
#define ASM_OUTPUT_ALIGN(STREAM, POWER) \
|
||||
do { \
|
||||
if ((POWER) > 1) \
|
||||
fprintf (STREAM, "\t.p2align\t%d\n", POWER); \
|
||||
#define ASM_OUTPUT_ALIGN(STREAM, POWER) \
|
||||
do { \
|
||||
if ((POWER) > 0) \
|
||||
fprintf (STREAM, "\t.p2align\t%d\n", POWER); \
|
||||
} while (0)
|
||||
|
||||
#define CASE_VECTOR_MODE HImode
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
/* Output alignment 2**1 for jump tables. */
|
||||
#undef ASM_OUTPUT_BEFORE_CASE_LABEL
|
||||
#define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE, PREFIX, NUM, TABLE) \
|
||||
fprintf (FILE, "\t.p2align\t1\n");
|
||||
ASM_OUTPUT_ALIGN (FILE, 1);
|
||||
|
||||
/* Be conservative in crtstuff.c. */
|
||||
#undef INIT_SECTION_ASM_OP
|
||||
|
|
Loading…
Reference in New Issue