public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Xi Ruoyao <xry111@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-5439] testsuite: Use noipa attribute for pr95115 test
Date: Fri, 27 Jan 2023 12:06:20 +0000 (GMT)	[thread overview]
Message-ID: <20230127120620.630C03858C74@sourceware.org> (raw)

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 ();

                 reply	other threads:[~2023-01-27 12:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230127120620.630C03858C74@sourceware.org \
    --to=xry111@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).