llvm with tablegen backend for capstone disassembler
Go to file
Ed Schouten e0cf3b9a3c Make support for thread-unsafe C functions optional.
One of the aspects of CloudABI is that it aims to help you write code
that is thread-safe out of the box. This is very important if you want
to write libraries that are easy to reuse. For CloudABI we decided to
not provide the thread-unsafe functions. So far this is working out
pretty well, as thread-unsafety issues are detected really early on.

The following patch adds a knob to libc++,
_LIBCPP_HAS_NO_THREAD_UNSAFE_C_FUNCTIONS, that can be set to disable
thread-unsafe functions that can easily be avoided in practice. The
following functions are not thread-safe:

- <clocale>: locale handles should be preferred over setlocale().
- <cstdlib>: mbrlen(), mbrtowc() and wcrtomb() should be preferred over
  their non-restartable counterparts.
- <ctime>: asctime(), ctime(), gmtime() and localtime() are not
  thread-safe. The first two are also deprecated by POSIX.

Differential Revision:	http://reviews.llvm.org/D8703
Reviewed by:	marshall

llvm-svn: 240527
2015-06-24 08:44:38 +00:00
clang Move the special-case check from r240462 into ARM-specific code. 2015-06-24 06:05:20 +00:00
clang-tools-extra [clang-tidy] Fix false positives in misc-macro-parentheses checker 2015-06-23 12:45:14 +00:00
compiler-rt Update SafeStack TODO in the safestack.cc 2015-06-23 22:26:48 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Make support for thread-unsafe C functions optional. 2015-06-24 08:44:38 +00:00
libcxxabi fallback_malloc: silence conversion warning (NFC) 2015-06-03 17:25:35 +00:00
libunwind Code cleanup: Reindent statements. 2015-05-30 14:00:39 +00:00
lld COFF: Initial implementation of Identical COMDAT Folding. 2015-06-24 04:36:52 +00:00
lldb Implement the "qSymbol" packet in order to be able to read queue information in debugserver and return the info in the stop reply packets. 2015-06-23 21:27:50 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm Hexagon: Paper over the undefined behaviour introduced by r238692 2015-06-24 07:03:07 +00:00
openmp Allow machine hierarchy expansion 2015-06-22 15:59:18 +00:00
polly Add support for srem instruction 2015-06-24 04:13:29 +00:00