Skip to content

Commit 50dff12

Browse files
clazissartemiy-volkov
authored andcommitted
[PIC] Disable -fPIC impl as it is not yet supported by tools.
1 parent c4ab28b commit 50dff12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gcc/config/arc64/arc64.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,10 +1171,12 @@ arc64_legitimize_address_1 (rtx x, rtx scratch)
11711171
base = gen_sym_unspec (x, ARC64_UNSPEC_GOTOFF);
11721172
return base;
11731173
}
1174-
else if (flag_pic == 1)
1174+
else if (flag_pic)
11751175
{
11761176
/* Global symbol, we access it via a load from the GOT
11771177
(small model). */
1178+
/* FIXME! to enable LARGE/small pic models make the above
1179+
condition flag_pic == 1. */
11781180
base = gen_sym_unspec (x, ARC64_UNSPEC_GOT32);
11791181
return gen_const_mem (Pmode, base);
11801182
}
@@ -1427,6 +1429,9 @@ arc64_is_long_call_p (rtx sym)
14271429
&& !targetm.binds_local_p (decl))
14281430
return true;
14291431

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. */
14301435
return false;
14311436
}
14321437

0 commit comments

Comments
 (0)