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] Fix PR C++/18984


Andrew Pinski wrote:

+    *stmt_p = build2 (CLEANUP_EH_ONLY (stmt) ? TRY_CATCH_EXPR
+					     : TRY_FINALLY_EXPR,
+		      void_type_node,
+		      CLEANUP_BODY (stmt),
+		      CLEANUP_EXPR (stmt));
+
+  pointer_set_insert (p_set, *stmt_p);

This looks like you are building a TRY_CATCH or TRY_FINALLY expression around every expression that is niether an ADDR_EXPR, RETURN_EXPR, type, or declaration. That seems very wasteful.


+   Collisions are resolved by linear probing.  More complicated
+   collision management schemes are only useful when the load factor
+   significantly exceeds 0.5, and we never let that happen.  */

This second part of the comment is inappropriate.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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