From: Alexandre Oliva Date: Wed, 21 Jan 2026 03:30:01 +0000 (-0300) Subject: testsuite: silence nolto-rel warning in pr62026_0.C X-Git-Tag: basepoints/gcc-17~1857 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9171f4eff5611bec4eadcae9095ce2e7bf0937d;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/g++.dg/lto/pr62026_0.C b/gcc/testsuite/g++.dg/lto/pr62026_0.C index d6445ee9b4d..448a67c1db3 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();