]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rl78.opt (mrelax): New.
authorDJ Delorie <dj@redhat.com>
Thu, 12 Sep 2013 23:03:35 +0000 (19:03 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Thu, 12 Sep 2013 23:03:35 +0000 (19:03 -0400)
* 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

gcc/ChangeLog
gcc/config/rl78/rl78.h
gcc/config/rl78/rl78.opt

index 5dc8ed03385d0eb296366926274e5acca487df63..26bcf8d0905431cf06f30361d77a1832605c86b1 100644 (file)
@@ -1,5 +1,9 @@
 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.
index 57c34ab763f30082bf0b4c587621306894f19ef3..00d2b83b9f5690647122e9e9362ee0e0c98890c6 100644 (file)
 #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                                          \
index c528ae47be61723d8cb0921bb4dc027651e97a3f..1538b897c57023766e781b9fd391cb9522c70619 100644 (file)
@@ -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.