[all-commits] [llvm/llvm-project] 8144a7: [compiler-rt][ubsan][test] Fix TypeCheck/misaligne...

rorth via All-commits all-commits at lists.llvm.org
Tue Aug 11 03:47:23 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8144a7d8fc00c1ed779cb2dfabd826eedb19f296
      https://github.com/llvm/llvm-project/commit/8144a7d8fc00c1ed779cb2dfabd826eedb19f296
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M compiler-rt/test/ubsan/TestCases/TypeCheck/misaligned.cpp

  Log Message:
  -----------
  [compiler-rt][ubsan][test] Fix TypeCheck/misaligned.cpp on Sparc

Two ubsan tests FAIL on Sparc:

  UBSan-Standalone-sparc :: TestCases/TypeCheck/misaligned.cpp
  UBSan-Standalone-sparcv9 :: TestCases/TypeCheck/misaligned.cpp

I've reported the details in Bug 47015, but it boils down to the fact that
the `s1` subtest actually incurs a fault on strict-alignment targets like
Sparc which UBSan doesn't expect.

This can be fixed like the `w1` subtest by compiling with
`-fno-sanitize-recover=alignment`.

Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and
`x86_64-pc-linux-gnu`.

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




More information about the All-commits mailing list