Error handling fix in stor-layout.c:place_field

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Sat Sep 16 11:31:00 GMT 2000


Sat Sep 16 14:35:55 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* stor-layout.c (place_field): Don't do anything if field or
	its type are ERROR_MARK.

*** stor-layout.c	2000/08/29 21:39:45	1.83
--- stor-layout.c	2000/09/16 18:09:52
*************** place_field (rli, field)
*** 639,642 ****
--- 639,645 ----
    tree type = TREE_TYPE (field);
   
+   if (TREE_CODE (field) == ERROR_MARK || TREE_CODE (type) == ERROR_MARK)
+       return;
+ 
    /* If FIELD is static, then treat it like a separate variable, not
       really like a structure field.  If it is a FUNCTION_DECL, it's a


More information about the Gcc-patches mailing list