aboutsummaryrefslogtreecommitdiff
path: root/gcc/recog.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2000-07-31 08:37:30 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2000-07-31 08:37:30 +0000
commit22251f806bda549a6d6a740a738ad0ca405a4f52 (patch)
treea5d468b39901d3add97e3707db8ad3d9e05f45bb /gcc/recog.c
parentfbddce27a782efc711dda010e1ae5824aaedccc1 (diff)
downloadgcc-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
Diffstat (limited to 'gcc/recog.c')
-rw-r--r--gcc/recog.c5
1 files changed, 4 insertions, 1 deletions
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. */