summaryrefslogtreecommitdiff
path: root/libcc1
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-04 15:26:58 -0600
committerTom Tromey <tom@tromey.com>2021-05-05 00:06:18 -0600
commitb65c0bcbe13b2b56a1e84856856548f2a29ada7e (patch)
treea8fa4efcb29c4fe66f272aa8f8d592c432bda52b /libcc1
parent1a51cb299070920280d4d38c6a59788c0c621658 (diff)
libcc1: use GCC_FE_VERSION_1 in C++ plugin
The C++ plugin defaults to version 0 of the base compiler API. However, this is a mistake -- version 1 was introduced before the C++ API was even implemented. This switches the default to version 1. Note that the compiler-side plugin will accept this version, so it should remain compatible. libcc1 * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
Diffstat (limited to 'libcc1')
-rw-r--r--libcc1/libcp1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcc1/libcp1.cc b/libcc1/libcp1.cc
index 6fb9fb4c9a6..65e9770205c 100644
--- a/libcc1/libcp1.cc
+++ b/libcc1/libcp1.cc
@@ -391,7 +391,7 @@ libcp1_destroy (struct gcc_base_context *s)
static const struct gcc_base_vtable vtable =
{
- GCC_FE_VERSION_0,
+ GCC_FE_VERSION_1,
libcp1_set_arguments_v0,
libcp1_set_source_file,
libcp1_set_print_callback,