Move bug report string to one place.
authorAlan Modra <amodra@gmail.com>
Mon, 3 Apr 2000 14:10:05 +0000 (14:10 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 3 Apr 2000 14:10:05 +0000 (14:10 +0000)
24 files changed:
binutils/ChangeLog
binutils/addr2line.c
binutils/ar.c
binutils/bucomm.h
binutils/nlmconv.c
binutils/nm.c
binutils/objcopy.c
binutils/objdump.c
binutils/readelf.c
binutils/strings.c
binutils/windres.c
gas/ChangeLog
gas/as.c
gas/as.h
gas/config/tc-sparc.c
gas/gasp.c
gprof/ChangeLog
gprof/gprof.c
gprof/gprof.h
include/ChangeLog
include/bin-bugs.h [new file with mode: 0644]
ld/ChangeLog
ld/ld.h
ld/lexsup.c

index f89a4e8c5e90fc3cafb2148f1684ea3d71a23bba..27720da4c652bcd8e970040e8c3558debc2d45cc 100644 (file)
@@ -1,3 +1,21 @@
+2000-04-03  Alan Modra  <alan@linuxcare.com.au>
+
+       * bucomm.h: #include "bin-bugs.h"
+       * addr2line.c (usage): Use REPORT_BUGS_TO.
+       * ar.c (usage): Likewise.
+       * nlmconv.c (show_usage): Likewise.
+       * nm.c (usage): Likewise.
+       (OPTION_TARGET): Define.
+       (long_options): Use OPTION_TARGET rather than 200.
+       (main): Likewise.
+
+       * objcopy.c (copy_usage): Likewise.
+       (strip_usage): Likewise.
+       * objdump.c (usage): Likewise.
+       * readelf.c (usage): Likewise.
+       * strings.c (usage): Likewise.
+       * windres.c (usage): Likewise.
+
 2000-03-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
        * readelf.c: Include sys/types.h before sys/stat.h for ultrix.
@@ -7,7 +25,7 @@
        * rddbg.c (read_section_stabs_debugging_info): Catch out of range
        string offsets in corrupt stabs entries.
 
-2000-03-27  Alan Modra  <alan@linuxcare.com>
+2000-03-27  Alan Modra  <alan@linuxcare.com.au>
 
        * readelf.c: Include elf/avr.h
        (dump_relocations): Add EM_AVR case.
index 72707c20bbb6cc871e293e8ab63311112f81687e..d72207b4e678441a97da30c61995976f0b561fd4 100644 (file)
@@ -80,7 +80,7 @@ Usage: %s [-CfsHV] [-b bfdname] [--target=bfdname]\n\
           program_name);
   list_supported_targets (program_name, stream);
   if (status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (status);
 }
 \f
index ad9e59d347e0317e8331d2498e5fdd39e19ab258..728185eea8784c33df8deedc207c2bba0bda778a 100644 (file)
@@ -283,7 +283,7 @@ usage (help)
   list_supported_targets (program_name, stderr);
 
   if (help)
-    fprintf (s, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (s, REPORT_BUGS_TO);
 
   xexit (help ? 0 : 1);
 }
index 36e6a7959e6b3d0d606fcbbf1df393465d75bd40..f211473980105f8d38fd2c1d27ea3d4b4bef3c39 100644 (file)
@@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <sys/types.h>
 
 #include "config.h"
+#include "bin-bugs.h"
 
 #ifdef USE_BINARY_FOPEN
 #include "fopen-bin.h"
index f1c8b6c268aaa3c5491d353fb0bcb703c247f75f..93788a9693b19f92835a0fbf7f6fba0076d09e0c 100644 (file)
@@ -1138,7 +1138,7 @@ Usage: %s [-dhV] [-I bfdname] [-O bfdname] [-T header-file] [-l linker]\n\
        [in-file [out-file]]\n"),
           program_name);
   if (status == 0)
-    fprintf (file, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (file, REPORT_BUGS_TO);
   exit (status);
 }
 \f
index ade3f7cdf2a096380498fd14bd284bdba4be0078..e9476976ffcd40439c186a8376fd35b77df93c12 100644 (file)
@@ -255,6 +255,8 @@ static char *target = NULL;
 static bfd *lineno_cache_bfd;
 static bfd *lineno_cache_rel_bfd;
 
+#define OPTION_TARGET 200
+
 static struct option long_options[] =
 {
   {"debug-syms", no_argument, &print_debug_syms, 1},
@@ -275,7 +277,7 @@ static struct option long_options[] =
   {"reverse-sort", no_argument, &reverse_sort, 1},
   {"size-sort", no_argument, &sort_by_size, 1},
   {"stats", no_argument, &show_stats, 1},
-  {"target", required_argument, 0, 200},
+  {"target", required_argument, 0, OPTION_TARGET},
   {"defined-only", no_argument, &defined_only, 1},
   {"undefined-only", no_argument, &undefined_only, 1},
   {"version", no_argument, &show_version, 1},
@@ -301,7 +303,7 @@ Usage: %s [-aABCDglnopPrsuvV] [-t radix] [--radix=radix] [--target=bfdname]\n\
           program_name);
   list_supported_targets (program_name, stream);
   if (status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (status);
 }
 
