Commit 43050a72 by Bernardo Innocenti Committed by Bernardo Innocenti

* c-common.c (c_staticp): Last episode of the staticp saga.

From-SVN: r85138
parent ea06b166
2004-07-25 Bernardo Innocenti <bernie@develer.com>
* c-common.c (c_staticp): Last episode of the staticp saga.
2004-07-25 Bernardo Innocenti <bernie@develer.com>
* c-common.h (c_staticp): Change return type from int to bool.
* tree.c (staticp): Likewise.
* langhooks.h (staticp): Likewise.
......
......@@ -3837,13 +3837,13 @@ c_common_unsafe_for_reeval (tree exp)
/* Hook used by staticp to handle language-specific tree codes. */
int
bool
c_staticp (tree exp)
{
if (TREE_CODE (exp) == COMPOUND_LITERAL_EXPR
&& TREE_STATIC (COMPOUND_LITERAL_EXPR_DECL (exp)))
return 1;
return 0;
return true;
return false;
}
......
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