PATCH: Tree checking failure in C++

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Tue Oct 24 06:08:00 GMT 2000


+   /* Don't crash if the comparison was erroneous.  */
+   if (TREE_CODE (arg0) == ERROR_MARK || TREE_CODE (arg1) == ERROR_MARK)
+     return const0_rtx;

Sometimes the test is done this way, but sometimes it's done as
a comparison with error_mark_node.  We should standardize on
one of them.  My vote is for this one since I think it's clearer.


More information about the Gcc-patches mailing list