genemit.c (DONE): Rework so that it works in the true arm if an if-else conditional.
authorJeffrey A Law <law@cygnus.com>
Sun, 29 Mar 1998 23:22:49 +0000 (23:22 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 29 Mar 1998 23:22:49 +0000 (16:22 -0700)
        * genemit.c (DONE): Rework so that it works in the true arm if
        an if-else conditional.
        (FAIL): Likewise.

From-SVN: r18906

gcc/ChangeLog
gcc/genemit.c

index 9522ee6e681d4082a15498295aeb40ba2c045d78..8e008031ead33889d1e8ff4bf383e100649df750 100644 (file)
@@ -1,3 +1,9 @@
+Mon Mar 30 00:21:03 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * genemit.c (DONE): Rework so that it works in the true arm if
+       an if-else conditional.
+       (FAIL): Likewise.
+
 Sun Mar 29 12:45:23 1998  Jeffrey A Law  (law@cygnus.com)
 
        * rs6000.c: Do not include stdioh or ctype.h anymore.
index cb2ec7e21d050442632412efbd908888de82c3af..4c61282be4b4cb6610aa626250878bfb42d0a594 100644 (file)
@@ -749,8 +749,8 @@ from the machine description file `md'.  */\n\n");
   printf ("extern char *insn_operand_constraint[][MAX_RECOG_OPERANDS];\n\n");
   printf ("extern rtx recog_operand[];\n");
   printf ("#define operands emit_operand\n\n");
-  printf ("#define FAIL {end_sequence (); return _val;}\n");
-  printf ("#define DONE {_val = gen_sequence (); end_sequence (); return _val;}\n");
+  printf ("#define FAIL do {end_sequence (); return _val;} while (0)\n");
+  printf ("#define DONE do {_val = gen_sequence (); end_sequence (); return _val;} while (0)\n");
 
   /* Read the machine description.  */