Commit 157484ab authored by Vasily Gorbik's avatar Vasily Gorbik Committed by Martin Schwidefsky

s390: disable asm code expolines if cc does not support it

To avoid a mixture of asm code with expolines and c code without them,
propagate CC_USING_EXPOLINE to KBUILD_AFLAGS and use it to detect
whether asm code should have expolines or not.
Reviewed-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 64e03ff7
...@@ -82,6 +82,7 @@ ifdef CONFIG_EXPOLINE ...@@ -82,6 +82,7 @@ ifdef CONFIG_EXPOLINE
CC_FLAGS_EXPOLINE += -mindirect-branch-table CC_FLAGS_EXPOLINE += -mindirect-branch-table
export CC_FLAGS_EXPOLINE export CC_FLAGS_EXPOLINE
cflags-y += $(CC_FLAGS_EXPOLINE) -DCC_USING_EXPOLINE cflags-y += $(CC_FLAGS_EXPOLINE) -DCC_USING_EXPOLINE
aflags-y += -DCC_USING_EXPOLINE
endif endif
endif endif
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#ifdef __ASSEMBLY__ #ifdef __ASSEMBLY__
#ifdef CONFIG_EXPOLINE #ifdef CC_USING_EXPOLINE
_LC_BR_R1 = __LC_BR_R1 _LC_BR_R1 = __LC_BR_R1
...@@ -189,7 +189,7 @@ _LC_BR_R1 = __LC_BR_R1 ...@@ -189,7 +189,7 @@ _LC_BR_R1 = __LC_BR_R1
.macro BASR_EX rsave,rtarget,ruse=%r1 .macro BASR_EX rsave,rtarget,ruse=%r1
basr \rsave,\rtarget basr \rsave,\rtarget
.endm .endm
#endif #endif /* CC_USING_EXPOLINE */
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment