Bug 95129 - aarch64: make outline-atomics work on non-gnu targets
Summary: aarch64: make outline-atomics work on non-gnu targets
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 10.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-14 11:08 UTC by nsz
Modified: 2024-03-28 02:57 UTC (History)
2 users (show)

See Also:
Host:
Target: aarch64
Build:
Known to work:
Known to fail:
Last reconfirmed: 2020-05-14 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nsz 2020-05-14 11:08:35 UTC
the initializer in libgcc uses __getauxval which is not
available on non-gnu targets so outlining atomics is
ineffective.

change the runtime lse check in libgcc such that non-glibc
targets can implement it too (e.g. calling __getauxval via
a weak reference and no #ifdef __gnu_linux__ check allows
a libc to implement it later, unfortunately a non-linux os
may not have the same hwcap mechanism so a more generic
libc<->libgcc abi would be better).
Comment 1 nsz 2020-05-14 11:11:24 UTC
i also opened bug 95128 to just configure the outline-atomics away.