diff options
author | Zack Weinberg <zack@bitmover.com> | 1999-08-27 07:37:16 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 1999-08-27 07:37:16 +0000 |
commit | e89a9554e31a52ac544c54c11170001366916497 (patch) | |
tree | 9d5ad76f03785899d1c5d7e1c1498db8fe89be95 /gcc/stor-layout.c | |
parent | 2dc36fe3a792cca31cbbf654feb52b7acf1cb907 (diff) | |
download | gcc-e89a9554e31a52ac544c54c11170001366916497.zip gcc-e89a9554e31a52ac544c54c11170001366916497.tar.gz gcc-e89a9554e31a52ac544c54c11170001366916497.tar.bz2 |
c-typeck.c (c_expand_start_case): Return immediately if exp is an ERROR_MARK.
1999-08-27 00:27 -0700 Zack Weinberg <zack@bitmover.com>
* c-typeck.c (c_expand_start_case): Return immediately if exp
is an ERROR_MARK.
* fold-const.c (operand_equal_p): Return immediately if arg1
or arg0 are ERROR_MARKs.
* stor-layout.c (layout_type [case RECORD_TYPE]): Ignore
fields of type ERROR_MARK when calculating if the record can
go in a register.
From-SVN: r28923
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 408846a..8707c8f 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -936,7 +936,8 @@ layout_type (type) { int bitpos; - if (TREE_CODE (field) != FIELD_DECL) + if (TREE_CODE (field) != FIELD_DECL + || TREE_CODE (TREE_TYPE (field)) == ERROR_MARK) continue; if (TYPE_MODE (TREE_TYPE (field)) == BLKmode |