summaryrefslogtreecommitdiff
path: root/gcc/tree.def
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-07-24 15:02:06 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-07-24 15:02:06 +0200
commit570e228b5e0ca01cc433786df5c61aa583e22469 (patch)
tree97d8af1b430b9803999c016095e5a8f6836fa34e /gcc/tree.def
parent4b40986c044a5c80bfa3edb1670104f89bc8fd6b (diff)
re PR target/81521 (After [r250413] GCC 8.0 doesn't compile for Windows)
PR bootstrap/81521 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS documentation. * doc/generic.texi: Likewise. * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS. From-SVN: r250476
Diffstat (limited to 'gcc/tree.def')
-rw-r--r--gcc/tree.def10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/tree.def b/gcc/tree.def
index 0ec805903a9..9f80c4d41f5 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -112,10 +112,7 @@ DEFTREECODE (BLOCK, "block", tcc_exceptional, 0)
itself or have named members doesn't really have a "scope" per se.
The TYPE_STUB_DECL field is used as a forward-references to names for
ENUMERAL_TYPE, RECORD_TYPE, UNION_TYPE, and QUAL_UNION_TYPE nodes;
- see below.
- The TYPE_METHODS points to list of all methods associated with the type.
- It is non-NULL only at main variant of the type and after free_lang_data
- it may be set to error_mark_node instead of actual list to save memory. */
+ see below. */
/* The ordering of the following codes is optimized for the checking
macros in tree.h. Changing the order will degrade the speed of the
@@ -213,8 +210,9 @@ DEFTREECODE (ARRAY_TYPE, "array_type", tcc_type, 0)
/* Struct in C, or record in Pascal. */
/* Special fields:
TYPE_FIELDS chain of FIELD_DECLs for the fields of the struct,
- and VAR_DECLs, TYPE_DECLs and CONST_DECLs for record-scope variables,
- types and enumerators.
+ VAR_DECLs, TYPE_DECLs and CONST_DECLs for record-scope variables,
+ types and enumerators and FUNCTION_DECLs for methods associated
+ with the type.
A few may need to be added for Pascal. */
/* See the comment above, before ENUMERAL_TYPE, for how
forward references to struct tags are handled in C. */