xtensa: add -mlongcalls to CFLAGS for xtensa
PATCH 1/1 xtensa: add -mlongcalls to CFLAGS for xtensa
The longcalls option allows calls across a greater range of addresses.
This option may degrade both code size and performance, but the linker can generally optimize away the unnecessary overhead when a call ends up within range
Signed-off-by Chris Zankel <[email protected]>
--- package/Makefile.in | 9 +++++++++ 1 file changed, 9 insertions(+)
package/Makefile.in +9 -0
@@ -56,6 +56,15 @@ TARGET_ABI+=-mabi=spe -mfloat-gprs=double -Wa,-me500mc endif endif +# Use longcalls option for Xtensa globally. +# The 'longcalls' option allows calls across a greater range of addresses, +# and is required for some packages. While this option can degrade both +# code size and performance, the linker can usually optimize away the +# overhead when a call ends up within a certain range. +ifeq ($(BR2_xtensa),y) +TARGET_ABI += -mlongcalls +endif + STAGING_DIR=$(HOST_DIR)/usr/$(GNU_TARGET_NAME)/sysroot TARGET_OPTIMIZATION:=$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
Signature · 1 line
1.7.9.5
PATCH 1/1 xtensa: add -mlongcalls to CFLAGS for xtensa
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Chris" == Chris Zankel <[email protected]> writes:
Chris> The longcalls option allows calls across a greater range of addresses. Chris> This option may degrade both code size and performance, but Chris> the linker can generally optimize away the unnecessary overhead Chris> when a call ends up within range
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard