Bug if PARM_BOUNDARY < BITS_PER_WORD

Richard Henderson rth@redhat.com
Mon Dec 16 14:50:00 GMT 2002


On Mon, Dec 16, 2002 at 12:19:38PM +0100, devik wrote:
> Hello,
> 
> I wanted to define BITS_PER_WORD 64 and
> PARM_BOUNDARY 32 for our cpu. But compiler
> complaints at expr.c:3489:
> 
> int offset = partial % (PARM_BOUNDARY / BITS_PER_WORD);
> 
> (Division by zero).
> 
> So that is it possible to have PARM_BOUNDARY < BITS_PER_WORD ?

It's supposed to be.

m68k.h:#define PARM_BOUNDARY (TARGET_SHORT ? 16 : 32)

but I bet that doesn't get tested ever.


r~



More information about the Gcc mailing list