alias.c: find_base_decl: TREE_CODE_CLASS of '3'

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Thu Sep 9 19:10:00 GMT 2004


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

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

Ooops!

    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....

Right, but you can see it in the quoted patch.

    was there ever a code '3'?  For ?: operator maybe?

I don't think there ever was: I think COND_EXPR was always 'e'.  I suspect
the code in c-common.c was probably always wrong and I didn't notice it when
copying it into alias.c.  Clearly the intent was to operate on
TREE_CODE_LENGTH of 3 (COND_EXPR) and I think should be rewritten to do that.



More information about the Gcc mailing list