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: safe_from_p changes tree code


>> Martin, do you want to take care of making the change?
>
>Here you go.

Thanks for the attempt, but don't install this just yet.  See
my hastily-typed changes below.

>Wed Jul  1 21:45:44 1998  Martin von Löwis  <loewis@informatik.hu-berlin.de>
>
>	* expr.c (safe_from_p): Change code to ERROR_MARK only when not
>	accessing nodes.
>
>! 	    {
>! 	      tree operand = TREE_OPERAND (exp, i);
+	      int rtn_val;
>! 	      if (operand == NULL_TREE)
>! 		continue;
>! 	      TREE_SET_CODE (exp, ERROR_MARK);
!	      rtn_val = safe_from_p (x, operand, 0);
-		return 0;
>! 	      TREE_SET_CODE (exp, SAVE_EXPR);
+	      if (! rtn_val)
+		return 0;
>! 	    }
>! 	  TREE_SET_CODE (exp, ERROR_MARK);

(I used pseudo-patch notation to indicate the added, changed,
and removed lines, all of which have no "!" in column 2.)

        tq vm, (burley)


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