mirror of
https://github.com/TinyCC/tinycc.git
synced 2025-11-16 12:34:45 +00:00
arm-asm, arm64-link: Silence warnings for unused functions
The code needs to be fixed: use the functions or remove them. arm-asm.c: asm_parse_vfp_regvar() arm64-link: gotplt_entry_type() create_plt_entry() Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
This commit is contained in:
@@ -77,6 +77,7 @@ static int asm_parse_vfp_regvar(int t, int double_precision)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((unused))
|
||||||
static int asm_parse_vfp_status_regvar(int t)
|
static int asm_parse_vfp_status_regvar(int t)
|
||||||
{
|
{
|
||||||
switch (t) {
|
switch (t) {
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ int gotplt_entry_type (int reloc_type)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__attribute__((unused))
|
||||||
ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_attr *attr)
|
ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_attr *attr)
|
||||||
{
|
{
|
||||||
Section *plt = s1->plt;
|
Section *plt = s1->plt;
|
||||||
@@ -109,6 +110,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_
|
|||||||
|
|
||||||
/* relocate the PLT: compute addresses and offsets in the PLT now that final
|
/* relocate the PLT: compute addresses and offsets in the PLT now that final
|
||||||
address for PLT and GOT are known (see fill_program_header) */
|
address for PLT and GOT are known (see fill_program_header) */
|
||||||
|
__attribute__((unused))
|
||||||
ST_FUNC void relocate_plt(TCCState *s1)
|
ST_FUNC void relocate_plt(TCCState *s1)
|
||||||
{
|
{
|
||||||
uint8_t *p, *p_end;
|
uint8_t *p, *p_end;
|
||||||
|
|||||||
Reference in New Issue
Block a user