This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cross compiler bug ? (ia64,asm)
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Wallace Wadge <wwadge at hobsoft dot com dot mt>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 03 Jul 2003 16:02:37 -0300
- Subject: Re: cross compiler bug ? (ia64,asm)
- Organization: GCC Team, Red Hat
- References: <1057225356.2202.128.camel@sting>
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().
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer