diff options
author | Zack Weinberg <zack@codesourcery.com> | 2004-11-30 08:15:42 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2004-11-30 08:15:42 +0000 |
commit | 7370bebd3f4bf1725a73073c027ba13afc127f40 (patch) | |
tree | b15ea66df5615f20de6cb22091af0ada49e70733 /gcc/gthr-gnat.c | |
parent | afe849213eed9764b4579ba081c111a0b3ddde25 (diff) | |
download | gcc-7370bebd3f4bf1725a73073c027ba13afc127f40.zip gcc-7370bebd3f4bf1725a73073c027ba13afc127f40.tar.gz gcc-7370bebd3f4bf1725a73073c027ba13afc127f40.tar.bz2 |
* gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
* unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
* mklibgcc.in: Drastic restructure for comprehensibility.
Remove the old hidden-directive hack.
Eliminate support for .txt files in LIB2ADD etc (never used).
Eliminate support for assembly source files in LIB2ADDEH* and
LIBUNWIND (also never used).
Build up dependency lists for libraries incrementally.
If we have SHLIB_LINK, compile each file twice, once for the
static and once for the shared library; also probe for
-fvisibility=hidden in the generated libgcc.mk. If found,
pass that and -DHIDE_EXPORTS to the compilation of every C
source file going into the static library. If found, generate
hidden-directive lists for every assembly source file going
into the static library, but incorporate them with -include
instead of ld -r.
Write comments into generated libgcc.mk to facilitate debugging.
* Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
* config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
* config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
-Zdynamiclib case.
From-SVN: r91513
Diffstat (limited to 'gcc/gthr-gnat.c')
-rw-r--r-- | gcc/gthr-gnat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/gthr-gnat.c b/gcc/gthr-gnat.c index 85d57bc..2d55fdf 100644 --- a/gcc/gthr-gnat.c +++ b/gcc/gthr-gnat.c @@ -28,7 +28,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "gthr-gnat.h" +#ifndef HIDE_EXPORTS #pragma GCC visibility push(default) +#endif #ifdef __cplusplus #define UNUSED(x) @@ -81,4 +83,6 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex)) return 0; } +#ifndef HIDE_EXPORTS #pragma GCC visibility pop +#endif |