]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344112:
authordim <dim@FreeBSD.org>
Sat, 16 Feb 2019 19:49:12 +0000 (19:49 +0000)
committerdim <dim@FreeBSD.org>
Sat, 16 Feb 2019 19:49:12 +0000 (19:49 +0000)
commit84915dc50779e001497825ce62c8f1caa53577c6
tree6341cbc793c2a3220da77f0268e7f2b54c7220c4
parent7bf9604d321795e008be32364c4a84c38d4b91c9
MFC r344112:

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
contrib/llvm/lib/MC/ELFObjectWriter.cpp