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]

Error handling fix in stor-layout.c:place_field


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

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