public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: Tobias Burnus <tburnus@baylibre.com>
Subject: [committed] testsuite: Fix up depobj-3.c test on i686-linux [PR112724]
Date: Fri, 22 Mar 2024 10:38:09 +0100	[thread overview]
Message-ID: <Zf1RgQr3egrR6ifs@tucnak> (raw)

Hi!

While I've posted a patch to handle EXCESS_PRECISION_EXPR in C/C++
pretty printing, still we'd need to handle
(a + (float)5)
and
(float)(((long double)a) + (long double)5)
and possibly
(float)(((double)a) + (double)5)
too for s390?, so the following patch just uses -fexcess-precision=fast,
so that the expression is always the same.

Tested on x86_64-linux -m32/-m64, committed to trunk.

2024-03-22  Jakub Jelinek  <jakub@redhat.com>

	PR c++/112724
	* c-c++-common/gomp/depobj-3.c: Add -fexcess-precision=fast as
	dg-additional-options.

--- gcc/testsuite/c-c++-common/gomp/depobj-3.c.jj	2023-12-01 08:10:43.769309565 +0100
+++ gcc/testsuite/c-c++-common/gomp/depobj-3.c	2024-03-22 10:12:17.680085428 +0100
@@ -1,3 +1,5 @@
+/* { dg-additional-options "-fexcess-precision=fast" } */
+
 typedef struct __attribute__((__aligned__ (sizeof (void *)))) omp_depend_t {
   char __omp_depend_t__[2 * sizeof (void *)];
 } omp_depend_t;

	Jakub


                 reply	other threads:[~2024-03-22  9:38 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=Zf1RgQr3egrR6ifs@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=tburnus@baylibre.com \
    /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).