summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/config/i860/bsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/gcc/config/i860/bsd.h')
-rw-r--r--gnu/usr.bin/gcc/config/i860/bsd.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/config/i860/bsd.h b/gnu/usr.bin/gcc/config/i860/bsd.h
new file mode 100644
index 00000000000..4f745c50a1b
--- /dev/null
+++ b/gnu/usr.bin/gcc/config/i860/bsd.h
@@ -0,0 +1,46 @@
+#include "i860/i860.h"
+
+#undef TARGET_VERSION
+#define TARGET_VERSION fprintf (stderr, " (i860, BSD)")
+
+/* BSD UN*X systems use BSD STABS debugging info. */
+
+#define DBX_DEBUGGING_INFO
+
+#define ASCII_DATA_ASM_OP ".byte"
+#define ASM_OUTPUT_ASCII(f, p, size) \
+do { register unsigned i; \
+ int inside; \
+ inside = FALSE; \
+ for (i = 0; i < (size); i++) { \
+ if (i % 64 == 0) { \
+ if (i != 0) { \
+ if (inside) \
+ putc('"', (f)); \
+ putc('\n', (f)); \
+ inside = FALSE; \
+ } \
+ fprintf((f), "\t%s ", ASCII_DATA_ASM_OP); \
+ } \
+ if ((p)[i] < 32 || (p)[i] == '\\' || (p)[i] == '"' || (p)[i] >= 127) { \
+ if (inside) { \
+ putc('"', (f)); \
+ inside = FALSE; \
+ } \
+ if (i % 64 != 0) \
+ putc(',', (f)); \
+ fprintf((f), "%d", (p)[i]); \
+ } else { \
+ if (!inside) { \
+ if (i % 64 != 0) \
+ putc(',', (f)); \
+ putc('"', (f)); \
+ inside = TRUE; \
+ } \
+ putc((p)[i], (f)); \
+ } \
+ } \
+ if (inside) \
+ putc('"', (f)); \
+ putc('\n', (f)); \
+} while (0)