public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix gcc.dg/gomp/pr89104.c failure on aarch64
@ 2019-07-24 21:05 Steve Ellcey
  2019-07-24 21:17 ` Rainer Orth
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Ellcey @ 2019-07-24 21:05 UTC (permalink / raw)
  To: gcc-patches

I noticed that the test gcc.dg/gomp/pr89104.c fails on aarch64 platforms.
As mentioned in the bug report for PR 89104, this message is coming from
aarch64 target specific code which is why it does not occur on other
platforms.  There doesn't seem to be complete consensus in the bug report
on how to deal with this but I chose to just use -w on aarch64 to surpress
the warning.

The warning that we get is:

pr89104.c:8:1: warning: GCC does not currently support mixed size types for ‘simd’ functions
    8 | foo (int *x, int y)

This is because 'x' is a 64 bit pointer and 'y' is a 32 bit integer
in the default LP64 mode.  If I use -mabi=ilp32, then aarch64 does not 
generate a warning because both arguments are 32 bits.  I could force
ILP32 mode for aarch64 and/or only use -w only when not in 32 bit mode
but that seemed like overkill to me.

OK to checkin?

Steve Ellcey
sellcey@marvell.com



2019-07-24  Steve Ellcey  <sellcey@marvell.com>

	* gcc.dg/gomp/pr89104.c: Use -w on aarch64*-*-* targets.


diff --git a/gcc/testsuite/gcc.dg/gomp/pr89104.c b/gcc/testsuite/gcc.dg/gomp/pr89104.c
index 505fdda..7f0f688 100644
--- a/gcc/testsuite/gcc.dg/gomp/pr89104.c
+++ b/gcc/testsuite/gcc.dg/gomp/pr89104.c
@@ -2,6 +2,7 @@
 /* PR ipa/89104 */
 /* { dg-do compile } */
 /* { dg-options "-O2 -fopenmp-simd" } */
+/* { dg-options "-O2 -fopenmp-simd -w" { target aarch64*-*-* } } */
 
 #pragma omp declare simd uniform (x) aligned (x)
 int

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix gcc.dg/gomp/pr89104.c failure on aarch64
  2019-07-24 21:05 [PATCH] Fix gcc.dg/gomp/pr89104.c failure on aarch64 Steve Ellcey
@ 2019-07-24 21:17 ` Rainer Orth
  0 siblings, 0 replies; 2+ messages in thread
From: Rainer Orth @ 2019-07-24 21:17 UTC (permalink / raw)
  To: Steve Ellcey; +Cc: gcc-patches

Hi Steve,

> 2019-07-24  Steve Ellcey  <sellcey@marvell.com>
>
> 	* gcc.dg/gomp/pr89104.c: Use -w on aarch64*-*-* targets.
>
>
> diff --git a/gcc/testsuite/gcc.dg/gomp/pr89104.c b/gcc/testsuite/gcc.dg/gomp/pr89104.c
> index 505fdda..7f0f688 100644
> --- a/gcc/testsuite/gcc.dg/gomp/pr89104.c
> +++ b/gcc/testsuite/gcc.dg/gomp/pr89104.c
> @@ -2,6 +2,7 @@
>  /* PR ipa/89104 */
>  /* { dg-do compile } */
>  /* { dg-options "-O2 -fopenmp-simd" } */
> +/* { dg-options "-O2 -fopenmp-simd -w" { target aarch64*-*-* } } */

please use 

/* { dg-additional-options "-w" { target aarch64*-*-* } } */

instead of repeating the option list.  I'll leave approval of the
substance of the patch to an OpenMP maintainer.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-24 21:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 21:05 [PATCH] Fix gcc.dg/gomp/pr89104.c failure on aarch64 Steve Ellcey
2019-07-24 21:17 ` Rainer Orth

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).