summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-03 16:57:40 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-03 16:57:40 +0000
commitbc9fbf5dec10a5a0131608cefd9b97d273064814 (patch)
treebdc2915dddeefc851e6591a2b146707386ffa47f /gcc
parent859f2d3b2d529dce85ee77a28e4f2d9224d81a55 (diff)
downloadgcc-bc9fbf5dec10a5a0131608cefd9b97d273064814.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85489 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog28
-rw-r--r--gcc/gthr-gnat.c5
-rw-r--r--gcc/gthr-gnat.h4
-rw-r--r--gcc/gthr.h4
-rw-r--r--gcc/libgcc2.c10
-rw-r--r--gcc/libgcc2.h19
-rw-r--r--gcc/unwind-dw2-fde.h4
-rw-r--r--gcc/unwind.h4
8 files changed, 67 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8828ae1191c..c9bdbca3273 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 586e7d1a188..cb47d86cd08 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 727814197c0..d39a370451c 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 */
diff --git a/gcc/gthr.h b/gcc/gthr.h
index b0511543645..cf284229f5f 100644
--- a/gcc/gthr.h
+++ b/gcc/gthr.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 2da20e30903..3d021e2cfb5 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 9ca0b505113..3c7e3e29e3d 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 16ffa9496c2..47ec3ab3649 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 21f3feb86bc..ca917b0ad2c 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 */