This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: safe_from_p changes tree code
- To: martin at mira dot isdn dot cs dot tu-berlin dot de
- Subject: Re: safe_from_p changes tree code
- From: Craig Burley <burley at gnu dot org>
- Date: Wed, 1 Jul 1998 21:04:27 -0400 (EDT)
- CC: law at cygnus dot com, mark at markmitchell dot com, egcs-patches at cygnus dot com
>> 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)