FIxed an IMA bug showed up in parse and gzip.

OKed by Richard Henderson.

From-SVN: r88312
This commit is contained in:
Fariborz Jahanian 2004-09-30 00:09:42 +00:00 committed by Fariborz Jahanian
parent 1b096a0a0a
commit 2587f86519
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
* c-decl.c (merge_decls): Use comptype when comparing
types to decide on DECL_SIZE save of olddecl.
2004-09-29 Daniel Berlin <dberlin@dberlin.org>
* tree.h (INDIRECT_REF_P): New macro.

View File

@ -1549,7 +1549,7 @@ merge_decls (tree newdecl, tree olddecl, tree newtype, tree oldtype)
= composite_type (newtype, oldtype);
/* Lay the type out, unless already done. */
if (oldtype != TREE_TYPE (newdecl))
if (!comptypes (oldtype, TREE_TYPE (newdecl)))
{
if (TREE_TYPE (newdecl) != error_mark_node)
layout_type (TREE_TYPE (newdecl));