From dd078265e0189262b085af631d908c818f61440c Mon Sep 17 00:00:00 2001 From: fjahanian Date: Thu, 30 Sep 2004 00:09:42 +0000 Subject: FIxed an IMA bug showed up in parse and gzip. OKed by Richard Henderson. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88312 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 38a13fd201c..5ef46b0eb8f 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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)); -- cgit v1.2.1