From ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 27 Jan 2023 19:03:05 +0800 Subject: [PATCH] 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. --- gcc/testsuite/gcc.dg/pr95115.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (); -- 2.7.4