This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch][plugins] Check the gcc version
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Diego Novillo <dnovillo at google dot com>
- Date: Tue, 14 Apr 2009 17:51:48 +0000 (UTC)
- Subject: Re: [patch][plugins] Check the gcc version
- References: <38a0d8450904141027n7452a92egb8bf7d61edafcd21@mail.gmail.com>
On Tue, 14 Apr 2009, Rafael Espindola wrote:
> The attached patch makes it possible for a plugin to check that it has
> been complied with the same version of gcc that is now loading it. The
> current test is not very reliable, but it shouldn't be too hard to add
> a checksum if we want to.
Please at least check configuration_arguments (as in configargs.h) as
well. That covers many issues such as differences in the configured
target, or by implication HOST_WIDE_INT.
--
Joseph S. Myers
joseph@codesourcery.com