diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-30 14:34:11 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-30 14:34:11 +0000 |
commit | 03a7f3a7d3c31c9bab37612318d197c6aa115e02 (patch) | |
tree | ddac1203abdea6399fafe179d3271b9d9cee5aa8 /gcc | |
parent | 51a37ccae91f4e77ae0a34c5828413c4f2938a28 (diff) | |
download | gcc-03a7f3a7d3c31c9bab37612318d197c6aa115e02.tar.gz |
* cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES
is defined.
* collect2.c (main): Likewise.
* cppmain.c (main): Likewise.
* gcc.c (main): Likewise.
* gcov.c (main): Likewise.
* protoize.c (main): Likewise.
* toplev.c (main): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24923 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/cccp.c | 2 | ||||
-rw-r--r-- | gcc/collect2.c | 2 | ||||
-rw-r--r-- | gcc/cppmain.c | 2 | ||||
-rw-r--r-- | gcc/gcc.c | 2 | ||||
-rw-r--r-- | gcc/gcov.c | 2 | ||||
-rw-r--r-- | gcc/protoize.c | 2 | ||||
-rw-r--r-- | gcc/toplev.c | 2 |
8 files changed, 23 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1aa52ffb0a3..0066d2ee5a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,14 @@ Sat Jan 30 08:27:23 1999 Jeffrey A Law (law@cygnus.com) + * cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES + is defined. + * collect2.c (main): Likewise. + * cppmain.c (main): Likewise. + * gcc.c (main): Likewise. + * gcov.c (main): Likewise. + * protoize.c (main): Likewise. + * toplev.c (main): Likewise. + * pa.md (parallel shift and shiftadd): Mark output of shift as an earlyclobber. diff --git a/gcc/cccp.c b/gcc/cccp.c index 3c78f811fd8..ff9c9c017ac 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -1265,7 +1265,9 @@ main (argc, argv) signal (SIGPIPE, pipe_closed); #endif +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); diff --git a/gcc/collect2.c b/gcc/collect2.c index f273bb8c67f..9a538af9a7a 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1002,7 +1002,9 @@ main (argc, argv) int first_file; int num_c_args = argc+9; +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); diff --git a/gcc/cppmain.c b/gcc/cppmain.c index 764114f3880..7f8bac7f8c8 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -69,7 +69,9 @@ main (argc, argv) while (p != argv[0] && p[-1] != '/') --p; progname = p; +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); diff --git a/gcc/gcc.c b/gcc/gcc.c index db84dbdf393..4d1dce712ba 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -4627,7 +4627,9 @@ main (argc, argv) while (p != argv[0] && p[-1] != '/' && p[-1] != DIR_SEPARATOR) --p; programname = p; +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); diff --git a/gcc/gcov.c b/gcc/gcov.c index 9c0798d3bc3..bc77e6c5dde 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -225,7 +225,9 @@ main (argc, argv) int argc; char **argv; { +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); diff --git a/gcc/protoize.c b/gcc/protoize.c index 9e4bfc2d2f7..447958729bd 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -4555,7 +4555,9 @@ main (argc, argv) pname = strrchr (argv[0], '/'); pname = pname ? pname+1 : argv[0]; +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); diff --git a/gcc/toplev.c b/gcc/toplev.c index 46f0c6a4fc6..06677692098 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -4576,7 +4576,9 @@ main (argc, argv) } #endif +#ifdef HAVE_LC_MESSAGES setlocale (LC_MESSAGES, ""); +#endif bindtextdomain (PACKAGE, localedir); textdomain (PACKAGE); |