Initial revision
[official-gcc.git] / gcc / config / tahoe / harris.h
blob9226445ed986551df705dd944642438db9f1f7bd
1 /* Definitions of target machine for GNU compiler. Harris tahoe version.
2 Copyright (C) 1989, 1993 Free Software Foundation, Inc.
4 This file is part of GNU CC.
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 2, or (at your option)
9 any later version.
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.
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, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
22 #include "tahoe/tahoe.h"
24 #undef CPP_PREDEFINES
25 #define CPP_PREDEFINES "-Dtahoe -Dunix -Dhcx -Asystem(unix) -Acpu(tahoe) -Amachine(tahoe)"
27 #undef DBX_DEBUGGING_INFO
28 #define SDB_DEBUGGING_INFO
30 #undef LIB_SPEC
32 #undef TARGET_DEFAULT
33 #define TARGET_DEFAULT 1
35 /* urem and udiv don't exist on this system. */
36 #undef UDIVSI3_LIBCALL
37 #undef UMODSI3_LIBCALL
39 /* Operand of .align is not logarithmic. */
40 #undef ASM_OUTPUT_ALIGN
41 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
42 LOG ? fprintf (FILE, "\t.align %d\n", 1 << (LOG)) : 0
44 /* For the same reason, we need .align 2 after casesi. */
45 #undef PRINT_OPERAND
46 #define PRINT_OPERAND(FILE, X, CODE) \
47 { if (CODE == '@') \
48 putc ('2', FILE); \
49 else if (GET_CODE (X) == REG) \
50 fprintf (FILE, "%s", reg_names[REGNO (X)]); \
51 else if (GET_CODE (X) == MEM) \
52 output_address (XEXP (X, 0)); \
53 else { putc ('$', FILE); output_addr_const (FILE, X); }}
55 #undef ASM_OUTPUT_LOCAL
56 #define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
57 ( fputs (".bss ", (FILE)), \
58 assemble_name ((FILE), (NAME)), \
59 fprintf ((FILE), ",%u,4\n", (ROUNDED)))
61 /* Output at beginning of assembler file. */
62 /* The .file command should always begin the output. */
64 #undef ASM_FILE_START
65 #define ASM_FILE_START(FILE) \
66 output_file_directive ((FILE), main_input_filename);
68 #define ASM_OUTPUT_ASCII(FILE, PTR, SIZE) \
69 do { \
70 unsigned char *_p = (PTR); \
71 int _thissize = (SIZE); \
72 fprintf ((FILE), "\t.ascii \""); \
73 for (i = 0; i < _thissize; i++) \
74 { \
75 register int c = _p[i]; \
76 if (c >= ' ' && c < 0177 && c != '\"' && c != '\\') \
77 putc (c, (FILE)); \
78 else \
79 { \
80 fprintf ((FILE), "\\%o", c); \
81 if (i < _thissize - 1 \
82 && _p[i + 1] >= '0' && _p[i + 1] <= '9') \
83 fprintf ((FILE), "\"\n\t.ascii \""); \
84 } \
85 } \
86 fprintf ((FILE), "\"\n"); \
87 } while (0)