This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: spec2000 regression
On Wed, Aug 15, 2001 at 01:10:45PM +0200, Jan Hubicka wrote:
> Oops, update - I was calling incorrect 2.95
>
> 2.95 does get it:
> main:
> pushl %ebp
> movl %esp,%ebp
> movl a,%eax
> movl $1,(%eax)
> movl b,%eax
> movw $2,(%eax)
> movl $1,%eax
> leave
>
> current tree does not:
>
> pushl %ebp
> movl %esp, %ebp
> pushl %eax
> pushl %eax
> movl a, %eax
> andl $-16, %esp
> movl $1, (%eax)
> movl b, %eax
> movw $2, (%eax)
> movl a, %eax
> movl (%eax), %eax
> movl %ebp, %esp
> popl %ebp
>
> so I would guess that something must be wrong... But it can be unrelated to your change of course.
My guess is that this is not related to aliasing, because if you change that
long long to long, it will work as you expect (unless -fno-strict-aliasing,
of course).
Jakub