diff options
author | Jim Wilson <wilson@cygnus.com> | 1998-07-13 19:01:14 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-07-13 12:01:14 -0700 |
commit | 74c55ab0bbf121c9367586ed227b0f2fc67c47ee (patch) | |
tree | 956758aac6e0e5d9bbd820e5c907a31dc8d52feb /gcc | |
parent | 30e5b40b797874013c53ecca5340c4287d6d0fbe (diff) | |
download | gcc-74c55ab0bbf121c9367586ed227b0f2fc67c47ee.zip gcc-74c55ab0bbf121c9367586ed227b0f2fc67c47ee.tar.gz gcc-74c55ab0bbf121c9367586ed227b0f2fc67c47ee.tar.bz2 |
Fix irix5 build failure due to bad definition of HAVE_INTTYPES_H.
* configure.in (mips-sgi-irix5cross64, mips-sgi-irix5*): Remove
HAVE_INTTYPES_H from xm_defines. Define xm_file to mips/xm-iris5.h.
* mips/xm-iris5.h (USG): Delete.
From-SVN: r21112
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/xm-iris5.h | 12 | ||||
-rwxr-xr-x | gcc/configure | 6 | ||||
-rw-r--r-- | gcc/configure.in | 6 |
4 files changed, 20 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a64917e..7528f0b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Mon Jul 13 18:59:13 1998 Jim Wilson <wilson@cygnus.com> + + * configure.in (mips-sgi-irix5cross64, mips-sgi-irix5*): Remove + HAVE_INTTYPES_H from xm_defines. Define xm_file to mips/xm-iris5.h. + * mips/xm-iris5.h (USG): Delete. + Mon Jul 13 17:18:47 1998 Nick Clifton <nickc@cygnus.com> * cccp.c (main): Add support for parsing --help. diff --git a/gcc/config/mips/xm-iris5.h b/gcc/config/mips/xm-iris5.h index 72387b2..616055f 100644 --- a/gcc/config/mips/xm-iris5.h +++ b/gcc/config/mips/xm-iris5.h @@ -1,9 +1,9 @@ #include "mips/xm-mips.h" -#define USG -#define HAVE_VPRINTF - -#define bcopy(a,b,c) memcpy (b,a,c) -#define bzero(a,b) memset (a,0,b) -#define bcmp(a,b,c) memcmp (a,b,c) +/* On SGI IRIX 5.3, inttypes.h clashes with sys/types.h, but the clash + (when compiled with GCC) is a warning, so configure.in thinks it's OK + to use it. Work around this problem. */ +#ifdef HAVE_INTTYPES_H +#undef HAVE_INTTYPES_H +#endif diff --git a/gcc/configure b/gcc/configure index fe8ec93..7cac56a 100755 --- a/gcc/configure +++ b/gcc/configure @@ -3678,7 +3678,8 @@ for machine in $build $host $target; do ;; mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 tm_file="mips/iris6.h mips/cross64.h" - xm_defines="USG HAVE_INTTYPES_H" + xm_defines=USG + xm_file="mips/xm-iris5.h" fixincludes=Makefile.in xmake_file=mips/x-iris tmake_file=mips/t-cross64 @@ -3719,7 +3720,8 @@ for machine in $build $host $target; do else tm_file=mips/iris5.h fi - xm_defines="USG HAVE_INTTYPES_H" + xm_defines=USG + xm_file="mips/xm-iris5.h" fixincludes=fixinc.irix xmake_file=mips/x-iris # mips-tfile doesn't work yet diff --git a/gcc/configure.in b/gcc/configure.in index 7f1a9d9..770cf72 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1775,7 +1775,8 @@ for machine in $build $host $target; do ;; mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 tm_file="mips/iris6.h mips/cross64.h" - xm_defines="USG HAVE_INTTYPES_H" + xm_defines=USG + xm_file="mips/xm-iris5.h" fixincludes=Makefile.in xmake_file=mips/x-iris tmake_file=mips/t-cross64 @@ -1816,7 +1817,8 @@ for machine in $build $host $target; do else tm_file=mips/iris5.h fi - xm_defines="USG HAVE_INTTYPES_H" + xm_defines=USG + xm_file="mips/xm-iris5.h" fixincludes=fixinc.irix xmake_file=mips/x-iris # mips-tfile doesn't work yet |