aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rl78
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2013-09-12 19:03:35 -0400
committerDJ Delorie <dj@gcc.gnu.org>2013-09-12 19:03:35 -0400
commitc5215a9bd381d2f607c731d1a33d9784d20c2c08 (patch)
tree138f79556134d96fe89f5f93cbce825e9f7966ba /gcc/config/rl78
parent17b2557c8348c79c6f1a4d6c3a46114011739eff (diff)
downloadgcc-c5215a9bd381d2f607c731d1a33d9784d20c2c08.zip
gcc-c5215a9bd381d2f607c731d1a33d9784d20c2c08.tar.gz
gcc-c5215a9bd381d2f607c731d1a33d9784d20c2c08.tar.bz2
rl78.opt (mrelax): New.
* 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
Diffstat (limited to 'gcc/config/rl78')
-rw-r--r--gcc/config/rl78/rl78.h10
-rw-r--r--gcc/config/rl78/rl78.opt4
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/config/rl78/rl78.h b/gcc/config/rl78/rl78.h
index 57c34ab..00d2b83 100644
--- a/gcc/config/rl78/rl78.h
+++ b/gcc/config/rl78/rl78.h
@@ -41,6 +41,16 @@
#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 \
diff --git a/gcc/config/rl78/rl78.opt b/gcc/config/rl78/rl78.opt
index c528ae4..1538b89 100644
--- a/gcc/config/rl78/rl78.opt
+++ b/gcc/config/rl78/rl78.opt
@@ -41,3 +41,7 @@ Enum(rl78_mul_types) String(rl78) Value(MUL_RL78)
EnumValue
Enum(rl78_mul_types) String(g13) Value(MUL_G13)
+
+mrelax
+Target
+Enable assembler and linker relaxation.