From: Xi Ruoyao Date: Fri, 27 Jan 2023 11:03:05 +0000 (+0800) Subject: testsuite: Use noipa attribute for pr95115 test X-Git-Tag: upstream/13.1.0~1805 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d;p=platform%2Fupstream%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 69c4f83..e7c3119 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 ();