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

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