Skip to content

Commit b55a72b

Browse files
committed
builtins: simplify storage section
The default storage section for initialised data is `.data`. There is no need to explicitly mark the data segment as `.data` to mirror the semantics of `__nocommon__`. This reduces the clutter and maintains compatibility.
1 parent bffbbe6 commit b55a72b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler-rt/lib/builtins/cpu_model/aarch64.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ typedef struct __ifunc_arg_t {
3030

3131
// LSE support detection for out-of-line atomics
3232
// using HWCAP and Auxiliary vector
33-
#if defined(_MSC_VER)
34-
__declspec(allocate(".data"))
35-
#else
33+
#if !defined(_MSC_VER)
3634
__attribute__((__visibility__("hidden"), __nocommon__))
3735
#endif
3836
_Bool __aarch64_have_lse_atomics = false;

0 commit comments

Comments
 (0)