[cfe-dev] solaris-specific mangling for g++ compat

Fedor Sergeev via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 13 09:56:33 PDT 2017


Greetings folks,

I just filed a bug on clang mangling:
  https://bugs.llvm.org/show_bug.cgi?id=33767

which is not clang's bug per se, but rather a bug-incompatibility
with gcc on Solaris (more details in bug report).

gcc deliberately chose to diverge from mangling as specified by C++ ABI
in order to keep binary compatibility
(see https://gcc.gnu.org/ml/gcc-patches/2011-08/msg00834.html
 for discussion of that patch).

When clang on Solaris links with libstdc++ this binary compatibility
issue kicks in.

I wonder would the patch doing Solaris-only hack to the mangling
to maintain gcc binary compatibility be welcome here?
Unconditionally or under some flag?

regards,
  Fedor.



More information about the cfe-dev mailing list