|
|
1.1 root 1: /* Definitions of target machine for GNU compiler. For Sun 2 running Sunos 4.
2: Copyright (C) 1987, 1988, 1991 Free Software Foundation, Inc.
3:
4: This file is part of GNU CC.
5:
6: GNU CC is free software; you can redistribute it and/or modify
7: it under the terms of the GNU General Public License as published by
8: the Free Software Foundation; either version 1, or (at your option)
9: any later version.
10:
11: GNU CC is distributed in the hope that it will be useful,
12: but WITHOUT ANY WARRANTY; without even the implied warranty of
13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: GNU General Public License for more details.
15:
16: You should have received a copy of the GNU General Public License
17: along with GNU CC; see the file COPYING. If not, write to
18: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19:
20: #include "tm-sun2.h"
21:
1.1.1.2 ! root 22: #undef LINK_SPEC
! 23: #define LINK_SPEC "%{!e*:-e start} -dc -dp %{g:-Bstatic} %{static:-Bstatic} %{-Bstatic}"
! 24:
1.1 root 25: #undef ASM_OUTPUT_DOUBLE
26: #define ASM_OUTPUT_DOUBLE(FILE,VALUE) \
27: (isinf ((VALUE)) \
28: ? fprintf (FILE, "\t.double 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
29: : double_is_minus_zero ((VALUE)) \
30: ? fprintf (FILE, "\t.long 0x80000000,0\n") \
31: : fprintf (FILE, "\t.double 0r%.20e\n", (VALUE)))
32:
33: /* This is how to output an assembler line defining a `float' constant. */
34:
35: #undef ASM_OUTPUT_FLOAT
36: #define ASM_OUTPUT_FLOAT(FILE,VALUE) \
37: (isinf ((VALUE)) \
38: ? fprintf (FILE, "\t.single 0r%s99e999\n", ((VALUE) > 0 ? "" : "-")) \
39: : double_is_minus_zero ((VALUE)) \
40: ? fprintf (FILE, "\t.long 0x80000000\n") \
41: : fprintf (FILE, "\t.single 0r%.20e\n", (VALUE)))
42:
43: #undef ASM_OUTPUT_FLOAT_OPERAND
44: #define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \
45: (isinf ((VALUE)) \
46: ? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
47: : double_is_minus_zero ((VALUE)) \
48: ? fprintf (FILE, "#0r-0.0") \
49: : fprintf (FILE, "#0r%.9g", (VALUE)))
50:
51: #undef ASM_OUTPUT_DOUBLE_OPERAND
52: #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \
53: (isinf ((VALUE)) \
54: ? fprintf (FILE, "#0r%s99e999", ((VALUE) > 0 ? "" : "-")) \
55: : double_is_minus_zero ((VALUE)) \
56: ? fprintf (FILE, "#0r-0.0") \
57: : fprintf (FILE, "#0r%.20g", (VALUE)))
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.