diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-29 21:57:05 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-29 21:57:05 +0000 |
commit | 3a2bf8d37de84d647864bcaf139b54258c985279 (patch) | |
tree | 4633005da8f64b1767538dcd1ee8920a7bf39820 /gcc/tree.h | |
parent | 72fe0291ed0b258c4c0b00eea051498e272e55f1 (diff) | |
download | gcc-3a2bf8d37de84d647864bcaf139b54258c985279.tar.gz |
* c-tree.h (C_DECL_FILE_SCOPE): Move ...
* tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
* c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index c55375087f2..7f99a514905 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -1624,6 +1624,11 @@ struct tree_type GTY(()) #define DECL_ESTIMATED_INSNS(NODE) \ (FUNCTION_DECL_CHECK (NODE)->decl.u1.i) +/* Nonzero for a decl which is at file scope. */ +#define DECL_FILE_SCOPE_P(EXP) \ + (! DECL_CONTEXT (EXP) \ + || TREE_CODE (DECL_CONTEXT (EXP)) == TRANSLATION_UNIT_DECL) + struct function; struct tree_decl GTY(()) |