This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cross compiler bug ? (ia64,asm)
Fair enough. Perhaps we should document the behaviour change for other
poor souls like me...
Thanks!
Wallace
On Thu, 2003-07-03 at 21:02, Alexandre Oliva wrote:
> On Jul 3, 2003, Wallace Wadge <wwadge@hobsoft.com.mt> wrote:
>
> > In my .S file, I have the following:
> > movl r25=(1 << 64) - 1
>
> 1 << 64 invokes undefined behavior, since you're shifting by more than
> the width of the integer type in bits. From then on, all bets are
> off. The compiler might have legitimately translated the shift into a
> call to abort().