This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Weak symbols under AIX 5.1?
- From: Roger Sayle <roger at eyesopen dot com>
- To: David Edelsohn <dje at watson dot ibm dot com>
- Cc: <gcc-bugs at gcc dot gnu dot org>
- Date: Sun, 28 Apr 2002 14:20:29 -0600 (MDT)
- Subject: Re: Weak symbols under AIX 5.1?
> I am not sure what you mean by "these testcase failures can be
> fixed with the current AIX 5L." G++ instantiates template static members
> using COMDAT which requires weak support. The fact that you can
> instantiate them on AIX does not mean that those static members should
> be instantiated in the testcases on system without weak symbol support.
Then there needs to be an additional TARGET macro that controls whether
static members should be instantiated. The current test of COMDAT
and/or for weak symbol support fails for AIX, which has neither but
can and should instantiate static members.
Indeed COMDAT would make a good default value for this target macro,
which can then be suitably redefined by the AIX backend (and potentially
any other target with the same behavior).
Roger
--