aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/alpha.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-01-10 15:07:53 -0800
committerRichard Henderson <rth@gcc.gnu.org>2003-01-10 15:07:53 -0800
commit7f24e7c59ce775c759d162350a5944a9c5f7ec3c (patch)
treefa8ab921708190e6938931bf525131f5a958d63b /gcc/config/alpha/alpha.c
parent99152b955c7b9774edb1c6aeab5b3fdfc3bc7054 (diff)
downloadgcc-7f24e7c59ce775c759d162350a5944a9c5f7ec3c.zip
gcc-7f24e7c59ce775c759d162350a5944a9c5f7ec3c.tar.gz
gcc-7f24e7c59ce775c759d162350a5944a9c5f7ec3c.tar.bz2
* config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
From-SVN: r61176
Diffstat (limited to 'gcc/config/alpha/alpha.c')
-rw-r--r--gcc/config/alpha/alpha.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
index dbbf110..866c465 100644
--- a/gcc/config/alpha/alpha.c
+++ b/gcc/config/alpha/alpha.c
@@ -1842,7 +1842,9 @@ decl_has_samegp (decl)
return true;
/* Functions that are not external are defined in this UoT. */
- return !DECL_EXTERNAL (decl);
+ /* ??? Irritatingly, static functions not yet emitted are still
+ marked "external". Apply this to non-static functions only. */
+ return !TREE_PUBLIC (decl) || !DECL_EXTERNAL (decl);
}
/* Return true if EXP should be placed in the small data section. */