3 @@ -225,6 +225,12 @@ prepare_call_address (tree fndecl_or_typ
4 && targetm.small_register_classes_for_mode_p (FUNCTION_MODE))
5 ? force_not_mem (memory_address (FUNCTION_MODE, funexp))
6 : memory_address (FUNCTION_MODE, funexp));
7 + else if (flag_pic && !flag_plt && fndecl_or_type
8 + && TREE_CODE (fndecl_or_type) == FUNCTION_DECL
9 + && !targetm.binds_local_p (fndecl_or_type))
11 + funexp = force_reg (Pmode, funexp);
15 #ifndef NO_FUNCTION_CSE
18 @@ -1779,6 +1779,10 @@ fpie
19 Common Report Var(flag_pie,1) Negative(fPIC)
20 Generate position-independent code for executables if possible (small mode)
23 +Common Report Var(flag_plt) Init(1)
24 +Use PLT for PIC calls (-fno-plt: load the address from GOT at call site)
27 Common Joined RejectNegative Var(common_deferred_options) Defer
28 Specify a plugin to load