gcc/gcc/testsuite/gcc.dg/PR68002.c
Joost VandeVondele 787da5fdbf Fix PR68002, add -fkeep-static-functions
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
2015-10-19 10:24:37 +00:00

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" } } */