This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][plugins] Check the gcc version


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]