[gcc(refs/users/aoliva/heads/testme)] testsuite: silence nolto-rel warning in pr62026_0.C
Alexandre Oliva
aoliva@gcc.gnu.org
Fri Jan 16 22:35:36 GMT 2026
https://gcc.gnu.org/g:24928fe9d1aaabf5334e1b49c928b92d6a68e9c1
commit 24928fe9d1aaabf5334e1b49c928b92d6a68e9c1
Author: Alexandre Oliva <oliva@adacore.com>
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();
More information about the Gcc-cvs
mailing list