@@ -448,7 +450,7 @@ main (argc, argv)
          show_version = 1;
          break;
 
-       case 200:               /* --target */
+       case OPTION_TARGET:     /* --target */
          target = optarg;
          break;
 
index 37b12e7ba5190231fdbfe3a7d857cf63f58da696..f6048b7fd2d2c283e006e20bd9e0e31fe963d342 100644 (file)
@@ -341,7 +341,7 @@ copy_usage (stream, exit_status)
 "));
   list_supported_targets (program_name, stream);
   if (exit_status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (exit_status);
 }
 
@@ -373,7 +373,7 @@ strip_usage (stream, exit_status)
 
   list_supported_targets (program_name, stream);
   if (exit_status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (exit_status);
 }
 
index 488d4f3f3ce26cb4e77ea49394e029fa10088654..81c79f4bb470bfbb2321a9362d353fc89fefacf7 100644 (file)
@@ -274,7 +274,7 @@ usage (stream, status)
       disassembler_usage (stream);
     }
   if (status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (status);
 }
 
index cd1e127dcb595945e97db87dcce5784169e04288..60810663b7a59b52d04683ea91e8f77b35078b37 100644 (file)
@@ -1700,7 +1700,7 @@ usage ()
   fprintf (stdout, _("  -I or --histogram         Display histogram of bucket list lengths\n"));
   fprintf (stdout, _("  -v or --version           Display the version number of readelf\n"));
   fprintf (stdout, _("  -H or --help              Display this information\n"));
-  fprintf (stdout, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+  fprintf (stdout, REPORT_BUGS_TO);
 
   exit (0);
 }
index fb139fab9bec853157090632aa766d9125507dad..65ea92fe4623624461867c053c4e914c11128e3a 100644 (file)
@@ -509,6 +509,6 @@ Usage: %s [-afov] [-n min-len] [-min-len] [-t {o,x,d}] [-]\n\
           program_name);
   list_supported_targets (program_name, stream);
   if (status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (status);
 }
index 3b24b47825e6ad390e6d81b375fff784a334c3b6..a2f6fe7e134f6c52f3f0db9fd4bc1d079ff767cd 100644 (file)
@@ -734,7 +734,7 @@ extension if not specified.  A single file name is an input file.\n\
 No input-file is stdin, default rc.  No output-file is stdout, default rc.\n"));
   list_supported_targets (program_name, stream);
   if (status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   exit (status);
 }
 
index b4194fdcc146d8c820141f1e3422736565831e6c..51bbbba83b8c12cbfc17e35f0ef9ad1faed32e11 100644 (file)
@@ -1,3 +1,12 @@
+2000-04-03  Alan Modra  <alan@linuxcare.com.au>
+
+       * as.h: #include "bin-bugs.h"
+       * as.c (show_usage): Use REPORT_BUGS_TO.
+       * gasp.c: #include "bin-bugs.h"
+       (show_usage): Use REPORT_BUGS_TO.
+
+       * config/tc-sparc.c (md_show_usage): Add a trailing newline.
+
 Mon Apr  3 13:56:03 2000  Hans-Peter Nilsson  <hp@axis.com>
 
        * write.c (write_object_file) [! WORKING_DOT_WORD]: If defined,
index 647f4befbeeeb2a53f478a7011226df98ae144dc..12aa2fc913b388e884edfa2673547c8017e0fc87 100644 (file)
--- a/gas/as.c
+++ b/gas/as.c
@@ -322,7 +322,8 @@ Options:\n\
 
   md_show_usage (stream);
 
-  fprintf (stream, _("\nReport bugs to bug-gnu-utils@gnu.org\n"));
+  fputc ('\n', stream);
+  fprintf (stream, REPORT_BUGS_TO);
 }
 
 /*
index 4c4658a04d354094cc8a97fa808059fce59fd052..2106b339ab1e627d50e22c1cf26e7caa3fd90e77 100644 (file)
--- a/gas/as.h
+++ b/gas/as.h
@@ -38,6 +38,7 @@
  */
 
 #include "config.h"
