re PR target/18989 (A few potentially ominous, and several likely harmless warnings...
authorAnatoly Sokolov <aesok@post.ru>
Wed, 25 Apr 2007 06:18:33 +0000 (10:18 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Wed, 25 Apr 2007 06:18:33 +0000 (10:18 +0400)
PR target/18989
  * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.

From-SVN: r124141

gcc/ChangeLog
gcc/config/avr/avr.h

index cf05f74fb7267fd159058568962c7fd3c4c74a45..8da90b3de308af98ddda12efabada8a9b5e0f43a 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-25  Anatoly Sokolov <aesok@post.ru>
+
+       PR target/18989
+       * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
+
 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
 
        * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
index 640adadac46076c3bd4a91a029ce56e6f3908160..669e261fa3c2230c11b66244991b9e7a3f716c5c 100644 (file)
@@ -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