diff options
author | Richard Stallman <rms@gnu.org> | 1993-02-02 22:54:34 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-02-02 22:54:34 +0000 |
commit | 030f365a0d021a494680a5c845c7411e21b72ce8 (patch) | |
tree | fa12bfa52be7e283feec1ea3d475ee5574b920f3 /gcc | |
parent | 089e575bb026643d369f674640a28ffee2a40fda (diff) | |
download | gcc-030f365a0d021a494680a5c845c7411e21b72ce8.zip gcc-030f365a0d021a494680a5c845c7411e21b72ce8.tar.gz gcc-030f365a0d021a494680a5c845c7411e21b72ce8.tar.bz2 |
(pushdecl): DECL_EXTERNAL implies TREE_PUBLIC, so test just the latter.
From-SVN: r3412
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-decl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 96c1523..b7fd3c6 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1808,7 +1808,7 @@ pushdecl (x) We get warnings about inline functions where they are defined. Avoid duplicate warnings where they are used. */ - if ((DECL_EXTERNAL (x) || TREE_PUBLIC (x)) && ! DECL_INLINE (x)) + if (TREE_PUBLIC (x) && ! DECL_INLINE (x)) { tree decl; @@ -3277,6 +3277,7 @@ finish_decl (decl, init, asmspec_tree) if (do_default) error_with_decl (decl, "array size missing in `%s'"); else if (!pedantic && TREE_STATIC (decl)) + /* ??? Perhaps should set TREE_PUBLIC here? */ DECL_EXTERNAL (decl) = 1; } |