[PATCH, i386 testsuite]: Move arrays out of test function to enable vectorization.
Uros Bizjak
ubizjak@gmail.com
Tue Jul 14 21:09:00 GMT 2009
On 07/14/2009 09:21 PM, Dave Korn wrote:
> Unlike the other arrays, that one is uninitialised, and so is liable to end
> up as a COMMON. Bog-standard i386 COFF doesn't support aligned common
> allocations, so these could end up unaligned. (Are there any bog-standard
> i386 COFF targets? Perhaps not. binutils still has some, at any rate.)
>
> You might want to add a trivial initialiser to make sure they get assigned
> to the .data section, or perhaps if any affected targets do turn up, they
> could add -fno-common to the target-specific dg CFLAGS.
>
I have no problem adding -fno-common to affected tests, but ...
... this is how tests in vectorizer testsuite declare their result
arrays (see i.e. vect-108.c).
Following the idea of adding -fno-common - perhaps we should add
-fno-common to gcc.dg/vect/vect.exp for COFF targets?
Uros.
More information about the Gcc-patches
mailing list