[libc++] Make sure we re-export some missing libc++abi symbols from libc++
authorLouis Dionne <ldionne@apple.com>
Thu, 18 Apr 2019 17:18:15 +0000 (17:18 +0000)
committerLouis Dionne <ldionne@apple.com>
Thu, 18 Apr 2019 17:18:15 +0000 (17:18 +0000)
commit549048f39006eb253f9c3bd13215643d3f95e100
tree8d7d8ae15ac77a1b78ce7b1b3b60a8f7d33975e5
parentbda8482abaa87376f08700876504267bafa09880
[libc++] Make sure we re-export some missing libc++abi symbols from libc++

Summary:
Ensure we re-export __cxa_throw_bad_array_new_length and
__cxa_uncaught_exceptions from libc++, since they are now
provided by libc++abi.

Doing this allows us to stop linking explicitly against libc++abi in
the libc++abi tests, since libc++ re-exports all the necessary symbols.
However, there is one caveat to that. We don't want libc++ to re-export
__cxa_uncaught_exception (the singular form), since it's only provided
for backwards compatibility. Hence, for the single test where we check
this backwards compatibility, we explicitly link against libc++abi.

PR27405
PR22654

Reviewers: EricWF

Subscribers: christof, jkorous, dexonsmith, libcxx-commits

Tags: #libc

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

llvm-svn: 358690
libcxx/lib/abi/CHANGELOG.TXT
libcxx/lib/abi/x86_64-apple-darwin.v1.abilist
libcxx/lib/libc++abi.v2.exp
libcxx/utils/libcxx/test/target_info.py
libcxxabi/test/uncaught_exception.pass.sh.cpp [new file with mode: 0644]
libcxxabi/test/uncaught_exceptions.pass.cpp