From: Andrew Pinski Date: Thu, 17 Jun 2004 22:53:13 +0000 (+0000) Subject: c-typeck.c (tagged_types_tu_compatible_p ): Use TYPE_FIELDS instead... X-Git-Tag: releases/gcc-4.0.0~7573 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=398ce3dd7c85766ec8645d7815fac8248c568b54;p=thirdparty%2Fgcc.git c-typeck.c (tagged_types_tu_compatible_p ): Use TYPE_FIELDS instead of TYPE_VALUES. 2004-06-17 Andrew Pinski * c-typeck.c (tagged_types_tu_compatible_p ): Use TYPE_FIELDS instead of TYPE_VALUES. From-SVN: r83321 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aadf8534b363..01099dc2b25e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-17 Andrew Pinski + + * c-typeck.c (tagged_types_tu_compatible_p ): + Use TYPE_FIELDS instead of TYPE_VALUES. + 2004-06-17 Jason Merrill PR c++/16015 diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 434cd575ce09..b2718b6b79a5 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -864,7 +864,7 @@ tagged_types_tu_compatible_p (tree t1, tree t2) tagged_tu_seen_base = &tts; if (DECL_NAME (s1) != NULL) - for (s2 = TYPE_VALUES (t2); s2; s2 = TREE_CHAIN (s2)) + for (s2 = TYPE_FIELDS (t2); s2; s2 = TREE_CHAIN (s2)) if (DECL_NAME (s1) == DECL_NAME (s2)) { int result;