Commit 22251f80 by Jan Hubicka Committed by Jan Hubicka

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

From-SVN: r35368
parent fbddce27
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> 2000-07-31 Geoff Keating <geoffk@cygnus.com>
* c-parse.in (extdefs): Call ggc_collect between external * c-parse.in (extdefs): Call ggc_collect between external
......
...@@ -409,8 +409,11 @@ validate_replace_rtx_1 (loc, from, to, object) ...@@ -409,8 +409,11 @@ validate_replace_rtx_1 (loc, from, to, object)
register int i, j; register int i, j;
register const char *fmt; register const char *fmt;
register rtx x = *loc; 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 /* 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 same register in the same mode. Avoid calling rtx_equal_p unless the
operands look similar. */ operands look similar. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment