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]
Other format: [Raw text]

Re: PATCH to build1 for c/12553


Richard Kenner wrote:
>     +                 int i = first_rtl_op (TREE_CODE (node));
>     +                 for (; i >= 0; --i)
> 
>     Isn't there a problem if "node" has only tree operands here, because
>     "i" starts as the number of operands in that case ?
> 
> Actually, there's a problem in *all* cases: this is an off-by-one error.
> It should be first_rtl_op (...) - 1.  Making that change is pre-approved.

 Ah, indeed. I overlooked the underlying intent. Thanks.





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