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

From-SVN: r85138
This commit is contained in:
Bernardo Innocenti 2004-07-25 05:13:12 +02:00 committed by Bernardo Innocenti
parent ea06b1666d
commit 43050a72d1
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
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.

View File

@ -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;
}