This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Another patch to prevent invalid subreg generation (fwd)
On Fri, 21 Dec 2001, Aldy Hernandez wrote:
> >>>>> "Alan" == Alan Matsuoka <alanm@cygnus.com> writes:
>
> > I'm resubmitting this again since nobody seemed to want to comment on
> > it.
>
> > It prevents an ICE when compiling for d10v.
>
> Test case?
Should be one in the attachment.
It prevents an ICE when compiling for d10v.
typedef union
{
unsigned char member3;
signed short member4;
unsigned int member5;
}
UNI02;
struct srt_dat_t
{
UNI02 un2;
unsigned long member1;
signed short member2;
};
struct srt_dat_t exsrt1;
void
extern_test (struct srt_dat_t arg1)
{
arg1.un2.member3++;
arg1.member1++;
arg1.member2++;
}
int
main (void)
{
extern_test (exsrt1);
return (0);
}
Alan Matsuoka
GCC Engineering
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299