freebsd-dev/contrib/libcxxrt
Dimitry Andric 434215c26d Merge libcxxrt commit 45ca8b1942090226ba9368caeeeabc0d4ee41ad6
Insert padding in __cxa_exception struct for compatibility

  Similar to https://github.com/llvm/llvm-project/commit/f2a436058fcb, the
  addition of __attribute__((__aligned__)) to _Unwind_Exception (in commit
  b9616964) causes implicit padding to be inserted before the unwindHeader
  field in __cxa_exception.

  Applications attempt to get at the earlier fields in __cxa_exception, so
  preserve the same negative offsets in __cxa_exception, by moving the
  padding to the beginning of the struct.

  The assumption here is that if the ABI is not aware of the padding
  before unwindHeader and put the referenceCount/primaryException in
  there, no padding should exist before unwindHeader.

This should make libreoffice's custom exception handling mechanisms work
correctly, even if it was built against an older cxxabi.h/unwind.h pair.

PR:		263370
MFC after:	3 days
2022-04-19 18:11:11 +02:00
..
abi_namespace.h
atomic.h Reapply libcxxrt atomics cleanup commit, preparing for upstream fix 2022-03-20 22:25:35 +01:00
auxhelper.cc Merge libcxxrt master fd484be8d1e94a1fcf6bc5c67e5c07b65ada19b6 2022-03-09 20:45:01 +01:00
cxxabi.h Merge libcxxrt commit 45ca8b1942090226ba9368caeeeabc0d4ee41ad6 2022-04-19 18:11:11 +02:00
dwarf_eh.h
dynamic_cast.cc
exception.cc Reapply libcxxrt atomics cleanup commit, preparing for upstream fix 2022-03-20 22:25:35 +01:00
FREEBSD-upgrade
guard.cc Merge libcxxrt commit f2e55091e2e878386c9f7974d4922bbdc4faed84 2022-03-20 22:34:41 +01:00
libelftc_dem_gnu3.c Merge libcxxrt master fd484be8d1e94a1fcf6bc5c67e5c07b65ada19b6 2022-03-09 20:45:01 +01:00
LICENSE
memory.cc Reapply libcxxrt atomics cleanup commit, preparing for upstream fix 2022-03-20 22:25:35 +01:00
noexception.cc Merge libcxxrt master fd484be8d1e94a1fcf6bc5c67e5c07b65ada19b6 2022-03-09 20:45:01 +01:00
stdexcept.cc
stdexcept.h
terminate.cc
typeinfo.cc
typeinfo.h
unwind-arm.h Remove compat hacks from libcxxrt's _Unwind_Exception 2022-03-09 18:25:18 +01:00
unwind-itanium.h Remove compat hacks from libcxxrt's _Unwind_Exception 2022-03-09 18:25:18 +01:00
unwind.h