This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC build failed with your patch.



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.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]