This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Inline handled_component_p


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]