Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-07-11 02:23:59


"Joe Van Dyk" <joevandyk_at_[hidden]> wrote in message
news:c715e640607101451i6dcffeb8s7b99bf6c82e50a1e_at_mail.gmail.com...
> On 7/10/06, Gennadiy Rozental <gennadiy.rozental_at_[hidden]> wrote:
>>
>> "Joe Van Dyk" <joevandyk_at_[hidden]> wrote in message
>> news:c715e640607101320k4caccc35kd102eee4cf383e02_at_mail.gmail.com...
>> >> > Maybe you could use some compiler options to avoid unused static
>> >> > files
>> >> > discard?
>> >>
>> >> Hm, I've never heard of that option. I'll look into it.
>> >
>> > Any chance you could tell me what flags the GNU GCC compiler would do
>> > the trick? I can't find anything that resembles "avoid unused static
>> > files discard".
>>
>> Looks like these may work:
>>
>> -fkeep-static-consts
>> -fno-toplevel-reorder
>> -fno-unit-at-a-time (?)
>
> Thanks, I'll try that. Can you explain the problem with static
> linking that makes these options necessary?

Automatic registration is implemented with use of file level static
variables that never used, but in a constructor register test cases. Once
these variable removed, no registration occurs.

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk