]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: silence nolto-rel warning in pr62026_0.C
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 Jan 2026 03:30:01 +0000 (00:30 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 Jan 2026 03:30:01 +0000 (00:30 -0300)
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.

gcc/testsuite/g++.dg/lto/pr62026_0.C

index d6445ee9b4d806d321007121d024cd7f386889d0..448a67c1db3f8732fb625d42aecabdac6c498a9a 100644 (file)
@@ -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();