alias.c: find_base_decl: TREE_CODE_CLASS of '3'
Dale Johannesen
dalej@apple.com
Thu Sep 9 18:13:00 GMT 2004
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
(find_base_decl): New function, from c_find_base_decl in c-common.c.
and the C-specific function no longer exists....was there ever a code
'3'?
For ?: operator maybe?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 895 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040909/1fa6ced4/attachment.bin>
More information about the Gcc
mailing list