aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2025-05-05 09:30:45 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2025-05-05 09:30:45 -0400
commit7fae8dca82abf714a055ff505df51a4c8b43c211 (patch)
tree01411be938ab3d288ca125fd1c9a5957e2a5e747
parente67758cd816978a519d751b618043a8957d67e0e (diff)
downloadgcc-7fae8dca82abf714a055ff505df51a4c8b43c211.zip
gcc-7fae8dca82abf714a055ff505df51a4c8b43c211.tar.gz
gcc-7fae8dca82abf714a055ff505df51a4c8b43c211.tar.bz2
testsuite: Link gcc.dg/lto/modref-2_0 with libm
2025-05-05 John David Anglin <danglin@gcc.gnu.org> gcc/testsuite/ChangeLog: PR testsuite/120085 * gcc.dg/lto/modref-2_0.c: Link test with libm.
-rw-r--r--gcc/testsuite/gcc.dg/lto/modref-2_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/lto/modref-2_0.c b/gcc/testsuite/gcc.dg/lto/modref-2_0.c
index cf84ed9..bba4c8d 100644
--- a/gcc/testsuite/gcc.dg/lto/modref-2_0.c
+++ b/gcc/testsuite/gcc.dg/lto/modref-2_0.c
@@ -1,5 +1,6 @@
/* { dg-lto-do run } */
/* { dg-lto-options {"-O2 -flto-partition=max -flto -fno-ipa-sra"} } */
+/* { dg-extra-ld-options { -lm } } */
__attribute__ ((noinline))
void
test (char *a)