]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc-plugin.h (plugin_init): Use "C" likage for c++.
authorJoern Rennecke <amylaar@spamcop.net>
Fri, 22 Jan 2010 21:01:49 +0000 (21:01 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 22 Jan 2010 21:01:49 +0000 (21:01 +0000)
From-SVN: r156179

gcc/ChangeLog
gcc/gcc-plugin.h

index 5c375309f8c5e8703dc17b44045c4fc0071689f6..746e7705bbdd3e1bd82b09c3674caf7be6eb6873 100644 (file)
@@ -14,6 +14,8 @@
 
        * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
 
+       * gcc-plugin.h (plugin_init): Use "C" likage for c++.
+
 2010-01-21  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/42585
index ec12265417de92897a0f16371eac9d0e81141b74..cbcd554ec6cff0d8c3c751de19aa756e31c590c1 100644 (file)
@@ -96,10 +96,16 @@ extern bool plugin_default_version_check (struct plugin_gcc_version *,
 typedef int (*plugin_init_func) (struct plugin_name_args *plugin_info,
                                  struct plugin_gcc_version *version);
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 /* Declaration for "plugin_init" function so that it doesn't need to be
    duplicated in every plugin.  */
 extern int plugin_init (struct plugin_name_args *plugin_info,
                         struct plugin_gcc_version *version);
+#ifdef __cplusplus
+}
+#endif
 
 /* Function type for a plugin callback routine.