aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-07-16 01:30:32 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-07-16 01:30:32 +0000
commitf7587ed0d8089741a2eca0417aa618565d531596 (patch)
tree96d8eab9a1fe58e2a8566cd1e448d06ce4179970 /gcc/c-decl.c
parentf0cd14a7ed21212042331c6448abb906d5955ebe (diff)
downloadgcc-f7587ed0d8089741a2eca0417aa618565d531596.zip
gcc-f7587ed0d8089741a2eca0417aa618565d531596.tar.gz
gcc-f7587ed0d8089741a2eca0417aa618565d531596.tar.bz2
c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of TREE_CHAIN.
* c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of TREE_CHAIN. * c-typeck.c (push_init_level): Likewise. (process_init_element): Likewise. From-SVN: r162239
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index cd56513..010421c 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6705,8 +6705,7 @@ detect_field_duplicates (tree fieldlist)
the nested traversal thing. */
if (timeout > 0)
{
- for (x = TREE_CHAIN (fieldlist); x ;
- x = TREE_CHAIN (x))
+ for (x = DECL_CHAIN (fieldlist); x; x = DECL_CHAIN (x))
if (DECL_NAME (x))
{
for (y = fieldlist; y != x; y = TREE_CHAIN (y))