diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-01-27 19:03:05 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-01-27 20:04:25 +0800 |
commit | ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d (patch) | |
tree | 24195838b6b8740f70d55de57baf34bae35e2920 | |
parent | 2325c8920bbc99edcc9fffaa79577c528df41eb8 (diff) | |
download | gcc-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.
-rw-r--r-- | gcc/testsuite/gcc.dg/pr95115.c | 2 |
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 (); |