[all-commits] [llvm/llvm-project] 2b15c6: [compiler-rt] Fix build errors when using gcc on L...

Lu Weining via All-commits all-commits at lists.llvm.org
Sun Dec 25 17:41:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b15c63fb73011610ae83c05d0260e2dccf299fc
      https://github.com/llvm/llvm-project/commit/2b15c63fb73011610ae83c05d0260e2dccf299fc
  Author: Youling Tang <tangyouling at loongson.cn>
  Date:   2022-12-26 (Mon, 26 Dec 2022)

  Changed paths:
    M compiler-rt/lib/builtins/loongarch/fp_mode.c
    M compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp

  Log Message:
  -----------
  [compiler-rt] Fix build errors when using gcc on LoongArch

- GCC does not recognize $fcsr0, uses $r0 instead.
- GCC does not implement __builtin_thread_pointer, which can be
  obtained directly through $tp.

Reviewed By: SixWeining

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




More information about the All-commits mailing list