OSDN Git Service

(ASM_OUTPUT_ASCII): Enclose macro in "do { .. } while (0)".
authorjrv <jrv@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Sep 1993 05:00:25 +0000 (05:00 +0000)
committerjrv <jrv@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Sep 1993 05:00:25 +0000 (05:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5443 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/i386/att.h
gcc/config/i386/sun386.h

index dce43a9..a5a45e3 100644 (file)
@@ -37,13 +37,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* How to output an ASCII string constant.  */
 
 #define ASM_OUTPUT_ASCII(FILE, p, size) \
+do                                                             \
 { int i = 0;                                                   \
   while (i < (size))                                           \
     { if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n");       \
                       fprintf ((FILE), "%s ", ASM_BYTE_OP); }  \
-      else fprintf ((FILE), ",");                                      \
+      else fprintf ((FILE), ",");                              \
        fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;}          \
-      fprintf ((FILE), "\n"); }
+      fprintf ((FILE), "\n");                                  \
+} while (0)
 
 /* Do use .optim by default on this machine.  */
 #undef ASM_FILE_START_1
index abd430b..9809723 100644 (file)
@@ -40,13 +40,15 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* How to output an ASCII string constant.  */
 
 #define ASM_OUTPUT_ASCII(FILE, p, size) \
+do                                                             \
 { int i = 0;                                                   \
   while (i < (size))                                           \
-    { if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n");               \
+    { if (i%10 == 0) { if (i!=0) fprintf ((FILE), "\n");       \
                       fprintf ((FILE), "%s ", ASM_BYTE_OP); }  \
-      else fprintf ((FILE), ",");                                      \
+      else fprintf ((FILE), ",");                              \
       fprintf ((FILE), "0x%x", ((p)[i++] & 0377)) ;}           \
-      fprintf ((FILE), "\n"); }
+      fprintf ((FILE), "\n");                                  \
+} while (0)
 
 /* Output at beginning of assembler file.  */
 /* The .file command should always begin the output.  */