Commit 3fc1f660 by Mark Mitchell Committed by Mark Mitchell

gthr-gnat.c: Add visibility #pragmas.

	* gthr-gnat.c: Add visibility #pragmas.
	* gthr-gnat.h : Likewise.
	* gthr.h: Likewise.
	* libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
	(__ffsDI2): Likewise.
	(__clzSI2): Likewise.
	(__ctzSI2): Likewise.
	(__ctzDI2): Likewise.
	(__popcountSI2): Likewise.
	(__popcountDI2): Likewise.
	(__paritySI2): Likewise.
	(__parityDI2): Likewise.
	* libgcc2.h: Add visibility #pragmas.
	(__clzDI2): Add prototype.
	(__clzSI2): Likewise.
	(__ctzSI2): Likewise.
	(__ffsDI2): Likewise.
	(__ffsSI2): Likewise.
	(__ctzDI2): Likewise.
	(__popcountSI2): Likewise.
	(__popcountDI2): Likewise.
	(__paritySI2): Likewise.
	(__parityDI2): Likewise.
	* unwind-dw2-fde.h: Add visibility #pragmas.
	* unwind.h: Likewise.

From-SVN: r85489
parent 066cd967
2004-08-03 Mark Mitchell <mark@codesourcery.com>
* gthr-gnat.c: Add visibility #pragmas.
* gthr-gnat.h : Likewise.
* gthr.h: Likewise.
* libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
(__ffsDI2): Likewise.
(__clzSI2): Likewise.
(__ctzSI2): Likewise.
(__ctzDI2): Likewise.
(__popcountSI2): Likewise.
(__popcountDI2): Likewise.
(__paritySI2): Likewise.
(__parityDI2): Likewise.
* libgcc2.h: Add visibility #pragmas.
(__clzDI2): Add prototype.
(__clzSI2): Likewise.
(__ctzSI2): Likewise.
(__ffsDI2): Likewise.
(__ffsSI2): Likewise.
(__ctzDI2): Likewise.
(__popcountSI2): Likewise.
(__popcountDI2): Likewise.
(__paritySI2): Likewise.
(__parityDI2): Likewise.
* unwind-dw2-fde.h: Add visibility #pragmas.
* unwind.h: Likewise.
2004-08-03 David Edelsohn <edelsohn@gnu.org> 2004-08-03 David Edelsohn <edelsohn@gnu.org>
Dale Johannesen <dalej@apple.com> Dale Johannesen <dalej@apple.com>
Roger Sayle <roger@eyesopen.com> Roger Sayle <roger@eyesopen.com>
......
...@@ -26,9 +26,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -26,9 +26,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
This exception does not however invalidate any other reasons why This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */ the executable file might be covered by the GNU General Public License. */
#include "gthr-gnat.h" #include "gthr-gnat.h"
#pragma GCC visibility push(default)
#ifdef __cplusplus #ifdef __cplusplus
#define UNUSED(x) #define UNUSED(x)
#else #else
...@@ -79,3 +80,5 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex)) ...@@ -79,3 +80,5 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex))
__gnat_task_unlock (); __gnat_task_unlock ();
return 0; return 0;
} }
#pragma GCC visibility pop
...@@ -28,6 +28,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -28,6 +28,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef GCC_GTHR_GNAT_H #ifndef GCC_GTHR_GNAT_H
#define GCC_GTHR_GNAT_H #define GCC_GTHR_GNAT_H
#pragma GCC visibility push(default)
/* Just provide compatibility for mutex handling. */ /* Just provide compatibility for mutex handling. */
typedef int __gthread_mutex_t; typedef int __gthread_mutex_t;
...@@ -39,5 +41,7 @@ extern int __gthread_active_p (void); ...@@ -39,5 +41,7 @@ extern int __gthread_active_p (void);
extern int __gthread_mutex_lock (__gthread_mutex_t *); extern int __gthread_mutex_lock (__gthread_mutex_t *);
extern int __gthread_mutex_unlock (__gthread_mutex_t *); extern int __gthread_mutex_unlock (__gthread_mutex_t *);
#pragma GCC visibility pop
#endif /* ! GCC_GTHR_GNAT_H */ #endif /* ! GCC_GTHR_GNAT_H */
...@@ -29,6 +29,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -29,6 +29,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef GCC_GTHR_H #ifndef GCC_GTHR_H
#define GCC_GTHR_H #define GCC_GTHR_H
#pragma GCC visibility push(default)
/* If this file is compiled with threads support, it must /* If this file is compiled with threads support, it must
#define __GTHREADS 1 #define __GTHREADS 1
to indicate that threads support is present. Also it has define to indicate that threads support is present. Also it has define
...@@ -100,4 +102,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -100,4 +102,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "gthr-single.h" #include "gthr-single.h"
#endif #endif
#pragma GCC visibility pop(default)
#endif /* ! GCC_GTHR_H */ #endif /* ! GCC_GTHR_H */
...@@ -418,7 +418,6 @@ __ashrdi3 (DWtype u, word_type b) ...@@ -418,7 +418,6 @@ __ashrdi3 (DWtype u, word_type b)
#ifdef L_ffssi2 #ifdef L_ffssi2
#undef int #undef int
extern int __ffsSI2 (UWtype u);
int int
__ffsSI2 (UWtype u) __ffsSI2 (UWtype u)
{ {
...@@ -434,7 +433,6 @@ __ffsSI2 (UWtype u) ...@@ -434,7 +433,6 @@ __ffsSI2 (UWtype u)
#ifdef L_ffsdi2 #ifdef L_ffsdi2
#undef int #undef int
extern int __ffsDI2 (DWtype u);
int int
__ffsDI2 (DWtype u) __ffsDI2 (DWtype u)
{ {
...@@ -611,7 +609,6 @@ const UQItype __clz_tab[] = ...@@ -611,7 +609,6 @@ const UQItype __clz_tab[] =
#ifdef L_clzsi2 #ifdef L_clzsi2
#undef int #undef int
extern int __clzSI2 (UWtype x);
int int
__clzSI2 (UWtype x) __clzSI2 (UWtype x)
{ {
...@@ -625,7 +622,6 @@ __clzSI2 (UWtype x) ...@@ -625,7 +622,6 @@ __clzSI2 (UWtype x)
#ifdef L_clzdi2 #ifdef L_clzdi2
#undef int #undef int
extern int __clzDI2 (UDWtype x);
int int
__clzDI2 (UDWtype x) __clzDI2 (UDWtype x)
{ {
...@@ -645,7 +641,6 @@ __clzDI2 (UDWtype x) ...@@ -645,7 +641,6 @@ __clzDI2 (UDWtype x)
#ifdef L_ctzsi2 #ifdef L_ctzsi2
#undef int #undef int
extern int __ctzSI2 (UWtype x);
int int
__ctzSI2 (UWtype x) __ctzSI2 (UWtype x)
{ {
...@@ -659,7 +654,6 @@ __ctzSI2 (UWtype x) ...@@ -659,7 +654,6 @@ __ctzSI2 (UWtype x)
#ifdef L_ctzdi2 #ifdef L_ctzdi2
#undef int #undef int
extern int __ctzDI2 (UDWtype x);
int int
__ctzDI2 (UDWtype x) __ctzDI2 (UDWtype x)
{ {
...@@ -698,7 +692,6 @@ const UQItype __popcount_tab[] = ...@@ -698,7 +692,6 @@ const UQItype __popcount_tab[] =
#ifdef L_popcountsi2 #ifdef L_popcountsi2
#undef int #undef int
extern int __popcountSI2 (UWtype x);
int int
__popcountSI2 (UWtype x) __popcountSI2 (UWtype x)
{ {
...@@ -713,7 +706,6 @@ __popcountSI2 (UWtype x) ...@@ -713,7 +706,6 @@ __popcountSI2 (UWtype x)
#ifdef L_popcountdi2 #ifdef L_popcountdi2
#undef int #undef int
extern int __popcountDI2 (UDWtype x);
int int
__popcountDI2 (UDWtype x) __popcountDI2 (UDWtype x)
{ {
...@@ -728,7 +720,6 @@ __popcountDI2 (UDWtype x) ...@@ -728,7 +720,6 @@ __popcountDI2 (UDWtype x)
#ifdef L_paritysi2 #ifdef L_paritysi2
#undef int #undef int
extern int __paritySI2 (UWtype x);
int int
__paritySI2 (UWtype x) __paritySI2 (UWtype x)
{ {
...@@ -750,7 +741,6 @@ __paritySI2 (UWtype x) ...@@ -750,7 +741,6 @@ __paritySI2 (UWtype x)
#ifdef L_paritydi2 #ifdef L_paritydi2
#undef int #undef int
extern int __parityDI2 (UDWtype x);
int int
__parityDI2 (UDWtype x) __parityDI2 (UDWtype x)
{ {
......
...@@ -30,6 +30,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -30,6 +30,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef GCC_LIBGCC2_H #ifndef GCC_LIBGCC2_H
#define GCC_LIBGCC2_H #define GCC_LIBGCC2_H
#pragma GCC visibility push(default)
extern int __gcc_bcmp (const unsigned char *, const unsigned char *, size_t); extern int __gcc_bcmp (const unsigned char *, const unsigned char *, size_t);
extern void __clear_cache (char *, char *); extern void __clear_cache (char *, char *);
extern void __eprintf (const char *, const char *, unsigned int, const char *) extern void __eprintf (const char *, const char *, unsigned int, const char *)
...@@ -307,4 +309,21 @@ typedef union ...@@ -307,4 +309,21 @@ typedef union
#include "longlong.h" #include "longlong.h"
#undef int
extern int __clzDI2 (UDWtype);
extern int __clzSI2 (UWtype);
extern int __ctzSI2 (UWtype);
extern int __ffsSI2 (UWtype);
extern int __ffsDI2 (DWtype);
extern int __ctzDI2 (UDWtype);
extern int __popcountSI2 (UWtype);
extern int __popcountDI2 (UDWtype);
extern int __paritySI2 (UWtype);
extern int __parityDI2 (UDWtype);
#define int bogus_type
extern void __enable_execute_stack (void *);
#pragma GCC visibility pop
#endif /* ! GCC_LIBGCC2_H */ #endif /* ! GCC_LIBGCC2_H */
...@@ -32,6 +32,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -32,6 +32,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#ifndef GCC_UNWIND_DW2_FDE_H #ifndef GCC_UNWIND_DW2_FDE_H
#define GCC_UNWIND_DW2_FDE_H #define GCC_UNWIND_DW2_FDE_H
#pragma GCC visibility push(default)
struct fde_vector struct fde_vector
{ {
const void *orig_data; const void *orig_data;
...@@ -177,4 +179,6 @@ last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f) ...@@ -177,4 +179,6 @@ last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f)
#endif #endif
} }
#pragma GCC visibility pop
#endif /* unwind-dw2-fde.h */ #endif /* unwind-dw2-fde.h */
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#ifndef _UNWIND_H #ifndef _UNWIND_H
#define _UNWIND_H #define _UNWIND_H
#pragma GCC visibility push(default)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
...@@ -229,4 +231,6 @@ extern void * _Unwind_FindEnclosingFunction (void *pc); ...@@ -229,4 +231,6 @@ extern void * _Unwind_FindEnclosingFunction (void *pc);
} }
#endif #endif
#pragma GCC visibility pop
#endif /* unwind.h */ #endif /* unwind.h */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment