From 7370bebd3f4bf1725a73073c027ba13afc127f40 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 30 Nov 2004 08:15:42 +0000 Subject: * 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 --- gcc/gthr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/gthr.h') diff --git a/gcc/gthr.h b/gcc/gthr.h index 70345a5..ffd40d7 100644 --- a/gcc/gthr.h +++ b/gcc/gthr.h @@ -29,7 +29,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_GTHR_H #define GCC_GTHR_H +#ifndef HIDE_EXPORTS #pragma GCC visibility push(default) +#endif /* If this file is compiled with threads support, it must #define __GTHREADS 1 @@ -116,6 +118,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "gthr-single.h" #endif +#ifndef HIDE_EXPORTS #pragma GCC visibility pop +#endif #endif /* ! GCC_GTHR_H */ -- cgit v1.1