summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/version.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 02:14:13 +0000
committerkan <kan@FreeBSD.org>2007-05-19 02:14:13 +0000
commit0de094c1fc61408d4d76e385110f4ec67a2644f5 (patch)
tree0ad2982d8fcd05052d04a43b51103eb90e00d361 /contrib/gcc/version.c
parentcadd557b2c028e9d17846ceb76b7abe3b967db5d (diff)
downloadFreeBSD-src-0de094c1fc61408d4d76e385110f4ec67a2644f5.zip
FreeBSD-src-0de094c1fc61408d4d76e385110f4ec67a2644f5.tar.gz
Add FreeBSD suffix to GCC version string.
Diffstat (limited to 'contrib/gcc/version.c')
-rw-r--r--contrib/gcc/version.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/contrib/gcc/version.c b/contrib/gcc/version.c
index 229cf62..0da50b1 100644
--- a/contrib/gcc/version.c
+++ b/contrib/gcc/version.c
@@ -1,12 +1,15 @@
/* $FreeBSD$ */
#include "version.h"
-/* This is the string reported as the version number by all components
- of the compiler. If you distribute a modified version of GCC,
- please modify this string to indicate that, e.g. by putting your
- organization's name in parentheses at the end of the string. */
+/* This is the trailing component of the string reported as the
+ version number by all components of the compiler. For an official
+ FSF release, it is empty. If you distribute a modified version of
+ GCC, please change this string to indicate that. The suggested
+ format is a leading space, followed by your organization's name
+ in parentheses. You may also wish to include a number indicating
+ the revision of your modified compiler. */
-const char version_string[] = "3.4.6 [FreeBSD] 20060825";
+#define VERSUFFIX " [FreeBSD]"
/* This is the location of the online document giving instructions for
reporting bugs. If you distribute a modified version of GCC,
@@ -16,3 +19,8 @@ const char version_string[] = "3.4.6 [FreeBSD] 20060825";
not bugs in your modifications.) */
const char bug_report_url[] = "<URL:http://gcc.gnu.org/bugs.html>";
+
+/* The complete version string, assembled from several pieces.
+ BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */
+
+const char version_string[] = BASEVER DATESTAMP DEVPHASE VERSUFFIX;
OpenPOWER on IntegriCloud