diff options
author | Andrzej Turko <andrzej.turko@gmail.com> | 2023-08-07 11:59:01 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-08-08 15:30:45 +0200 |
commit | d9dc70cc65becca95a5f2e43bf8bd2d452b5796f (patch) | |
tree | a7bca909f6a75fcedd3cc8d6b7e46d42ec866322 /gcc/tree-vectorizer.h | |
parent | e6b616c076d4500266d0b2ca185f07a616d552fe (diff) | |
download | gcc-d9dc70cc65becca95a5f2e43bf8bd2d452b5796f.zip gcc-d9dc70cc65becca95a5f2e43bf8bd2d452b5796f.tar.gz gcc-d9dc70cc65becca95a5f2e43bf8bd2d452b5796f.tar.bz2 |
genmatch: Log line numbers indirectly
Currently fprintf calls logging to a dump file take line numbers
in the match.pd file directly as arguments.
When match.pd is edited, referenced code changes line numbers,
which causes changes to many fprintf calls and, thus, to many
(usually all) .cc files generated by genmatch. This forces make
to (unnecessarily) rebuild many .o files.
This change replaces those logging fprintf calls with calls to
a dedicated logging function. Because it reads the line numbers
from the lookup table, it is enough to pass a corresponding index.
Thanks to this, when match.pd changes, it is enough to rebuild
the file containing the lookup table and, of course, those
actually affected by the change.
Signed-off-by: Andrzej Turko <andrzej.turko@gmail.com>
gcc/ChangeLog:
* genmatch.cc: Log line numbers indirectly.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions