This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: unconditionally define _initialize_string_view_selftests
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Sergei Trofimovich <slyfox at gentoo dot org>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Sun, 17 Mar 2019 23:55:23 -0400
- Subject: Re: [PATCH] gdb: unconditionally define _initialize_string_view_selftests
- References: <20190314222828.28798-1-slyfox@gentoo.org> <87ftrob4ha.fsf@tromey.com> <20190317222004.0afa508d@sf>
On Sunday, March 17 2019, Sergei Trofimovich wrote:
> On Fri, 15 Mar 2019 08:24:17 -0600
> Tom Tromey <tom@tromey.com> wrote:
>
>> >>>>> "Sergei" == Sergei Trofimovich <slyfox@gentoo.org> writes:
>>
>> Sergei> The build failure was noticed by Helmut Jarausch in
>> Sergei> https://bugs.gentoo.org/680232:
>> Sergei> $ ./configure CXXFLAGS='-std=c++17 -Os'
>> Sergei> ...
>> Sergei> CXXLD gdb
>> Sergei> ld: init.o: in function `initialize_all_files()':
>> Sergei> init.c:(.text+0x113): undefined reference to `_initialize_string_view_selftests()'
>>
>> Sergei> It happens because '_initialize_string_view_selftests()' is
>> Sergei> conditionally defined based on C++ default.
>>
>> Sergei> The change defines '_initialize_string_view_selftests()'
>> Sergei> unconditionally and leaves implementation a no-op on c++17
>> Sergei> compilers.
>>
>> Thank you. This is OK with a ChangeLog entry.
>> Let me know if you need me to check it in for you.
>
> Thank you for the quick review! Yes, I need someone to check the
> change in for me. Should I indicate it the patch email next time?
Either that, or you can request commit access to the repository here:
https://sourceware.org/cgi-bin/pdw/ps_form.cgi
I'm not a global maintainer, but I believe Tom wouldn't mind if you put
him as the person who approved the request.
Thanks,
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/