C++ and gather-detailed-mem-stats

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Aug 15 15:56:00 GMT 2012

On Wed, Aug 15, 2012 at 7:52 AM, Richard Guenther <rguenther@suse.de> wrote:
> On Wed, 15 Aug 2012, Michael Matz wrote:
>> Hi,
>> On Wed, 15 Aug 2012, Richard Guenther wrote:
>> > Prototype below - fire away on bikeshedding names.
>> Make it mirror the preprocessor names that people are used to, and do away
>> with the _loc_: __builtin_FILE, __builtin_FUNCTION, __builtin_LINE.
> Hm, well.  The following includes documentation and the old new names,
> __builtin_file_location, etc.

This looks good too me.

A few points to consider:
    * relation of __builtin_function_location to C99 (and C++11) __func__

    * Do we want to update libcpp to systematically expand __FILE__ to
      __builtin_file_location, etc?

It general, it might be good to avoid too many ways of spelling the same

> I'll wait a bit to settle on the name issue ;)

I am not going there :-)

-- Gaby

More information about the Gcc mailing list