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] |
=================================================================== --- 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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |