aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline-transform.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2020-01-10 20:14:31 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2020-01-10 20:14:31 +0000
commit83f604e70683b5356bd1bc330a98a34981aad8f4 (patch)
tree9343ba6eddf8566aaf230ae6c527f3e138b3ca07 /gcc/ipa-inline-transform.c
parent60257913f864a5b9f70fbd45ff267cb703075497 (diff)
downloadgcc-83f604e70683b5356bd1bc330a98a34981aad8f4.zip
gcc-83f604e70683b5356bd1bc330a98a34981aad8f4.tar.gz
gcc-83f604e70683b5356bd1bc330a98a34981aad8f4.tar.bz2
testsuite: add dg-enable-nn-line-numbers
This patch adds support for obscuring the line numbers printed in the left-hand margin when printing the source code, converting them to "NN", e.g from: 7111 | if (!(flags & 0x0001)) { | ^ | | | (1) following 'true' branch... 7112 | to: NN | if (!(flags & 0x0001)) { | ^ | | | (1) following 'true' branch... NN | This is useful in followup patches e.g. when testing how interprocedural paths are printed using multiline.exp, to avoid depending on precise line numbers. gcc/testsuite/ChangeLog: * lib/gcc-dg.exp (cleanup-after-saved-dg-test): Reset global nn_line_numbers_enabled. * lib/multiline.exp (nn_line_numbers_enabled): New global. (dg-enable-nn-line-numbers): New proc. (maybe-handle-nn-line-numbers): New proc. * lib/prune.exp (prune_gcc_output): Call maybe-handle-nn-line-numbers. From-SVN: r280134
Diffstat (limited to 'gcc/ipa-inline-transform.c')
0 files changed, 0 insertions, 0 deletions