Commit 5748b2cb by Richard Kenner

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
parent ae0f4dee
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 * stor-layout.c (place_field): Don't do anything if field or
defined. its type are ERROR_MARK.
(read_include_file): Ensure inc->mmaped is initialized.
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> 2000-09-16 Richard Henderson <rth@cygnus.com>
......
...@@ -638,6 +638,9 @@ place_field (rli, field) ...@@ -638,6 +638,9 @@ place_field (rli, field)
/* The type of this field. */ /* The type of this field. */
tree type = TREE_TYPE (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 /* 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 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 method. In both cases, all we do is lay out the decl, and we do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment