* config/rl78/rl78.opt (mrelax): New.
* config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
* config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
From-SVN: r202543
2013-09-12 DJ Delorie <dj@redhat.com>
+ * config/rl78/rl78.opt (mrelax): New.
+ * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
+ * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
+
* config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
between SP and FP.
(rl78_expand_epilogue): Likewise.
#undef ENDFILE_SPEC
#define ENDFILE_SPEC "crtend.o%s crtn.o%s"
+#undef ASM_SPEC
+#define ASM_SPEC "\
+%{mrelax:-relax} \
+"
+
+#undef LINK_SPEC
+#define LINK_SPEC "\
+%{mrelax:-relax} \
+"
+
#undef LIB_SPEC
#define LIB_SPEC " \
--start-group \
EnumValue
Enum(rl78_mul_types) String(g13) Value(MUL_G13)
+
+mrelax
+Target
+Enable assembler and linker relaxation.