diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-03-22 10:20:11 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-03-22 10:26:22 +0100 |
commit | ca27c3b3a09fa051c0112769ba680e43b197aa97 (patch) | |
tree | 9bccb4adf6a63b65a0cbb60bb34cd121219dbdba /gcc/testsuite/c-c++-common/gomp | |
parent | dbe9062ce070c861cd3fa6435187618413b1b3d1 (diff) | |
download | gcc-ca27c3b3a09fa051c0112769ba680e43b197aa97.zip gcc-ca27c3b3a09fa051c0112769ba680e43b197aa97.tar.gz gcc-ca27c3b3a09fa051c0112769ba680e43b197aa97.tar.bz2 |
testsuite: Fix up depobj-3.c test on i686-linux [PR112724]
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.
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.
Diffstat (limited to 'gcc/testsuite/c-c++-common/gomp')
-rw-r--r-- | gcc/testsuite/c-c++-common/gomp/depobj-3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/gomp/depobj-3.c b/gcc/testsuite/c-c++-common/gomp/depobj-3.c index a5017a4..526c429 100644 --- a/gcc/testsuite/c-c++-common/gomp/depobj-3.c +++ b/gcc/testsuite/c-c++-common/gomp/depobj-3.c @@ -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; |