Commit 7d2d49af by Richard Stallman

(build_unary_op): For ADDR_EXPR, just set TREE_CONSTANT

if staticp, but don't clear TREE_CONSTANT.

From-SVN: r1939
parent 58744483
...@@ -3166,8 +3166,9 @@ build_unary_op (code, xarg, noconvert) ...@@ -3166,8 +3166,9 @@ build_unary_op (code, xarg, noconvert)
addr = build1 (code, argtype, arg); addr = build1 (code, argtype, arg);
/* Address of a static or external variable or /* Address of a static or external variable or
function counts as a constant */ function counts as a constant. */
TREE_CONSTANT (addr) = staticp (arg); if (staticp (arg))
TREE_CONSTANT (addr) = 1;
return addr; return addr;
} }
} }
......
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