Commit efbf8670 by Doug Evans

(SPARC_{V9,ARCH64}): Define.

(TARGET_VERSION): Define.
(TARGET_DEFAULT): Add MASK_ARCH64, delete MASK_ENV32.
(JUMP_TABLES_IN_TEXT_SECTION): Define.
(READONLY_DATA_SECTION): Make text_section.

From-SVN: r11096
parent a4f0488b
/* Definitions of target machine for GNU compiler, /* Definitions of target machine for GNU compiler,
for Sun SPARC-V9 on a hypothetical a.out format machine. for Sun SPARC-V9 on a hypothetical a.out format machine.
Copyright (C) 1994 Free Software Foundation, Inc. Copyright (C) 1994, 1996 Free Software Foundation, Inc.
Contributed by Doug Evans, dje@cygnus.com. Contributed by Doug Evans, dje@cygnus.com.
This file is part of GNU CC. This file is part of GNU CC.
...@@ -21,30 +21,34 @@ the Free Software Foundation, 59 Temple Place - Suite 330, ...@@ -21,30 +21,34 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* This is a v9 only compiler. -mv8 is not expected to work. If you want /* This is a v9 only compiler. -mv8 is not expected to work. If you want
a v8/v9 compiler, this isn't the place to do it. */ a v8/v9 compiler, this isn't the place to do it.
/* ??? Until real v9 machines exist, all of this is subject to change. */
/* ??? This file should really be called sp64-sunos4.h or some such but that
would be a bit misleading since no such machines exist yet. The current
name is also misleading since the term "aout" is more properly applied to
embedded configurations. */
#define SPARCV9 /* See sparc.h. */ The only code model supported is Medium/Low. */
#define SPARC_V9 1 /* See sparc.h. */
#define SPARC_ARCH64 1
#include "sparc/sparc.h" #include "sparc/sparc.h"
#undef TARGET_VERSION
#define TARGET_VERSION fprintf (stderr, " (sparc64-aout)")
/* A v9 compiler with 32 bit integers and 64 bit pointers, /* A v9 compiler with 32 bit integers and 64 bit pointers,
in a Medium/Low code model with only 32 bit assembler support. */ in a Medium/Low code model with only 32 bit assembler support. */
#undef TARGET_DEFAULT #undef TARGET_DEFAULT
#define TARGET_DEFAULT \ #define TARGET_DEFAULT \
(MASK_V9 + MASK_MEDLOW + MASK_ENV32 + MASK_PTR64 + MASK_HARD_QUAD + MASK_EPILOGUE + MASK_FPU) (MASK_V9 + MASK_ARCH64 + MASK_PTR64 + MASK_HARD_QUAD \
+ MASK_MEDLOW + MASK_EPILOGUE + MASK_FPU)
/* ??? Disabled for v9 as the current implementation of the Medium/Anywhere /* The medium/anywhere code model practically requires us to put jump tables
code model needs this in the data segment (still true?). Let's hope the in the text section as gcc is unable to distinguish LABEL_REF's of jump
assembler is fixed. */ tables from other label refs (when we need to). While we don't support
the medium/anywhere code model, let's not make it difficult. */
#undef JUMP_TABLES_IN_TEXT_SECTION #undef JUMP_TABLES_IN_TEXT_SECTION
#define JUMP_TABLES_IN_TEXT_SECTION
/* Put all data in the data segment (necessary for the current implementation /* Put all data in the text segment (necessary for the current implementation
of the Medium/Anywhere code model - see if still true). */ of the Medium/Anywhere code model - see if still true). */
#define READONLY_DATA_SECTION data_section #define READONLY_DATA_SECTION text_section
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