On Mon, Oct 19, 2015 at 2:18 AM, Richard Biener
<richard.guent...@gmail.com> wrote:
> On Sat, Oct 17, 2015 at 5:17 PM, VandeVondele  Joost
> <joost.vandevond...@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.

I checked in this as an obvious fix.

-- 
H.J.
---
Index: ChangeLog
===================================================================
--- ChangeLog (revision 228967)
+++ ChangeLog (working copy)
@@ -1,5 +1,9 @@
 2015-10-19  H.J. Lu  <hongjiu...@intel.com>

+ * doc/invoke.texi: Replace @optindex with @opindex.
+
+2015-10-19  H.J. Lu  <hongjiu...@intel.com>
+
  PR target/67995
  * config/i386/i386.c (ix86_valid_target_attribute_tree): If
  arch= is set,  clear all bits in x_ix86_isa_flags, except for
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi (revision 228967)
+++ doc/invoke.texi (working copy)
@@ -8014,7 +8014,7 @@ of its callers.  This switch does not af
 inline functions into the object file.

 @item -fkeep-static-functions
-@optindex fkeep-static-functions
+@opindex fkeep-static-functions
 Emit @code{static} functions into the object file, even if the function
 is never used.

Reply via email to