C++ ptrmemfun break if FUNCTION_BOUNDARY < 2 * BITS_PER_UNIT

Joern Rennecke amylaar@cambridge.redhat.com
Mon Apr 9 12:28:00 GMT 2001


 Is it safe to use arithmetic SHIFTs instead of letting the compiler
> choose them instead of DIVs and MULTs?  For some reason, on
> mn10300-elf, the div makes it to the generated code, which we
> certainly don't want.

A signed division is not a portable way to extract a bit.  And for
negative values, it just doesn't work.
Why don't you use an unsigned division or a logical shift?



More information about the Gcc mailing list