[all-commits] [llvm/llvm-project] 1bc85c: [Sanitizer][RISCV] Fix redefinition of REG_SP

Luís Marques via All-commits all-commits at lists.llvm.org
Tue Nov 24 16:05:22 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1bc85cbbb80397cbc165500cc336fe8325bed07d
      https://github.com/llvm/llvm-project/commit/1bc85cbbb80397cbc165500cc336fe8325bed07d
  Author: Luís Marques <luismarques at lowrisc.org>
  Date:   2020-11-25 (Wed, 25 Nov 2020)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp

  Log Message:
  -----------
  [Sanitizer][RISCV] Fix redefinition of REG_SP

The include header sys/ucontext.h already defines REG_SP as 2, causing
redefinition warnings during compilation. This patch fixes that issue.
(We also can't just use the numerical definition provided by the header,
as REG_SP is used in this file this refers to a struct field.)

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




More information about the All-commits mailing list