* varasm.c (assemble_real): Use REAL_VALUE_TO_x and assemble_integer
[official-gcc.git] / gcc / config / i860 / paragon.h
blob6ed94ad70eb552e5b0593a0dbb6dc34036bb8494
1 /* Target definitions for GNU compiler for Intel 80860 running OSF/1AD
2 Copyright (C) 1991, 1996, 1999, 2000 Free Software Foundation, Inc.
3 Based upon original work of Ron Guilmette (rfg@monkeys.com).
4 Contributed by Andy Pfiffer (andyp@ssd.intel.com).
5 Partially inspired by
6 Pete Beckman of Indiana University (beckman@cs.indiana.edu)
7 Harry Dolan of Intel Corporation (dolan@ssd.intel.com)
9 This file is part of GNU CC.
11 GNU CC is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2, or (at your option)
14 any later version.
16 GNU CC is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with GNU CC; see the file COPYING. If not, write to
23 the Free Software Foundation, 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA. */
26 #undef TARGET_SWITCHES
27 #define TARGET_SWITCHES \
28 { {"xp", 1, N_("Generate code which uses the FPU")}, \
29 {"noxp", -1, N_("Do not generate code which uses the FPU")}, \
30 {"xr", -1, N_("Do not generate code which uses the FPU")}, \
31 {"noieee", -1, N_("Do not generate code which uses the FPU")}, \
32 {"nx", 2, NULL}, \
33 { "", TARGET_DEFAULT, NULL}}
35 #undef TARGET_DEFAULT
36 #define TARGET_DEFAULT 1
38 /* The Intel as860 assembler does not understand .stabs, must use COFF */
39 #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
41 #undef TARGET_VERSION
42 #define TARGET_VERSION fprintf (stderr, " (i860 OSF/1AD)");
44 #undef CPP_PREDEFINES
45 #define CPP_PREDEFINES "-Di860 -D__i860 -D__i860__ -D__PARAGON__ -D__OSF1__ -D_COFF -Dunix -DMACH -DCMU"
47 #define CPP_SPEC "%{mnx:-D__NODE}"
49 /* autoinit.o autolaunches NX applications */
50 #define STARTFILE_SPEC "crt0.o%s %{mnx:-yoptions/autoinit.o%s}"
52 /* libic.a is the PGI intrinsic library */
53 /* libpm.o and guard.o are for the performance monitoring modules (ignored) */
54 /* /usr/lib/noieee contains non-IEEE compliant (but faster) math routines */
55 #if HAVE_DASH_G
56 #define LIB_SPEC \
57 "%{mnoieee:-L/usr/lib/noieee} %{mnx:-lnx} %{g*:-lg} -lc -lmach -lc -lic"
58 #else /* HAVE_DASH_G */
59 /* can't use -g for -lg; libg.a doesn't have a symbol table and ld complains */
60 #define LIB_SPEC "%{mnoieee:-L/usr/lib/noieee} %{mnx:-lnx} -lc -lmach -lc -lic"
61 #endif /* HAVE_DASH_G */
63 /* Get rid of definition from svr3.h. */
64 #undef SIZE_TYPE
66 #undef I860_REG_PREFIX
68 #undef ASM_COMMENT_START
69 #define ASM_COMMENT_START "//"
71 #undef TYPE_OPERAND_FMT
72 #define TYPE_OPERAND_FMT "\"%s\""
74 #undef ASCII_DATA_ASM_OP
75 #define ASCII_DATA_ASM_OP "\t.byte\t"
78 * the assembler we're using doesn't grok .ident...
80 #undef ASM_OUTPUT_IDENT
81 #define ASM_OUTPUT_IDENT(FILE, NAME) \
82 fprintf (FILE, "//\t.ident \"%s\"\n", NAME);
84 #undef ASM_OUTPUT_ASCII
85 #define ASM_OUTPUT_ASCII(FILE, STR, LENGTH) \
86 do \
87 { \
88 register const unsigned char *str = (const unsigned char *) (STR); \
89 register const unsigned char *limit = str + (LENGTH); \
90 register unsigned bytes_in_chunk = 0; \
91 for (; str < limit; str++) \
92 { \
93 register unsigned ch = *str; \
94 if (ch < 32 || ch == '\\' || ch == '"' || ch >= 127) \
95 { \
96 if (bytes_in_chunk > 0) \
97 { \
98 fprintf ((FILE), "\"\n"); \
99 bytes_in_chunk = 0; \
101 assemble_aligned_integer (1, GEN_INT (ch)); \
103 else \
105 if (bytes_in_chunk >= 60) \
107 fprintf ((FILE), "\"\n"); \
108 bytes_in_chunk = 0; \
110 if (bytes_in_chunk == 0) \
111 fprintf ((FILE), "%s\"", ASCII_DATA_ASM_OP); \
112 putc (ch, (FILE)); \
113 bytes_in_chunk++; \
116 if (bytes_in_chunk > 0) \
117 fprintf ((FILE), "\"\n"); \
119 while (0)
122 /* This says how to output an assembler line
123 to define a local common symbol. */
125 #undef ASM_OUTPUT_LOCAL
126 #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
127 ( fputs (".lcomm ", (FILE)), \
128 assemble_name ((FILE), (NAME)), \
129 fprintf ((FILE), ",%u\n", (ROUNDED)))
132 * not defining ASM_STABS_OP yields .stabs in the .s file
133 * when using g++ -- so, I'll define it.
135 #define ASM_STABS_OP "//.stabs"
137 /* Define this macro if an instruction to load a value narrower
138 than a word from memory into a register also zero-extends the
139 value to the whole register. */
140 /*#define BYTE_LOADS_ZERO_EXTEND*/
142 /* Define this macro as a C expression which is nonzero if
143 accessing less than a word of memory (i.e. a `char' or a
144 `short') is no faster than accessing a word of memory, i.e., if
145 such access require more than one instruction or if there is no
146 difference in cost between byte and (aligned) word loads.
148 On RISC machines, it tends to generate better code to define
149 this as 1, since it avoids making a QI or HI mode register. */
151 #undef SLOW_BYTE_ACCESS
152 #define SLOW_BYTE_ACCESS 1
155 /* Define if shifts truncate the shift count
156 which implies one can omit a sign-extension or zero-extension
157 of a shift count. */
158 #define SHIFT_COUNT_TRUNCATED 1
161 #define FASTEST_ALIGNMENT 32
163 /* Make strings word-aligned so strcpy from constants will be faster. */
164 #define CONSTANT_ALIGNMENT(EXP, ALIGN) \
165 (TREE_CODE (EXP) == STRING_CST \
166 && (ALIGN) < FASTEST_ALIGNMENT ? FASTEST_ALIGNMENT : (ALIGN))
168 /* Make arrays of chars word-aligned for the same reasons. */
169 #define DATA_ALIGNMENT(TYPE, ALIGN) \
170 (TREE_CODE (TYPE) == ARRAY_TYPE \
171 && TYPE_MODE (TREE_TYPE (TYPE)) == QImode \
172 && (ALIGN) < FASTEST_ALIGNMENT ? FASTEST_ALIGNMENT : (ALIGN))
175 * disable a few things picked up from svr3.h
177 #undef INIT_SECTION_ASM_OP
178 #undef FINI_SECTION_ASM_OP
179 #undef CONST_SECTION_ASM_OP
180 #undef CTORS_SECTION_ASM_OP
181 #undef DTORS_SECTION_ASM_OP
182 #undef DO_GLOBAL_CTORS_BODY
183 #undef ASM_OUTPUT_DESTRUCTOR
184 #undef SELECT_SECTION
185 #undef SELECT_RTX_SECTION
186 #undef READONLY_DATA_SECTION
188 #define BSS_SECTION_ASM_OP "\t.bss" /* XXX */
189 #undef EXTRA_SECTIONS
190 #undef EXTRA_SECTION_FUNCTIONS