summaryrefslogtreecommitdiff
path: root/gcc/config/tahoe
diff options
context:
space:
mode:
authormycroft <mycroft@138bc75d-0d04-0410-961f-82ee72b054a4>1991-12-01 04:56:47 +0000
committermycroft <mycroft@138bc75d-0d04-0410-961f-82ee72b054a4>1991-12-01 04:56:47 +0000
commitbb01a06e6cdd8c543600813f0e01cf9ad5a1076c (patch)
treeb93f13da7546a3d53b77d1ae2ba086b18d9b679d /gcc/config/tahoe
parent26766eee471004f07a47eb0b2058d9cfd8156d97 (diff)
downloadgcc-bb01a06e6cdd8c543600813f0e01cf9ad5a1076c.tar.gz
entered into RCS
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/tahoe')
-rw-r--r--gcc/config/tahoe/harris.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/gcc/config/tahoe/harris.h b/gcc/config/tahoe/harris.h
new file mode 100644
index 00000000000..0dc68b6e53e
--- /dev/null
+++ b/gcc/config/tahoe/harris.h
@@ -0,0 +1,86 @@
+/* Definitions of target machine for GNU compiler. Harris tahoe version.
+ Copyright (C) 1989 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 "tahoe.h"
+
+#undef CPP_PREDEFINES
+#define CPP_PREDEFINES "-Dtahoe -Dunix -Dhcx"
+
+#undef DBX_DEBUGGING_INFO
+#define SDB_DEBUGGING_INFO
+
+#undef LIB_SPEC
+
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT 1
+
+/* urem and udiv don't exist on this system. */
+#undef UDIVSI3_LIBCALL
+#undef UMODSI3_LIBCALL
+
+/* Operand of .align is not logarithmic. */
+#undef ASM_OUTPUT_ALIGN
+#define ASM_OUTPUT_ALIGN(FILE,LOG) \
+ LOG ? fprintf (FILE, "\t.align %d\n", 1 << (LOG)) : 0
+
+/* For the same reason, we need .align 2 after casesi. */
+#undef PRINT_OPERAND
+#define PRINT_OPERAND(FILE, X, CODE) \
+{ if (CODE == '@') \
+ putc ('2', FILE); \
+ else if (GET_CODE (X) == REG) \
+ fprintf (FILE, "%s", reg_names[REGNO (X)]); \
+ else if (GET_CODE (X) == MEM) \
+ output_address (XEXP (X, 0)); \
+ else { putc ('$', FILE); output_addr_const (FILE, X); }}
+
+#undef ASM_OUTPUT_LOCAL
+#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \
+( fputs (".bss ", (FILE)), \
+ assemble_name ((FILE), (NAME)), \
+ fprintf ((FILE), ",%u,4\n", (ROUNDED)))
+
+/* Output at beginning of assembler file. */
+/* The .file command should always begin the output. */
+
+#undef ASM_FILE_START
+#define ASM_FILE_START(FILE) \
+ output_file_directive ((FILE), main_input_filename);
+
+#define ASM_OUTPUT_ASCII(FILE, PTR, SIZE) \
+{ \
+ unsigned char *_p = (PTR); \
+ int _thissize = (SIZE); \
+ fprintf ((FILE), "\t.ascii \""); \
+ for (i = 0; i < _thissize; i++) \
+ { \
+ register int c = _p[i]; \
+ if (c >= ' ' && c < 0177 && c != '\"' && c != '\\') \
+ putc (c, (FILE)); \
+ else \
+ { \
+ fprintf ((FILE), "\\%o", c); \
+ if (i < _thissize - 1 \
+ && _p[i + 1] >= '0' && _p[i + 1] <= '9') \
+ fprintf ((FILE), "\"\n\t.ascii \""); \
+ } \
+ } \
+ fprintf ((FILE), "\"\n"); \
+}