From: Xi Ruoyao Date: Fri, 27 Jan 2023 11:03:05 +0000 (+0800) Subject: testsuite: Use noipa attribute for pr95115 test X-Git-Tag: basepoints/gcc-14~1768 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d;p=thirdparty%2Fgcc.git testsuite: Use noipa attribute for pr95115 test This prevent the compiler from deeming the NaN result "unused" and remove the calculation raising INVALID exception. See the discussion in PR107608 for details. gcc/testsuite/ChangeLog: * gcc.dg/pr95115.c (x): Add noipa attribute. --- diff --git a/gcc/testsuite/gcc.dg/pr95115.c b/gcc/testsuite/gcc.dg/pr95115.c index 69c4f83250ca..e7c3119f0ddb 100644 --- a/gcc/testsuite/gcc.dg/pr95115.c +++ b/gcc/testsuite/gcc.dg/pr95115.c @@ -6,7 +6,7 @@ #include #include -double +__attribute__ ((noipa)) double x (void) { double d = __builtin_inf ();