summaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-18 17:05:14 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-18 17:05:14 +0000
commit21f1e711ba84209ea411dc821cd70757318894ad (patch)
treef6d253960bbff5f5f18a47a866cab10b8ece1664 /gcc/read-rtl.c
parent15d981b13a4440a2b9312e08852979466175530d (diff)
downloadgcc-21f1e711ba84209ea411dc821cd70757318894ad.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 46ca61a188d..45ff077b078 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. */