This is the mail archive of the gcc-bugs@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]

Re: GCC endless loop for store_bit_field with alignment 0


> 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>

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