* config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2002 06:53:35 +0000 (06:53 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Oct 2002 06:53:35 +0000 (06:53 +0000)
if using mips/elf.h or mips/elf64.h.
* config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
* config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58237 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config.gcc
gcc/config/mips/elf.h
gcc/config/mips/elf64.h

index 76ac727..5fb61e0 100644 (file)
@@ -1,3 +1,10 @@
+2002-10-17  Richard Sandiford  <rsandifo@redhat.com>
+
+       * config.gcc (mips*-*-*): Add OBJECT_FORMAT_ELF to $tm_defines
+       if using mips/elf.h or mips/elf64.h.
+       * config/mips/elf.h (OBJECT_FORMAT_ELF): Remove.
+       * config/mips/elf64.h (OBJECT_FORMAT_ELF): Remove.
+
 2002-10-16  Aldy Hernandez  <aldyh@redhat.com>
 
        * config/rs6000/rs6000.c (function_arg): Set inner mode of V1DI to
index 8085d65..683ec13 100644 (file)
@@ -2840,6 +2840,11 @@ mips*-*-*)
                        tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
                        ;;
        esac
+       case $tm_file in
+               *mips/elf.h* | *mips/elf64.h*)
+                       tm_defines="OBJECT_FORMAT_ELF $tm_defines"
+                       ;;
+       esac
        if test "x$enable_gofast" = xyes
        then
                tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
index bc3ca69..c64bb46 100644 (file)
@@ -22,7 +22,6 @@ Boston, MA 02111-1307, USA.  */
 /* Use ELF.  */
 #undef  OBJECT_FORMAT_COFF
 #undef  EXTENDED_COFF
-#define OBJECT_FORMAT_ELF
 
 /* ??? Move all SDB stuff into separate header file.  */
 #undef  SDB_DEBUGGING_INFO
index 07973cb..e9bed21 100644 (file)
@@ -22,7 +22,6 @@ Boston, MA 02111-1307, USA.  */
 
 #undef  OBJECT_FORMAT_COFF
 #undef  EXTENDED_COFF
-#define OBJECT_FORMAT_ELF
 
 #undef  SDB_DEBUGGING_INFO
 #define DBX_DEBUGGING_INFO 1