2012/5/23 Georg-Johann Lay <a...@gjlay.de>:
> Sometimes, even on AVR there is the need to align data.
>
> However, alignments of 2 are ignored at the moment because of
>
> #define ASM_OUTPUT_ALIGN(STREAM, POWER)                 \
>  do {                                                  \
>    if ((POWER) > 1)                                    \
>      fprintf (STREAM, "\t.p2align\t%d\n", POWER);      \
>  } while (0)
>
> The fix is to use POWER > 0 instead.
>
> Maybe someone knows why the restriction to POWER >= 2 is
> there at all?
>
> Ok to install?
>
> Johann
>
>        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.

Approved.

Denis.

Reply via email to