[PATCH] PR middle-end/68002: introduce -fkeep-static-functions

Richard Biener richard.guenther@gmail.com
Mon Oct 19 09:20:00 GMT 2015


On Sat, Oct 17, 2015 at 5:17 PM, VandeVondele  Joost
<joost.vandevondele@mat.ethz.ch> wrote:
> In some cases (e.g. coverage testing) it is useful to emit code for static functions even if they are never used, which currently is not possible at -O1 and above. The following patch introduces a flag for this, which basically triggers the same code that keeps those functions alive at -O0. Thanks to Marc Glisse for replying at gcc-help and for suggesting where to look.
>
> Bootstrapped and regtested on x86_64-unknown-linux-gnu
>
> OK for trunk ?

Ok.

Thanks,
Richard.

> Joost



More information about the Gcc-patches mailing list