This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: more simplify_subreg aborts
- To: Catherine Moore <clm at redhat dot com>
- Subject: Re: more simplify_subreg aborts
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: 28 Jun 2001 12:09:40 -0700
- CC: gcc at gcc dot gnu dot org
- References: <200106281631.JAA26929@cygnus.com>
Catherine Moore <clm@redhat.com> writes:
> Here is an example that is similar to dj's (voidmode issues)
> that is reproducible with the v850-elf port:
>
> static unsigned int
> size_of_encoded_value (unsigned char encoding)
> {
> switch (encoding)
> {
> case 0x00:
> return 0;
> case 0x02:
> return 2;
> case 0x03:
> return 4;
> case 0x04:
> return 8;
> }
> }
>
> It needs to be compiled at -O2. This patch allows
> me to workaround the issue for the v850, at least.
This can't possibly be fixing the real bug. I presume you've got
something like
(subreg:QI (const_int ...))
?
--
- Geoffrey Keating <geoffk@geoffk.org>