* c-common.c (c_staticp): Last episode of the staticp saga.
authorBernardo Innocenti <bernie@develer.com>
Sun, 25 Jul 2004 03:13:12 +0000 (05:13 +0200)
committerBernardo Innocenti <bernie@gcc.gnu.org>
Sun, 25 Jul 2004 03:13:12 +0000 (05:13 +0200)
From-SVN: r85138

gcc/ChangeLog
gcc/c-common.c

index 00ea5ba241aa84fe21cf9b18e2939da012302799..f61d0963bda6243fb8dc28e6647b243291490193 100644 (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.
index fe702fb215057c91469118d21feef72b440b6043..7de8cde7faa3586460d3dec37b7217ec23a14731 100644 (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;
 }
 \f