https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120084
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2025-05-03 Component|lto |testsuite Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > It appears foo was expected to be optimized away. Or not be inlined. I think adding `/* { dg-require-linker-plugin "" } */` to gcc.dg/lto/pr60779_0.c will fix the testcase since it requires the linker plugin to be able to detect if foo is needed or not.