aboutsummaryrefslogtreecommitdiff
path: root/gcc/gccbug.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gccbug.in')
-rwxr-xr-xgcc/gccbug.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/gccbug.in b/gcc/gccbug.in
index 965d507..3b8b83d 100755
--- a/gcc/gccbug.in
+++ b/gcc/gccbug.in
@@ -31,7 +31,11 @@ SUBMITTER=net
GNATS_ADDR=gcc-gnats@gcc.gnu.org
# The default release for this host.
-DEFAULT_RELEASE="@gcc_version_full@"
+# We have to guess at what program_transform_name might have done.
+# "sed 1q" because neither "head -1" nor "head -n 1" is universal, argh.
+
+DEFAULT_GCC="`echo $0 | sed -e 's/bug//'`"
+DEFAULT_RELEASE="`$DEFAULT_GCC --version | sed 1q`"
# The default organization.
DEFAULT_ORGANIZATION=