+#include "bin-bugs.h"
 
 /* This is the code recommended in the autoconf documentation, almost
    verbatim.  If it doesn't work for you, let me know, and notify
index f7049d61da5c6f6d539be06b6d4fa971ce476777..1e7230061de3594c29ed88101b1337478502e602 100644 (file)
@@ -638,7 +638,7 @@ md_show_usage (stream)
 -EL                    generate code for a little endian machine\n\
 -EB                    generate code for a big endian machine\n\
 --little-endian-data   generate code for a machine having big endian\n\
-                        instructions and little endian data."));
+                        instructions and little endian data.\n"));
 #endif
 }
 \f
index b35a4ae57c1671b23e3eeaa08d3e748b489ca2ed..dcceccf515329f144f4087356bc16ce843c6a5c3 100644 (file)
@@ -50,6 +50,7 @@ suitable for gas to consume.
 */
 
 #include "config.h"
+#include "bin-bugs.h"
 
 #include <stdio.h>
 #include <string.h>
@@ -3550,7 +3551,7 @@ Usage: %s \n\
   [-Ipath]                        add to include path list\n\
   [in-file]\n"));
   if (status == 0)
-    printf (_("\nReport bugs to bug-gnu-utils@gnu.org\n"));
+    printf (REPORT_BUGS_TO);
   exit (status);
 }
 
index c4742ffffd39a9c151c6f226526e4a48a82ce423..5eb13e81d2b94e74d3dcdbb57d658d2cd715a920 100644 (file)
@@ -1,7 +1,12 @@
+2000-04-01  Alan Modra  <alan@linuxcare.com.au>
+
+       * gprof.h: #include "bin-bugs.h".
+       * gprof.c (usage): Use REPORT_BUGS_TO.
+
 2000-03-31  Alan Modra  <alan@linuxcare.com.au>
 
        * symtab.c (symtab_finalize): Don't use post-increment on
-       structure copy to work around a ppc gcc bug.
+       structure copy, to work around a ppc gcc bug.
 
 1999-09-29  Mark Kettenis  <kettenis@gnu.org>
 
index cb904870e5084bf369487b47d13e05e742ed89b4..82440a82e8a2ea494975a01364875e7057ddc81d 100644 (file)
@@ -157,7 +157,7 @@ Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n\
        [image-file] [profile-file...]\n"),
           whoami);
   if (status == 0)
-    fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
+    fprintf (stream, REPORT_BUGS_TO);
   done (status);
 }
 
index 8f62aeefd4a0a48d5d07061b17d72cb27cadc1c4..a144bf49b5fa62678355e48696de3b95be33dc26 100644 (file)
@@ -76,6 +76,7 @@
 # define N_(String) (String)
 #endif
 
+#include "bin-bugs.h"
 
 /*
  * These may already be defined on some systems.  We could probably
index cb15edca0667f8f255e0bc2cd582effa4f250c3b..c76b726e3cc580f29dca38a183c6b4b7d5dcf586 100644 (file)
@@ -1,3 +1,7 @@
+2000-04-03  Alan Modra  <alan@linuxcare.com.au>
+
+       * bin-bugs.h: New file.
+
 2000-03-27  Denis Chertykov  <denisc@overta.ru>
 
        * dis-asm.h (print_insn_avr): Declare.
diff --git a/include/bin-bugs.h b/include/bin-bugs.h
new file mode 100644 (file)
index 0000000..368011b
--- /dev/null
@@ -0,0 +1,3 @@
+#ifndef REPORT_BUGS_TO
+#define REPORT_BUGS_TO _("Report bugs to %s\n"), "bug-gnu-utils@gnu.org"
+#endif
index b1e37f6f562080862cc0a6ef55979bd9451030c9..729a3e91a542af5973d2c253e53babb41f3521d1 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-03  Alan Modra  <alan@linuxcare.com.au>
+
+       * ld.h: #include "bin-bugs.h"
+       * lexsup.c (help): Use REPORT_BUGS_TO.
+
 2000-03-27  Denis Chertykov  <denisc@overta.ru>
 
        * configure.tgt (avr-*-*): New target support.
diff --git a/ld/ld.h b/ld/ld.h
index 3c53b98a54ce05a2219d585af4885b6da014d890..2c7e55dbe2033d63ba9f0832183a2b966afc0c24 100644 (file)
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -45,6 +45,8 @@
 # define N_(String) (String)
 #endif
 
+#include "bin-bugs.h"
+
 /* Look in this environment name for the linker to pretend to be */
 #define EMULATION_ENVIRON "LDEMULATION"
 /* If in there look for the strings: */
index 06a65e13bd0d7275f22211acd6f70538dba8c4e9..64c9be1389715a1a994496150e8f2d6985dfcbb8 100644 (file)
@@ -1162,6 +1162,6 @@ help ()
   printf (_("%s: emulation specific options:\n"), program_name);
   ldemul_list_emulation_options (stdout);
   printf ("\n");
-  
-  printf (_("\nReport bugs to bug-gnu-utils@gnu.org\n"));
+
+  printf (REPORT_BUGS_TO);
 }
This page took 0.05548 seconds and 4 git commands to generate.