diff options
author | John Carr <jfc@mit.edu> | 1998-08-11 13:36:42 +0000 |
---|---|---|
committer | John Carr <jfc@gcc.gnu.org> | 1998-08-11 13:36:42 +0000 |
commit | 53bfe9cda9f36ae846038f99af933743d8e0cf05 (patch) | |
tree | ebfabb3133324928e61d654cfaee187e971932fd /gcc | |
parent | cba96cb7e0eb5ee34c57f3f9c92530128fbaabf3 (diff) | |
download | gcc-53bfe9cda9f36ae846038f99af933743d8e0cf05.zip gcc-53bfe9cda9f36ae846038f99af933743d8e0cf05.tar.gz gcc-53bfe9cda9f36ae846038f99af933743d8e0cf05.tar.bz2 |
except.c (set_exception_lang_code, [...]): Use prototype-style definition if __STDC__, to match declaration in except.h.
* except.c (set_exception_lang_code, set_exception_version_code):
Use prototype-style definition if __STDC__, to match declaration
in except.h.
* genemit.c: Change FAIL and DONE macros not to use loops.
From-SVN: r21675
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/except.c | 8 | ||||
-rw-r--r-- | gcc/genemit.c | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b84563..69c50c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +Tue Aug 11 16:04:34 1998 John Carr <jfc@mit.edu> + + * except.c (set_exception_lang_code, set_exception_version_code): + Use prototype-style definition if __STDC__, to match declaration + in except.h. + + * genemit.c: Change FAIL and DONE macros not to use loops. + Tue Aug 11 12:27:03 1998 Jim Wilson <wilson@cygnus.com> * dwarf2out.c (ASM_OUTPUT_DWARF_ADDR_CONST): Use diff --git a/gcc/except.c b/gcc/except.c index 3ed0c91..3450e8c 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1930,15 +1930,23 @@ static short language_code = 0; static short version_code = 0; /* This routine will set the language code for exceptions. */ +#ifdef __STDC__ +void set_exception_lang_code (short code) +#else void set_exception_lang_code (code) short code; +#endif { language_code = code; } /* This routine will set the language version code for exceptions. */ +#ifdef __STDC__ +void set_exception_version_code (short code) +#else void set_exception_version_code (code) short code; +#endif { version_code = code; } diff --git a/gcc/genemit.c b/gcc/genemit.c index e4341b8..88789e7 100644 --- a/gcc/genemit.c +++ b/gcc/genemit.c @@ -782,8 +782,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 do {end_sequence (); return _val;} while (0)\n"); - printf ("#define DONE do {_val = gen_sequence (); end_sequence (); return _val;} while (0)\n"); + printf ("#define FAIL return (end_sequence (), _val)\n"); + printf ("#define DONE return (_val = gen_sequence (), end_sequence (), _val)\n"); /* Read the machine description. */ |