From: John David Anglin Date: Mon, 5 May 2025 13:30:45 +0000 (-0400) Subject: testsuite: Link gcc.dg/lto/modref-2_0 with libm X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fae8dca82abf714a055ff505df51a4c8b43c211;p=thirdparty%2Fgcc.git testsuite: Link gcc.dg/lto/modref-2_0 with libm 2025-05-05 John David Anglin 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)