[gcc r15-10859] testsuite: silence nolto-rel warning in pr62026_0.C
Torbjorn Svensson
azoff@gcc.gnu.org
Wed Feb 25 08:26:51 GMT 2026
https://gcc.gnu.org/g:4941dded3d6c00a08d44f2fa23c4370b9aca2834
commit r15-10859-g4941dded3d6c00a08d44f2fa23c4370b9aca2834
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Jan 21 00:30:01 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.
(cherry picked from commit b9171f4eff5611bec4eadcae9095ce2e7bf0937d)
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();
More information about the Gcc-cvs
mailing list