This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: alias.c: find_base_decl: TREE_CODE_CLASS of '3'


On Sep 8, 2004, at 6:44 PM, Zack Weinberg wrote:
Mike Stump <mrs@apple.com> writes:

With an Aug 13, 2001 cvs repo copy:

mrs bash[15] grep 3 *.def,v | grep DEFTREE

Uh, the difference between 3 and '3' is critical here. The bare 3s
that your grep matched are the TREE_CODE_LENGTH values, not the
TREE_CODE_CLASS values.

There are plenty of 'e' EXPRs with three slots in current CVS, which
is why I thought the code might be meaning to check TREE_CODE_LENGTH.

This is the patch from Richard Kenner that put it in.

http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01680.html

The comment says

<x-tad-bigger>(find_base_decl): New function, from c_find_base_decl in c-common.c.

</x-tad-bigger>
and the C-specific function no longer exists....was there ever a code '3'?
For ?: operator maybe?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]