This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build failed with your patch.
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: GCC build failed with your patch.
- From: Jan Hubicka <jh at suse dot cz>
- Date: Mon, 31 Jul 2000 02:40:24 +0200
- References: <200007302124.OAA10006@sloth.cygnus.com>
Hi
I've checked in the following patch as obvious bugfix. The
validate_replace_rtx is now used for expr notes, where (nil) expression
may appear.
Mon Jul 31 02:38:51 CEST 2000 Jan Hubicka <jh@suse.cz>
* recog.c (validate_replace_rtx_1): Do not abort for (nil) expression.
*** recog.c.old Mon Jul 31 02:36:47 2000
--- recog.c Mon Jul 31 02:37:29 2000
*************** validate_replace_rtx_1 (loc, from, to, o
*** 409,416 ****
register int i, j;
register const char *fmt;
register rtx x = *loc;
! enum rtx_code 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. */
--- 409,419 ----
register int i, j;
register const char *fmt;
register rtx x = *loc;
! 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. */