freebsd-dev/contrib/compiler-rt/lib
Dimitry Andric 4ee07888b7 Pull in r293536 from upstream compiler-rt trunk:
Recommit: Stop intercepting some malloc-related functions on FreeBSD
  and macOS

  Summary:
  In https://bugs.freebsd.org/215125 I was notified that some configure
  scripts attempt to test for the Linux-specific `mallinfo` and
  `mallopt` functions by compiling and linking small programs which
  references the functions, and observing whether that results in
  errors.

  FreeBSD and macOS do not have the `mallinfo` and `mallopt` functions,
  so normally these tests would fail, but when sanitizers are enabled,
  they incorrectly succeed, because the sanitizers define interceptors
  for these functions.  This also applies to some other malloc-related
  functions, such as `memalign`, `pvalloc` and `cfree`.

  Fix this by not intercepting `mallinfo`, `mallopt`, `memalign`,
  `pvalloc` and `cfree` for FreeBSD and macOS, in all sanitizers.

  Also delete the non-functional `cfree` wrapper for Windows, to fix the
  test cases on that platform.

  Reviewers: emaste, kcc, rnk

  Subscribers: timurrrr, eugenis, hans, joerg, llvm-commits, kubamracek

  Differential Revision: https://reviews.llvm.org/D27654

This prevents autoconf scripts from incorrectly detecting that functions
like mallinfo, mallopt, memalign, pvalloc and cfree are supported.

PR:		215125, 215455
MFC after:	1 week
2017-02-01 20:41:09 +00:00
..
asan Pull in r293536 from upstream compiler-rt trunk: 2017-02-01 20:41:09 +00:00
BlocksRuntime Update compiler-rt to trunk r224034. This brings a number of new 2015-01-08 19:47:10 +00:00
builtins Update compiler-rt to release_39 branch r288513. Since this contains a 2016-12-02 20:17:41 +00:00
cfi Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
dfsan Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
esan Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
interception Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
lsan Pull in r293536 from upstream compiler-rt trunk: 2017-02-01 20:41:09 +00:00
msan Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
profile Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
safestack Merge compiler-rt release_38 branch r258968. 2016-02-06 13:39:20 +00:00
sanitizer_common Pull in r293536 from upstream compiler-rt trunk: 2017-02-01 20:41:09 +00:00
scudo Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
stats Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
tsan Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00
ubsan Update compiler-rt to 3.9.0 release, and update the build glue for 2016-09-03 21:41:29 +00:00