Support lower and upper limit for -fdbg-cnt flag.
authorMartin Liska <mliska@suse.cz>
Fri, 18 May 2018 08:42:15 +0000 (10:42 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 18 May 2018 08:42:15 +0000 (08:42 +0000)
commitcdc3b88343e3a306c37ddec9f6b546d412c6f3f8
tree71e9d09ab096be24e9f12e5dbbde3ec6630083c8
parentc566cc9f7847785bc709daaa3301649f2f03aef9
Support lower and upper limit for -fdbg-cnt flag.

2018-05-18  Martin Liska  <mliska@suse.cz>

* dbgcnt.c (limit_low): Renamed from limit.
(limit_high): New variable.
(dbg_cnt_is_enabled): Check for upper limit.
(dbg_cnt): Adjust dumping.
(dbg_cnt_set_limit_by_index): Add new argument for high
value.
(dbg_cnt_set_limit_by_name): Likewise.
(dbg_cnt_process_single_pair): Parse new format.
(dbg_cnt_process_opt): Use strtok.
(dbg_cnt_list_all_counters): Remove 'value' and add
'limit_high'.
* doc/invoke.texi: Document changes.
2018-05-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/ipa/ipa-icf-39.c: New test.
* gcc.dg/pr68766.c: Adjust pruned output.

From-SVN: r260349
gcc/ChangeLog
gcc/common.opt
gcc/dbgcnt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-icf-39.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr68766.c