This is the mail archive of the gcc-bugs@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]

Re: target/6569: sparc-sun-solaris2.7 C testsuite regression in compile/20011119-2.c


OK, here is a much better patch, instead of trying to figure out the right 
flags to test, I created a second list WEAK_EMITTED_DECLS and add all 
emitted weaks in globalize_decl() to it. Then in weak_finish() it's very 
easy to check for it.

Besides being easier to grok, it's also faster, cause we avoid to walk the 
WEAK_DECLS list on every declare_weak() call.

I left out the hunk in make_decl_one_only() from my last patch, it's 
nothing I want to do in the branch right now.

Currently bootstrapping on x86-linux-gnu.

I hope that's finally it...

Franz.


	* varasm.c (weak_emitted_decls): New variable.
	(init_varasm_once): Tell garbage collection about it.
	(globalize_decl): Add emitted weak decls to it.
	(weak_finish): Check WEAK_EMITTED_DECLS.
	(merge_weak): Always warn for NEWDECL.

Attachment: gcc-weaksym-9a-31.patch
Description: Binary data


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