This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] compile: Use libcc1.so->libcc1.so.0
- From: Pedro Alves <palves at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Phil Muldoon <pmuldoon at redhat dot com>
- Date: Thu, 23 Apr 2015 13:06:53 +0100
- Subject: Re: [PATCH] compile: Use libcc1.so->libcc1.so.0
- Authentication-results: sourceware.org; auth=none
- References: <20150421213616 dot 14023 dot 38329 dot stgit at host1 dot jankratochvil dot net> <5538DA94 dot 6080704 at redhat dot com> <20150423115236 dot GB5959 at host1 dot jankratochvil dot net>
On 04/23/2015 12:52 PM, Jan Kratochvil wrote:
> On Thu, 23 Apr 2015 13:42:12 +0200, Pedro Alves wrote:
>> desired base version and desired C-specific version. If the
>> request can be satisfied, a compatible gcc_context object will be
>> ^^^^^^^^^^
>> returned. Otherwise, the function returns NULL. */
>
> OK, that may mean that GCC is allowed to return compatible GCC_FE_VERSION_1
> API even when client asked for GCC_FE_VERSION_0.
Yes, if the versions are compatible, and if the version is recorded in
a field in the returned context structure, then will even be simpler to just
return the highest version compatible, than my suggestion of having gdb
try both v1 and fallback to v0, which can be left for when we decide to make
a vN+1 that is not compatible with vN. This is just like duck typing.
> Thanks for the clarification although I do not find the comment so clear.
Thanks,
Pedro Alves