[all-commits] [llvm/llvm-project] 0f99bc: MIPS: clear_cache, use _flush_cache instead of cac...

YunQiang Su via All-commits all-commits at lists.llvm.org
Mon Aug 7 12:29:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f99bc2d685c572c3b38fd0e1ca56be12d7e2f6a
      https://github.com/llvm/llvm-project/commit/0f99bc2d685c572c3b38fd0e1ca56be12d7e2f6a
  Author: YunQiang Su <wzssyqa at gmail.com>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M compiler-rt/lib/builtins/clear_cache.c

  Log Message:
  -----------
  MIPS: clear_cache, use _flush_cache instead of cacheflush

The cacheflush is only defined with __USE_MISC, which depends on _DEFAULT_SOURCE,
_GNU_SOURCE or _BSD_SOURCE, or _SVID_SOURCE.

If CC is called with -std=c11, these macros won't be defined, Let's use
_flush_cache, which is defined always.

Reviewed By: brad, jrtc27

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




More information about the All-commits mailing list