This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR middle-end/68002: introduce -fkeep-static-functions
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: VandeVondele Joost <joost dot vandevondele at mat dot ethz dot ch>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 19 Oct 2015 11:18:09 +0200
- Subject: Re: [PATCH] PR middle-end/68002: introduce -fkeep-static-functions
- Authentication-results: sourceware.org; auth=none
- References: <908103EDB4893A42920B21D3568BFD9339EE9EE3 at MBX13 dot d dot ethz dot ch>
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