This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37170] [4.4 Regression]: gcc.dg/weak/weak-1.c
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Aug 2008 02:00:27 -0000
- Subject: [Bug middle-end/37170] [4.4 Regression]: gcc.dg/weak/weak-1.c
- References: <bug-37170-507@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #54 from hp at gcc dot gnu dot org 2008-08-26 02:00 -------
Created an attachment (id=16146)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16146&action=view)
Patch, take 5.
Removing the "TREE_CODE (decl) == FUNCTION_DECL && ..." part helped to elide
the bogus weak declarations for vtables that had been taken care of locally.
Doh. :)
On Darwin, there were also some spurious .weak_reference X emitted for
locally-defined X. Fixed by gating that output as in assemble_external.
Trivially tested with the test-cases that have appeared here. Test runs
started for native x86_64-linux and cross to cris-elf.
I'd be thankful for your testing.
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #16141|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37170