From 6bac87c3e3c41d9d9822bf456e30c4bd36bef191 Mon Sep 17 00:00:00 2001 From: jakub Date: Thu, 20 Apr 2017 09:18:02 +0000 Subject: PR middle-end/80423 * tree.h (build_array_type): Add typeless_storage default argument. * tree.c (type_cache_hasher::equal): Also compare TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs. (build_array_type): Add typeless_storage argument, set TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to recursive call. (build_nonshared_array_type): Adjust build_array_type_1 caller. (build_array_type): Likewise. Add typeless_storage argument. c-family/ * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE. cp/ * tree.c (build_cplus_array_type): Call build_array_type with the intended TYPE_TYPELESS_STORAGE flag value, instead of calling build_array_type and modifying later TYPE_TYPELESS_STORAGE on the shared type. testsuite/ * g++.dg/other/pr80423.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247014 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc/ChangeLog') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de76f8a83f4..e650e01f5a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +2017-04-20 Jakub Jelinek + + PR middle-end/80423 + * tree.h (build_array_type): Add typeless_storage default argument. + * tree.c (type_cache_hasher::equal): Also compare + TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs. + (build_array_type): Add typeless_storage argument, set + TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to + recursive call. + (build_nonshared_array_type): Adjust build_array_type_1 caller. + (build_array_type): Likewise. Add typeless_storage argument. + 2017-04-19 Eric Botcazou Jakub Jelinek -- cgit v1.2.1