diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-18 00:21:28 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-18 00:21:28 +0000 |
commit | c96dc3af117e667015bb5457d11e203021a32075 (patch) | |
tree | 29a8783d1b6d89c8a97b97f280b8aa35e6fc9dd0 /gcc/c-decl.c | |
parent | 3b8eb7969f601e7578cdaf9a226e668f5fa74959 (diff) | |
download | gcc-c96dc3af117e667015bb5457d11e203021a32075.tar.gz |
Use TYPE_SIZE_UNIT consistently. Last patch was inconsistent.
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
array size check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index a1fdce776a2..6d60fd09dc6 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4383,7 +4383,7 @@ grokdeclarator (const struct c_declarator *declarator, if (TREE_CODE (type) == ARRAY_TYPE && COMPLETE_TYPE_P (type) - && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST + && TREE_CODE (TYPE_SIZE_UNIT (type)) == INTEGER_CST && TREE_OVERFLOW (TYPE_SIZE_UNIT (type))) { error ("size of array %qs is too large", name); |