787da5fdbf
gcc/ChangeLog: 2015-10-17 Joost VandeVondele <vondele@gnu.gcc.org> 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 <vondele@gnu.gcc.org> PR middle-end/68002 * gcc.dg/PR68002.c: New test. From-SVN: r228965
8 lines
188 B
C
8 lines
188 B
C
/* Ensure static functions can be kept. */
|
|
/* { dg-do compile } */
|
|
/* { dg-options "-O1 -fkeep-static-functions" } */
|
|
|
|
static void bar () { }
|
|
|
|
/* { dg-final { scan-assembler "bar" } } */
|