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]

[Bug middle-end/37170] [4.4 Regression]: gcc.dg/weak/weak-1.c



------- 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


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