Go to file
Dimitry Andric 9b8c353c90 On FreeBSD, PTHREADS_THREADS_MAX does not fit into an int, leading to
warnings similar to the following:

    runtime/src/kmp_global.c:117:35: warning: implicit conversion from
    'unsigned long' to 'int' changes value from 18446744073709551615 to -1
    [-Wconstant-conversion]
    int           __kmp_sys_max_nth = KMP_MAX_NTH;
                  ~~~~~~~~~~~~~~~~~   ^~~~~~~~~~~
    runtime/src/kmp.h:849:34: note: expanded from macro 'KMP_MAX_NTH'
    #    define KMP_MAX_NTH          PTHREAD_THREADS_MAX
                                     ^~~~~~~~~~~~~~~~~~~

Clamp KMP_MAX_NTH to INT_MAX to avoid these warnings.  Also use INT_MAX
whenever PTHREAD_THREADS_MAX is not defined at all.

Differential Revision: http://reviews.llvm.org/D13827

llvm-svn: 250708
2015-10-19 17:32:04 +00:00
clang clang-format: Use pipes instead of temporary files for most lit tests. 2015-10-19 16:21:29 +00:00
clang-tools-extra Make a bunch of static arrays const. 2015-10-18 05:14:41 +00:00
compiler-rt [PGO] Eliminate prof data register calls on FreeBSD platform 2015-10-19 04:17:19 +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 integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Fix an unfortunate yet old typo that never got attention before r250507. 2015-10-16 11:26:26 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Add FreeBSD _Unwind_Ptr typedef 2015-10-16 19:40:09 +00:00
lld Delay the relocation scan. 2015-10-19 15:21:42 +00:00
lldb Fix for random watchpoint testsuite failures on AArch64 targets. 2015-10-19 14:54:33 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm Convert gold-plugin unnecessary unique_ptr into local (NFC) 2015-10-19 15:23:03 +00:00
openmp On FreeBSD, PTHREADS_THREADS_MAX does not fit into an int, leading to 2015-10-19 17:32:04 +00:00
polly Correct typo in CHECK line 2015-10-19 10:51:20 +00:00