mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 17:00:58 +08:00
* c-common.c (c_staticp): Last episode of the staticp saga.
From-SVN: r85138
This commit is contained in:
parent
ea06b1666d
commit
43050a72d1
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user