re PR c/47786 (tree check: expected tree that contains 'decl minimal' structure,...
authorNathan Froyd <froydnj@codesourcery.com>
Mon, 7 Mar 2011 15:32:25 +0000 (15:32 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Mon, 7 Mar 2011 15:32:25 +0000 (15:32 +0000)
commita19e4d44f1f424afa351d2f4b79a28b8c5ae7cc6
tree963140ba824737698d21be14b933d8f0e66f3af1
parent59527282380bdf54087204235cc7330cd44b067a
re PR c/47786 (tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in c_type_hash, at c-family/c-common.c:4066)

PR c/47786
* c-common.c (c_type_hash): Call list_length instead of iterating
through DECL_CHAIN.  Rename 'i' to 'n_elements'.

From-SVN: r170739
gcc/c-family/ChangeLog
gcc/c-family/c-common.c