aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-lang.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-09-12 14:25:17 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-09-12 14:25:17 +0000
commit6836632e96e894513c605a2eb6e2dfae77a9a069 (patch)
treed01c2a6b39749135ebf8d37977e049108baac8f6 /gcc/c/c-lang.h
parent13bdca744bda9321d6e0f4beca7bf9ac2e0870c0 (diff)
downloadgcc-6836632e96e894513c605a2eb6e2dfae77a9a069.zip
gcc-6836632e96e894513c605a2eb6e2dfae77a9a069.tar.gz
gcc-6836632e96e894513c605a2eb6e2dfae77a9a069.tar.bz2
c-common.c (field_decl_cmp, [...]): Move to c/c-decl.c.
c-family/ * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp, resort_sorted_fields): Move to c/c-decl.c. * c-common.h (field_decl_cmp, resort_sorted_fields): Delete. (struct sorted_fields_type): Move to c/c-lang.h. c/ * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp, resort_sorted_fields): Moved from c-family/c-common.c. * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h. From-SVN: r252023
Diffstat (limited to 'gcc/c/c-lang.h')
-rw-r--r--gcc/c/c-lang.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/c/c-lang.h b/gcc/c/c-lang.h
index 872bd58..8ecafb3 100644
--- a/gcc/c/c-lang.h
+++ b/gcc/c/c-lang.h
@@ -22,6 +22,13 @@ along with GCC; see the file COPYING3. If not see
#include "c-family/c-common.h"
+/* In a RECORD_TYPE, a sorted array of the fields of the type, not a
+ tree for size reasons. */
+struct GTY(()) sorted_fields_type {
+ int len;
+ tree GTY((length ("%h.len"))) elts[1];
+};
+
struct GTY(()) lang_type {
/* In a RECORD_TYPE, a sorted array of the fields of the type. */
struct sorted_fields_type * GTY ((reorder ("resort_sorted_fields"))) s;