aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-01-27 19:03:05 +0800
committerXi Ruoyao <xry111@xry111.site>2023-01-27 20:04:25 +0800
commitffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d (patch)
tree24195838b6b8740f70d55de57baf34bae35e2920 /gcc
parent2325c8920bbc99edcc9fffaa79577c528df41eb8 (diff)
downloadgcc-ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d.zip
gcc-ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d.tar.gz
gcc-ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pr95115.c2
1 files changed, 1 insertions, 1 deletions
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 <fenv.h>
#include <stdlib.h>
-double
+__attribute__ ((noipa)) double
x (void)
{
double d = __builtin_inf ();