(ASM_OUTPUT_BEFORE_CASE_LABEL): Do the swbeg here.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jul 1992 21:49:27 +0000 (21:49 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Jul 1992 21:49:27 +0000 (21:49 +0000)
(ASM_OUTPUT_CASE_LABEL): Use that.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@1658 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/m68k/sgs.h

index 9dda6a3..df1dfd5 100644 (file)
@@ -385,9 +385,14 @@ do { union { float f; long l;} tem;                        \
    size to be inserted into the object code so that disassemblers, for
    example, can identify that it is the start of a switch table. */
 
+#define ASM_OUTPUT_BEFORE_CASE_LABEL(FILE,PREFIX,NUM,TABLE)            \
+  fprintf ((FILE), "\t%s &%d\n", SWBEG_ASM_OP, XVECLEN (PATTERN (TABLE), 1));
+
 #define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLE)                   \
-    fprintf ((FILE), "\t%s &%d\n", SWBEG_ASM_OP, XVECLEN (PATTERN (TABLE), 1)); \
-    ASM_OUTPUT_INTERNAL_LABEL((FILE),(PREFIX),(NUM));
+  do {                                                                 \
+    ASM_OUTPUT_BEFORE_CASE_LABEL((FILE),(PREFIX),(NUM),(TABLE));       \
+    ASM_OUTPUT_INTERNAL_LABEL((FILE),(PREFIX),(NUM));                  \
+  } while (0)
 
 /* At end of a switch table, define LDnnn iff the symbol LInnn was defined.
    Some SGS assemblers have a bug such that "Lnnn-LInnn-2.b(pc,d0.l*2)"