static tree
bpf_handle_preserve_access_index_attribute (tree *node, tree name,
- tree args,
- int flags,
+ tree args ATTRIBUTE_UNUSED,
+ int flags ATTRIBUTE_UNUSED,
bool *no_add_attrs)
{
if (TREE_CODE (*node) != RECORD_TYPE && TREE_CODE (*node) != UNION_TYPE)
#undef TARGET_OPTION_OVERRIDE
#define TARGET_OPTION_OVERRIDE bpf_option_override
-/* Return FALSE iff -mcore has been specified. */
-
-static bool
-ctfc_debuginfo_early_finish_p (void)
-{
- if (TARGET_BPF_CORE)
- return false;
- else
- return true;
-}
-
-#undef TARGET_CTFC_DEBUGINFO_EARLY_FINISH_P
-#define TARGET_CTFC_DEBUGINFO_EARLY_FINISH_P ctfc_debuginfo_early_finish_p
-
/* Implement TARGET_ASM_INIT_SECTIONS. */
static void
return -1;
}
-/* Synthesize a new builtin function declaration at LOC with signature TYPE.
+/* Synthesize a new builtin function declaration with signature TYPE.
Used by bpf_resolve_overloaded_builtin to resolve calls to
__builtin_preserve_access_index. */
static tree
-bpf_core_newdecl (location_t loc, tree type)
+bpf_core_newdecl (tree type)
{
tree rettype = build_function_type_list (type, type, NULL);
- tree newdecl = NULL_TREE;
char name[80];
int len = snprintf (name, sizeof (name), "%s", "__builtin_pai_");
if (bpf_core_is_maybe_aggregate_access (*tp))
{
- tree newdecl = bpf_core_newdecl (loc, TREE_TYPE (*tp));
+ tree newdecl = bpf_core_newdecl (TREE_TYPE (*tp));
tree newcall = build_call_expr_loc (loc, newdecl, 1, *tp);
*tp = newcall;
*walk_subtrees = 0;