diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 2000-05-03 20:36:20 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2000-05-03 20:36:20 -0400 |
commit | 1c12c17951fa3ae41b6292643f6db67fa82d668f (patch) | |
tree | cf68dd280b27f6ec2da370b2956344e564ebad2c /gcc/tree.c | |
parent | f4118ce9ea2560f381952bae7a898909599498b6 (diff) | |
download | gcc-1c12c17951fa3ae41b6292643f6db67fa82d668f.zip gcc-1c12c17951fa3ae41b6292643f6db67fa82d668f.tar.gz gcc-1c12c17951fa3ae41b6292643f6db67fa82d668f.tar.bz2 |
* tree.c (staticp, case LABEL_DECL): New case.
From-SVN: r33651
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |