mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-15 13:00:09 +08:00
libcc1 base API version bump
for include/ChangeLog * gcc-interface.h (enum gcc_base_api_version): Add GCC_FE_VERSION_1. for libcc1/ChangeLog * libcc1.cc (vtable): Update to GCC_FE_VERSION_1. (gcc_c_fe_context): Accept also GCC_FE_VERSION_1. From-SVN: r245047
This commit is contained in:
parent
fe31d6efd7
commit
023721aab1
@ -1,3 +1,8 @@
|
|||||||
|
2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* gcc-interface.h (enum gcc_base_api_version): Add
|
||||||
|
GCC_FE_VERSION_1.
|
||||||
|
|
||||||
2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
|
2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
|
||||||
Martin Jambor <mjambor@suse.cz>
|
Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
|
@ -44,7 +44,8 @@ struct gcc_base_context;
|
|||||||
|
|
||||||
enum gcc_base_api_version
|
enum gcc_base_api_version
|
||||||
{
|
{
|
||||||
GCC_FE_VERSION_0 = 0
|
GCC_FE_VERSION_0 = 0,
|
||||||
|
GCC_FE_VERSION_1 = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* The operations defined by the GCC base API. This is the vtable for
|
/* The operations defined by the GCC base API. This is the vtable for
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
* libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
|
||||||
|
(gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
|
||||||
|
|
||||||
2017-01-17 Jakub Jelinek <jakub@redhat.com>
|
2017-01-17 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR other/79046
|
PR other/79046
|
||||||
|
@ -504,7 +504,7 @@ libcc1_destroy (struct gcc_base_context *s)
|
|||||||
|
|
||||||
static const struct gcc_base_vtable vtable =
|
static const struct gcc_base_vtable vtable =
|
||||||
{
|
{
|
||||||
GCC_FE_VERSION_0,
|
GCC_FE_VERSION_1,
|
||||||
libcc1_set_arguments,
|
libcc1_set_arguments,
|
||||||
libcc1_set_source_file,
|
libcc1_set_source_file,
|
||||||
libcc1_set_print_callback,
|
libcc1_set_print_callback,
|
||||||
@ -523,7 +523,8 @@ struct gcc_c_context *
|
|||||||
gcc_c_fe_context (enum gcc_base_api_version base_version,
|
gcc_c_fe_context (enum gcc_base_api_version base_version,
|
||||||
enum gcc_c_api_version c_version)
|
enum gcc_c_api_version c_version)
|
||||||
{
|
{
|
||||||
if (base_version != GCC_FE_VERSION_0 || c_version != GCC_C_FE_VERSION_0)
|
if ((base_version != GCC_FE_VERSION_0 && base_version != GCC_FE_VERSION_1)
|
||||||
|
|| c_version != GCC_C_FE_VERSION_0)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return new libcc1 (&vtable, &c_vtable);
|
return new libcc1 (&vtable, &c_vtable);
|
||||||
|
Loading…
Reference in New Issue
Block a user