diff options
author | Marek Polacek <polacek@redhat.com> | 2015-11-11 14:47:03 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-11-11 14:47:03 +0000 |
commit | e78bede6f774bc0d294adafe5e3367c4da10647e (patch) | |
tree | 48b3e7d70614879dd48b43b013beb7831d9ad8ba /gcc/c/ChangeLog | |
parent | a5b50aa1fb086c90dd0119f8cb9e0a88ea9cce58 (diff) | |
download | gcc-e78bede6f774bc0d294adafe5e3367c4da10647e.zip gcc-e78bede6f774bc0d294adafe5e3367c4da10647e.tar.gz gcc-e78bede6f774bc0d294adafe5e3367c4da10647e.tar.bz2 |
re PR c/68107 (Non-VLA type whose size is half or more of the address space constructed via a pointer)
PR c/68107
PR c++/68266
* c-common.c (valid_array_size_p): New function.
* c-common.h (valid_array_size_p): Declare.
* c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
checking the size of an array.
* decl.c (grokdeclarator): Call valid_array_size_p. Remove code
checking the size of an array.
* c-c++-common/pr68107.c: New test.
* g++.dg/init/new38.C (large_array_char): Adjust dg-error.
(large_array_char_template): Likewise.
* g++.dg/init/new44.C: Adjust dg-error.
From-SVN: r230174
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r-- | gcc/c/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 8fb3786..87f6a2d 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,10 @@ +2015-11-11 Marek Polacek <polacek@redhat.com> + + PR c/68107 + PR c++/68266 + * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code + checking the size of an array. + 2015-11-11 Andrew MacLeod <amacleod@redhat.com> * c-array-notation.c: Remove unused header files. |