aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2004-06-17 22:53:13 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-06-17 15:53:13 -0700
commit398ce3dd7c85766ec8645d7815fac8248c568b54 (patch)
treec9fd1eb224fdf765a9f0b412baaa0c2f6554e10d /gcc
parent2692eb7d0ea1757cbf2508f001be9ee9f2f87ed3 (diff)
downloadgcc-398ce3dd7c85766ec8645d7815fac8248c568b54.zip
gcc-398ce3dd7c85766ec8645d7815fac8248c568b54.tar.gz
gcc-398ce3dd7c85766ec8645d7815fac8248c568b54.tar.bz2
c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>): Use TYPE_FIELDS instead of TYPE_VALUES.
2004-06-17 Andrew Pinski <apinski@apple.com> * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>): Use TYPE_FIELDS instead of TYPE_VALUES. From-SVN: r83321
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-typeck.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index aadf853..01099dc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-17 Andrew Pinski <apinski@apple.com>
+
+ * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
+ Use TYPE_FIELDS instead of TYPE_VALUES.
+
2004-06-17 Jason Merrill <jason@redhat.com>
PR c++/16015
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 434cd57..b2718b6 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;