This is the mail archive of the gcc@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: more simplify_subreg aborts


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>


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