This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: genattrtab.c [Am I on drugs?!?]
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Subject: Re: genattrtab.c [Am I on drugs?!?]
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 30 Sep 1999 12:38:26 -0600
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <9909301845.AA17020@vlsi1.ultra.nyu.edu>you write:
> The rtx pointers from the elem array end up in the wrong places in the
> test array when a HOST_WIDE_INT is larger than a pointer.
>
> Sorry, I still don't see this.
>
> Each entry in the rtunion array is twice the size of each entry in the
> elem array.
>
> No, because elem is an array of rtunion too!
No. elem is not an array of rtunions.
typedef struct rtvec_def{
int num_elem; /* number of elements */
int gc_mark;
struct rtx_def *elem[1];
} *rtvec;
Note carefully the type of elem. It is a struct rtx_def *. That is rather
different than an rtunion.