File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1171,10 +1171,12 @@ arc64_legitimize_address_1 (rtx x, rtx scratch)
1171
1171
base = gen_sym_unspec (x , ARC64_UNSPEC_GOTOFF );
1172
1172
return base ;
1173
1173
}
1174
- else if (flag_pic == 1 )
1174
+ else if (flag_pic )
1175
1175
{
1176
1176
/* Global symbol, we access it via a load from the GOT
1177
1177
(small model). */
1178
+ /* FIXME! to enable LARGE/small pic models make the above
1179
+ condition flag_pic == 1. */
1178
1180
base = gen_sym_unspec (x , ARC64_UNSPEC_GOT32 );
1179
1181
return gen_const_mem (Pmode , base );
1180
1182
}
@@ -1427,6 +1429,9 @@ arc64_is_long_call_p (rtx sym)
1427
1429
&& !targetm .binds_local_p (decl ))
1428
1430
return true;
1429
1431
1432
+ /* FIXME! it will return FLASE for libgcc calls routines. We can
1433
+ force checking SYM using SYMBOL_REF_LOCAL_P (x) if there is no
1434
+ decl. */
1430
1435
return false;
1431
1436
}
1432
1437
You can’t perform that action at this time.
0 commit comments