[LLVMbugs] [Bug 12633] New: Correct symbol defined for OpenBSD with -pthread flag

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 23 08:30:46 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12633

             Bug #: 12633
           Summary: Correct symbol defined for OpenBSD with -pthread flag
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: brad at comstyle.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8432
  --> http://llvm.org/bugs/attachment.cgi?id=8432
Correct symbol defined for OpenBSD with -pthread flag

The attached patch corrects the symbol being defined for OpenBSD when using the
-pthread flag so as to use _REENTRANT instead of _POSIX_THREADS to match the
behavior of our system compilers and compilers in the ports tree.


CVSROOT:    /cvs
Module name:    src
Changes by:    kurt at cvs.openbsd.org    2012/04/12 06:09:30

Modified files:
    lib/libpthread/include: pthread.h 
    gnu/egcs/gcc/config: openbsd.h 
    gnu/egcs/gcc/config/m68k: openbsd.h 
    gnu/egcs/gcc/config/m88k: openbsd.h 
    gnu/gcc/gcc/config: openbsd.h 
    gnu/gcc/gcc/config/m68k: openbsd.h 
    gnu/gcc/gcc/config/rs6000: sysv4.h 
    gnu/usr.bin/gcc/gcc/config: openbsd.h 
    gnu/usr.bin/gcc/gcc/config/m68k: openbsd.h 
    gnu/usr.bin/gcc/gcc/config/m88k: openbsd.h 
    gnu/usr.sbin/sendmail/cf/cf: Makefile 

Log message:
Remove incorrect -pthread preprocessor define _POSIX_THREADS and replace
with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
>From brad at comstyle.com. okay guenther@

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list