* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
authorJan Hubicka <jh@suse.cz>
Mon, 31 Jul 2000 08:37:30 +0000 (08:37 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 31 Jul 2000 08:37:30 +0000 (08:37 +0000)
From-SVN: r35368

gcc/ChangeLog
gcc/recog.c

index 5c5ec118f753975300cfc8b175cae398bcbfd2d3..4904cd3ff401dd026a70f6145327a97fa7108fc0 100644 (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
index 9bbd10b3dddbc778b1a1ebf1b2a09bd7483557ca..746c0f9b6121b3b903e55af9b33e9a14b751f2e9 100644 (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.  */