From b87a044e4ef32b61344e59193b31a44427c1cb7d Mon Sep 17 00:00:00 2001 From: dj Date: Thu, 12 Sep 2013 23:03:35 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202543 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/config/rl78/rl78.h | 10 ++++++++++ gcc/config/rl78/rl78.opt | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5dc8ed03385..26bcf8d0905 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2013-09-12 DJ Delorie + * 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. diff --git a/gcc/config/rl78/rl78.h b/gcc/config/rl78/rl78.h index 57c34ab763f..00d2b83b9f5 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 c528ae47be6..1538b897c57 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. -- 2.11.4.GIT