https://gcc.gnu.org/g:a8571a55937d12160dbe3292ba6ee1c68ae59317
commit a8571a55937d12160dbe3292ba6ee1c68ae59317 Author: Alexandre Oliva <[email protected]> Date: Fri Jan 16 19:22:43 2026 -0300 testsuite: silence nolto-rel warning in pr62026_0.C On some targets, pr62026_0.C issues a warning about implicitly passing -flinker-output=nolto-rel, which flags the test as a failure. Pass the flag explicitly to avoid the warning. for gcc/testsuite/ChangeLog * g++.dg/lto/pr62026_0.C: Silence -flinker-output warning. Diff: --- gcc/testsuite/g++.dg/lto/pr62026_0.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/testsuite/g++.dg/lto/pr62026_0.C b/gcc/testsuite/g++.dg/lto/pr62026_0.C index d6445ee9b4d8..448a67c1db3f 100644 --- a/gcc/testsuite/g++.dg/lto/pr62026_0.C +++ b/gcc/testsuite/g++.dg/lto/pr62026_0.C @@ -1,5 +1,7 @@ // { dg-lto-do link } // { dg-lto-options {{-flto -O3 -r -Wno-return-type}} } +// { dg-extra-ld-options "-flinker-output=nolto-rel" } + class C; class F { virtual C m_fn1();
