aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2023-07-04 22:47:48 +0200
committerThomas Schwinge <thomas@codesourcery.com>2023-07-06 11:59:08 +0200
commita53bbd8cd2ec6f08d756faf9f9d7e345704bb880 (patch)
tree1e9f5028ef9286e94bb757ca8db1c1dcbae0e643
parent493bb5a974a5a51ebc8493916f88ef5a0cded93e (diff)
GTY: Clean up obsolete parametrized structs remnants
Support removed in 2014 with commit 63f5d5b818319129217e41bcb23db53f99ff11b0 (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.
-rw-r--r--gcc/gengtype-parse.cc2
-rw-r--r--gcc/gengtype.cc6
-rw-r--r--gcc/gengtype.h3
3 files changed, 3 insertions, 8 deletions
diff --git a/gcc/gengtype-parse.cc b/gcc/gengtype-parse.cc
index 2efbda04946..fce1fe95165 100644
--- a/gcc/gengtype-parse.cc
+++ b/gcc/gengtype-parse.cc
@@ -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'",
diff --git a/gcc/gengtype.cc b/gcc/gengtype.cc
index 54d3c8aaec3..49ddba684af 100644
--- a/gcc/gengtype.cc
+++ b/gcc/gengtype.cc
@@ -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)
diff --git a/gcc/gengtype.h b/gcc/gengtype.h
index 2122373edf2..13942900910 100644
--- a/gcc/gengtype.h
+++ b/gcc/gengtype.h
@@ -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
};