Mercurial > hg > CbC > CbC_gcc
diff gcc/gcc-plugin.h @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
line wrap: on
line diff
--- a/gcc/gcc-plugin.h Fri Feb 12 23:41:23 2010 +0900 +++ b/gcc/gcc-plugin.h Mon May 24 12:47:05 2010 +0900 @@ -1,5 +1,5 @@ /* Public header file for plugins to include. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -96,10 +96,16 @@ 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. @@ -135,4 +141,10 @@ extern int unregister_callback (const char *plugin_name, int event); + +/* Retrieve the plugin directory name, as returned by the + -fprint-file-name=plugin argument to the gcc program, which is the + -iplugindir program argument to cc1. */ +extern const char* default_plugin_dir_name (void); + #endif /* GCC_PLUGIN_H */