diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1993-10-08 19:15:55 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1993-10-08 19:15:55 +0000 |
commit | 40fbfbea4895951571325e3f83acb6d0251fde04 (patch) | |
tree | 4d4703d8584578827c570d9642571bcc22843b38 /gcc/halfpic.c | |
parent | 7868c46630cef18ba6708cba08c7c3a61866944a (diff) | |
download | gcc-40fbfbea4895951571325e3f83acb6d0251fde04.zip gcc-40fbfbea4895951571325e3f83acb6d0251fde04.tar.gz gcc-40fbfbea4895951571325e3f83acb6d0251fde04.tar.bz2 |
Make ROSE shared library profiling work; Use GOTOFF if possible for ELF.
From-SVN: r5684
Diffstat (limited to 'gcc/halfpic.c')
-rw-r--r-- | gcc/halfpic.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/halfpic.c b/gcc/halfpic.c index 6447539..53ba12f 100644 --- a/gcc/halfpic.c +++ b/gcc/halfpic.c @@ -268,6 +268,30 @@ half_pic_declare (name) } +/* Mark that an object is explicitly external. */ + +void +half_pic_external (name) + char *name; +{ + struct all_refs *ptr; + + if (!flag_half_pic) + return; + + ptr = half_pic_hash (name, 0, TRUE); + if (!ptr) + return; + + ptr->external_p = TRUE; + +#ifdef HALF_PIC_DEBUG + if (HALF_PIC_DEBUG) + fprintf (stderr, "\n========== Half_pic_external %s\n", name); +#endif +} + + /* Return whether an address is half-pic. */ int |