diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-10-08 19:15:55 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-10-08 19:15:55 +0000 |
commit | 6ee5940bc31998b1dba4acf746ebeb7938aa8d89 (patch) | |
tree | 4d4703d8584578827c570d9642571bcc22843b38 /gcc/halfpic.c | |
parent | 8aa987be6b80b97201b0ae9046f33af721d8eb63 (diff) | |
download | gcc-6ee5940bc31998b1dba4acf746ebeb7938aa8d89.tar.gz |
Make ROSE shared library profiling work; Use GOTOFF if possible for ELF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5684 138bc75d-0d04-0410-961f-82ee72b054a4
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 64475397a14..53ba12f064e 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 |