Patch to gccbug

Joseph S. Myers jsm28@cam.ac.uk
Sat Oct 28 14:26:00 GMT 2000


This patch improves gccbug by including the full version (rather than
just "2.97") in PRs and disallowing confidential PRs.

Bootstrapped with no regressions on i686-pc-linux-gnu; this modified
gccbug tested to work.  OK to commit?

2000-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>

	* configure.in: Determine and substitute gcc_version_full.
	* configure: Regenerate.
	* gccbug.in: Use it to give full version.  Don't allow
	confidential PRs.

--- configure.in.orig	Fri Oct 27 21:41:17 2000
+++ configure.in	Sat Oct 28 18:33:46 2000
@@ -4174,7 +4174,8 @@
 	gcc_version_trigger=${srcdir}/version.c
 fi
 changequote(,)dnl
-gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
+gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
+gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
 changequote([,])dnl

 # Internationalization
@@ -5147,6 +5148,7 @@
 AC_SUBST(float_h_file)
 AC_SUBST(gcc_gxx_include_dir)
 AC_SUBST(gcc_version)
+AC_SUBST(gcc_version_full)
 AC_SUBST(gcc_version_trigger)
 AC_SUBST(host_exeext)
 AC_SUBST(host_extra_gcc_objs)
@@ -5260,6 +5262,7 @@
 tmake_file='${tmake_file}'
 thread_file='${thread_file}'
 gcc_version='${gcc_version}'
+gcc_version_full='${gcc_version_full}'
 gcc_version_trigger='${gcc_version_trigger}'
 local_prefix='${local_prefix}'
 build_install_headers_dir='${build_install_headers_dir}'
--- gccbug.in.orig	Tue Apr  4 22:54:44 2000
+++ gccbug.in	Sat Oct 28 18:33:02 2000
@@ -30,7 +30,7 @@
 GNATS_ADDR=gcc-gnats@gcc.gnu.org

 # The default release for this host.
-DEFAULT_RELEASE="@gcc_version@"
+DEFAULT_RELEASE="@gcc_version_full@"

 # The default organization.
 DEFAULT_ORGANIZATION=
@@ -199,7 +199,6 @@

 ORIGINATOR_C='<name of the PR author (one line)>'
 ORGANIZATION_C='<organization of PR author (multiple lines)>'
-CONFIDENTIAL_C='<[ yes | no ] (one line)>'
 SYNOPSIS_C='<synopsis of the problem (one line)>'
 if [ -z "$SEVERITY_C" ]; then
   SEVERITY_C='<[ non-critical | serious | critical ] (one line)>'
@@ -290,7 +289,8 @@
 >Submitter-Id:	$SUBMITTER
 >Originator:	$ORIGINATOR
 >Organization:	${ORGANIZATION-$ORGANIZATION_C}
->Confidential:	$CONFIDENTIAL_C
+>Confidential:	no
+SEND-PR: Leave "Confidential" as "no"; all GCC PRs are public.
 >Synopsis:	$SYNOPSIS_C
 >Severity:	$SEVERITY_C
 SEND-PR: critical     GCC is completely not operational; no work-around known.
@@ -380,7 +380,7 @@
   PATTERN=">Confidential:"
   CONFIDENTIAL=`eval sed -n -e "\"$SED_CMD\"" $TEMP`
   case "$CONFIDENTIAL" in
-    ""|yes|no) CNT=`expr $CNT + 1` ;;
+    no) CNT=`expr $CNT + 1` ;;
     *) echo "$COMMAND: \`$CONFIDENTIAL' is not a valid value for \`Confidential'." ;;
   esac
   #

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list