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] Avoid spending exponential time in contain_placeholder_p()


Geert Bosch <bosch@adacore.com> writes:

> 2008-09-29  Geert Bosch  <bosch@adacore.com>
>
>        * tree.c (contains_placeholder_p): Return 0 for a SAVE_EXPR

Period at end of sentence.

> +        case SAVE_EXPR:
> +          /* save_expr () never wraps anything containing a
> placeholder */
> +          return 0;

Omit "()" in comment.  In fact, better to write "The save_expr
function".  Period at end of sentence.

OK with those changes if it passes bootstrap and testing (you didn't
say).

Thanks.

Ian


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