summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-25 03:13:12 +0000
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-25 03:13:12 +0000
commitb69ebfcd29d58c12a02988a00de2ca01bb246880 (patch)
treef5a409d92c6d688235588a0700590a9f50897cde /gcc
parent35808a9f61a2c89ada72b0ccc56a621cc4839d15 (diff)
downloadppe42-gcc-b69ebfcd29d58c12a02988a00de2ca01bb246880.tar.gz
ppe42-gcc-b69ebfcd29d58c12a02988a00de2ca01bb246880.zip
* c-common.c (c_staticp): Last episode of the staticp saga.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85138 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/c-common.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 00ea5ba241a..f61d0963bda 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
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.
diff --git a/gcc/c-common.c b/gcc/c-common.c
index fe702fb2150..7de8cde7faa 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -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;
}
OpenPOWER on IntegriCloud