https://gcc.gnu.org/g:7fae8dca82abf714a055ff505df51a4c8b43c211

commit r16-388-g7fae8dca82abf714a055ff505df51a4c8b43c211
Author: John David Anglin <dang...@gcc.gnu.org>
Date:   Mon May 5 09:30:45 2025 -0400

    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:
---
 gcc/testsuite/gcc.dg/lto/modref-2_0.c | 1 +
 1 file changed, 1 insertion(+)

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

Reply via email to