* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.

From-SVN: r35368
This commit is contained in:
Jan Hubicka 2000-07-31 08:37:30 +00:00 committed by Jan Hubicka
parent fbddce27a7
commit 22251f806b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Mon Jul 31 10:36:38 MET DST 2000 Jan Hubicka <jh@suse.cz>
* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
2000-07-31 Geoff Keating <geoffk@cygnus.com>
* c-parse.in (extdefs): Call ggc_collect between external

View File

@ -409,8 +409,11 @@ validate_replace_rtx_1 (loc, from, to, object)
register int i, j;
register const char *fmt;
register rtx x = *loc;
enum rtx_code code = GET_CODE (x);
enum rtx_code code;
if (!x)
return;
code = GET_CODE (x);
/* X matches FROM if it is the same rtx or they are both referring to the
same register in the same mode. Avoid calling rtx_equal_p unless the
operands look similar. */