target/6569: sparc-sun-solaris2.7 C testsuite regression in compile/20011119-2.c
Franz Sirl
Franz.Sirl-kernel@lauterbach.com
Tue May 7 12:33:00 GMT 2002
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-weaksym-9a-31.patch
Type: application/octet-stream
Size: 4346 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20020507/13bb7683/attachment.obj>
More information about the Gcc-bugs
mailing list