public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2352] GTY: Clean up obsolete parametrized structs remnants
@ 2023-07-06 10:03 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-07-06 10:03 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a53bbd8cd2ec6f08d756faf9f9d7e345704bb880

commit r14-2352-ga53bbd8cd2ec6f08d756faf9f9d7e345704bb880
Author: Thomas Schwinge <thomas@codesourcery.com>
Date:   Tue Jul 4 22:47:48 2023 +0200

    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.

Diff:
---
 gcc/gengtype-parse.cc | 2 --
 gcc/gengtype.cc       | 6 ++----
 gcc/gengtype.h        | 3 +--
 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
 };

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-06 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06 10:03 [gcc r14-2352] GTY: Clean up obsolete parametrized structs remnants Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).