aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2011-12-01 02:37:06 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2011-12-01 02:37:06 +0000
commit06dd33ac5ee441630b4fbc9fca33cf0bef5856bc (patch)
tree329476358ef08b05835e5bb5a9ab7d99538b1b1d /libgcc
parenta152e96f01344f3e3200c53a10d992420976b8d2 (diff)
downloadgcc-06dd33ac5ee441630b4fbc9fca33cf0bef5856bc.zip
gcc-06dd33ac5ee441630b4fbc9fca33cf0bef5856bc.tar.gz
gcc-06dd33ac5ee441630b4fbc9fca33cf0bef5856bc.tar.bz2
re PR other/51272 (ld: Unsatisfied symbol "_ITM_registerTMCloneTable" in file /test/gnu/gcc/objdir/)
PR other/51272 * config/pa/stublib.c (_ITM_registerTMCloneTable): New stub. (_ITM_deregisterTMCloneTable): Likewise. (__register_frame_info): Fix unused warning. (__deregister_frame_info, __cxa_finalize, _Jv_RegisterClasses, pthread_default_stacksize_np): Likewise. * config/pa/t-stublib (LIBGCCSTUB_OBJS): Add new objects and rules. From-SVN: r181870
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog10
-rw-r--r--libgcc/config/pa/stublib.c46
-rw-r--r--libgcc/config/pa/t-stublib9
3 files changed, 51 insertions, 14 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index bf07e10..e7f18e2 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,13 @@
+2011-11-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR other/51272
+ * config/pa/stublib.c (_ITM_registerTMCloneTable): New stub.
+ (_ITM_deregisterTMCloneTable): Likewise.
+ (__register_frame_info): Fix unused warning.
+ (__deregister_frame_info, __cxa_finalize, _Jv_RegisterClasses,
+ pthread_default_stacksize_np): Likewise.
+ * config/pa/t-stublib (LIBGCCSTUB_OBJS): Add new objects and rules.
+
2011-11-29 DJ Delorie <dj@redhat.com>
* config.host (rl78-*-elf): New case.
diff --git a/libgcc/config/pa/stublib.c b/libgcc/config/pa/stublib.c
index d3cf559..4e95ba8 100644
--- a/libgcc/config/pa/stublib.c
+++ b/libgcc/config/pa/stublib.c
@@ -1,5 +1,5 @@
/* Stub functions.
- Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009, 2010, 2011 Free Software Foundation, Inc.
This file is part of GCC.
@@ -22,46 +22,66 @@ a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
+#include "tsystem.h"
+
#ifdef L_register_frame_info
struct object;
-void __register_frame_info (const void * __attribute__((unused)),
- struct object * __attribute__((unused)));
+void __register_frame_info (const void *, struct object *);
void
-__register_frame_info (const void *p, struct object *ob)
+__register_frame_info (__attribute__((unused)) const void *p,
+ __attribute__((unused)) struct object *ob)
{
}
#endif
#ifdef L_deregister_frame_info
-void *__deregister_frame_info (const void * __attribute__((unused)));
+void *__deregister_frame_info (const void *);
void *
-__deregister_frame_info (const void *p)
+__deregister_frame_info (__attribute__((unused)) const void *p)
{
return (void *)0;
}
#endif
+#ifdef L_ITM_registerTMCloneTable
+struct object;
+void _ITM_registerTMCloneTable (const void *, size_t);
+void
+_ITM_registerTMCloneTable (__attribute__((unused)) const void *p,
+ __attribute__((unused)) size_t s)
+{
+}
+#endif
+
+#ifdef L_ITM_deregisterTMCloneTable
+void _ITM_deregisterTMCloneTable (const void *);
+void
+_ITM_deregisterTMCloneTable (__attribute__((unused)) const void *p)
+{
+}
+#endif
+
#ifdef L_cxa_finalize
-void __cxa_finalize (void * __attribute__((unused)));
+void __cxa_finalize (void *);
void
-__cxa_finalize (void *p)
+__cxa_finalize (__attribute__((unused)) void *p)
{
}
#endif
#ifdef L_Jv_RegisterClasses
-void _Jv_RegisterClasses (void * __attribute__((unused)));
+void _Jv_RegisterClasses (void *);
void
-_Jv_RegisterClasses (void *p)
+_Jv_RegisterClasses (__attribute__((unused)) void *p)
{
}
#endif
#ifdef L_pthread_default_stacksize_np
-int pthread_default_stacksize_np (unsigned long __attribute__((unused)),
- unsigned long *);
+int pthread_default_stacksize_np (unsigned long, unsigned long *);
int
-pthread_default_stacksize_np (unsigned long new, unsigned long *old)
+pthread_default_stacksize_np (__attribute__((unused)) unsigned long new,
+ unsigned long *old)
{
if (old)
*old = 0;
diff --git a/libgcc/config/pa/t-stublib b/libgcc/config/pa/t-stublib
index 9438092..8004c1e 100644
--- a/libgcc/config/pa/t-stublib
+++ b/libgcc/config/pa/t-stublib
@@ -1,4 +1,5 @@
-LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o jvrc-stub.o cxaf-stub.o \
+LIBGCCSTUB_OBJS = rfi-stub.o dfi-stub.o ritm-stub.o ditm-stub.o \
+ jvrc-stub.o cxaf-stub.o \
pthread_default_stacksize_np-stub.o \
pthread_mutex_lock-stub.o \
pthread_mutex_unlock-stub.o \
@@ -10,6 +11,12 @@ rfi-stub.o: $(srcdir)/config/pa/stublib.c
dfi-stub.o: $(srcdir)/config/pa/stublib.c
$(gcc_compile) -c -O2 -DL_deregister_frame_info $<
+ritm-stub.o: $(srcdir)/config/pa/stublib.c
+ $(gcc_compile) -c -O2 -DL_ITM_registerTMCloneTable $<
+
+ditm-stub.o: $(srcdir)/config/pa/stublib.c
+ $(gcc_compile) -c -O2 -DL_ITM_deregisterTMCloneTable $<
+
cxaf-stub.o: $(srcdir)/config/pa/stublib.c
$(gcc_compile) -c -O2 -DL_cxa_finalize $<