alias.c: find_base_decl: TREE_CODE_CLASS of '3'

Zack Weinberg zack@codesourcery.com
Thu Sep 9 00:44:00 GMT 2004


"Jeffrey D. Oldham" <oldham@codesourcery.com> writes:

> In gcc/alias.c, find_base_decl, the switch on TREE_CODE_CLASS (TREE_CODE 
> (t)) has a case '3'.  How can '3' be a valid tree code class?  '1' and 
> '2' are valid tree code classes.

On first glance, this would be dead code.  There is no tree code,
either language-independent or language-specific, with '3' for its
class in the source tree (checked with grep "DEFTREECODE.*'3'" *.def */*.def).

However, looking more closely at the code there, I wonder if this is
either something that ought to be using TREE_CODE_LENGTH, or something
that ought to be using get_inner_reference.  Or some other primitive I
don't know about.

zw



More information about the Gcc mailing list