This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] sdbout.c and enums
- From: DJ Delorie <dj at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 29 Mar 2004 14:34:23 -0500
- Subject: [patch] sdbout.c and enums
This fixes a djgpp build failure.
2004-03-29 DJ Delorie <dj@redhat.com>
* sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
TYPE_FIELDS.
Index: sdbout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/sdbout.c,v
retrieving revision 1.88
diff -p -C2 -r1.88 sdbout.c
*** sdbout.c 19 Feb 2004 17:21:14 -0000 1.88
--- sdbout.c 29 Mar 2004 19:33:14 -0000
*************** sdbout_one_type (tree type)
*** 1187,1191 ****
if (TREE_CODE (type) == ENUMERAL_TYPE)
{
! for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
if (host_integerp (TREE_VALUE (tem), 0))
{
--- 1187,1191 ----
if (TREE_CODE (type) == ENUMERAL_TYPE)
{
! for (tem = TYPE_VALUES (type); tem; tem = TREE_CHAIN (tem))
if (host_integerp (TREE_VALUE (tem), 0))
{