Bit manipulation on PowerPC

Dave Korn davek-ml@ntlworld.com
Tue Feb 6 16:44:00 GMT 2001


> <mwilliams@ase-tech-usa.com> writes:
>
> > Symptoms:
> > When optimization is enabled, a bit manipulation expression compiles to
> > incorrect assembly code.  Given the value 0x00010001, the expression
should
> > produce 0x00000101.  The assembly code produces 0x00000100.  The bug
> > appears to occur only when the expression is evaluated in place (i.e.
using
> > a single register).
> >
> > Version:
> > Reading specs from
> >
C:\Tornado\host\x86-win32\lib\gcc-lib\powerpc-wrs-vxworks\cygnus-2.7.2-9601
> > 26\specs
> > gcc driver version cygnus-2.7.2-960126 egcs-971225 tornado 2.0 executing
> > gcc version cygnus-2.7.2-960126

  Aha, the famous WRS272 compiler!

> This is fixed in current compilers.  You should upgrade, if you can.
>
> --
> - Geoffrey Keating <geoffk@geoffk.org>

  It so happens that s/he can.  I've got a version of 2.95.3 available:

    http://www.newgcc4vxworks4ppc.cjb.net/

  I should warn that some users have experienced teething troubles, most of
which are now fixed, while others have found it to work perfectly from the
off; YMMV.  However it won't damage your existing Tornado installation, so
you have little to lose by trying it out.

    regards,
        DaveK





More information about the Gcc-bugs mailing list