summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-16 18:31:00 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-16 18:31:00 +0000
commit455adfe309d594cda209c72b5ab8615a69265c33 (patch)
tree933b827d3a456b31edc713f5502592a4faa6b959 /gcc
parente42c948205f06cb09858930c0b9f975618173b4b (diff)
downloadgcc-455adfe309d594cda209c72b5ab8615a69265c33.tar.gz
* stor-layout.c (place_field): Don't do anything if field or
its type are ERROR_MARK. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/stor-layout.c3
2 files changed, 11 insertions, 4 deletions
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 <lauras@softhome.net>
+Sat Sep 16 14:35:55 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
- * 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 <lauras@softhome.net>
+
+ * cppfiles.c (purge_cache): Use munmap only if MMAP_THRESHOLD defined.
+ (read_include_file): Ensure inc->mmaped is initialized.
2000-09-16 Richard Henderson <rth@cygnus.com>
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