OSDN Git Service

* c-common.c (c_staticp): Last episode of the staticp saga.
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Jul 2004 03:13:12 +0000 (03:13 +0000)
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 25 Jul 2004 03:13:12 +0000 (03:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85138 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-common.c

index 00ea5ba..f61d096 100644 (file)
@@ -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.
index fe702fb..7de8cde 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