From: Bernardo Innocenti Date: Sun, 25 Jul 2004 03:13:12 +0000 (+0200) Subject: * c-common.c (c_staticp): Last episode of the staticp saga. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43050a72d15f7f4b6acb306576b0196bea15f67b;p=gcc.git * c-common.c (c_staticp): Last episode of the staticp saga. From-SVN: r85138 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00ea5ba241a..f61d0963bda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-07-25 Bernardo Innocenti + + * c-common.c (c_staticp): Last episode of the staticp saga. + 2004-07-25 Bernardo Innocenti * c-common.h (c_staticp): Change return type from int to bool. 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; }