aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2017-01-31 00:58:47 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2017-01-31 00:58:47 +0000
commit023721aab10f963e82eee27d732d2397c44af1de (patch)
tree28d62acca1daac8b19283f49afc7db58a33e47fb
parentfe31d6efd7ec33043ed6bb2e9e55253940861e12 (diff)
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
-rw-r--r--include/ChangeLog5
-rw-r--r--include/gcc-interface.h3
-rw-r--r--libcc1/ChangeLog5
-rw-r--r--libcc1/libcc1.cc5
4 files changed, 15 insertions, 3 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 54cccc0e5e5..75a9a599df5 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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>
Martin Jambor <mjambor@suse.cz>
diff --git a/include/gcc-interface.h b/include/gcc-interface.h
index d4c4ec69978..4c712d34130 100644
--- a/include/gcc-interface.h
+++ b/include/gcc-interface.h
@@ -44,7 +44,8 @@ struct gcc_base_context;
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
diff --git a/libcc1/ChangeLog b/libcc1/ChangeLog
index 47cc2883f9a..e899df37e3a 100644
--- a/libcc1/ChangeLog
+++ b/libcc1/ChangeLog
@@ -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>
PR other/79046
diff --git a/libcc1/libcc1.cc b/libcc1/libcc1.cc
index 6b7d1398401..7d339d21aff 100644
--- a/libcc1/libcc1.cc
+++ b/libcc1/libcc1.cc
@@ -504,7 +504,7 @@ libcc1_destroy (struct gcc_base_context *s)
static const struct gcc_base_vtable vtable =
{
- GCC_FE_VERSION_0,
+ GCC_FE_VERSION_1,
libcc1_set_arguments,
libcc1_set_source_file,
libcc1_set_print_callback,
@@ -523,7 +523,8 @@ struct gcc_c_context *
gcc_c_fe_context (enum gcc_base_api_version base_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 new libcc1 (&vtable, &c_vtable);