summaryrefslogtreecommitdiff
path: root/gcc/config/m68k/newsgas.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/m68k/newsgas.h
initial commit
Diffstat (limited to 'gcc/config/m68k/newsgas.h')
-rwxr-xr-xgcc/config/m68k/newsgas.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/config/m68k/newsgas.h b/gcc/config/m68k/newsgas.h
new file mode 100755
index 0000000..8dc7801
--- /dev/null
+++ b/gcc/config/m68k/newsgas.h
@@ -0,0 +1,19 @@
+/* In Sony versions before 3.0, use the GNU Assembler, because the
+ system's assembler has no way to assemble the difference of two
+ labels for the displacement in a switch-dispatch instruction. */
+
+#define USE_GAS
+
+/* This is the assembler directive to equate two values. */
+
+#undef SET_ASM_OP
+#define SET_ASM_OP ".set"
+
+/* This is how we tell the assembler that a symbol is weak. */
+
+#undef ASM_WEAKEN_LABEL
+#define ASM_WEAKEN_LABEL(FILE,NAME) \
+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
+ fputc ('\n', FILE); } while (0)
+
+#include "m68k/news.h"