This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug if PARM_BOUNDARY < BITS_PER_WORD


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]