public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5439] testsuite: Use noipa attribute for pr95115 test
@ 2023-01-27 12:06 Xi Ruoyao
0 siblings, 0 replies; only message in thread
From: Xi Ruoyao @ 2023-01-27 12:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d
commit r13-5439-gffa29648b2fbb1a14c70a33d3b6cd420ba4e9f9d
Author: Xi Ruoyao <xry111@xry111.site>
Date: Fri Jan 27 19:03:05 2023 +0800
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:
---
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 69c4f83250c..e7c3119f0dd 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 ();
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-27 12:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 12:06 [gcc r13-5439] testsuite: Use noipa attribute for pr95115 test Xi Ruoyao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).