[PATCH v2 3/4] libcc1: Add 'set compile-gcc'
Jeff Law
law@redhat.com
Thu Apr 23 21:57:00 GMT 2015
On 04/23/2015 02:38 PM, Jan Kratochvil wrote:
> Hi,
>
> already approved, reposting just to keep it a part of the series:
> https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01299.html
>
> As discussed in
> How to use compile & execute function in GDB
> https://sourceware.org/ml/gdb/2015-04/msg00026.html
>
> GDB currently searches for /usr/bin/ARCH-OS-gcc and chooses one but one cannot
> override which one. GDB would provide new option 'set compile-gcc'.
>
> This patch does not change the libcc1 API as it overloads the triplet_regexp
> parameter of GCC's set_arguments according to:
>
> + if (access (triplet_regexp, X_OK) == 0)
>
> GDB counterpart:
> [PATCH v2 2/2] compile: Add 'set compile-gcc'
> https://sourceware.org/ml/gdb-patches/2015-04/msg00910.html
> Message-ID: <20150423203402.23140.92757.stgit@host1.jankratochvil.net>
>
>
> Jan
>
>
> include/ChangeLog
> 2015-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gcc-interface.h (enum gcc_base_api_version): Add comment to
> GCC_FE_VERSION_1.
> (struct gcc_base_vtable): Describe triplet_regexp parameter overload
> for set_arguments.
>
> libcc1/ChangeLog
> 2015-04-21 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * libcc1.cc (libcc1_set_arguments): Implement filenames for
> triplet_regexp.
Still OK. :-)
jeff
More information about the Gcc-patches
mailing list