This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: wrong alias-analysis and strange x86-code
> From: Volker Barthelmann <vb@compilers.de>
> Date: Wed, 25 Oct 2000 03:38:42 +0200
> I don't think the example I provided breaks any aliasing rules of ISO C and
> therefore I think the behaviour of gcc here is broken. Even if I specify
> -fstrict-aliasing I expect this program to be translated correctly.
Yes. There was no type-punning of any kind occuring in the example
program, so it should work no matter how the option is set.
--
- Geoffrey Keating <geoffk@cygnus.com>