]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Link gcc.dg/lto/modref-2_0 with libm
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 5 May 2025 13:30:45 +0000 (09:30 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 5 May 2025 13:30:45 +0000 (09:30 -0400)
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.

gcc/testsuite/gcc.dg/lto/modref-2_0.c

index cf84ed95e775568a1aec480eec3990e65305e087..bba4c8df95ea3d2c3f9b5dc6d3b65d9c474d7178 100644 (file)
@@ -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)