Commit d964285c by Charles Hannum

*** empty log message ***

From-SVN: r1533
parent a9814526
...@@ -6546,11 +6546,8 @@ do_store_flag (exp, target, mode, only_cheap) ...@@ -6546,11 +6546,8 @@ do_store_flag (exp, target, mode, only_cheap)
if (operand_mode == BLKmode) if (operand_mode == BLKmode)
return 0; return 0;
while (TREE_CODE (arg0) == NON_LVALUE_EXPR) STRIP_NOPS (arg0);
arg0 = TREE_OPERAND (arg0, 0); STRIP_NOPS (arg1);
while (TREE_CODE (arg1) == NON_LVALUE_EXPR)
arg1 = TREE_OPERAND (arg1, 0);
/* Get the rtx comparison code to use. We know that EXP is a comparison /* Get the rtx comparison code to use. We know that EXP is a comparison
operation of some type. Some comparisons against 1 and -1 can be operation of some type. Some comparisons against 1 and -1 can be
......
...@@ -1217,8 +1217,7 @@ int ...@@ -1217,8 +1217,7 @@ int
integer_zerop (expr) integer_zerop (expr)
tree expr; tree expr;
{ {
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
return (TREE_CODE (expr) == INTEGER_CST return (TREE_CODE (expr) == INTEGER_CST
&& TREE_INT_CST_LOW (expr) == 0 && TREE_INT_CST_LOW (expr) == 0
...@@ -1231,8 +1230,7 @@ int ...@@ -1231,8 +1230,7 @@ int
integer_onep (expr) integer_onep (expr)
tree expr; tree expr;
{ {
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
return (TREE_CODE (expr) == INTEGER_CST return (TREE_CODE (expr) == INTEGER_CST
&& TREE_INT_CST_LOW (expr) == 1 && TREE_INT_CST_LOW (expr) == 1
...@@ -1249,8 +1247,7 @@ integer_all_onesp (expr) ...@@ -1249,8 +1247,7 @@ integer_all_onesp (expr)
register int prec; register int prec;
register int uns; register int uns;
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
if (TREE_CODE (expr) != INTEGER_CST) if (TREE_CODE (expr) != INTEGER_CST)
return 0; return 0;
...@@ -1292,8 +1289,7 @@ integer_pow2p (expr) ...@@ -1292,8 +1289,7 @@ integer_pow2p (expr)
{ {
HOST_WIDE_INT high, low; HOST_WIDE_INT high, low;
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
if (TREE_CODE (expr) != INTEGER_CST) if (TREE_CODE (expr) != INTEGER_CST)
return 0; return 0;
...@@ -1314,8 +1310,7 @@ int ...@@ -1314,8 +1310,7 @@ int
real_zerop (expr) real_zerop (expr)
tree expr; tree expr;
{ {
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
return (TREE_CODE (expr) == REAL_CST return (TREE_CODE (expr) == REAL_CST
&& REAL_VALUES_EQUAL (TREE_REAL_CST (expr), dconst0)); && REAL_VALUES_EQUAL (TREE_REAL_CST (expr), dconst0));
...@@ -1327,8 +1322,7 @@ int ...@@ -1327,8 +1322,7 @@ int
real_onep (expr) real_onep (expr)
tree expr; tree expr;
{ {
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
return (TREE_CODE (expr) == REAL_CST return (TREE_CODE (expr) == REAL_CST
&& REAL_VALUES_EQUAL (TREE_REAL_CST (expr), dconst1)); && REAL_VALUES_EQUAL (TREE_REAL_CST (expr), dconst1));
...@@ -1340,8 +1334,7 @@ int ...@@ -1340,8 +1334,7 @@ int
real_twop (expr) real_twop (expr)
tree expr; tree expr;
{ {
while (TREE_CODE (expr) == NON_LVALUE_EXPR) STRIP_NOPS (expr);
expr = TREE_OPERAND (expr, 0);
return (TREE_CODE (expr) == REAL_CST return (TREE_CODE (expr) == REAL_CST
&& REAL_VALUES_EQUAL (TREE_REAL_CST (expr), dconst2)); && REAL_VALUES_EQUAL (TREE_REAL_CST (expr), dconst2));
...@@ -1353,6 +1346,7 @@ int ...@@ -1353,6 +1346,7 @@ int
really_constant_p (exp) really_constant_p (exp)
tree exp; tree exp;
{ {
/* This is not quite the same as STRIP_NOPS. It does more. */
while (TREE_CODE (exp) == NOP_EXPR while (TREE_CODE (exp) == NOP_EXPR
|| TREE_CODE (exp) == CONVERT_EXPR || TREE_CODE (exp) == CONVERT_EXPR
|| TREE_CODE (exp) == NON_LVALUE_EXPR) || TREE_CODE (exp) == NON_LVALUE_EXPR)
......
...@@ -2678,8 +2678,8 @@ output_constructor (exp, size) ...@@ -2678,8 +2678,8 @@ output_constructor (exp, size)
field = TREE_PURPOSE (link); field = TREE_PURPOSE (link);
/* Eliminate the marker that makes a cast not be an lvalue. */ /* Eliminate the marker that makes a cast not be an lvalue. */
if (val != 0 && TREE_CODE (val) == NON_LVALUE_EXPR) if (val != 0)
val = TREE_OPERAND (val, 0); STRIP_NOPS (val);
if (field == 0 || !DECL_BIT_FIELD (field)) if (field == 0 || !DECL_BIT_FIELD (field))
{ {
......
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