]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Pull in r353907 from upstream llvm trunk (by Reid Kleckner):
authordim <dim@FreeBSD.org>
Wed, 13 Feb 2019 20:13:40 +0000 (20:13 +0000)
committerdim <dim@FreeBSD.org>
Wed, 13 Feb 2019 20:13:40 +0000 (20:13 +0000)
commit844d2d3a75b82aec77dd0bb679f1c7f49128db84
tree491c6ccfd981e09b52d1ab14e8b97348276354f1
parent58767665dc52a96618a8a2b92a86c65d7655f149
Pull in r353907 from upstream llvm trunk (by Reid Kleckner):

  [MC] Make symbol version errors non-fatal

  We stil don't have a source location, which is pretty lame, but at
  least we won't tell the user to file a clang bug report anymore.

  Fixes PR40712

This will make errors for symbols with @@ versions that are not defined
non-fatal.  For example:

  void f(void)
  {
    __asm__(".symver foo,bar@@baz");
  }

will now result in:

  error: versioned symbol bar@@baz must be defined

instead of clang crashing with a diagnostic report.

PR: 234671
Upstream PR: https://bugs.llvm.org/show_bug.cgi?id=40712
MFC after: 3 days
contrib/llvm/lib/MC/ELFObjectWriter.cpp