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]

Re: PATCH: Tree checking failure in C++


+   /* 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.

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