summaryrefslogtreecommitdiff
path: root/gcc/config/mips/iris5gas.h
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-01-06 01:47:28 -0800
committerYamaArashi <shadow962@live.com>2016-01-06 01:47:28 -0800
commitbe8b04496302184c6e8f04d6179f9c3afc50aeb6 (patch)
tree726e2468c0c07add773c0dbd86ab6386844259ae /gcc/config/mips/iris5gas.h
initial commit
Diffstat (limited to 'gcc/config/mips/iris5gas.h')
-rwxr-xr-xgcc/config/mips/iris5gas.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/config/mips/iris5gas.h b/gcc/config/mips/iris5gas.h
new file mode 100755
index 0000000..477a55f
--- /dev/null
+++ b/gcc/config/mips/iris5gas.h
@@ -0,0 +1,34 @@
+/* Definitions of target machine for GNU compiler. Irix version 5 with gas. */
+
+/* Enable debugging. */
+#define DBX_DEBUGGING_INFO
+#define SDB_DEBUGGING_INFO
+#define MIPS_DEBUGGING_INFO
+#define PREFERRED_DEBUGGING_TYPE SDB_DEBUG
+
+/* GNU as does handle DWARF2 directives. */
+#undef DWARF2_UNWIND_INFO
+#define DWARF2_UNWIND_INFO 1
+
+/* Irix 5 does not have some strange restrictions that Irix 3 had. */
+#undef SET_FILE_NUMBER
+#define SET_FILE_NUMBER() ++num_source_filenames
+#undef LABEL_AFTER_LOC
+#define LABEL_AFTER_LOC(STREAM)
+
+/* We need to use .esize and .etype instead of .size and .type to
+ avoid conflicting with ELF directives. These are only recognized
+ by gas, anyhow, not the native assembler. */
+#undef PUT_SDB_SIZE
+#define PUT_SDB_SIZE(a) \
+do { \
+ extern FILE *asm_out_text_file; \
+ fprintf (asm_out_text_file, "\t.esize\t%d;", (a)); \
+} while (0)
+
+#undef PUT_SDB_TYPE
+#define PUT_SDB_TYPE(a) \
+do { \
+ extern FILE *asm_out_text_file; \
+ fprintf (asm_out_text_file, "\t.etype\t0x%x;", (a)); \
+} while (0)