buglet in rtl.def comments?

Doug Evans dje@transmeta.com
Tue Dec 9 20:25:00 GMT 2003


rtl.def (cvs revision 1.75) has this:

/* Holds a label that is followed by instructions.
   Operand:
   5: is used in jump.c for the use-count of the label.
   6: is used in flow.c to point to the chain of label_ref's to this label.
   7: is a number that is unique in the entire compilation.
   8: is the user-given name of the label, if any.  */
DEF_RTL_EXPR(CODE_LABEL, "code_label", "iuuB00is", 'x')
                                        ^^^^^^^^
                                        01234567

/* Say where in the code a source line starts, for symbol table's sake.
   Operand:
   5: filename, if line number > 0, note-specific data otherwise.
   6: line number if > 0, enum note_insn otherwise.
   7: unique number if line number == note_insn_deleted_label.  */
DEF_RTL_EXPR(NOTE, "note", "iuuB0ni", 'x')
                            ^^^^^^^
                            0123456


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]



More information about the Gcc-bugs mailing list