diff options
author | Zack Weinberg <zack@codesourcery.com> | 2004-08-18 17:05:14 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-08-18 17:05:14 +0000 |
commit | f822d2527eda821d7faeab8370a896d4591a100d (patch) | |
tree | f6d253960bbff5f5f18a47a866cab10b8ece1664 /gcc/read-rtl.c | |
parent | 6aaf3ddef9a6fccf796ff13c7a03952c5d350158 (diff) | |
download | gcc-f822d2527eda821d7faeab8370a896d4591a100d.zip gcc-f822d2527eda821d7faeab8370a896d4591a100d.tar.gz gcc-f822d2527eda821d7faeab8370a896d4591a100d.tar.bz2 |
rtl.def (NIL): Delete.
* rtl.def (NIL): Delete.
* read-rtl.c (read_rtx): Handle (nil) like (define_constants).
Tighten the syntax a little.
* cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
* config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
* config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
* config/i386/predicates.md, config/m32r/m32r.h
* config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
* config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
* config/sparc/sparc.h, doc/tm.texi:
Replace all occurrences of NIL with UNKNOWN.
From-SVN: r86193
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r-- | gcc/read-rtl.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index 46ca61a..45ff077 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -545,12 +545,6 @@ again: read_name (tmp_char, infile); tmp_code = UNKNOWN; - - if (! strcmp (tmp_char, "define_constants")) - { - read_constants (infile, tmp_char); - goto again; - } for (i = 0; i < NUM_RTX_CODE; i++) if (! strcmp (tmp_char, GET_RTX_NAME (i))) { @@ -559,16 +553,24 @@ again: } if (tmp_code == UNKNOWN) - fatal_with_file_and_line (infile, "unknown rtx code `%s'", tmp_char); - - /* (NIL) stands for an expression that isn't there. */ - if (tmp_code == NIL) { - /* Discard the closeparen. */ - while ((c = getc (infile)) && c != ')') - ; - - return 0; + /* (nil) stands for an expression that isn't there. */ + if (! strcmp (tmp_char, "nil")) + { + /* Discard the closeparen. */ + c = read_skip_spaces (infile); + if (c != ')') + fatal_expected_char (infile, ')', c); + return 0; + } + /* (define_constants ...) has special syntax. */ + else if (! strcmp (tmp_char, "define_constants")) + { + read_constants (infile, tmp_char); + goto again; + } + else + fatal_with_file_and_line (infile, "unknown rtx code `%s'", tmp_char); } /* If we end up with an insn expression then we free this space below. */ |