diff options
author | Michael Matz <matz@suse.de> | 2012-04-19 13:29:29 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2012-04-19 13:29:29 +0000 |
commit | 314b662a3a636250eda24be515fb34c34140fb6a (patch) | |
tree | 8f69ea3822d53cbb5ee137c295bc3fb2dec89d98 /gcc/tree.c | |
parent | 7c98ec605d9c9d2bbb6d431016ebe74a73f0a522 (diff) | |
download | gcc-314b662a3a636250eda24be515fb34c34140fb6a.zip gcc-314b662a3a636250eda24be515fb34c34140fb6a.tar.gz gcc-314b662a3a636250eda24be515fb34c34140fb6a.tar.bz2 |
re PR c/52977 (internal compiler error: Segmentation fault with `-x c-header' or `-x cxx-header' option)
PR middle-end/52977
* tree.h (VECTOR_CST_NELTS): Use part number of types again.
(struct tree_vector): Adjust GTY length.
* tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
* gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
members.
(walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
caller emitted the length calulation already.
(walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
From-SVN: r186593
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1329,7 +1329,6 @@ make_vector_stat (unsigned len MEM_STAT_DECL) TREE_SET_CODE (t, VECTOR_CST); TREE_CONSTANT (t) = 1; - VECTOR_CST_NELTS (t) = len; return t; } |