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] PR14841 and PR15838


On Tue, 2004-08-31 at 12:10, Steven Bosscher wrote:

> !       else if (((TREE_CODE (rhs) == ARRAY_REF
> ! 	         && TREE_CODE (var = TREE_OPERAND (rhs, 0)) == VAR_DECL
> ! 		 && TREE_CODE (TREE_TYPE (var)) == ARRAY_TYPE)
> ! 	        || (TREE_CODE (rhs) == COMPONENT_REF
> ! 		    && TREE_CODE (var = TREE_OPERAND (rhs, 0)) == VAR_DECL
> ! 		    && TREE_CODE (TREE_TYPE (var)) == RECORD_TYPE
> ! 		    && TREE_CODE (TREE_OPERAND (rhs, 1)) == FIELD_DECL))
> ! 	       && TREE_READONLY (var)
> ! 	       && DECL_INITIAL (var)
> ! 	       && TREE_CODE (DECL_INITIAL (var)) == CONSTRUCTOR
> ! 	       && ! TREE_SIDE_EFFECTS (DECL_INITIAL (var)))
>
Put all this inside a static bool predicate, please.

OK with that change.  Also, could you add both PRs to the testsuite?  A
link_test() should be fine.


Thanks.  Diego.


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