This is the mail archive of the gcc-patches@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: [libstdc++][patch] Move __stl_prime_list out of a header file


Paolo Carlini <paolo.carlini@oracle.com> writes:

> Ian Lance Taylor wrote:
>> Do you see any problems with this patch other than the new exported
>> symbol?
>>   
> By the way, the symbol is of course not exported correctly anyway, is
> exported at  3.4.10 instead of the last version. If you can just avoid
> exporting anything, like use the weak attribute, I have nothing against
> the idea.

Even a weak symbol is exported in a sense.  However, this does suggest
an alternative approach, which would be to keep the array in the header
file but to use something along the lines of
    __attribute__ ((section (".gnu.linkonce.r.__stl_prime_list"), weak))

Ian


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