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

2015-10-19 Thread H.J. Lu
On Mon, Oct 19, 2015 at 2:18 AM, Richard Biener wrote: > On Sat, Oct 17, 2015 at 5:17 PM, VandeVondele Joost > 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

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

2015-10-19 Thread Richard Biener
On Sat, Oct 17, 2015 at 5:17 PM, VandeVondele Joost 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 >

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

2015-10-17 Thread VandeVondele Joost
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. Than