spec2000 regression
Jakub Jelinek
jakub@redhat.com
Wed Aug 15 04:18:00 GMT 2001
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
More information about the Gcc
mailing list