From 5178d50ab6735728e906ad8bbb3a2f5474a25af9 Mon Sep 17 00:00:00 2001 From: Anatoly Sokolov Date: Wed, 25 Apr 2007 10:18:33 +0400 Subject: [PATCH] re PR target/18989 (A few potentially ominous, and several likely harmless warnings during 4.0 build) PR target/18989 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine. From-SVN: r124141 --- gcc/ChangeLog | 5 +++++ gcc/config/avr/avr.h | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf05f74fb72..8da90b3de30 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-04-25 Anatoly Sokolov + + PR target/18989 + * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine. + 2007-04-24 Brooks Moses * real.c (mpfr_from_real): Handle Inf and NaN, and allow the diff --git a/gcc/config/avr/avr.h b/gcc/config/avr/avr.h index 640adadac46..669e261fa3c 100644 --- a/gcc/config/avr/avr.h +++ b/gcc/config/avr/avr.h @@ -660,7 +660,11 @@ sprintf (STRING, "*.%s%lu", PREFIX, (unsigned long)(NUM)) #define ASM_OUTPUT_SKIP(STREAM, N) \ fprintf (STREAM, "\t.skip %lu,0\n", (unsigned long)(N)) -#define ASM_OUTPUT_ALIGN(STREAM, POWER) +#define ASM_OUTPUT_ALIGN(STREAM, POWER) \ + do { \ + if ((POWER) > 1) \ + fprintf (STREAM, "\t.p2align\t%d\n", POWER); \ + } while (0) #define CASE_VECTOR_MODE HImode