C++ PATCH to kill cxx_print_statistics

Jason Merrill jason@redhat.com
Thu Feb 1 14:21:00 GMT 2018


On Thu, Feb 1, 2018 at 7:25 AM, Nathan Sidwell <nathan@acm.org> wrote:
> On 02/01/2018 06:51 AM, Marek Polacek wrote:
>>
>> Does any of you use print_class_statistics?
>>
>> It seems most of these variables were set-but-unused even in gcc-2.95 (!).  So
>> I think we can safely 86 all of this.  Or is the "n_vtables" info interesting
>> in any way?
>>
>> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>>
>> 2018-02-01  Marek Polacek  <polacek@redhat.com>
>>
>>         * class.c: Remove unused global variables.
>>                 (build_primary_vtable): Don't gather statistics.
>>         (print_class_statistics): Remove.
>>         * cp-tree.h (print_class_statistics): Remove.
>>         * tree.c (cxx_print_statistics): Don't call
>> print_class_statistics.
>
> I find no use for it.

I've never used it.

Jason



More information about the Gcc-patches mailing list