[PATCH] D159398: [AArch64][Clang] Disable outline atomics in freestanding env

Pavel Iliin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 07:21:33 PDT 2023


ilinpv added a comment.

Outline atomics are dependent on runtime library availability ( libgcc or compler-rt ). If there are no proper library available they will be disabled. So if in freestanding mode compiler is not dependent on runtime library you can remove it and get rid of outline atomics calls automatically.
Having runtime library in freestanding mode you can disable outline atomics specifying ##-mno-outline-atomics##  option. But disabling them just by ##-ffreestanding## option will create divergence with GCC behaviour, which has outline atomics not disabled in this case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D159398/new/

https://reviews.llvm.org/D159398



More information about the cfe-commits mailing list