aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2014-08-15 13:27:58 -0400
committerJason Merrill <jason@gcc.gnu.org>2014-08-15 13:27:58 -0400
commit33cb682bcea5e450ea4c19f99dd07cda04e0ada7 (patch)
tree59c350f3d15c70fc24e3f87bcd324f5abe104d94 /gcc/tree.c
parent9de8e7afa4cc23b93bbc91329d9864c0883e8640 (diff)
downloadgcc-33cb682bcea5e450ea4c19f99dd07cda04e0ada7.zip
gcc-33cb682bcea5e450ea4c19f99dd07cda04e0ada7.tar.gz
gcc-33cb682bcea5e450ea4c19f99dd07cda04e0ada7.tar.bz2
re PR bootstrap/62077 (--with-build-config=bootstrap-lto fails)
PR bootstrap/62077 gcc/ * tree.c (type_hash_canon): Uncomment assert. gcc/cp/ * tree.c (build_min_array_type, set_array_type_canon): Split out... (build_cplus_array_type): ...from here. Only call build_array_type for main variants. From-SVN: r214030
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index ec65fa8..2e4ce8d 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -6793,10 +6793,7 @@ type_hash_canon (unsigned int hashcode, tree type)
if (*loc)
{
tree t1 = ((type_hash *) *loc)->type;
- /* ??? We'd like to assert here that the hashtable only contains
- main variants but the C++ frontend breaks this by modifying
- types already in the hashtable in build_cplus_array_type. */
- /* gcc_assert (TYPE_MAIN_VARIANT (t1) == t1); */
+ gcc_assert (TYPE_MAIN_VARIANT (t1) == t1);
if (GATHER_STATISTICS)
{
tree_code_counts[(int) TREE_CODE (type)]--;