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 15:33:40 -0700
- CC: gcc-bugs at gcc dot gnu dot org, rth at cygnus dot com
- References: <200008102116.RAA30048@mal-ach.watson.ibm.com>
> cc: Geoff Keating <geoffk@cygnus.com>, Richard Henderson <rth@cygnus.com>
> Date: Thu, 10 Aug 2000 17:16:23 -0400
> From: David Edelsohn <dje@watson.ibm.com>
>
> gcc.c-torture/compile/20000405-3.c causes GCC to enter an endless
> loop when producing code for 64-bit PowerPC. Analyzing the problem has
> uncovered a number of weird conditions in GCC, so I am not sure which is
> the real problem that should be solved -- maybe both of them.
I sent in a patch for this some time ago, but I've forgotten what
happened to it. Maybe I forgot to put it in my list of unapproved
patches.
The problem is that DECL_FIELD_OFFSET_ALIGN overflows, because it's
only an 8-bit-wide bitfield in the tree structure. I posted a patch to
store this field as a power of two, giving alignments of up to 2^256,
which ought to be enough.
--
- Geoffrey Keating <geoffk@cygnus.com>