This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, VECTOR ABI] Add __attribute__((__simd__)) to GCC.
- From: Andreas Schwab <schwab at suse dot de>
- To: Kirill Yukhin <kirill dot yukhin at gmail dot com>
- Cc: Jakub Jelinek <jakub at redhat dot com>, Joseph Myers <joseph at codesourcery dot com>, Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 18 Nov 2015 10:39:26 +0100
- Subject: Re: [PATCH, VECTOR ABI] Add __attribute__((__simd__)) to GCC.
- Authentication-results: sourceware.org; auth=none
- References: <20151022115151 dot GA58371 at msticlxl57 dot ims dot intel dot com> <alpine dot DEB dot 2 dot 10 dot 1510221246280 dot 32382 at digraph dot polyomino dot org dot uk> <20151023141102 dot GA63293 at msticlxl57 dot ims dot intel dot com> <alpine dot DEB dot 2 dot 10 dot 1510231414210 dot 11051 at digraph dot polyomino dot org dot uk> <20151027140655 dot GC46998 at msticlxl57 dot ims dot intel dot com> <20151027141505 dot GG478 at tucnak dot redhat dot com> <20151028091601 dot GA53647 at msticlxl57 dot ims dot intel dot com> <20151029085447 dot GP478 at tucnak dot redhat dot com> <20151110084414 dot GA62112 at msticlxl57 dot ims dot intel dot com> <20151110085804 dot GW5675 at tucnak dot redhat dot com> <20151113115430 dot GA63972 at msticlxl57 dot ims dot intel dot com>
Kirill Yukhin <kirill.yukhin@gmail.com> writes:
> diff --git a/gcc/testsuite/c-c++-common/attr-simd-3.c b/gcc/testsuite/c-c++-common/attr-simd-3.c
> new file mode 100644
> index 0000000..2bbdf04
> --- /dev/null
> +++ b/gcc/testsuite/c-c++-common/attr-simd-3.c
> @@ -0,0 +1,5 @@
> +/* { dg-do compile } */
> +/* { dg-options "-fcilkplus" } */
> +/* { dg-prune-output "undeclared here \\(not in a function\\)|\[^\n\r\]* was not declared in this scope" } */
> +
> +void f () __attribute__((__simd__, __vector__)); /* { dg-error "in the same function marked as a Cilk Plus" } */
FAIL: c-c++-common/attr-simd-3.c -std=gnu++11 (test for errors, line 5)
FAIL: c-c++-common/attr-simd-3.c -std=gnu++11 (test for excess errors)
Excess errors:
/usr/local/gcc/gcc-20151118/gcc/testsuite/c-c++-common/attr-simd-3.c:5:48: warning: '__simd__' attribute does not apply to types [-Wattributes]
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."