
"Joe Van Dyk" <joevandyk@gmail.com> wrote in message news:c715e640607101451i6dcffeb8s7b99bf6c82e50a1e@mail.gmail.com...
On 7/10/06, Gennadiy Rozental <gennadiy.rozental@thomson.com> wrote:
"Joe Van Dyk" <joevandyk@gmail.com> wrote in message news:c715e640607101320k4caccc35kd102eee4cf383e02@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