diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-20 09:18:02 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-20 09:18:02 +0000 |
commit | 6bac87c3e3c41d9d9822bf456e30c4bd36bef191 (patch) | |
tree | 1484e8a152e79fdd86427e4b01e206056ad5c9fa /gcc/ChangeLog | |
parent | 5f7ad46f0da32630cb438e38c0d28d2f33ef1952 (diff) | |
download | gcc-6bac87c3e3c41d9d9822bf456e30c4bd36bef191.tar.gz |
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
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r-- | gcc/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
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 <jakub@redhat.com> + + 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 <ebotcazou@adacore.com> Jakub Jelinek <jakub@redhat.com> |