aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2005-08-17 17:21:28 -0700
committerJim Wilson <wilson@gcc.gnu.org>2005-08-17 17:21:28 -0700
commit9bc2a5cb82fe921d7806a2b4aed4c6f25e806ae4 (patch)
tree29a8783d1b6d89c8a97b97f280b8aa35e6fc9dd0 /gcc/c-decl.c
parent8858cd129e470142a04754fd14f6bf40710717c6 (diff)
downloadgcc-9bc2a5cb82fe921d7806a2b4aed4c6f25e806ae4.zip
gcc-9bc2a5cb82fe921d7806a2b4aed4c6f25e806ae4.tar.gz
gcc-9bc2a5cb82fe921d7806a2b4aed4c6f25e806ae4.tar.bz2
Use TYPE_SIZE_UNIT consistently. Last patch was inconsistent.
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in array size check. From-SVN: r103240
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index a1fdce7..6d60fd0 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);