On Fri, Apr 3, 2015 at 1:02 PM, Ilya Tocar <tocarip.in...@gmail.com> wrote:

> I've looked into avx* tests and many of them (even those that don't fail
> in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63211) use invalid type
> punning. Properly fixing them looks like a lot of work, so I propose
> just adding  -fno-strict-aliasing to them.
> This patch was obtained by running
> sed -i "s/-O2/-O2  -fno-strict-aliasing/g" 
> ../gcc/testsuite/gcc.target/i386/avx*-2.c
>
> Ok for stage1?

I don't like this approach. If the testcase is broken, then it should
be fixed, not worked around.

Uros.

Reply via email to