Commit 9bc2a5cb by James E Wilson Committed by Jim Wilson

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
parent 8858cd12
2005-08-17 James E Wilson <wilson@specifix.com>
* c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
array size check.
2005-08-17 David Edelsohn <edelsohn@gnu.org> 2005-08-17 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.md (leu<mode>): Convert to mode macro. * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
......
...@@ -4383,7 +4383,7 @@ grokdeclarator (const struct c_declarator *declarator, ...@@ -4383,7 +4383,7 @@ grokdeclarator (const struct c_declarator *declarator,
if (TREE_CODE (type) == ARRAY_TYPE if (TREE_CODE (type) == ARRAY_TYPE
&& COMPLETE_TYPE_P (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))) && TREE_OVERFLOW (TYPE_SIZE_UNIT (type)))
{ {
error ("size of array %qs is too large", name); error ("size of array %qs is too large", name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment