On 03/07/2011 12:11 PM, Erez D wrote: > I have a function which is not called in a regular way, so gcc thinks > it is dead code. > however it is not, and i am looking for a way to tell the linker not > to remove it. > > i can call it from some place with a flag that tells it to do nothing, > but this is a ugly hack > is there a directive telling gcc not to remove that certain function ? > I did not exactly try, but if there is -fdce, which is by default enabled an -O*, there should be also -fno-dce and fno-tree-dce, is it not?
> thanks, > erez. > > > _______________________________________________ > Linux-il mailing list > [email protected] > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
_______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
