3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 9 Dec 2001 15:50:13 +0000 (15:50 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 9 Dec 2001 15:50:13 +0000 (15:50 +0000)
* m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
* m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
* m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
* m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
* m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
* m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.

From-SVN: r47810

gcc/ChangeLog
gcc/config/m68k/3b1.h
gcc/config/m68k/amix.h
gcc/config/m68k/atari.h
gcc/config/m68k/hp320.h
gcc/config/m68k/m68kelf.h
gcc/config/m68k/sgs.h
gcc/config/m68k/tower-as.h

index 490a579..558ca3c 100644 (file)
@@ -1,3 +1,13 @@
+2001-12-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * m68k/3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).
+       * m68k/amix.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * m68k/atari.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
+       * m68k/hp320.h (ASM_OUTPUT_ALIGN): Likewise.
+       * m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Likewise.
+       * m68k/sgs.h (ASM_OUTPUT_ALIGN): Likewise.
+       * m68k/tower-as.h (ASM_OUTPUT_ALIGN): Likewise.
+
 2001-12-08  Tom Rix  <trix@redhat.com>
 
        * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
index 3431141..936a173 100644 (file)
@@ -151,10 +151,12 @@ do { long l;                                      \
    } while (0)
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
+do {                                   \
   if ((LOG) == 1)                      \
     fprintf (FILE, "\teven\n");        \
   else if ((LOG) != 0)                 \
-    abort ();
+    abort ();                          \
+} while (0)
 
 /* This is how to output an assembler line
    that says to advance the location counter by SIZE bytes.  */
index 1fbdcc3..0d440de 100644 (file)
@@ -136,10 +136,12 @@ do {                                                              \
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
+do {                                                   \
   if (flag_pic && !strcmp(PREFIX,"LC"))                        \
-    sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM));          \
+    sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM));  \
   else                                                 \
-    sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM))
+    sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM)); \
+} while (0)
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
index 8e1ddff..75511ec 100644 (file)
@@ -93,10 +93,12 @@ int switch_table_difference_label_flag;
 
 #undef ASM_GENERATE_INTERNAL_LABEL
 #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM)  \
+do {                                                   \
   if (flag_pic && !strcmp(PREFIX,"LC"))                        \
     sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM));  \
   else                                                 \
-    sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM))
+    sprintf (LABEL, "*%s%s%ld", LOCAL_LABEL_PREFIX, PREFIX, (long)(NUM)); \
+} while (0)
 
 #undef ASM_OUTPUT_INTERNAL_LABEL
 #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)     \
index 03617b4..17d9d6a 100644 (file)
@@ -317,10 +317,12 @@ do { long l[3];                                                           \
   fprintf (FILE, "\tshort L%d-L%d\n", VALUE, REL)
 
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
+do {                                   \
   if ((LOG) == 1)                      \
     fprintf (FILE, "\tlalign 2\n");    \
   else if ((LOG) != 0)                 \
-    abort ();
+    abort ();                          \
+} while (0)
 
 #define ASM_OUTPUT_SKIP(FILE,SIZE)  \
   fprintf (FILE, "\tspace %u\n", (SIZE))
index 060b13b..ae47c19 100644 (file)
@@ -98,10 +98,12 @@ Boston, MA 02111-1307, USA.  */
 
 #undef ASM_OUTPUT_ALIGN
 #define ASM_OUTPUT_ALIGN(FILE,LOG)                             \
+do {                                                           \
   if ((LOG) > 0)                                               \
     fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG));      \
   else if ((LOG) > 31)                                         \
-    abort ();
+    abort ();                                                  \
+} while (0)
 
 /* Use proper assembler syntax for these macros.  */
 #undef ASM_OUTPUT_REG_PUSH
index 0c5eb59..6f30ee1 100644 (file)
@@ -143,10 +143,12 @@ do { long l;                                              \
 
 #undef ASM_OUTPUT_ALIGN
 #define ASM_OUTPUT_ALIGN(FILE,LOG)                             \
+do {                                                           \
   if ((LOG) > 0)                                               \
     fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG));      \
   else if ((LOG) > 31)                                         \
-    abort ();
+    abort ();                                                  \
+} while (0)
 
 /* The routine used to output null terminated string literals.  We cannot
    use the ".string" pseudo op, because it silently truncates strings to
index 6dd60dc..5b491af 100644 (file)
@@ -314,10 +314,12 @@ do { long l;                                      \
 
 #undef ASM_OUTPUT_ALIGN
 #define ASM_OUTPUT_ALIGN(FILE,LOG)     \
+do {                                   \
   if ((LOG) == 1)                      \
     fprintf (FILE, "\teven\n");                \
   else if ((LOG) != 0)                 \
-    abort ();
+    abort ();                          \
+} while (0)
 
 #undef ASM_OUTPUT_SKIP
 #define ASM_OUTPUT_SKIP(FILE,SIZE)  \