From cca0d0c61064a1ddbd575426b2861cafae13cb5a Mon Sep 17 00:00:00 2001 From: zack 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91513 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/unwind.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/unwind.h') diff --git a/gcc/unwind.h b/gcc/unwind.h index ca917b0ad2c..7244fd457c7 100644 --- a/gcc/unwind.h +++ b/gcc/unwind.h @@ -31,7 +31,9 @@ #ifndef _UNWIND_H #define _UNWIND_H +#ifndef HIDE_EXPORTS #pragma GCC visibility push(default) +#endif #ifdef __cplusplus extern "C" { @@ -231,6 +233,8 @@ extern void * _Unwind_FindEnclosingFunction (void *pc); } #endif +#ifndef HIDE_EXPORTS #pragma GCC visibility pop +#endif #endif /* unwind.h */ -- cgit v1.2.1