From 21f1e711ba84209ea411dc821cd70757318894ad Mon Sep 17 00:00:00 2001 From: zack Date: Wed, 18 Aug 2004 17:05:14 +0000 Subject: * 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 --- gcc/read-rtl.c | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) (limited to 'gcc/read-rtl.c') 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. */ -- cgit v1.2.1