Commit 1fcfaf37 by Dale Johannesen Committed by Dale Johannesen

tree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.

2002-12-05  Dale Johannesen  <dalej@apple.com>

        * tree.c (unsafe_for_reeval):  Consider callee child of CALL_EXPR.

From-SVN: r59875
parent 1a823ac1
2002-12-05 Dale Johannesen <dalej@apple.com>
* tree.c (unsafe_for_reeval): Consider callee child of CALL_EXPR.
2002-12-05 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/cygwin.h (SUBTARGET_PROLOGUE): Replace with
......
/* dg-do compile */
/* dg-options "-O3" */
typedef struct x x;
struct x { char * (*bar) (int); };
static x **foo() { return ((x**)baz()); }
int xyzzy()
{
baz((*foo())->bar(0));
return 3;
}
......@@ -1634,7 +1634,7 @@ unsafe_for_reeval (expr)
{
int unsafeness = 0;
enum tree_code code;
int i, tmp;
int i, tmp, tmp2;
tree exp;
int first_rtl;
......@@ -1660,8 +1660,9 @@ unsafe_for_reeval (expr)
return unsafeness;
case CALL_EXPR:
tmp2 = unsafe_for_reeval (TREE_OPERAND (expr, 0));
tmp = unsafe_for_reeval (TREE_OPERAND (expr, 1));
return MAX (tmp, 1);
return MAX (MAX (tmp, 1), tmp2);
case TARGET_EXPR:
unsafeness = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment