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

Vladislav Khmelevsky via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 4 07:37:37 PDT 2023


yota9 added a comment.

>> Outline atomics are dependent on runtime library availability ( libgcc or compler-rt ).

I understand that, but we can use compiler that have runtime library, but in freestanding mode usually we don't want it to be used.

I understand that you could disable it with extra option and that for now it would be different with gcc, but it looks debatable to me that such a behaviour in gcc is correct and expected, maybe someone need to change it there too. (Please keep in mind that I might be wrong with my position and during discussion please consider this patch as NFC so we could discuss here am I right or not :)). My point is that the gcc is not a golden standard in this questions too and in my mind such a behaviour (disabling extra dependencies in freestanding mode without passing extra flags) would be expected the very same way the -fno-builtint get's auto implied with -ffreestanding flag passed.


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