@@ -1,3 +1,9 @@
+2024-02-26 Tom Tromey <tom@tromey.com>
+
+ * libcp1.cc (libcp1::libcp1): Use FE version number from context.
+ * libcc1.cc (libcc1::libcc1): Use FE version number from context.
+ (c_vtable): Use GCC_C_FE_VERSION_1.
+
2024-02-26 Tom Tromey <tom@tromey.com>
* libcc1plugin.cc (safe_lookup_builtin_type): Handle ERROR_MARK.
@@ -54,7 +54,7 @@ struct libcc1 : public cc1_plugin::base_gdb_plugin<gcc_c_context>
libcc1::libcc1 (const gcc_c_fe_vtable *cv)
: cc1_plugin::base_gdb_plugin<gcc_c_context> ("libcc1plugin",
C_COMPILER_NAME,
- GCC_C_FE_VERSION_1)
+ cv->c_version)
{
c_ops = cv;
}
@@ -108,7 +108,7 @@ set_callbacks (struct gcc_c_context *s,
static const struct gcc_c_fe_vtable c_vtable =
{
- GCC_C_FE_VERSION_0,
+ GCC_C_FE_VERSION_1,
set_callbacks,
#define GCC_METHOD0(R, N) \
@@ -55,7 +55,7 @@ struct libcp1 : public cc1_plugin::base_gdb_plugin<gcc_cp_context>
libcp1::libcp1 (const gcc_cp_fe_vtable *cv)
: cc1_plugin::base_gdb_plugin<gcc_cp_context> ("libcp1plugin",
CP_COMPILER_NAME,
- GCC_CP_FE_VERSION_0)
+ cv->cp_version)
{
cp_ops = cv;
}