From c022b81fb680928b3e02eafd58a3054e63486b86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 18 Feb 2000 17:19:30 +0000 Subject: [PATCH] gcc.texi (Bug Reporting): Refer to bugs.html. * gcc.texi (Bug Reporting): Refer to bugs.html. (Bug Lists): Likewise. * system.h (GCCBUGURL): New preprocessor define. (abort): Use it. * gcc.c (main): Likewise. * g77spec.c (lang_specific_driver): Use GCCBUGURL. * typeck2.c (my_friendly_abort): Use GCCBUGURL. From-SVN: r32050 --- gcc/ChangeLog | 8 ++++++++ gcc/cp/ChangeLog | 4 ++++ gcc/cp/typeck2.c | 4 ++-- gcc/f/ChangeLog | 4 ++++ gcc/f/g77spec.c | 4 ++-- gcc/gcc.c | 4 ++-- gcc/gcc.texi | 4 ++-- gcc/system.h | 9 +++++++-- 8 files changed, 31 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3276b56077ac..996ccc2c899b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +Fri Feb 18 13:32:32 2000 Martin von Loewis + + * gcc.texi (Bug Reporting): Refer to bugs.html. + (Bug Lists): Likewise. + * system.h (GCCBUGURL): New preprocessor define. + (abort): Use it. + * gcc.c (main): Likewise. + Thu Feb 3 10:53:45 2000 Richard Henderson Wed Nov 3 10:10:58 1999 Richard Henderson diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 605bafc0a52c..309d8e224ec2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-02-18 Martin von Loewis + + * typeck2.c (my_friendly_abort): Use GCCBUGURL. + 1999-11-01 Jason Merrill * decl2.c (maybe_make_one_only): Always make things comdat on diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 6322157e6245..da98203bdc0b 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -344,7 +344,7 @@ my_friendly_abort (i) else ack ("Internal compiler error %d.", i); ack ("Please submit a full bug report."); - ack ("See for instructions."); + ack ("See %s for instructions.", GCCBUGURL); } else error ("confused by earlier errors, bailing out"); @@ -359,7 +359,7 @@ my_friendly_abort (i) error ("Internal compiler error %d.", i); error ("Please submit a full bug report."); - fatal ("See for instructions."); + fatal ("See %s for instructions.", GCCBUGURL); } void diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 2e818152ca1f..bc62110d976a 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 18 13:36:50 2000 Martin von Loewis + + * g77spec.c (lang_specific_driver): Use GCCBUGURL. + Sun Oct 24 23:54:10 PDT 1999 Jeff Law (law@cygnus.com) * gcc-2.95.2 Released. diff --git a/gcc/f/g77spec.c b/gcc/f/g77spec.c index 50e773866b23..93a363cddb8b 100644 --- a/gcc/f/g77spec.c +++ b/gcc/f/g77spec.c @@ -1,5 +1,5 @@ /* Specific flags and argument handling of the Fortran front-end. - Copyright (C) 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -428,7 +428,7 @@ For more information on g77 and gcc, type the commands `info -f g77'\n\ and `info -f gcc' to read the Info documentation.\n\ \n\ For bug reporting instructions, please see:\n\ -.\n"); +%s.\n", GCCBUGURL); exit (0); break; #endif diff --git a/gcc/gcc.c b/gcc/gcc.c index ea9f6ac370cd..e570d4ba1dcd 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -4963,7 +4963,7 @@ main (argc, argv) if (! verbose_flag) { printf ("\nFor bug reporting instructions, please see:\n"); - printf (".\n"); + printf ("%s.\n", GCCBUGURL); exit (0); } @@ -5156,7 +5156,7 @@ main (argc, argv) if (print_help_list) { printf ("\nFor bug reporting instructions, please see:\n"); - printf ("\n"); + printf ("%s\n", GCCBUGURL); } exit (error_count > 0 ? (signal_count ? 2 : 1) : 0); diff --git a/gcc/gcc.texi b/gcc/gcc.texi index d2bbbb559020..8c08fa8b6d4c 100644 --- a/gcc/gcc.texi +++ b/gcc/gcc.texi @@ -2263,7 +2263,7 @@ convention, in which bug reports for tool ``foo'' are sent to @samp{bug-foo@@gnu.org}, the address @samp{bug-gcc@@gnu.org} may also be used; it will forward to the address given above. -Please read @samp{} for +Please read @samp{} for bug reporting instructions before you post a bug report. Often people think of posting bug reports to the newsgroup instead of @@ -2287,7 +2287,7 @@ Boston, MA 02111-1307, USA @cindex compiler bugs, reporting You may find additional and/or more up-to-date instructions at -@samp{}. +@samp{}. The fundamental principle of reporting bugs usefully is this: @strong{report all the facts}. If you are not sure whether to state a diff --git a/gcc/system.h b/gcc/system.h index 7d6082ccf299..1b40e6004fcd 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -22,6 +22,11 @@ Boston, MA 02111-1307, USA. */ #ifndef __GCC_SYSTEM_H__ #define __GCC_SYSTEM_H__ +/* This is the location of the online document giving information how + to report bugs. If you change this string, also check for strings + not under control of the preprocessor. */ +#define GCCBUGURL "" + /* We must include stdarg.h/varargs.h before stdio.h. */ #ifdef ANSI_PROTOTYPES #include @@ -399,8 +404,8 @@ extern void fatal PVPROTO((const char *, ...)) ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORE #else #define abort() fatal ("Internal compiler error in `%s', at %s:%d\n" \ "Please submit a full bug report.\n" \ - "See for instructions.", \ - __PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__) + "See %s for instructions.", \ + __PRETTY_FUNCTION__, trim_filename (__FILE__), __LINE__, GCCBUGURL) #endif /* recent gcc */ /* trim_filename is in toplev.c. Define a stub macro for files that -- 2.47.2