C++ PATCH: perform_implicit_conversion

Nathan Sidwell nathan@acm.org
Thu Sep 30 23:58:00 GMT 1999


Mark Mitchell wrote:
> Good point.  But, we're so far from having any idea where the
> performance hot spots are in the C++ front-end (and I bet you they're
> not in implicit_conversion), that I don't think we need to worry about
Yes, you're right, (but sometimes I just can't help myself)

> Yes.
Done.

nathan

-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
        I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk
Index: cp/call.c
===================================================================
RCS file: /cvs/egcs/egcs/gcc/cp/call.c,v
retrieving revision 1.173
diff -c -3 -p -r1.173 call.c
*** call.c	1999/09/17 10:59:07	1.173
--- call.c	1999/09/17 16:25:25
*************** perform_implicit_conversion (type, expr)
*** 5126,5137 ****
       tree type;
       tree expr;
  {
!   tree conv = implicit_conversion (type, TREE_TYPE (expr), expr,
! 				   LOOKUP_NORMAL);
    if (!conv || ICS_BAD_FLAG (conv))
      {
!       if (expr != error_mark_node)
!         cp_error ("could not convert `%E' to `%T'", expr, type);
        return error_mark_node;
      }
  
--- 5126,5140 ----
       tree type;
       tree expr;
  {
!   tree conv;
!   
!   if (expr == error_mark_node)
!     return error_mark_node;
!   conv = implicit_conversion (type, TREE_TYPE (expr), expr,
! 			      LOOKUP_NORMAL);
    if (!conv || ICS_BAD_FLAG (conv))
      {
!       cp_error ("could not convert `%E' to `%T'", expr, type);
        return error_mark_node;
      }
  


More information about the Gcc-patches mailing list