home *** CD-ROM | disk | FTP | other *** search
- /* tm-next68.h: definitions for NeXT.
-
- 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, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
- #include "tm-m68k.h"
- #include "tm-next.h"
-
- /* See tm-m68k.h. 0407 means 68040 (or 68030 or 68020, with 68881/2). */
-
- #define TARGET_DEFAULT 0407
-
- #undef STACK_BOUNDARY
- /* Boundary (in *bits*) on which stack pointer should be aligned. */
- #define STACK_BOUNDARY 32
-
- /* Names to predefine in the preprocessor for this target machine. */
-
- #define CPP_PREDEFINES "-Dmc68000 -Dm68k -DNeXT -Dunix -D__MACH__"
-
- /* Every structure or union's size must be a multiple of 2 bytes.
- (Why isn't this in tm-m68k.h?) */
-
- #define STRUCTURE_SIZE_BOUNDARY 16
-
- /* This is how to output an assembler line defining a `double' constant. */
-
- #undef ASM_OUTPUT_DOUBLE
- #define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
- (isinf ((VALUE)) \
- ? fprintf (FILE, "\t.double 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
- : fprintf (FILE, "\t.double 0r%.20e\n", (VALUE)))
-
- /* This is how to output an assembler line defining a `float' constant. */
-
- #undef ASM_OUTPUT_FLOAT
- #define ASM_OUTPUT_FLOAT(FILE,VALUE) \
- (isinf ((VALUE)) \
- ? fprintf (FILE, "\t.single 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
- : fprintf (FILE, "\t.single 0r%.20e\n", (VALUE)))
-
- #undef ASM_OUTPUT_FLOAT_OPERAND
- #define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
- (isinf ((VALUE)) \
- ? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
- : fprintf (FILE, "#0r%.9g", (VALUE)))
-
- #undef ASM_OUTPUT_DOUBLE_OPERAND
- #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
- (isinf ((VALUE)) \
- ? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
- : fprintf (FILE, "#0r%.20g", (VALUE)))
-
- /* We do not define JUMP_TABLES_IN_TEXT_SECTION, since we wish to keep
- the text section pure. There is no point in addressing the jump
- tables using pc relative addressing, since they are not in the text
- section, so we undefine CASE_VECTOR_PC_RELATIVE. This also
- causes the compiler to use absolute addresses in the jump table,
- so we redefine CASE_VECTOR_MODE to be SImode. */
-
- #undef CASE_VECTOR_MODE
- #define CASE_VECTOR_MODE SImode
-
- #undef CASE_VECTOR_PC_RELATIVE
-
- /* Make sure jump tables have the same alignment as other pointers. */
-
- #define ASM_OUTPUT_CASE_LABEL(FILE,PREFIX,NUM,TABLEINSN) \
- do { const_section (); \
- ASM_OUTPUT_ALIGN (FILE, 1); \
- ASM_OUTPUT_INTERNAL_LABEL(FILE, PREFIX, NUM); } while (0)
-
- /* Output at the end of a jump table. */
-
- #define ASM_OUTPUT_CASE_END(FILE,NUM,INSN) \
- text_section ();
-
- /* Don't treat addresses involving labels differently from symbol names.
- Previsouly, references to labels generated pc-relative addressing modes
- while references to symbol names generated absolute addressing modes. */
-
- #undef GO_IF_INDEXABLE_BASE(X, ADDR)
- #define GO_IF_INDEXABLE_BASE(X, ADDR) \
- { if (GET_CODE (X) == REG && REG_OK_FOR_BASE_P (X)) goto ADDR; }
-