* config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.

From-SVN: r61176
This commit is contained in:
Richard Henderson 2003-01-10 15:07:53 -08:00 committed by Richard Henderson
parent 99152b955c
commit 7f24e7c59c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-01-10 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
2003-01-10 Geoffrey Keating <geoffk@apple.com>
* ggc-page.c (ggc_collect): Avoid overflow computing

View File

@ -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. */