On Mon, Nov 18, 2019 at 11:34 AM Martin Liška <mli...@suse.cz> wrote: > > Hi. > > The patch fixes missing diagnostics for situations like: > > $ gcc -fdbg-cnt=match123:1 ... > > and I see it beneficial to support foo:0 in order to no allow > any execution of dbg_cnt(foo). It's handy for passes that are not so > easy to disable. > > Ready for trunk?
OK. > Thanks, > Martin > > gcc/ChangeLog: > > 2019-11-18 Martin Liska <mli...@suse.cz> > > * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error > message for an unknown counter. > (dbg_cnt_process_single_pair): Support 0 as minimum value. > (dbg_cnt_process_opt): Remove unreachable code. > --- > gcc/dbgcnt.c | 18 +++++++----------- > 1 file changed, 7 insertions(+), 11 deletions(-) > >