aboutsummaryrefslogtreecommitdiff
path: root/gcc/genemit.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-03-29 23:22:49 +0000
committerJeff Law <law@gcc.gnu.org>1998-03-29 16:22:49 -0700
commitc0d45032293ac50b0cf63cad2cc0669010f1dbeb (patch)
tree10902bcf2133edb9634df98721cd8387494132ec /gcc/genemit.c
parentc3670418772058641e13f149e954d50f0225f0d4 (diff)
downloadgcc-c0d45032293ac50b0cf63cad2cc0669010f1dbeb.zip
gcc-c0d45032293ac50b0cf63cad2cc0669010f1dbeb.tar.gz
gcc-c0d45032293ac50b0cf63cad2cc0669010f1dbeb.tar.bz2
genemit.c (DONE): Rework so that it works in the true arm if an if-else conditional.
* genemit.c (DONE): Rework so that it works in the true arm if an if-else conditional. (FAIL): Likewise. From-SVN: r18906
Diffstat (limited to 'gcc/genemit.c')
-rw-r--r--gcc/genemit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genemit.c b/gcc/genemit.c
index cb2ec7e..4c61282 100644
--- a/gcc/genemit.c
+++ b/gcc/genemit.c
@@ -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. */