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


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