This is the mail archive of the gcc@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] |
On Thu, Jun 21, 2007 at 05:24:12PM +0200, Uros Bizjak wrote: > Hello! > > Is there a way to add automatically updated SVN revision number to gcc > version string? Something similar to $Revision$ in RCS? > > I think it would be quite informative if during development phase "gcc > --version" would report it like: > > gcc --version > gcc (GCC) 4.3.0 20070621 (experimental) Revision XXXXX > > Perhaps it can also include branch name. > See http://gcc.gnu.org/ml/gcc-testresults/2007-06/msg00966.html I got [hjl@gnu-2 applied]$ /usr/gcc-4.3/bin/gcc --version gcc (GCC) 4.3.0 20070612 (experimental) [trunk revision 125661] ... [hjl@gnu-29 result]$ /usr/gcc-4.2/bin/gcc --version gcc (GCC) 4.2.1 20070619 (prerelease) [gcc-4_2-branch revision 125849] ... I am enclosing 2 patches I have been using for more than a year. H.J.
Attachment:
gcc-update-rev-6.patch
Description: Text document
Attachment:
gcc-rev-3.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |