[llvm-commits] CVS: llvm/runtime/GCCLibraries/libpthread/Makefile pthread.c

John Criswell criswell at cs.uiuc.edu
Wed Dec 10 08:47:04 PST 2003


Changes in directory llvm/runtime/GCCLibraries/libpthread:

Makefile added (r1.1)
pthread.c added (r1.1)

---
Log message:

Dummy implementation of the pthread library.
This is needed since libstdc++ uses pthread_once().



---
Diffs of the changes:  (+22 -0)

Index: llvm/runtime/GCCLibraries/libpthread/Makefile
diff -c /dev/null llvm/runtime/GCCLibraries/libpthread/Makefile:1.1
*** /dev/null	Wed Dec 10 08:46:46 2003
--- llvm/runtime/GCCLibraries/libpthread/Makefile	Wed Dec 10 08:46:36 2003
***************
*** 0 ****
--- 1,14 ----
+ ##===- runtime/GCCLibraries/libpthread/Makefile ------------*- Makefile -*-===##
+ # 
+ #                     The LLVM Compiler Infrastructure
+ #
+ # This file was developed by the LLVM research group and is distributed under
+ # the University of Illinois Open Source License. See LICENSE.TXT for details.
+ # 
+ ##===----------------------------------------------------------------------===##
+ LEVEL = ../../..
+ BYTECODE_LIBRARY=1
+ DONT_BUILD_RELINKED=1
+ LIBRARYNAME=pthread
+ 
+ include $(LEVEL)/Makefile.common


Index: llvm/runtime/GCCLibraries/libpthread/pthread.c
diff -c /dev/null llvm/runtime/GCCLibraries/libpthread/pthread.c:1.1
*** /dev/null	Wed Dec 10 08:46:46 2003
--- llvm/runtime/GCCLibraries/libpthread/pthread.c	Wed Dec 10 08:46:36 2003
***************
*** 0 ****
--- 1,8 ----
+ #include <pthread.h>
+ 
+ int
+ pthread_once (pthread_once_t * control, void (*func) (void))
+ {
+   return 0;
+ }
+ 





More information about the llvm-commits mailing list