AIX: Add dg-options to tests that override operator new

David Edelsohn dje.gcc@gmail.com
Wed Jan 26 15:39:00 GMT 2011


On Tue, Jan 25, 2011 at 7:25 PM, Graham Reed <greed@pobox.com> wrote:
> On 2011-Jan-25, at 6:40 PM, David Edelsohn wrote:
>
>> If you are going to go down this path for AIX linker options, why not
>> use -Wl,-bsvr4 ?
>
> I prefer to use the minimum amount of change necessary.
>
> I would much prefer to use an export file (-Wl,-bE:...) which just exports the operator new/delete implementations, but I don't know how to get the path to it right.
>
> If someone can tell me how to set that up for DejaGnu, I've already got and tested the export file.  I consider using -Wl,-bexpfull a kludge.

I completely agree and prefer not to use -bexpfull/-bexpall either.  I
do not want to encourage GCC users to use that option.

On the other hand, -bsvr4 implicitly enables -bexpfull and GCC assumes
SVR4 semantics and explicit export lists for AIX are cumbersome and
"different".

- David



More information about the Libstdc++ mailing list