freebsd-dev/contrib/llvm-project
Dimitry Andric a9cd5c30d6 Apply fix for clang crashing on invalid -Wa,-march= values
Merge commit df08b2fe8b35 from llvm git (by Dimitry Andric):

  [AArch64] Avoid crashing on invalid -Wa,-march= values

  As reported in https://bugs.freebsd.org/260078, the gnutls Makefiles
  pass -Wa,-march=all to compile a number of assembly files. Clang does
  not support this -march value, but because of a mistake in handling
  the arguments, an unitialized Arg pointer is dereferenced, which can
  cause a segfault.

  Work around this by adding a check if the local WaMArch variable is
  initialized, and if so, using its value in the diagnostic message.

  Reviewed By: tschuett

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

PR:		260078
Reported by:	bz
MFC after:	3 days
2021-12-05 18:54:13 +01:00
..
clang Apply fix for clang crashing on invalid -Wa,-march= values 2021-12-05 18:54:13 +01:00
compiler-rt Merge llvm-project release/13.x llvmorg-13.0.0-rc3-8-g08642a395f23 2021-11-13 21:46:08 +01:00
libcxx Merge llvm-project release/13.x llvmorg-13.0.0-rc2-43-gf56129fe78d5 2021-11-13 21:45:49 +01:00
libunwind Merge llvm-project release/13.x llvmorg-13.0.0-rc2-43-gf56129fe78d5 2021-11-13 21:45:49 +01:00
lld Merge llvm-project 13.0.0 release 2021-11-13 21:49:29 +01:00
lldb Merge llvm-project release/13.x llvmorg-13.0.0-rc3-8-g08642a395f23 2021-11-13 21:46:08 +01:00
llvm Apply fix for LLVM PR51957 (Miscompilation in Botan's SHA3) 2021-11-13 21:52:25 +01:00
openmp Merge llvm-project release/13.x llvmorg-13.0.0-rc1-97-g23ba3732246a 2021-11-13 21:42:03 +01:00
FREEBSD-Xlist Belatedly update contrib/llvm-project/FREEBSD-Xlist for llvm 13 2021-11-20 18:06:36 +01:00