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] Check for defintions in prevailing DECLs


Hi,

   This patch add a check for defintions in DECLs.  DECLs without
definitions are not consider prevailing.  Note that this matches the
behaviour of the linker.  Tested on i686-unknown-linux-gnu.

-Doug

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

	* lto-function-in.c (get_resolution): Check for definitions in
	DECLs.

testsuite/ChangeLog.lto:

	* g++.dg/lto/20081125.h: New.
	* g++.dg/lto/20081125_0.C: New.
	* g++.dg/lto/20081125_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]