diff options
author | Rafael Avila de Espindola <espindola@google.com> | 2009-04-17 16:03:48 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2009-04-17 16:03:48 +0000 |
commit | cf8aba7f5a071a5cb7dad4c91dd77b602861797e (patch) | |
tree | 8816dc843909a798c6868ae53bf87d630cf35e28 /gcc/plugin-version.c | |
parent | 61e20b90d9ae993af2c3c2f34198432eeafbfb65 (diff) | |
download | gcc-cf8aba7f5a071a5cb7dad4c91dd77b602861797e.zip gcc-cf8aba7f5a071a5cb7dad4c91dd77b602861797e.tar.gz gcc-cf8aba7f5a071a5cb7dad4c91dd77b602861797e.tar.bz2 |
Makefile.in (REVISION_s): Always include quotes.
2009-04-17 Rafael Avila de Espindola <espindola@google.com>
* Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
REVISION_c.
(OBJS-common): Add plugin-version.o.
(plugin-version.o): New.
* gcc-plugin.h (plugin_gcc_version): New.
(plugin_default_version_check): New.
(plugin_init_func, plugin_init): Add version argument.
* plugin-version.c: New.
* plugin.c (str_plugin_gcc_version_name): New.
(try_init_one_plugin): Read plugin_gcc_version from the plugin and
pass it to the init function.
(plugin_default_version_check): New.
From-SVN: r146274
Diffstat (limited to 'gcc/plugin-version.c')
-rw-r--r-- | gcc/plugin-version.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gcc/plugin-version.c b/gcc/plugin-version.c new file mode 100644 index 0000000..b6f35a9 --- /dev/null +++ b/gcc/plugin-version.c @@ -0,0 +1,36 @@ +/* Version information for plugins. + Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 3, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +<http://www.gnu.org/licenses/>. */ + +#include "system.h" +#include "gcc-plugin.h" +#include "configargs.h" + +static char basever[] = BASEVER; +static char datestamp[] = DATESTAMP; +static char devphase[] = DEVPHASE; +static char revision[] = REVISION; + +/* FIXME plugins: We should make the version information more precise. + One way to do is to add a checksum. */ + +struct plugin_gcc_version plugin_gcc_version = {basever, datestamp, devphase, + revision, + configuration_arguments}; |