This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR 19893 & array_ref bug
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Steve Ellcey <sje at cup dot hp dot com>
- Cc: gdr at integrable-solutions dot net, mark at codesourcery dot com, Joe dot Buck at synopsys dot COM, gcc at gcc dot gnu dot org
- Date: Wed, 16 Mar 2005 22:13:59 +0000 (UTC)
- Subject: Re: PR 19893 & array_ref bug
- References: <200503162158.NAA24062@hpsje.cup.hp.com>
On Wed, 16 Mar 2005, Steve Ellcey wrote:
> But as Joseph pointed out we don't implement attributes on array
> arguments so I get a warning when I try to use the __restrict__
> attribute on the array arguments. Without the __restrict__ attribute I
> am sure we would not do any vectorization and then what is the point of
> the test?
The C99 syntax for array arguments with qualifiers to be applied to the
pointers to which they decay
void f(int a[restrict], int b[restrict]);
is implemented. What isn't implemented is (a) attributes inside [] along
with any qualifiers, to apply attributes to the pointer rather than to the
array, (b) attributes on the parameter declarations that should apply to
the array instead of to the pointer (instead they'll just apply to the
pointer to which the array decays).
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)