Require the linker plugin so functions are properly detected as unused when inlined.
Pushed. PR testsuite/120084 * gcc.dg/lto/pr60779_0.c: Require linker-plugin. --- gcc/testsuite/gcc.dg/lto/pr60779_0.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg/lto/pr60779_0.c b/gcc/testsuite/gcc.dg/lto/pr60779_0.c index 360cdc9b51f..fdeb74c9322 100644 --- a/gcc/testsuite/gcc.dg/lto/pr60779_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr60779_0.c @@ -1,4 +1,5 @@ /* { dg-lto-do link } */ +/* { dg-require-linker-plugin "" } */ /* { dg-lto-options { { -O -flto -fdump-tree-optimized } } } */ _Complex double bar (_Complex double x, _Complex double y); -- 2.43.0