Tested on hppa64-hp-hpux11.11.  Committed to trunk.

Dave
---

testsuite: Link gcc.dg/lto/modref-2_0 with libm

2025-05-05  John David Anglin  <dang...@gcc.gnu.org>

gcc/testsuite/ChangeLog:

        PR testsuite/120085
        * gcc.dg/lto/modref-2_0.c: Link test with libm.

diff --git a/gcc/testsuite/gcc.dg/lto/modref-2_0.c 
b/gcc/testsuite/gcc.dg/lto/modref-2_0.c
index cf84ed95e77..bba4c8df95e 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)

Attachment: signature.asc
Description: PGP signature

Reply via email to