Add revision number to gcc version?
H. J. Lu
hjl@lucon.org
Fri Dec 16 08:36:00 GMT 2005
On Fri, Dec 16, 2005 at 03:58:05PM +1100, Ben Elliston wrote:
> > I like this, but what if you also did an svn status to see if there
> > were any modifications WRT the branch/revision and then add either
> > 'clean' or 'modified' to the information.
>
> I think this is a good idea (and don't mind the idea of `svn status'
> being run from gcc_update to do so), but I wonder if it's necessary to
> continue to include the date in the version.c file?
>
> I presume the main reason that the date was placed in version.c in the
> first place was that we had no other way to place an overall
> identifier on the tree revision with CVS. However, SVN now gives us
> one. Including the date now just makes the version string unwieldly,
> IMHO.
In my patch, gcc/REVISION is created by gcc_update. If you don't use
gcc_update, gcc/REVISION may not be there.
In any case, when we agree on what to put in gcc/REVISION, I can
provide a new patch.
H.J.
More information about the Gcc
mailing list