This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC endless loop for store_bit_field with alignment 0
- To: dje at watson dot ibm dot com
- Subject: Re: GCC endless loop for store_bit_field with alignment 0
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Thu, 10 Aug 2000 16:32:19 -0700
- CC: gcc-bugs at gcc dot gnu dot org, rth at cygnus dot com
- References: <200008102155.RAA32728@mal-ach.watson.ibm.com>
> cc: Geoff Keating <geoffk@cygnus.com>, Richard Henderson <rth@cygnus.com>
> Date: Thu, 10 Aug 2000 17:55:51 -0400
> From: David Edelsohn <dje@watson.ibm.com>
> GCC probably should abort much earlier in the case of zero
> alignment as a self-check, but I am not sure how high up the call chain.
> expmed.c:store_bit_field()? expr.c:store_field()?
> expr.c:expand_assignment()?
Zero alignment is always an error, because every object is aligned to
at least a bit boundary. I'd put the checks close to the places the
alignment is used.
--
- Geoffrey Keating <geoffk@cygnus.com>