[Bug middle-end/68002] retaining unused static functions at -O1

2015-12-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68002

Marek Polacek  changed:

   What|Removed |Added

 CC||mpolacek at gcc dot gnu.org

--- Comment #3 from Marek Polacek  ---
So fixed?

[Bug middle-end/68002] retaining unused static functions at -O1

2015-12-08 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68002

Joost VandeVondele  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Joost VandeVondele  
---
yes

[Bug middle-end/68002] retaining unused static functions at -O1

2015-10-19 Thread vondele at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68002

--- Comment #2 from vondele at gcc dot gnu.org ---
Author: vondele
Date: Mon Oct 19 10:24:37 2015
New Revision: 228965

URL: https://gcc.gnu.org/viewcvs?rev=228965=gcc=rev
Log:
Fix PR68002, add -fkeep-static-functions

gcc/ChangeLog:

2015-10-17  Joost VandeVondele  

PR middle-end/68002
* common.opt (fkeep-static-functions): New option.
* doc/invoke.texi: Document it.
* cgraphunit.c (cgraph_node::finalize_function): Use it.

gcc/testsuite/ChangeLog:

2015-10-17  Joost VandeVondele  

PR middle-end/68002
* gcc.dg/PR68002.c: New test.


Added:
trunk/gcc/testsuite/gcc.dg/PR68002.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraphunit.c
trunk/gcc/common.opt
trunk/gcc/doc/invoke.texi
trunk/gcc/testsuite/ChangeLog


[Bug middle-end/68002] retaining unused static functions at -O1

2015-10-17 Thread Joost.VandeVondele at mat dot ethz.ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68002

Joost VandeVondele  changed:

   What|Removed |Added

URL||https://gcc.gnu.org/ml/gcc-
   ||patches/2015-10/msg01667.ht
   ||ml
 CC||Joost.VandeVondele at mat dot 
ethz
   ||.ch

--- Comment #1 from Joost VandeVondele  
---
patch posted at https://gcc.gnu.org/ml/gcc-patches/2015-10/msg01667.html