efbf8670a0
(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
55 lines
2.0 KiB
C
55 lines
2.0 KiB
C
/* Definitions of target machine for GNU compiler,
|
|
for Sun SPARC-V9 on a hypothetical a.out format machine.
|
|
Copyright (C) 1994, 1996 Free Software Foundation, Inc.
|
|
Contributed by Doug Evans, dje@cygnus.com.
|
|
|
|
This file is part of GNU CC.
|
|
|
|
GNU CC is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
GNU CC is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GNU CC; see the file COPYING. If not, write to
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
/* 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.
|
|
|
|
The only code model supported is Medium/Low. */
|
|
|
|
#define SPARC_V9 1 /* See sparc.h. */
|
|
#define SPARC_ARCH64 1
|
|
|
|
#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,
|
|
in a Medium/Low code model with only 32 bit assembler support. */
|
|
|
|
#undef TARGET_DEFAULT
|
|
#define TARGET_DEFAULT \
|
|
(MASK_V9 + MASK_ARCH64 + MASK_PTR64 + MASK_HARD_QUAD \
|
|
+ MASK_MEDLOW + MASK_EPILOGUE + MASK_FPU)
|
|
|
|
/* The medium/anywhere code model practically requires us to put jump tables
|
|
in the text section as gcc is unable to distinguish LABEL_REF's of jump
|
|
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
|
|
#define JUMP_TABLES_IN_TEXT_SECTION
|
|
|
|
/* Put all data in the text segment (necessary for the current implementation
|
|
of the Medium/Anywhere code model - see if still true). */
|
|
|
|
#define READONLY_DATA_SECTION text_section
|