diff options
author | Jan Hubicka <jh@suse.cz> | 2000-07-31 08:37:30 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2000-07-31 08:37:30 +0000 |
commit | 22251f806bda549a6d6a740a738ad0ca405a4f52 (patch) | |
tree | a5d468b39901d3add97e3707db8ad3d9e05f45bb | |
parent | fbddce27a782efc711dda010e1ae5824aaedccc1 (diff) | |
download | gcc-22251f806bda549a6d6a740a738ad0ca405a4f52.zip gcc-22251f806bda549a6d6a740a738ad0ca405a4f52.tar.gz gcc-22251f806bda549a6d6a740a738ad0ca405a4f52.tar.bz2 |
* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
From-SVN: r35368
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/recog.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c5ec118..4904cd3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/recog.c b/gcc/recog.c index 9bbd10b..746c0f9 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -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. */ |