This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug if PARM_BOUNDARY < BITS_PER_WORD
- From: Richard Henderson <rth at redhat dot com>
- To: devik <devik at cdi dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 16 Dec 2002 22:46:58 +0000
- Subject: Re: Bug if PARM_BOUNDARY < BITS_PER_WORD
- References: <Pine.LNX.4.33.0212161217270.520-100000@devix>
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~