Commit 337e2b69 by Ian Lance Taylor Committed by Jeff Law

mips.h (INIT_SUBTARGET_OPTABS): Define if not defined.

        * mips/mips.h (INIT_SUBTARGET_OPTABS): Define if not defined.
        (INIT_TARGET_OPTABS): Define.
        * mips/ecoff.h: Include gofast.h before mips.h.
        (INIT_SUBTARGET_OPTABS): Define instead of INIT_TARGET_OPTABS.
        * mips/elf64.h: Likewise.
        * mips/elf.h (ASM_OUTPUT_SECTION_NAME): Define.

From-SVN: r17137
parent efb84aa5
Thu Dec 18 19:19:57 1997 Ian Lance Taylor <ian@cygnus.com>
* mips/mips.h (INIT_SUBTARGET_OPTABS): Define if not defined.
(INIT_TARGET_OPTABS): Define.
* mips/ecoff.h: Include gofast.h before mips.h.
(INIT_SUBTARGET_OPTABS): Define instead of INIT_TARGET_OPTABS.
* mips/elf64.h: Likewise.
* mips/elf.h (ASM_OUTPUT_SECTION_NAME): Define.
Thu Dec 18 14:51:12 1997 Jason Merrill <jason@yorick.cygnus.com> Thu Dec 18 14:51:12 1997 Jason Merrill <jason@yorick.cygnus.com>
* except.c: Remove register_exception_table{,_p}. * except.c: Remove register_exception_table{,_p}.
......
/* Definitions of target machine for GNU compiler. MIPS version with /* Definitions of target machine for GNU compiler. MIPS version with
GOFAST floating point library. GOFAST floating point library.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -19,6 +19,10 @@ along with GNU CC; see the file COPYING. If not, write to ...@@ -19,6 +19,10 @@ along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330, the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* US Software GOFAST library support. */
#include "gofast.h"
#define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS
#include "mips/mips.h" #include "mips/mips.h"
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
...@@ -27,10 +31,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -27,10 +31,6 @@ Boston, MA 02111-1307, USA. */
/* Use memcpy, et. al., rather than bcopy. */ /* Use memcpy, et. al., rather than bcopy. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
/* US Software GOFAST library support. */
#include "gofast.h"
#define INIT_TARGET_OPTABS INIT_GOFAST_OPTABS
/* Don't assume anything about startfiles. The linker script will load the /* Don't assume anything about startfiles. The linker script will load the
appropriate startfiles. */ appropriate startfiles. */
#define STARTFILE_SPEC "" #define STARTFILE_SPEC ""
/* Definitions of target machine for GNU compiler. MIPS R3000 version with /* Definitions of target machine for GNU compiler. MIPS R3000 version with
GOFAST floating point library. GOFAST floating point library.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -24,7 +24,9 @@ Boston, MA 02111-1307, USA. */ ...@@ -24,7 +24,9 @@ Boston, MA 02111-1307, USA. */
/* Until we figure out what MIPS ELF targets normally use, just do /* Until we figure out what MIPS ELF targets normally use, just do
stabs in ELF. */ stabs in ELF. */
#ifndef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#endif
/* Mostly like ECOFF. */ /* Mostly like ECOFF. */
#include "mips/ecoff.h" #include "mips/ecoff.h"
...@@ -51,3 +53,19 @@ do { \ ...@@ -51,3 +53,19 @@ do { \
not defined, the default value is `BIGGEST_ALIGNMENT'. */ not defined, the default value is `BIGGEST_ALIGNMENT'. */
#define MAX_OFILE_ALIGNMENT (32768*8) #define MAX_OFILE_ALIGNMENT (32768*8)
/* A C statement to output something to the assembler file to switch to section
NAME for object DECL which is either a FUNCTION_DECL, a VAR_DECL or
NULL_TREE. Some target formats do not support arbitrary sections. Do not
define this macro in such cases. */
#define ASM_OUTPUT_SECTION_NAME(F, DECL, NAME, RELOC) \
do { \
extern FILE *asm_out_text_file; \
if ((DECL) && TREE_CODE (DECL) == FUNCTION_DECL) \
fprintf (asm_out_text_file, "\t.section %s,\"ax\",@progbits\n", (NAME)); \
else if ((DECL) && DECL_READONLY_SECTION (DECL, RELOC)) \
fprintf (F, "\t.section %s,\"a\",@progbits\n", (NAME)); \
else \
fprintf (F, "\t.section %s,\"aw\",@progbits\n", (NAME)); \
} while (0)
/* Definitions of target machine for GNU compiler. MIPS R4000 version with /* Definitions of target machine for GNU compiler. MIPS R4000 version with
GOFAST floating point library. GOFAST floating point library.
Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -39,6 +39,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -39,6 +39,10 @@ Boston, MA 02111-1307, USA. */
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#endif #endif
/* US Software GOFAST library support. */
#include "gofast.h"
#define INIT_SUBTARGET_OPTABS INIT_GOFAST_OPTABS
#include "mips/mips.h" #include "mips/mips.h"
#undef CPP_PREDEFINES #undef CPP_PREDEFINES
...@@ -53,10 +57,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -53,10 +57,6 @@ Boston, MA 02111-1307, USA. */
/* Use memcpy, et. al., rather than bcopy. */ /* Use memcpy, et. al., rather than bcopy. */
#define TARGET_MEM_FUNCTIONS #define TARGET_MEM_FUNCTIONS
/* US Software GOFAST library support. */
#include "gofast.h"
#define INIT_TARGET_OPTABS INIT_GOFAST_OPTABS
/* Biggest alignment supported by the object file format of this /* Biggest alignment supported by the object file format of this
machine. Use this macro to limit the alignment which can be machine. Use this macro to limit the alignment which can be
specified using the `__attribute__ ((aligned (N)))' construct. If specified using the `__attribute__ ((aligned (N)))' construct. If
......
...@@ -4053,3 +4053,14 @@ while (0) ...@@ -4053,3 +4053,14 @@ while (0)
true. */ true. */
#define DONT_ACCESS_GBLS_AFTER_EPILOGUE (TARGET_ABICALLS && mips_abi != ABI_32) #define DONT_ACCESS_GBLS_AFTER_EPILOGUE (TARGET_ABICALLS && mips_abi != ABI_32)
#ifndef INIT_SUBTARGET_OPTABS
#define INIT_SUBTARGET_OPTABS
#endif
#define INIT_TARGET_OPTABS \
do \
{ \
INIT_SUBTARGET_OPTABS; \
} \
while (0)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment