diff options
author | Jan Hubicka <jh@suse.cz> | 2000-12-13 17:26:45 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2000-12-13 16:26:45 +0000 |
commit | c6d79beefdcb198c33bc9bfe6390cfad142aac76 (patch) | |
tree | ab17aca54aa642788c3f20715514c17f11e837c1 /gcc | |
parent | ee84a135f5e6346ac81ac4c345081b451d45e59b (diff) | |
download | gcc-c6d79beefdcb198c33bc9bfe6390cfad142aac76.zip gcc-c6d79beefdcb198c33bc9bfe6390cfad142aac76.tar.gz gcc-c6d79beefdcb198c33bc9bfe6390cfad142aac76.tar.bz2 |
* genoutput.c (process_template): Add sanity checking for '@' templates.
From-SVN: r38220
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/genoutput.c | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db3256e..683cf71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 13 17:25:32 MET 2000 Jan Hubicka <jh@suse.cz> + + * genoutput.c (process_template): Add sanity checking for '@' templates. + 2000-12-13 Bernd Schmidt <bernds@redhat.co.uk> * simplify-rtx.c (cselib_finish): Free reg_values and used_regs diff --git a/gcc/genoutput.c b/gcc/genoutput.c index a5674c9..dc36d46 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -701,6 +701,15 @@ process_template (d, template) printf ("\",\n"); i++; } + if (i == 1) + message_with_line (d->lineno, + "'@' is redundant for output template with single alternative"); + if (i != d->n_alternatives) + { + message_with_line (d->lineno, + "Wrong number of alternatives in the output template"); + have_error = 1; + } printf ("};\n"); } |