Message ID | 2950715866004049A240A2F9BB410E7315F244F9FA@azsmsx502.amr.corp.intel.com |
---|---|
State | New |
Headers | show |
On Fri, Sep 09, 2011 at 11:56:29AM -0700, Iyer, Balaji V wrote: > diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk index 8880b0a..299febb 100644 > --- a/gcc/ChangeLog.cilk > +++ b/gcc/ChangeLog.cilk > @@ -2,6 +2,9 @@ > > * gimplify.c (gimplify_call_expr): Removed if (SPAWN_CALL_P (*expr)) > statement. > + * tree.c (walk_tree_1): Added "case CILK_FOR_STMT:". > + * tree.h (CILK_FOR_VAR): Changed TREE_OPERAND(..., 4) to > + TREE_OPERAND(..., 5). The above is still not correct ChangeLog, you are quoting the actual code way too much. E.g. the second could be: * tree.c (walk_tree_1): Handle CILK_FOR_STMT. third maybe: * tree.c (CILK_FOR_VAR): Use 5 instead of 4 as last TREE_OPERAND argument. The first one should describe what kind of code you've actually removed, Don't handle this or that. etc. > +2011-09-08 Balaji V. Iyer <balaji.v.iyer@intel.com> > + > + * cp-tree.h (FOR_SCOPE): Changed FOR_STMT_CHECK to FOR_STMT_CHECK2 All ChangeLog entries end with a dot. > + * cilk.c (check_incr): Added a check for variable entity name match, not just > + var. Removed the assert to check if operand 0 is the variable. Two spaces after . in between sentences. Jakub
On Fri, Sep 9, 2011 at 11:56 AM, Iyer, Balaji V <balaji.v.iyer@intel.com> wrote: > Ok, fixed all the changes you mentioned. Here is the patch. > > Thanks, > Please provide a patch against the current branch since your patch won't apply. - * gimplify.c (gimplify_call_expr): Removed if (SPAWN_CALL_P (*expr)) - statement. + * gimplify.c (gimplify_call_expr): Removed if + (SPAWN_CALL_P (*expr)) statement. Please use a separate patch to change existing ChangeLog entries. + case CILK_FOR_STMT: + { + WALK_SUBTREE (CILK_FOR_INIT (*tp)); + WALK_SUBTREE (FOR_COND (*tp)); + WALK_SUBTREE (FOR_EXPR (*tp)); + WALK_SUBTREE (FOR_BODY (*tp)); + WALK_SUBTREE (CILK_FOR_GRAIN (*tp)); + WALK_SUBTREE (CILK_FOR_VAR (*tp)); + } + break; + Please remove extra {}.
diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk index 8880b0a..299febb 100644 --- a/gcc/ChangeLog.cilk +++ b/gcc/ChangeLog.cilk @@ -2,6 +2,9 @@ * gimplify.c (gimplify_call_expr): Removed if (SPAWN_CALL_P (*expr)) statement. + * tree.c (walk_tree_1): Added "case CILK_FOR_STMT:". + * tree.h (CILK_FOR_VAR): Changed TREE_OPERAND(..., 4) to + TREE_OPERAND(..., 5). Please use a separate ChangeLog entry. + * g++.dg/cilk-plus/template_cilk_for_plus_equal.cpp: New. Likewise. 2011-09-06 Balaji V. Iyer <balaji.v.iyer@intel.com> diff --git a/gcc/cp/ChangeLog.cilk b/gcc/cp/ChangeLog.cilk index b49f3bf..4c54dc6 100644 --- a/gcc/cp/ChangeLog.cilk +++ b/gcc/cp/ChangeLog.cilk @@ -1,3 +1,10 @@ +2011-09-08 Balaji V. Iyer <balaji.v.iyer@intel.com> + + * cp-tree.h (FOR_SCOPE): Changed FOR_STMT_CHECK to FOR_STMT_CHECK2 + * cilk.c (check_incr): Added a check for variable entity name match, not just + var. Removed the assert to check if operand 0 is the variable. + (cp_extract_for_fields): Likewise. + Please limit to 72 columns.