diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/bfin/bfin.c | 5 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.opt | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 2d27c32..b34e130 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -1880,7 +1880,10 @@ bfin_expand_call (rtx retval, rtx fnaddr, rtx callarg1, rtx cookie, int sibcall) if (TARGET_FDPIC) { if (GET_CODE (callee) != SYMBOL_REF - || bfin_longcall_p (callee, INTVAL (cookie))) + || bfin_longcall_p (callee, INTVAL (cookie)) + || (GET_CODE (callee) == SYMBOL_REF + && !SYMBOL_REF_LOCAL_P (callee) + && TARGET_INLINE_PLT)) { rtx addr = callee; if (! address_operand (addr, Pmode)) diff --git a/gcc/config/bfin/bfin.opt b/gcc/config/bfin/bfin.opt index 2871cbf..56d37b5 100644 --- a/gcc/config/bfin/bfin.opt +++ b/gcc/config/bfin/bfin.opt @@ -72,6 +72,10 @@ mfdpic Target Report Mask(FDPIC) Enable Function Descriptor PIC mode +minline-plt +Target Report Mask(INLINE_PLT) +Enable inlining of PLT in function calls + mstack-check-l1 Target Report Mask(STACK_CHECK_L1) Do stack checking using bounds in L1 scratch memory |