aboutsummaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.c
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2007-07-03 13:41:00 +0000
committerRainer Orth <ro@gcc.gnu.org>2007-07-03 13:41:00 +0000
commitb36e79e55092aa63f0d92c2d3748ee0daca25b30 (patch)
tree7153437e4ecdd43dc569a82f8f49c43b725e4e5b /gcc/gthr-posix.c
parent78d3c323b910765310ff6795cc64aeeae190fc1e (diff)
downloadgcc-b36e79e55092aa63f0d92c2d3748ee0daca25b30.zip
gcc-b36e79e55092aa63f0d92c2d3748ee0daca25b30.tar.gz
gcc-b36e79e55092aa63f0d92c2d3748ee0daca25b30.tar.bz2
re PR target/28307 (pthread functions in libgcc not weak any more on Tru64 UNIX)
PR target/28307 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthrw_pragma): Provide default definition. (__gthrw2): Use it. * gthr-posix.c (__gthrw_pragma): Define. From-SVN: r126253
Diffstat (limited to 'gcc/gthr-posix.c')
-rw-r--r--gcc/gthr-posix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/gthr-posix.c b/gcc/gthr-posix.c
index a8922c0..e2d731ae 100644
--- a/gcc/gthr-posix.c
+++ b/gcc/gthr-posix.c
@@ -1,6 +1,6 @@
/* POSIX threads dummy routines for systems without weak definitions. */
/* Compile this one with gcc. */
-/* Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
This file is part of GCC.
@@ -28,6 +28,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "tconfig.h"
#include "tm.h"
+# define __gthrw_pragma(pragma) _Pragma (#pragma)
/* Define so we provide weak definitions of functions used by libobjc only. */
#define _LIBOBJC_WEAK
#include "gthr.h"
@@ -75,7 +76,7 @@ pthread_create (pthread_t *thread ATTRIBUTE_UNUSED,
}
int
-pthread_cancel(pthread_t thread ATTRIBUTE_UNUSED)
+pthread_cancel (pthread_t thread ATTRIBUTE_UNUSED)
{
return 0;
}