diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-27 21:07:21 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-27 21:07:21 +0000 |
commit | 3385a573d9553834cfb483f546bad2fd9bc25d85 (patch) | |
tree | 2a71ba738ce8094ef17accb652eb7b850caad814 /gcc/c-family/ChangeLog | |
parent | 7f8986ec52c474a5e2ebd7e6739fef2095047ac2 (diff) | |
download | gcc-3385a573d9553834cfb483f546bad2fd9bc25d85.tar.gz |
PR middle-end/80162
c-family/
* c-common.c (c_common_mark_addressable_vec): Don't set
TREE_ADDRESSABLE on DECL_HARD_REGISTER.
c/
* c-tree.h (c_mark_addressable): Add array_ref_p argument.
* c-typeck.c (c_mark_addressable): Likewise. Look through
VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
to ARRAY_TYPE.
(build_array_ref): Pass true as array_ref_p to c_mark_addressable.
cp/
* cp-tree.h (cxx_mark_addressable): Add array_ref_p argument.
* typeck.c (cxx_mark_addressable): Likewise. Look through
VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
to ARRAY_TYPE.
(cp_build_array_ref): Pass true as array_ref_p to cxx_mark_addressable.
testsuite/
* c-c++-common/pr80162-1.c: New test.
* c-c++-common/pr80162-2.c: New test.
* c-c++-common/pr80162-3.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246512 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/ChangeLog')
-rw-r--r-- | gcc/c-family/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 4afb4b8af6e..0b543ec52f6 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2017-03-27 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/80162 + * c-common.c (c_common_mark_addressable_vec): Don't set + TREE_ADDRESSABLE on DECL_HARD_REGISTER. + 2017-03-21 Martin Sebor <msebor@redhat.com> PR c++/79548 |