PATCH TRUNK: [gcc/configure.ac] Generate GCCPLUGIN_VERSION_* macros

Basile Starynkevitch basile@starynkevitch.net
Wed Jul 6 14:49:00 GMT 2011


On Wed, Jul 06, 2011 at 04:02:48PM +0200, Richard Guenther wrote:
> On Wed, Jul 6, 2011 at 3:46 PM, Basile Starynkevitch
> <basile@starynkevitch.net> wrote:
> > On Wed, Jul 06, 2011 at 03:21:47PM +0200, Richard Guenther wrote:
> >> On Wed, Jul 6, 2011 at 2:50 PM, Basile Starynkevitch
> >> <basile@starynkevitch.net> wrote:
> >> >
> >> > I beleive it can help to make plugin code more robust.
> 
> I'm not sure using cut is portable enough - for bversion.h generation
> we use sed instead (see Makefile.in), so I suppose copying that
> would be better.
> 
> I can't approve the configury changes but the change itself looks
> reasonable to me

I am attaching an improved patch to trunk rev 175920

#### gcc/ChangeLog entry #####

2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>

	* configure.ac (plugin-version.h): Generate
	GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
	GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
	macros.

	* configure: Regenerate.

	* doc/plugins.texi (Building GCC plugins): Mention
	GCCPLUGIN_VERSION ... constant macros in plugin-version.h.

#### end of gcc/ChangeLog entry #####

Ok for trunk?

Cheers.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gccplugin_rev_configure_r175920.diff
Type: text/x-diff
Size: 2884 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110706/0032050b/attachment.bin>


More information about the Gcc-patches mailing list