From: Richard Kenner Date: Sat, 16 Sep 2000 18:31:00 +0000 (-0400) Subject: stor-layout.c (place_field): Don't do anything if field or its type are ERROR_MARK. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5748b2cb4b46855f9a6052741de818825e9632ef;p=gcc.git stor-layout.c (place_field): Don't do anything if field or its type are ERROR_MARK. * stor-layout.c (place_field): Don't do anything if field or its type are ERROR_MARK. From-SVN: r36460 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7af16e02a4f..ccce0a7dc57 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,12 @@ -Sat 16-Sep-2000 19:14:00 BST Laurynas Biveinis +Sat Sep 16 14:35:55 2000 Richard Kenner - * cppfiles.c (purge_cache): use munmap() only if MMAP_THRESHOLD - defined. - (read_include_file): Ensure inc->mmaped is initialized. + * stor-layout.c (place_field): Don't do anything if field or + its type are ERROR_MARK. + +Sat Sep 16 19:14:00 2000 Laurynas Biveinis + + * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined. + (read_include_file): Ensure inc->mmaped is initialized. 2000-09-16 Richard Henderson diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index af219ccbe91..1de070d521a 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -638,6 +638,9 @@ place_field (rli, field) /* The type of this field. */ 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 method. In both cases, all we do is lay out the decl, and we do