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]
Other format: [Raw text]

Re: Patch: fix crash on legal code


Dale Johannesen <dalej@apple.com> writes:
> 2002-12-04  Dale Johannesen  <dalej@apple.com>
> 
>       * tree.c (unsafe_for_reeval):  Consider callee child of
>       CALL_EXPR.

Couldn't you just reuse the TARGET_EXPR case?  I.e.:

*** tree.c	4 Dec 2002 20:12:59 -0000	1.281
--- tree.c	6 Dec 2002 13:00:34 -0000
*************** unsafe_for_reeval (expr)
*** 1660,1668 ****
        return unsafeness;
  
      case CALL_EXPR:
-       tmp = unsafe_for_reeval (TREE_OPERAND (expr, 1));
-       return MAX (tmp, 1);
- 
      case TARGET_EXPR:
        unsafeness = 1;
        break;
--- 1660,1665 ----


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