mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 05:44:15 +08:00
GTY: Clean up obsolete parametrized structs remnants
Support removed in 2014 with
commit 63f5d5b818
(Subversion r218558)
"remove gengtype support for param_is use_param, if_marked and splay tree allocators".
gcc/
* gengtype-parse.cc: Clean up obsolete parametrized structs
remnants.
* gengtype.cc: Likewise.
* gengtype.h: Likewise.
This commit is contained in:
parent
493bb5a974
commit
a53bbd8cd2
@ -82,7 +82,6 @@ static const char *const token_names[] = {
|
||||
"ptr_alias",
|
||||
"nested_ptr",
|
||||
"user",
|
||||
"a param<N>_is option",
|
||||
"a number",
|
||||
"a scalar type",
|
||||
"an identifier",
|
||||
@ -95,7 +94,6 @@ static const char *const token_names[] = {
|
||||
/* This array is indexed by token code minus FIRST_TOKEN_WITH_VALUE. */
|
||||
/* Keep in sync with 'gengtype.h:enum gty_token'. */
|
||||
static const char *const token_value_format[] = {
|
||||
"%s",
|
||||
"'%s'",
|
||||
"'%s'",
|
||||
"'%s'",
|
||||
|
@ -1388,8 +1388,6 @@ adjust_field_rtx_def (type_p t, options_p ARG_UNUSED (opt))
|
||||
At present:
|
||||
- Converts pointer-to-char, with no length parameter, to TYPE_STRING;
|
||||
- Similarly for arrays of pointer-to-char;
|
||||
- Converts structures for which a parameter is provided to
|
||||
TYPE_PARAM_STRUCT;
|
||||
- Handles "special" options.
|
||||
*/
|
||||
|
||||
@ -3654,7 +3652,7 @@ write_func_for_structure (type_p orig_s, type_p s,
|
||||
}
|
||||
|
||||
|
||||
/* Write out marker routines for STRUCTURES and PARAM_STRUCTS. */
|
||||
/* Write out marker routines for STRUCTURES. */
|
||||
|
||||
static void
|
||||
write_types (outf_p output_header, type_p structures,
|
||||
@ -4002,7 +4000,7 @@ write_local_func_for_structure (const_type_p orig_s, type_p s)
|
||||
}
|
||||
}
|
||||
|
||||
/* Write out local marker routines for STRUCTURES and PARAM_STRUCTS. */
|
||||
/* Write out local marker routines for STRUCTURES. */
|
||||
|
||||
static void
|
||||
write_local (outf_p output_header, type_p structures)
|
||||
|
@ -478,7 +478,6 @@ enum gty_token
|
||||
PTR_ALIAS,
|
||||
NESTED_PTR,
|
||||
USER_GTY,
|
||||
UNUSED_PARAM_IS,
|
||||
NUM,
|
||||
SCALAR,
|
||||
ID,
|
||||
@ -489,7 +488,7 @@ enum gty_token
|
||||
|
||||
/* print_token assumes that any token >= FIRST_TOKEN_WITH_VALUE may have
|
||||
a meaningful value to be printed. */
|
||||
FIRST_TOKEN_WITH_VALUE = UNUSED_PARAM_IS
|
||||
FIRST_TOKEN_WITH_VALUE = NUM
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user