aboutsummaryrefslogtreecommitdiff
path: root/gcc/objcp/objcp-lang.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objcp/objcp-lang.cc')
-rw-r--r--gcc/objcp/objcp-lang.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/objcp/objcp-lang.cc b/gcc/objcp/objcp-lang.cc
index ee39aec..8a2c9f7 100644
--- a/gcc/objcp/objcp-lang.cc
+++ b/gcc/objcp/objcp-lang.cc
@@ -85,6 +85,16 @@ objcp_tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl)
#undef RECURSE
}
+/* Implement c-family hook to add language-specific features
+ for __has_{feature,extension}. */
+
+void
+c_family_register_lang_features ()
+{
+ objc_common_register_features ();
+ cp_register_features ();
+}
+
static void
objcxx_init_ts (void)
{