diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-01 17:02:53 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-01 17:02:53 +0000 |
commit | 9f7e7c7c3865a91fb77c1145ed4b3b92b457829f (patch) | |
tree | af45a06594372a8ce31307986642e8135b3e6fb6 /gcc/config | |
parent | 7561ae90b3f0d4a3a0d5c0042a75dcb53a104c91 (diff) | |
download | gcc-9f7e7c7c3865a91fb77c1145ed4b3b92b457829f.tar.gz |
* cccp.c (sys_errlist): Remove special 4.4bsd declaration.
* collect2.c (sys_errlist): Likewise.
* cpplib.c (sys_errlist): Likewise.
* gcc.c (sys_errlist): Likewise.
* protoize (sys_errlist): Likewise.
* configure.in: Check for strerror.
* xm-freebsd.h (HAVE_STRERROR): Remove definition.
* xm-gnu.h (HAVE_STRERROR): Likewise.
* xm-linux.h (HAVE_STRERROR): Likewise.
* xm-netbsd.h (HAVE_STRERROR): Likewise.
* xm-bsd386.h (HAVE_STRERROR): Likewise.
* xm-cygwin32.h (HAVE_STRERROR): Likewise.
* xm-dos.h (HAVE_STRERROR): Likewise.
* xm-mingw32.h (HAVE_STRERROR): Likewise.
* xm-pa.h (HAVE_STRERROR): Likewise.
* xm-papro.h (HAVE_STRERROR): Likewise.
* xm-sysv4.h (HAVE_STRERROR): Likewise.
* configure, config.in: Rebuilt.
Remove the need to define HAVE_STRERROR for each host port.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15011 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/alpha/xm-linux.h | 1 | ||||
-rw-r--r-- | gcc/config/i386/xm-bsd386.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/xm-cygwin32.h | 1 | ||||
-rw-r--r-- | gcc/config/i386/xm-dos.h | 3 | ||||
-rw-r--r-- | gcc/config/i386/xm-mingw32.h | 1 | ||||
-rw-r--r-- | gcc/config/pa/xm-pa.h | 3 | ||||
-rw-r--r-- | gcc/config/pa/xm-papro.h | 3 | ||||
-rw-r--r-- | gcc/config/rs6000/xm-cygwin32.h | 1 | ||||
-rw-r--r-- | gcc/config/rs6000/xm-sysv4.h | 3 | ||||
-rw-r--r-- | gcc/config/xm-freebsd.h | 3 | ||||
-rw-r--r-- | gcc/config/xm-gnu.h | 1 | ||||
-rw-r--r-- | gcc/config/xm-linux.h | 3 | ||||
-rw-r--r-- | gcc/config/xm-netbsd.h | 1 |
13 files changed, 0 insertions, 26 deletions
diff --git a/gcc/config/alpha/xm-linux.h b/gcc/config/alpha/xm-linux.h index 1333d2160c3..ea180dfb027 100644 --- a/gcc/config/alpha/xm-linux.h +++ b/gcc/config/alpha/xm-linux.h @@ -1,2 +1 @@ -#define HAVE_STRERROR #define USE_BFD diff --git a/gcc/config/i386/xm-bsd386.h b/gcc/config/i386/xm-bsd386.h index abcce3f01cb..6b8eee7db03 100644 --- a/gcc/config/i386/xm-bsd386.h +++ b/gcc/config/i386/xm-bsd386.h @@ -1,5 +1,3 @@ /* Configuration for GCC for Intel i386 running BSDI's BSD/386 as host. */ #include "i386/xm-i386.h" - -#define HAVE_STRERROR diff --git a/gcc/config/i386/xm-cygwin32.h b/gcc/config/i386/xm-cygwin32.h index b3f4c04b5fb..c45e75cd773 100644 --- a/gcc/config/i386/xm-cygwin32.h +++ b/gcc/config/i386/xm-cygwin32.h @@ -20,7 +20,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define NO_STAB_H -#define HAVE_STRERROR #define HAVE_RUSAGE #define HAVE_FILE_H #define EXECUTABLE_SUFFIX ".exe" diff --git a/gcc/config/i386/xm-dos.h b/gcc/config/i386/xm-dos.h index 1dd0c013b1d..e6e06f4e809 100644 --- a/gcc/config/i386/xm-dos.h +++ b/gcc/config/i386/xm-dos.h @@ -15,6 +15,3 @@ #define MKTEMP_EACH_FILE 1 #define NO_PRECOMPILES 1 - -/* sys_errlist proto in cccp.c doesn't match djgpp */ -#define HAVE_STRERROR diff --git a/gcc/config/i386/xm-mingw32.h b/gcc/config/i386/xm-mingw32.h index 57ff72abf30..b6bd1c3ee3e 100644 --- a/gcc/config/i386/xm-mingw32.h +++ b/gcc/config/i386/xm-mingw32.h @@ -20,7 +20,6 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define NO_STAB_H -#define HAVE_STRERROR #define HAVE_RUSAGE #define HAVE_FILE_H diff --git a/gcc/config/pa/xm-pa.h b/gcc/config/pa/xm-pa.h index 3d86e88986c..0249055bf6e 100644 --- a/gcc/config/pa/xm-pa.h +++ b/gcc/config/pa/xm-pa.h @@ -50,9 +50,6 @@ extern int errno; /* Don't try to use sys_siglist. */ #define NO_SYS_SIGLIST -/* We have strerror, don't try to use sys_errlist. */ -#define HAVE_STRERROR - /* 4.3BSD, OSF1 and Lites on the PA are all derived from NET2 or later code from Berkeley. */ #define __BSD_NET2__ diff --git a/gcc/config/pa/xm-papro.h b/gcc/config/pa/xm-papro.h index 66ec811b4ac..d36e2015ce7 100644 --- a/gcc/config/pa/xm-papro.h +++ b/gcc/config/pa/xm-papro.h @@ -50,9 +50,6 @@ extern int errno; /* Don't try to use sys_siglist. */ #define NO_SYS_SIGLIST -/* We have strerror, don't try to use sys_errlist. */ -#define HAVE_STRERROR - /* HP's compiler has problems with enum bitfields. */ #define ONLY_INT_FIELDS diff --git a/gcc/config/rs6000/xm-cygwin32.h b/gcc/config/rs6000/xm-cygwin32.h index f7e30a15524..158e54edc0f 100644 --- a/gcc/config/rs6000/xm-cygwin32.h +++ b/gcc/config/rs6000/xm-cygwin32.h @@ -23,7 +23,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "rs6000/xm-rs6000.h" -#define HAVE_STRERROR #define HAVE_RUSAGE #define HAVE_FILE_H #define EXECUTABLE_SUFFIX ".exe" diff --git a/gcc/config/rs6000/xm-sysv4.h b/gcc/config/rs6000/xm-sysv4.h index 3a13a579461..5089c7dd467 100644 --- a/gcc/config/rs6000/xm-sysv4.h +++ b/gcc/config/rs6000/xm-sysv4.h @@ -56,9 +56,6 @@ extern char *alloca (); #define ONLY_INT_FIELDS #endif -/* We have STRERROR */ -#define HAVE_STRERROR - #ifdef __PPC__ #ifndef __STDC__ extern char *malloc (), *realloc (), *calloc (); diff --git a/gcc/config/xm-freebsd.h b/gcc/config/xm-freebsd.h index ab3aa114382..b71ff56ca10 100644 --- a/gcc/config/xm-freebsd.h +++ b/gcc/config/xm-freebsd.h @@ -22,6 +22,3 @@ Boston, MA 02111-1307, USA. */ running FreeBSD. This file should not be specified as $xm_file itself; instead $xm_file should be CPU/xm-freebsd.h, which should include both CPU/xm-CPU.h and this file xm-freebsd.h. */ - -/* FreeBSD has strerror. */ -#define HAVE_STRERROR diff --git a/gcc/config/xm-gnu.h b/gcc/config/xm-gnu.h index 62debf6de94..64e8e2fa817 100644 --- a/gcc/config/xm-gnu.h +++ b/gcc/config/xm-gnu.h @@ -23,7 +23,6 @@ Boston, MA 02111-1307, USA. */ instead $xm_file should be CPU/xm-gnu.h, which should include both CPU/xm-CPU.h and this file xm-gnu.h. */ -#define HAVE_STRERROR /* GNU has strerror. */ #define POSIX /* GNU complies to POSIX.1. */ #ifndef inhibit_libc diff --git a/gcc/config/xm-linux.h b/gcc/config/xm-linux.h index 4ccf001173b..2a2b62bc964 100644 --- a/gcc/config/xm-linux.h +++ b/gcc/config/xm-linux.h @@ -22,9 +22,6 @@ Boston, MA 02111-1307, USA. */ #undef HAVE_VPRINTF #define HAVE_VPRINTF -#undef HAVE_STRERROR -#define HAVE_STRERROR - #undef HAVE_POPEN #define HAVE_POPEN diff --git a/gcc/config/xm-netbsd.h b/gcc/config/xm-netbsd.h index 00000ce9706..099a9234ffa 100644 --- a/gcc/config/xm-netbsd.h +++ b/gcc/config/xm-netbsd.h @@ -23,5 +23,4 @@ Boston, MA 02111-1307, USA. */ instead $xm_file should be CPU/xm-netbsd.h, which should include both CPU/xm-CPU.h and this file xm-netbsd.h. */ -#define HAVE_STRERROR #define HAVE_VPRINTF |