]> git.ipfire.org Git - thirdparty/gcc.git/commit
Annotate dbg_line_numbers table
authorRichard Biener <rguenther@suse.de>
Wed, 15 Jan 2025 10:25:25 +0000 (11:25 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 15 Jan 2025 11:52:03 +0000 (12:52 +0100)
commitbea593f115bccffcb2570fc9cd642403193265d9
tree8467fac0e995f8b02ba64de29cd2ecc28dfde0b1
parent120a37008222bf6fe17658af3d1ba1b384642905
Annotate dbg_line_numbers table

The following adds /* <num> */ to dbg_line_numbers so there's the chance
to more easily lookup the ID of the match.pd line number used for
dumping when you want to debug a speicific replacement.  It also cuts
the lines down to 10 entries.

  static int dbg_line_numbers[1267] = {
        /* 0 */ 161, 164, 173, 175, 178, 181, 183, 189, 197, 195,
        /* 10 */ 199, 201, 205, 923, 921, 2060, 2071, 2052, 2058, 2063,
...

* genmatch.cc (define_dump_logs): Make reverse lookup in
dbg_line_numbers easier by adding comments with start index
and cutting number of elements per line to 10.
gcc/genmatch.cc