Initial revision
From-SVN: r255
This commit is contained in:
parent
43b0eb42ea
commit
1bb87f283f
4 changed files with 2052 additions and 0 deletions
97
gcc/config/i386/sun.h
Normal file
97
gcc/config/i386/sun.h
Normal file
|
@ -0,0 +1,97 @@
|
||||||
|
/* Definitions for Intel 386 running SunOS 4.0.
|
||||||
|
Copyright (C) 1988 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
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 "i386.h"
|
||||||
|
|
||||||
|
/* Use the Sun assembler syntax. */
|
||||||
|
|
||||||
|
#include "sun386.h"
|
||||||
|
|
||||||
|
/* By default, target has a 80387. */
|
||||||
|
|
||||||
|
#define TARGET_DEFAULT 1
|
||||||
|
|
||||||
|
/* Use crt0.o as a startup file. */
|
||||||
|
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"
|
||||||
|
|
||||||
|
#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}\
|
||||||
|
%{g:-lg} %{sun386:}"
|
||||||
|
/* That last item is just to prevent a spurious error. */
|
||||||
|
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic}"
|
||||||
|
|
||||||
|
/* Extra switches to give the assembler. */
|
||||||
|
|
||||||
|
#define ASM_SPEC "-i386"
|
||||||
|
|
||||||
|
/* Specify predefined symbols in preprocessor. */
|
||||||
|
|
||||||
|
#define CPP_PREDEFINES "-Dunix -Di386 -Dsun386 -Dsun"
|
||||||
|
|
||||||
|
/* Allow #sccs in preprocessor. */
|
||||||
|
|
||||||
|
#define SCCS_DIRECTIVE
|
||||||
|
|
||||||
|
/* Output #ident as a .ident. */
|
||||||
|
|
||||||
|
#define ASM_OUTPUT_IDENT(FILE, NAME) fprintf (FILE, "\t.ident \"%s\"\n", NAME);
|
||||||
|
|
||||||
|
/* We don't want to output SDB debugging information. */
|
||||||
|
|
||||||
|
#undef SDB_DEBUGGING_INFO
|
||||||
|
|
||||||
|
/* We want to output DBX debugging information. */
|
||||||
|
|
||||||
|
#define DBX_DEBUGGING_INFO
|
||||||
|
|
||||||
|
/* Implicit library calls should use memcpy, not bcopy, etc. */
|
||||||
|
|
||||||
|
#define TARGET_MEM_FUNCTIONS
|
||||||
|
|
||||||
|
/* Force structure alignment to the type used for a bitfield. */
|
||||||
|
|
||||||
|
#define PCC_BITFIELD_TYPE_MATTERS 1
|
||||||
|
|
||||||
|
/* Define how to find the value returned by a function.
|
||||||
|
VALTYPE is the data type of the value (as a tree).
|
||||||
|
If the precise function being called is known, FUNC is its FUNCTION_DECL;
|
||||||
|
otherwise, FUNC is 0. */
|
||||||
|
|
||||||
|
#define VALUE_REGNO(MODE) \
|
||||||
|
(((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0)
|
||||||
|
|
||||||
|
/* 1 if N is a possible register number for a function value. */
|
||||||
|
|
||||||
|
#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG)
|
||||||
|
|
||||||
|
/* This is partly guess. */
|
||||||
|
|
||||||
|
#undef DBX_REGISTER_NUMBER
|
||||||
|
#define DBX_REGISTER_NUMBER(n) \
|
||||||
|
((n) == 0 ? 11 : (n) == 1 ? 9 : (n) == 2 ? 10 : (n) == 3 ? 8 \
|
||||||
|
: (n) == 4 ? 5 : (n) == 5 ? 4 : (n) == 6 ? 6 : (n))
|
||||||
|
|
||||||
|
/* Every debugger symbol must be in the text section.
|
||||||
|
Otherwise the assembler or the linker screws up. */
|
||||||
|
|
||||||
|
#define DEBUG_SYMS_TEXT
|
129
gcc/config/m68k/sun2o4.h
Normal file
129
gcc/config/m68k/sun2o4.h
Normal file
|
@ -0,0 +1,129 @@
|
||||||
|
/* Definitions of target machine for GNU compiler. Sun 2 running Sunos 4.
|
||||||
|
Copyright (C) 1987, 1988 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
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 "sun2.h"
|
||||||
|
|
||||||
|
|
||||||
|
/* Define __HAVE_SKY__ in preprocessor, according to the -m flags.
|
||||||
|
Also inform the program which CPU this is for. */
|
||||||
|
|
||||||
|
#undef CPP_SPEC
|
||||||
|
|
||||||
|
#undef PTRDIFF_TYPE
|
||||||
|
#define PTRDIFF_TYPE "int"
|
||||||
|
#undef SIZE_TYPE
|
||||||
|
#define SIZE_TYPE "int"
|
||||||
|
#undef WCHAR_TYPE
|
||||||
|
#define WCHAR_TYPE "short unsigned int"
|
||||||
|
#undef WCHAR_TYPE_SIZE
|
||||||
|
#define WCHAR_TYPE_SIZE 16
|
||||||
|
|
||||||
|
#if TARGET_DEFAULT & 0200
|
||||||
|
|
||||||
|
/* -msky is the default */
|
||||||
|
#define CPP_SPEC \
|
||||||
|
"%{!msoft-float:-D__HAVE_SKY__}\
|
||||||
|
%{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* -msoft-float is the default */
|
||||||
|
#define CPP_SPEC \
|
||||||
|
"%{msky:-D__HAVE_SKY__ }\
|
||||||
|
%{!ansi:%{m68020:-Dmc68020}%{mc68020:-Dmc68020}%{!mc68020:%{!m68020:-Dmc68010}}}"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* STARTFILE_SPEC to include sun floating point initialization
|
||||||
|
This is necessary (tr: Sun does it) for the sky routines.
|
||||||
|
I'm not sure what would happen below if people gave contradictory
|
||||||
|
arguments (eg. -msoft-float -mfpa) */
|
||||||
|
|
||||||
|
#undef STARTFILE_SPEC
|
||||||
|
|
||||||
|
#if TARGET_DEFAULT & 0200
|
||||||
|
/* -msky is the default */
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
|
||||||
|
%{msoft-float:Fcrt1.o%s} \
|
||||||
|
%{!msoft-float:Scrt1.o%s}"
|
||||||
|
#else
|
||||||
|
/* -msoft-float is the default */
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
|
||||||
|
%{msky:Scrt1.o%s} \
|
||||||
|
%{!msky:Fcrt1.o%s}"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Specify library to handle `-a' basic block profiling.
|
||||||
|
Control choice of libm.a (if user says -lm)
|
||||||
|
based on fp arith default and options. */
|
||||||
|
|
||||||
|
#undef LIB_SPEC
|
||||||
|
|
||||||
|
#if TARGET_DEFAULT & 0200
|
||||||
|
/* -msky is the default */
|
||||||
|
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
|
||||||
|
%{a:/usr/lib/bb_link.o -lc} %{g:-lg} \
|
||||||
|
%{msoft-float:-L/usr/lib/fsoft} \
|
||||||
|
%{!msoft_float:-L/usr/lib/fsky}"
|
||||||
|
#else
|
||||||
|
/* -msoft-float is the default */
|
||||||
|
#define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
|
||||||
|
%{a:/usr/lib/bb_link.o -lc} %{g:-lg} \
|
||||||
|
%{!msky:-L/usr/lib/fsoft} \
|
||||||
|
%{msky:-L/usr/lib/ffpa}"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#undef LINK_SPEC
|
||||||
|
#define LINK_SPEC "%{!e*:-e start} -dc -dp %{g:-Bstatic} %{static:-Bstatic}"
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_DOUBLE
|
||||||
|
#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
|
||||||
|
(REAL_VALUE_ISINF ((VALUE)) \
|
||||||
|
? fprintf (FILE, "\t.double 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
|
||||||
|
: REAL_VALUE_MINUS_ZERO ((VALUE)) \
|
||||||
|
? fprintf (FILE, "\t.long 0x80000000,0\n") \
|
||||||
|
: 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) \
|
||||||
|
(REAL_VALUE_ISINF ((VALUE)) \
|
||||||
|
? fprintf (FILE, "\t.single 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
|
||||||
|
: REAL_VALUE_MINUS_ZERO ((VALUE)) \
|
||||||
|
? fprintf (FILE, "\t.long 0x80000000\n") \
|
||||||
|
: fprintf (FILE, "\t.single 0r%.20e\n", (VALUE)))
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_FLOAT_OPERAND
|
||||||
|
#define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
|
||||||
|
(REAL_VALUE_ISINF ((VALUE)) \
|
||||||
|
? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
|
||||||
|
: REAL_VALUE_MINUS_ZERO ((VALUE)) \
|
||||||
|
? fprintf (FILE, "#0r-0.0") \
|
||||||
|
: fprintf (FILE, "#0r%.9g", (VALUE)))
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_DOUBLE_OPERAND
|
||||||
|
#define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
|
||||||
|
(REAL_VALUE_ISINF ((VALUE)) \
|
||||||
|
? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
|
||||||
|
: REAL_VALUE_MINUS_ZERO ((VALUE)) \
|
||||||
|
? fprintf (FILE, "#0r-0.0") \
|
||||||
|
: fprintf (FILE, "#0r%.20g", (VALUE)))
|
224
gcc/config/m68k/sun3.h
Normal file
224
gcc/config/m68k/sun3.h
Normal file
|
@ -0,0 +1,224 @@
|
||||||
|
/* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
|
||||||
|
Copyright (C) 1987, 1988 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
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. */
|
||||||
|
|
||||||
|
/* This comment is here to see if it will keep Sun's cpp from dying. */
|
||||||
|
|
||||||
|
/* If you do not need to generate floating point code for the optional
|
||||||
|
Sun FPA board, you can safely comment out the SUPPORT_SUN_FPA define
|
||||||
|
to gain a little speed and code size. */
|
||||||
|
|
||||||
|
#define SUPPORT_SUN_FPA
|
||||||
|
|
||||||
|
#include "m68k.h"
|
||||||
|
|
||||||
|
/* See m68k.h. 7 means 68020 with 68881. */
|
||||||
|
|
||||||
|
#ifndef TARGET_DEFAULT
|
||||||
|
#define TARGET_DEFAULT 7
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Define __HAVE_FPA__ or __HAVE_68881__ in preprocessor,
|
||||||
|
according to the -m flags.
|
||||||
|
This will control the use of inline 68881 insns in certain macros.
|
||||||
|
Also inform the program which CPU this is for. */
|
||||||
|
|
||||||
|
#if TARGET_DEFAULT & 02
|
||||||
|
|
||||||
|
/* -m68881 is the default */
|
||||||
|
#define CPP_SPEC \
|
||||||
|
"%{!msoft-float:%{mfpa:-D__HAVE_FPA__ }%{!mfpa:-D__HAVE_68881__ }}\
|
||||||
|
%{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
|
||||||
|
|
||||||
|
#else
|
||||||
|
#if TARGET_DEFAULT & 0100
|
||||||
|
|
||||||
|
/* -mfpa is the default */
|
||||||
|
#define CPP_SPEC \
|
||||||
|
"%{!msoft-float:%{m68881:-D__HAVE_68881__ }%{!m68881:-D__HAVE_FPA__ }}\
|
||||||
|
%{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* -msoft-float is the default */
|
||||||
|
#define CPP_SPEC \
|
||||||
|
"%{m68881:-D__HAVE_68881__ }%{mfpa:-D__HAVE_FPA__ }\
|
||||||
|
%{!ansi:%{m68000:-Dmc68010}%{mc68000:-Dmc68010}%{!mc68000:%{!m68000:-Dmc68020}}}"
|
||||||
|
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Prevent error on `-sun3' and `-target sun3' options. */
|
||||||
|
|
||||||
|
#define CC1_SPEC "%{sun3:} %{target:}"
|
||||||
|
|
||||||
|
#define PTRDIFF_TYPE "int"
|
||||||
|
#define SIZE_TYPE "int"
|
||||||
|
|
||||||
|
/* We must override m68k.h. */
|
||||||
|
#undef WCHAR_TYPE
|
||||||
|
#undef WCHAR_TYPE_SIZE
|
||||||
|
#define WCHAR_TYPE "short unsigned int"
|
||||||
|
#define WCHAR_TYPE_SIZE 16
|
||||||
|
|
||||||
|
/* These compiler options take an argument. We ignore -target for now. */
|
||||||
|
|
||||||
|
#define WORD_SWITCH_TAKES_ARG(STR) \
|
||||||
|
(!strcmp (STR, "Tdata") || !strcmp (STR, "include") \
|
||||||
|
|| !strcmp (STR, "imacros") || !strcmp (STR, "target") \
|
||||||
|
|| !strcmp (STR, "assert"))
|
||||||
|
|
||||||
|
/* -m68000 requires special flags to the assembler. */
|
||||||
|
|
||||||
|
#define ASM_SPEC \
|
||||||
|
"%{m68000:-mc68010}%{mc68000:-mc68010}%{!mc68000:%{!m68000:-mc68020}} \
|
||||||
|
%{fpic:-k} %{fPIC:-k}"
|
||||||
|
|
||||||
|
/* Names to predefine in the preprocessor for this target machine. */
|
||||||
|
|
||||||
|
#define CPP_PREDEFINES "-Dmc68000 -Dsun -Dunix"
|
||||||
|
|
||||||
|
/* STARTFILE_SPEC to include sun floating point initialization
|
||||||
|
This is necessary (tr: Sun does it) for both the m68881 and the fpa
|
||||||
|
routines.
|
||||||
|
Note that includes knowledge of the default specs for gcc, ie. no
|
||||||
|
args translates to the same effect as -m68881
|
||||||
|
I'm not sure what would happen below if people gave contradictory
|
||||||
|
arguments (eg. -msoft-float -mfpa) */
|
||||||
|
|
||||||
|
#if TARGET_DEFAULT & 0100
|
||||||
|
/* -mfpa is the default */
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
|
||||||
|
%{m68881:Mcrt1.o%s} \
|
||||||
|
%{msoft-float:Fcrt1.o%s} \
|
||||||
|
%{!m68881:%{!msoft-float:Wcrt1.o%s}}"
|
||||||
|
#else
|
||||||
|
#if TARGET_DEFAULT & 2
|
||||||
|
/* -m68881 is the default */
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
|
||||||
|
%{mfpa:Wcrt1.o%s} \
|
||||||
|
%{msoft-float:Fcrt1.o%s} \
|
||||||
|
%{!mfpa:%{!msoft-float:Mcrt1.o%s}}"
|
||||||
|
#else
|
||||||
|
/* -msoft-float is the default */
|
||||||
|
#define STARTFILE_SPEC \
|
||||||
|
"%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}} \
|
||||||
|
%{m68881:Mcrt1.o%s} \
|
||||||
|
%{mfpa:Wcrt1.o%s} \
|
||||||
|
%{!m68881:%{!mfpa:Fcrt1.o%s}}"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Specify library to handle `-a' basic block profiling.
|
||||||
|
Control choice of libm.a (if user says -lm)
|
||||||
|
based on fp arith default and options. */
|
||||||
|
|
||||||
|
#if TARGET_DEFAULT & 0100
|
||||||
|
/* -mfpa is the default */
|
||||||
|
#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
|
||||||
|
%{a:/usr/lib/bb_link.o} %{g:-lg} \
|
||||||
|
%{msoft-float:-L/usr/lib/fsoft}%{m68881:-L/usr/lib/f68881}\
|
||||||
|
%{!msoft_float:%{!m68881:-L/usr/lib/ffpa}}"
|
||||||
|
#else
|
||||||
|
#if TARGET_DEFAULT & 2
|
||||||
|
/* -m68881 is the default */
|
||||||
|
#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
|
||||||
|
%{a:/usr/lib/bb_link.o} %{g:-lg} \
|
||||||
|
%{msoft-float:-L/usr/lib/fsoft}%{!msoft-float:%{!mfpa:-L/usr/lib/f68881}}\
|
||||||
|
%{mfpa:-L/usr/lib/ffpa}"
|
||||||
|
#else
|
||||||
|
/* -msoft-float is the default */
|
||||||
|
#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \
|
||||||
|
%{a:/usr/lib/bb_link.o} %{g:-lg} \
|
||||||
|
%{!m68881:%{!mfpa:-L/usr/lib/fsoft}}%{m68881:-L/usr/lib/f68881}\
|
||||||
|
%{mfpa:-L/usr/lib/ffpa}"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Provide required defaults for linker -e and -d switches.
|
||||||
|
Also, it is hard to debug with shared libraries,
|
||||||
|
so don't use them if going to debug. */
|
||||||
|
|
||||||
|
#define LINK_SPEC "%{!e*:-e start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} \
|
||||||
|
%{assert*}"
|
||||||
|
|
||||||
|
/* Every structure or union's size must be a multiple of 2 bytes. */
|
||||||
|
|
||||||
|
#define STRUCTURE_SIZE_BOUNDARY 16
|
||||||
|
|
||||||
|
/* This is BSD, so it wants DBX format. */
|
||||||
|
|
||||||
|
#define DBX_DEBUGGING_INFO
|
||||||
|
|
||||||
|
/* Allow folding division by zero. */
|
||||||
|
#define REAL_INFINITY
|
||||||
|
|
||||||
|
/* This is how to output an assembler line defining a `double' constant. */
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_DOUBLE
|
||||||
|
#define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
|
||||||
|
{ \
|
||||||
|
if (REAL_VALUE_ISINF (VALUE)) \
|
||||||
|
fprintf (FILE, "\t.double 0r%s99e999\n", (VALUE) > 0 ? "" : "-"); \
|
||||||
|
else if (isnan (VALUE)) \
|
||||||
|
{ \
|
||||||
|
union { double d; long l[2];} t; \
|
||||||
|
t.d = (VALUE); \
|
||||||
|
fprintf (FILE, "\t.long 0x%lx\n\t.long 0x%lx\n", t.l[0], t.l[1]); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
fprintf (FILE, "\t.double 0r%.17g\n", VALUE); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* This is how to output an assembler line defining a `float' constant. */
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_FLOAT
|
||||||
|
#define ASM_OUTPUT_FLOAT(FILE,VALUE) \
|
||||||
|
{ \
|
||||||
|
if (REAL_VALUE_ISINF (VALUE)) \
|
||||||
|
fprintf (FILE, "\t.single 0r%s99e999\n", (VALUE) > 0 ? "" : "-"); \
|
||||||
|
else if (isnan (VALUE)) \
|
||||||
|
{ \
|
||||||
|
union { float f; long l;} t; \
|
||||||
|
t.f = (VALUE); \
|
||||||
|
fprintf (FILE, "\t.long 0x%lx\n", t.l); \
|
||||||
|
} \
|
||||||
|
else \
|
||||||
|
fprintf (FILE, "\t.single 0r%.9g\n", VALUE); \
|
||||||
|
}
|
||||||
|
|
||||||
|
/* This is how to output an assembler lines defining floating operands.
|
||||||
|
There's no way to output a NaN's fraction, so we lose it. */
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_FLOAT_OPERAND
|
||||||
|
#define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
|
||||||
|
(REAL_VALUE_ISINF ((VALUE)) \
|
||||||
|
? (asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")), 0) \
|
||||||
|
: (VALUE) == -0.0 \
|
||||||
|
? (asm_fprintf (FILE, "%I0r-0.0"), 0) \
|
||||||
|
: (asm_fprintf (FILE, "%I0r%.9g", (VALUE)), 0))
|
||||||
|
|
||||||
|
#undef ASM_OUTPUT_DOUBLE_OPERAND
|
||||||
|
#define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
|
||||||
|
(REAL_VALUE_ISINF ((VALUE)) \
|
||||||
|
? (asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")), 0) \
|
||||||
|
: (VALUE) == -0.0 \
|
||||||
|
? (asm_fprintf (FILE, "%I0r-0.0"), 0) \
|
||||||
|
: (asm_fprintf (FILE, "%I0r%.17g", (VALUE)), 0))
|
1602
gcc/config/sparc/sparc.h
Normal file
1602
gcc/config/sparc/sparc.h
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue