[RFA] Multiple fixes for PR c/27489

Andrew Pinski pinskia@physics.uc.edu
Tue May 9 17:20:00 GMT 2006


On May 9, 2006, at 6:28 AM, Volker Reichelt wrote:

> ===================================================================
> --- c-typeck.c  (revision 113594)
> +++ c-typeck.c  (working copy)
> @@ -3379,6 +3379,9 @@ build_compound_expr (tree expr1, tree ex
>    else if (warn_unused_value)
>      warn_if_unused_value (expr1, input_location);
>
> +  if (TREE_CODE (expr2) == ERROR_MARK)
> +    return error_mark_node;
> +
>    return build2 (COMPOUND_EXPR, TREE_TYPE (expr2), expr1, expr2);
>  }
>
> ===================================================================
>
> I'd prefer checking "expr == error_mark_node"", but otherwise this
> makes sense to me.

Well "expr == error_mark_node" is what I had meant.  The idea of my
patches is to speed up the compiler by not having that many check
for errors late in semantic analysis so we can speed up the compiler.

There are right now too many checks in my mind which slows down the  
parsing.

-- Pinski



More information about the Gcc-patches mailing list