This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH to build1 for c/12553
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: hainque at act-europe dot fr
- Cc: gcc-patches at gcc dot gnu dot org, jason at redhat dot com
- Date: Tue, 21 Oct 03 08:27:34 EDT
- Subject: Re: PATCH to build1 for c/12553
+ 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.