This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Biv detection take 2
> Jan
>
> This patch has bug if seq is a zero length SEQUNCE. The problem is
> the following
>
> last = XVECEXP (seq, 0, i - 1);
>
> If seq is a zero length SEQUENCE then the above is accessing element
> -1 (i.e. i is 0) which is wrong. I believe a zero length SEQUENCE is
> possible if no insns are emitted between the calls to start_sequence()
> and gen_sequence().
Yeah, you are right. I am going to fix this now.
Honza