This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[LTO][PATCH] Fix DECL merging problem due to incomplete types.


Hi,

      This patch fixes a problem where lto_compatible_type mistakenly
declared two declarations of the same variable to have different sizes
or modes.  The problem is due to the fact that aggregrate types are
not always completed.   Tested on i686-unknown-linux-gnu.

-Doug

2008-11-19  Doug Kwan  <dougkwan@google.com>

	* lto-symtab.c (external_aggregate_decl_p): New.
	(lto_symtab_compatible): Handle external aggregate declarations
	specially.

testsuite/ChangeLog.lto

	* g++.dg/lto/20081119-1.h: New.
	* g++.dg/lto/20081119-1_0.C: New.
	* g++.dg/lto/20081119-1_1.C: New.

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]