Skip to content

Commit 85e56c5

Browse files
committed
Remove target builtin cleanup as it no longer seems necessary
1 parent 139b435 commit 85e56c5

File tree

7 files changed

+0
-47
lines changed

7 files changed

+0
-47
lines changed

gcc/config/i386/i386-builtins.cc

-16
Original file line numberDiff line numberDiff line change
@@ -227,22 +227,6 @@ static GTY(()) tree ix86_builtins[(int) IX86_BUILTIN_MAX + 1];
227227

228228
struct builtin_isa ix86_builtins_isa[(int) IX86_BUILTIN_MAX];
229229

230-
void
231-
ix86_cleanup_builtins (void)
232-
{
233-
for (int i = 0 ; i < IX86_BT_LAST_CPTR + 1 ; i++)
234-
ix86_builtin_type_tab[i] = NULL;
235-
236-
for (int i = 0 ; i < IX86_BUILTIN_MAX ; i++)
237-
{
238-
ix86_builtins[i] = NULL;
239-
ix86_builtins_isa[i].set_and_not_built_p = true;
240-
}
241-
242-
for (int i = 0 ; i < IX86_BT_LAST_ALIAS + 1 ; i++)
243-
ix86_builtin_func_type_tab[i] = NULL;
244-
}
245-
246230
tree get_ix86_builtin (enum ix86_builtins c)
247231
{
248232
return ix86_builtins[c];

gcc/config/i386/i386-builtins.h

-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ extern builtin_isa ix86_builtins_isa[(int) IX86_BUILTIN_MAX];
318318
tree ix86_builtin_vectorized_function (unsigned int fn, tree type_out,
319319
tree type_in);
320320
void ix86_init_builtins (void);
321-
void ix86_cleanup_builtins (void);
322321
tree ix86_vectorize_builtin_gather (const_tree mem_vectype,
323322
const_tree index_type, int scale);
324323
tree ix86_builtin_decl (unsigned code, bool);

gcc/config/i386/i386.cc

-2
Original file line numberDiff line numberDiff line change
@@ -26538,8 +26538,6 @@ static const scoped_attribute_specs *const ix86_attribute_table[] =
2653826538

2653926539
#undef TARGET_INIT_BUILTINS
2654026540
#define TARGET_INIT_BUILTINS ix86_init_builtins
26541-
#undef TARGET_CLEANUP_BUILTINS
26542-
#define TARGET_CLEANUP_BUILTINS ix86_cleanup_builtins
2654326541
#undef TARGET_BUILTIN_DECL
2654426542
#define TARGET_BUILTIN_DECL ix86_builtin_decl
2654526543
#undef TARGET_EXPAND_BUILTIN

gcc/doc/tm.texi

-7
Original file line numberDiff line numberDiff line change
@@ -12112,13 +12112,6 @@ only language front ends that use those two functions will call
1211212112
@samp{TARGET_INIT_BUILTINS}.
1211312113
@end deftypefn
1211412114

12115-
@deftypefn {Target Hook} void TARGET_CLEANUP_BUILTINS (void)
12116-
Define this hook if you have any machine-specific built-in functions
12117-
that need to be cleaned up. It should be a function that performs the
12118-
necessary cleanup so that a second compilation in the same process via
12119-
the jit frontend will not fail.
12120-
@end deftypefn
12121-
1212212115
@deftypefn {Target Hook} tree TARGET_BUILTIN_DECL (unsigned @var{code}, bool @var{initialize_p})
1212312116
Define this hook if you have any machine-specific built-in functions
1212412117
that need to be defined. It should be a function that returns the

gcc/doc/tm.texi.in

-2
Original file line numberDiff line numberDiff line change
@@ -7868,8 +7868,6 @@ to by @var{ce_info}.
78687868

78697869
@hook TARGET_INIT_BUILTINS
78707870

7871-
@hook TARGET_CLEANUP_BUILTINS
7872-
78737871
@hook TARGET_BUILTIN_DECL
78747872

78757873
@hook TARGET_EXPAND_BUILTIN

gcc/jit/dummy-frontend.cc

-9
Original file line numberDiff line numberDiff line change
@@ -1088,12 +1088,6 @@ jit_langhook_init (void)
10881088
return true;
10891089
}
10901090

1091-
void
1092-
jit_langhook_finish (void)
1093-
{
1094-
targetm.cleanup_builtins ();
1095-
}
1096-
10971091
static void
10981092
jit_langhook_parse_file (void)
10991093
{
@@ -1461,9 +1455,6 @@ jit_langhook_eh_personality (void)
14611455
#undef LANG_HOOKS_INIT
14621456
#define LANG_HOOKS_INIT jit_langhook_init
14631457

1464-
#undef LANG_HOOKS_FINISH
1465-
#define LANG_HOOKS_FINISH jit_langhook_finish
1466-
14671458
#undef LANG_HOOKS_PARSE_FILE
14681459
#define LANG_HOOKS_PARSE_FILE jit_langhook_parse_file
14691460

gcc/target.def

-10
Original file line numberDiff line numberDiff line change
@@ -2450,16 +2450,6 @@ only language front ends that use those two functions will call\n\
24502450
void, (void),
24512451
hook_void_void)
24522452

2453-
/* Clean up target-specific built-in functions. */
2454-
DEFHOOK
2455-
(cleanup_builtins,
2456-
"Define this hook if you have any machine-specific built-in functions\n\
2457-
that need to be cleaned up. It should be a function that performs the\n\
2458-
necessary cleanup so that a second compilation in the same process via\n\
2459-
the jit frontend will not fail.",
2460-
void, (void),
2461-
hook_void_void)
2462-
24632453
/* Initialize (if INITIALIZE_P is true) and return the target-specific
24642454
built-in function decl for CODE.
24652455
Return NULL if that is not possible. Return error_mark_node if CODE

0 commit comments

Comments
 (0)