* genoutput.c (process_template): Add sanity checking for '@' templates.

From-SVN: r38220
This commit is contained in:
Jan Hubicka 2000-12-13 17:26:45 +01:00 committed by Jan Hubicka
parent ee84a135f5
commit c6d79beefd
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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");
}