From: DJ Delorie Date: Thu, 12 Sep 2013 23:03:35 +0000 (-0400) Subject: rl78.opt (mrelax): New. X-Git-Tag: releases/gcc-4.9.0~4097 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5215a9bd381d2f607c731d1a33d9784d20c2c08;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5dc8ed03385d..26bcf8d09054 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 57c34ab763f3..00d2b83b9f56 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 c528ae47be61..1538b897c570 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.