This is the mail archive of the gcc-bugs@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: buglet in rtl.def comments?


Doug Evans wrote:
As I understand it, the numbering of the operands in CODE_LABEL
and NOTE are off by one.
[or maybe there's a real problem but that seems unlikely]

This comes from a patch by Richard Henderson.
http://gcc.gnu.org/ml/gcc/2002-08/msg00884.html
There were no related changes, just the numbers were changed. So it appears to be a case where Richard didn't realize that the operand counts started at zero.


This is easy to confirm by looking at macros in the rtl.h file. LABEL_NAME is operand 7 not 8. NOTE_LINE_NUMBER is operand 5 not 6.

Since this is trivial to fix, and I don't see any patch from you, I will go ahead and write one and check it in.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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