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

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