]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mh-irix6 (CC): Don't set it.
authorMark Mitchell <mark@codesourcery.com>
Sat, 15 Jul 2000 00:15:18 +0000 (00:15 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 15 Jul 2000 00:15:18 +0000 (00:15 +0000)
* config/mh-irix6 (CC): Don't set it.

* INSTALL: Give special instructions for building GCC on Irix 6.
* config/mips/x-iris6 (CC): Don't set it.
(OLDCC): Likewise.

From-SVN: r35038

ChangeLog
config/mh-irix6
gcc/ChangeLog
gcc/INSTALL
gcc/config/mips/x-iris6

index b3c3b374c7a7bd5ee350cba081482e34ab1891f8..41dfed564c486e67088af526b88c167861f9940e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jul 14 18:13:23 2000  Mark P Mitchell  <mark@codesourcery.com>
+
+       * config/mh-irix6 (CC): Don't set it.
+
 2000-07-07  Phil Edwards  <pme@sourceware.cygnus.com>
 
        * symlink-tree:  Check number of arguments.
index 6d25c16b2f45123d141d459eb8fb3318f2441fdc..e7926788963074c5821141f9f18142821291a646 100644 (file)
@@ -1,7 +1,3 @@
 # Makefile changes for SGI's running IRIX-6.x.
 SYSV = -DSYSV
 RANLIB = true
-# Specify the ABI, to ensure that all Irix 6 systems will behave the same.
-# Also, using -32 avoids bugs that exist in the n32/n64 support in some
-# versions of the SGI compiler.
-CC = cc -32
index ff1ddd4e1686ae6e16c992cc3a4b990c65c51a4b..d406bcdb7de56abcfbdd244ca0344ddd07e42e52 100644 (file)
@@ -1,3 +1,9 @@
+Fri Jul 14 18:13:53 2000  Mark P Mitchell  <mark@codesourcery.com>
+
+       * INSTALL: Give special instructions for building GCC on Irix 6.
+       * config/mips/x-iris6 (CC): Don't set it.
+       (OLDCC): Likewise.
+
 2000-07-14  Jason Merrill  <jason@redhat.com>
 
        * dwarf2out.c (dwarf2out_frame_debug_expr): If we store the CFA 
index 37fca13c68e6bf01956f22a899591706ac4e3ebc..34eee22e0c389b2ba9af5f4aeb237428041e22d9 100644 (file)
@@ -1296,6 +1296,21 @@ special things you must know:
      and use the `--with-gnu-as' configure option when configuring gcc.
      GNU as is distributed as part of the binutils package.
 
+     Under Irix 6, if you are using Irix `cc' as your bootstrap
+     compiler, you must ensure that the N32 ABI is in use.  To test
+     this, compile a simple C file with `cc' and then run `file'
+     on the resulting object file.  The output should look like:
+
+               test.o:         ELF N32 MSB ...
+
+     If you see:
+
+               test.o:         ELF 32-bit MSB
+
+     then your version of `cc' uses the O32 ABI default.  You should
+     set the environment variable `CC' to `cc -n32' before configuring
+     GCC.
+
 `mips-sony-sysv'
      Sony MIPS NEWS.  This works in NEWSOS 5.0.1, but not in 5.0.2
      (which uses ELF instead of COFF).  Support for 5.0.2 will probably
index 88c41f4dfe45c46b685df2bcbf27f4fb6250b0b3..a9b39fa8f71141321b305cda63af46478e9a3d6e 100644 (file)
@@ -1,11 +1,2 @@
-# We force the use of the O32 ABI for two reasons.
-# 1) For consistency, because some versions of Irix 6 default to the O32 ABI
-#    and some versions default to the N64 ABI.
-# 2) To avoid SGI compiler bugs.  The v6.x and v7.0 compilers from SGI have
-#    bugs that cause gcc to be miscompiled when the N32 or N64 ABIs are used.
-#    The O32 ABI is known to be OK.
-CC = $(OLDCC)
-OLDCC = cc -32
-
 # Find all of the declarations from the header files
 FIXPROTO_DEFINES= -D__EXTENSIONS__  -D_SGI_SOURCE -D_LANGUAGE_C_PLUS_PLUS