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: [RFA] Multiple fixes for PR c/27489



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


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