This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Inline handled_component_p
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 16 Apr 2009 12:49:29 +0200
- Subject: Re: [PATCH] Inline handled_component_p
- References: <alpine.LNX.2.00.0904161239211.4801@zhemvz.fhfr.qr>
> ! static inline bool
> ! handled_component_p (const_tree t)
> ! {
> ! switch (TREE_CODE (t))
> ! {
> ! case BIT_FIELD_REF:
> ! case COMPONENT_REF:
> ! case ARRAY_REF:
> ! case ARRAY_RANGE_REF:
> ! case VIEW_CONVERT_EXPR:
> ! case REALPART_EXPR:
> ! case IMAGPART_EXPR:
> ! return true;
> !
> ! default:
> ! return false;
> ! }
> ! }
Given this, why not use IN_RANGE?
Paolo