[ PATCH ] [ C++ ] [ libstdc++ ] P1208r6 Merge source_location

Jonathan Wakely jwakely@redhat.com
Thu Dec 3 19:25:40 GMT 2020


On 02/01/20 17:20 -0500, JeanHeyd Meneide wrote:
>On Thu, Jan 2, 2020 at 5:07 PM Jakub Jelinek <jakub@redhat.com> wrote:
>>
>> On Thu, Jan 02, 2020 at 04:57:01PM -0500, JeanHeyd Meneide wrote:
>> > +#if defined(_GLIBCXX_HAVE_BUILTIN_SOURCE_LOCATION)
>> > +# define __cpp_lib_source_location 201907L
>> > +#elif defined(_GLIBCXX_HAVE_BUILTIN_LINE) && defined(_GLIBCXX_HAVE_BUILTIN_COLUMN)
>> > +# define __cpp_lib_is_constant_evaluated 201907L
>>
>> How is __cpp_lib_is_constant_evaluated related to presence of __builtin_LINE
>> and __builtin_COLUMN?
>
>Oops. Sorry; fat-fingered the diff a little!

I've committed a slightly reworked version of JeanHeyd's
<source_location> patch (see attached). Jakub has improved the
built-in so all the commented out tests work now. There's one more
compiler patch coming to use __PRETTY_FUNCTION__ for the function
name, so I'll tweak the new tests after than has gone in.

Tested powerpc64le-linux, committed to trunk.

Thanks, JeanHeyd!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 20089 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20201203/f3a4bbd3/attachment-0001.bin>


More information about the Libstdc++ mailing list