This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] no lowering of &a.b (and &a->b) in the C front-end
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: pinskia at physics dot uc dot edu
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Aug 04 02:36:55 EDT
- Subject: Re: [PATCH] no lowering of &a.b (and &a->b) in the C front-end
- while (TREE_CODE_CLASS (TREE_CODE (inner)) == 'r')
+ while (TREE_CODE_CLASS (TREE_CODE (inner)) == 'r'
+ && TREE_CODE (inner) != INDIRECT_REF)
inner = TREE_OPERAND (inner, 0);
This sort of thing, by the way, is why I think it would be good to
remove INDIRECT_REF from class 'r'.
Note that if we do that and teach get_inner_reference about REALPART_EXPR
and INAGPART_EXPR, handled_component_p becomes just a test on class 'r'.