[gcc r16-6947] testsuite: silence nolto-rel warning in pr62026_0.C
Alexandre Oliva
aoliva@gcc.gnu.org
Wed Jan 21 03:37:20 GMT 2026
https://gcc.gnu.org/g:b9171f4eff5611bec4eadcae9095ce2e7bf0937d
commit r16-6947-gb9171f4eff5611bec4eadcae9095ce2e7bf0937d
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.
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