diff options
author | Mark Mitchell <mark@codesourcery.com> | 2004-08-03 16:57:40 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2004-08-03 16:57:40 +0000 |
commit | 3fc1f660b24821265d59d21afd1c21c8ed9bdc50 (patch) | |
tree | bdc2915dddeefc851e6591a2b146707386ffa47f | |
parent | 066cd96767670cf235869528e8c8fc963b35cc1d (diff) | |
download | gcc-3fc1f660b24821265d59d21afd1c21c8ed9bdc50.zip gcc-3fc1f660b24821265d59d21afd1c21c8ed9bdc50.tar.gz gcc-3fc1f660b24821265d59d21afd1c21c8ed9bdc50.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 28 | ||||
-rw-r--r-- | gcc/gthr-gnat.c | 5 | ||||
-rw-r--r-- | gcc/gthr-gnat.h | 4 | ||||
-rw-r--r-- | gcc/gthr.h | 4 | ||||
-rw-r--r-- | gcc/libgcc2.c | 10 | ||||
-rw-r--r-- | gcc/libgcc2.h | 19 | ||||
-rw-r--r-- | gcc/unwind-dw2-fde.h | 4 | ||||
-rw-r--r-- | gcc/unwind.h | 4 |
8 files changed, 67 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8828ae1..c9bdbca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,31 @@ +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> Dale Johannesen <dalej@apple.com> Roger Sayle <roger@eyesopen.com> diff --git a/gcc/gthr-gnat.c b/gcc/gthr-gnat.c index 586e7d1..cb47d86 100644 --- a/gcc/gthr-gnat.c +++ b/gcc/gthr-gnat.c @@ -26,9 +26,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ - #include "gthr-gnat.h" +#pragma GCC visibility push(default) + #ifdef __cplusplus #define UNUSED(x) #else @@ -79,3 +80,5 @@ __gthread_mutex_unlock (__gthread_mutex_t * UNUSED (mutex)) __gnat_task_unlock (); return 0; } + +#pragma GCC visibility pop diff --git a/gcc/gthr-gnat.h b/gcc/gthr-gnat.h index 7278141..d39a370 100644 --- a/gcc/gthr-gnat.h +++ b/gcc/gthr-gnat.h @@ -28,6 +28,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_GTHR_GNAT_H #define GCC_GTHR_GNAT_H +#pragma GCC visibility push(default) + /* Just provide compatibility for mutex handling. */ typedef int __gthread_mutex_t; @@ -39,5 +41,7 @@ extern int __gthread_active_p (void); extern int __gthread_mutex_lock (__gthread_mutex_t *); extern int __gthread_mutex_unlock (__gthread_mutex_t *); +#pragma GCC visibility pop + #endif /* ! GCC_GTHR_GNAT_H */ @@ -29,6 +29,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_GTHR_H #define GCC_GTHR_H +#pragma GCC visibility push(default) + /* If this file is compiled with threads support, it must #define __GTHREADS 1 to indicate that threads support is present. Also it has define @@ -100,4 +102,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "gthr-single.h" #endif +#pragma GCC visibility pop(default) + #endif /* ! GCC_GTHR_H */ diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 2da20e3..3d021e2 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -418,7 +418,6 @@ __ashrdi3 (DWtype u, word_type b) #ifdef L_ffssi2 #undef int -extern int __ffsSI2 (UWtype u); int __ffsSI2 (UWtype u) { @@ -434,7 +433,6 @@ __ffsSI2 (UWtype u) #ifdef L_ffsdi2 #undef int -extern int __ffsDI2 (DWtype u); int __ffsDI2 (DWtype u) { @@ -611,7 +609,6 @@ const UQItype __clz_tab[] = #ifdef L_clzsi2 #undef int -extern int __clzSI2 (UWtype x); int __clzSI2 (UWtype x) { @@ -625,7 +622,6 @@ __clzSI2 (UWtype x) #ifdef L_clzdi2 #undef int -extern int __clzDI2 (UDWtype x); int __clzDI2 (UDWtype x) { @@ -645,7 +641,6 @@ __clzDI2 (UDWtype x) #ifdef L_ctzsi2 #undef int -extern int __ctzSI2 (UWtype x); int __ctzSI2 (UWtype x) { @@ -659,7 +654,6 @@ __ctzSI2 (UWtype x) #ifdef L_ctzdi2 #undef int -extern int __ctzDI2 (UDWtype x); int __ctzDI2 (UDWtype x) { @@ -698,7 +692,6 @@ const UQItype __popcount_tab[] = #ifdef L_popcountsi2 #undef int -extern int __popcountSI2 (UWtype x); int __popcountSI2 (UWtype x) { @@ -713,7 +706,6 @@ __popcountSI2 (UWtype x) #ifdef L_popcountdi2 #undef int -extern int __popcountDI2 (UDWtype x); int __popcountDI2 (UDWtype x) { @@ -728,7 +720,6 @@ __popcountDI2 (UDWtype x) #ifdef L_paritysi2 #undef int -extern int __paritySI2 (UWtype x); int __paritySI2 (UWtype x) { @@ -750,7 +741,6 @@ __paritySI2 (UWtype x) #ifdef L_paritydi2 #undef int -extern int __parityDI2 (UDWtype x); int __parityDI2 (UDWtype x) { diff --git a/gcc/libgcc2.h b/gcc/libgcc2.h index 9ca0b50..3c7e3e2 100644 --- a/gcc/libgcc2.h +++ b/gcc/libgcc2.h @@ -30,6 +30,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef 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 void __clear_cache (char *, char *); extern void __eprintf (const char *, const char *, unsigned int, const char *) @@ -307,4 +309,21 @@ typedef union #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 */ diff --git a/gcc/unwind-dw2-fde.h b/gcc/unwind-dw2-fde.h index 16ffa94..47ec3ab 100644 --- a/gcc/unwind-dw2-fde.h +++ b/gcc/unwind-dw2-fde.h @@ -32,6 +32,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #ifndef GCC_UNWIND_DW2_FDE_H #define GCC_UNWIND_DW2_FDE_H +#pragma GCC visibility push(default) + struct fde_vector { const void *orig_data; @@ -177,4 +179,6 @@ last_fde (struct object *obj __attribute__ ((__unused__)), const fde *f) #endif } +#pragma GCC visibility pop + #endif /* unwind-dw2-fde.h */ diff --git a/gcc/unwind.h b/gcc/unwind.h index 21f3feb..ca917b0 100644 --- a/gcc/unwind.h +++ b/gcc/unwind.h @@ -31,6 +31,8 @@ #ifndef _UNWIND_H #define _UNWIND_H +#pragma GCC visibility push(default) + #ifdef __cplusplus extern "C" { #endif @@ -229,4 +231,6 @@ extern void * _Unwind_FindEnclosingFunction (void *pc); } #endif +#pragma GCC visibility pop + #endif /* unwind.h */ |