Commit 046b71ed by Kaveh R. Ghazi Committed by Kaveh Ghazi

3b1.h (ASM_OUTPUT_ALIGN): Wrap in do-while(0).

	* 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
parent e9221070
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> 2001-12-08 Tom Rix <trix@redhat.com>
* config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING. * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete MASK_STRING.
......
...@@ -151,10 +151,12 @@ do { long l; \ ...@@ -151,10 +151,12 @@ do { long l; \
} while (0) } while (0)
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
do { \
if ((LOG) == 1) \ if ((LOG) == 1) \
fprintf (FILE, "\teven\n"); \ fprintf (FILE, "\teven\n"); \
else if ((LOG) != 0) \ else if ((LOG) != 0) \
abort (); abort (); \
} while (0)
/* This is how to output an assembler line /* This is how to output an assembler line
that says to advance the location counter by SIZE bytes. */ that says to advance the location counter by SIZE bytes. */
......
...@@ -136,10 +136,12 @@ do { \ ...@@ -136,10 +136,12 @@ do { \
#undef ASM_GENERATE_INTERNAL_LABEL #undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
do { \
if (flag_pic && !strcmp(PREFIX,"LC")) \ if (flag_pic && !strcmp(PREFIX,"LC")) \
sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM)); \ sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM)); \
else \ 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 #undef ASM_OUTPUT_INTERNAL_LABEL
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
......
...@@ -93,10 +93,12 @@ int switch_table_difference_label_flag; ...@@ -93,10 +93,12 @@ int switch_table_difference_label_flag;
#undef ASM_GENERATE_INTERNAL_LABEL #undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \ #define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
do { \
if (flag_pic && !strcmp(PREFIX,"LC")) \ if (flag_pic && !strcmp(PREFIX,"LC")) \
sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM)); \ sprintf (LABEL, "*%s%%%ld", PREFIX, (long)(NUM)); \
else \ 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 #undef ASM_OUTPUT_INTERNAL_LABEL
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \ #define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
......
...@@ -317,10 +317,12 @@ do { long l[3]; \ ...@@ -317,10 +317,12 @@ do { long l[3]; \
fprintf (FILE, "\tshort L%d-L%d\n", VALUE, REL) fprintf (FILE, "\tshort L%d-L%d\n", VALUE, REL)
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
do { \
if ((LOG) == 1) \ if ((LOG) == 1) \
fprintf (FILE, "\tlalign 2\n"); \ fprintf (FILE, "\tlalign 2\n"); \
else if ((LOG) != 0) \ else if ((LOG) != 0) \
abort (); abort (); \
} while (0)
#define ASM_OUTPUT_SKIP(FILE,SIZE) \ #define ASM_OUTPUT_SKIP(FILE,SIZE) \
fprintf (FILE, "\tspace %u\n", (SIZE)) fprintf (FILE, "\tspace %u\n", (SIZE))
......
...@@ -98,10 +98,12 @@ Boston, MA 02111-1307, USA. */ ...@@ -98,10 +98,12 @@ Boston, MA 02111-1307, USA. */
#undef ASM_OUTPUT_ALIGN #undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
do { \
if ((LOG) > 0) \ if ((LOG) > 0) \
fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG)); \ fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG)); \
else if ((LOG) > 31) \ else if ((LOG) > 31) \
abort (); abort (); \
} while (0)
/* Use proper assembler syntax for these macros. */ /* Use proper assembler syntax for these macros. */
#undef ASM_OUTPUT_REG_PUSH #undef ASM_OUTPUT_REG_PUSH
......
...@@ -143,10 +143,12 @@ do { long l; \ ...@@ -143,10 +143,12 @@ do { long l; \
#undef ASM_OUTPUT_ALIGN #undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
do { \
if ((LOG) > 0) \ if ((LOG) > 0) \
fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG)); \ fprintf ((FILE), "%s%u\n", ALIGN_ASM_OP, 1 << (LOG)); \
else if ((LOG) > 31) \ else if ((LOG) > 31) \
abort (); abort (); \
} while (0)
/* The routine used to output null terminated string literals. We cannot /* The routine used to output null terminated string literals. We cannot
use the ".string" pseudo op, because it silently truncates strings to use the ".string" pseudo op, because it silently truncates strings to
......
...@@ -314,10 +314,12 @@ do { long l; \ ...@@ -314,10 +314,12 @@ do { long l; \
#undef ASM_OUTPUT_ALIGN #undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \ #define ASM_OUTPUT_ALIGN(FILE,LOG) \
do { \
if ((LOG) == 1) \ if ((LOG) == 1) \
fprintf (FILE, "\teven\n"); \ fprintf (FILE, "\teven\n"); \
else if ((LOG) != 0) \ else if ((LOG) != 0) \
abort (); abort (); \
} while (0)
#undef ASM_OUTPUT_SKIP #undef ASM_OUTPUT_SKIP
#define ASM_OUTPUT_SKIP(FILE,SIZE) \ #define ASM_OUTPUT_SKIP(FILE,SIZE) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment