From 1c12c17951fa3ae41b6292643f6db67fa82d668f Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 3 May 2000 20:36:20 -0400 Subject: * tree.c (staticp, case LABEL_DECL): New case. From-SVN: r33651 --- gcc/tree.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index a71851e..35d1c0a 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2442,16 +2442,17 @@ staticp (arg) case FUNCTION_DECL: /* Nested functions aren't static, since taking their address involves a trampoline. */ - return (decl_function_context (arg) == 0 || DECL_NO_STATIC_CHAIN (arg)) - && ! DECL_NON_ADDR_CONST_P (arg); + return (decl_function_context (arg) == 0 || DECL_NO_STATIC_CHAIN (arg)) + && ! DECL_NON_ADDR_CONST_P (arg); case VAR_DECL: return (TREE_STATIC (arg) || DECL_EXTERNAL (arg)) - && ! DECL_NON_ADDR_CONST_P (arg); + && ! DECL_NON_ADDR_CONST_P (arg); case CONSTRUCTOR: return TREE_STATIC (arg); + case LABEL_DECL: case STRING_CST: return 1; -- cgit v1.1