From 100039989c2bca5d98cb76a1bc3ef5b40bfc27ce Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 4 Jul 2023 22:47:48 +0200 Subject: [PATCH] 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. --- gcc/gengtype-parse.cc | 1 - gcc/gengtype.cc | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/gcc/gengtype-parse.cc b/gcc/gengtype-parse.cc index 2b2156c5f45..efee4171674 100644 --- a/gcc/gengtype-parse.cc +++ b/gcc/gengtype-parse.cc @@ -80,7 +80,6 @@ static const char *const token_names[] = { "...", "ptr_alias", "nested_ptr", - "a param_is option", "a number", "a scalar type", "an identifier", 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) -- 2.34.1