]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: mingw: Enable init priority order
authorEvgeny Karpov <evgeny.karpov@arm.com>
Tue, 19 May 2026 16:41:32 +0000 (16:41 +0000)
committerEvgeny Karpov <evgeny.karpov@arm.com>
Wed, 27 May 2026 07:12:00 +0000 (09:12 +0200)
The patch enables init priority, which is needed for winpthreads and
supported now by aarch64-w64-mingw32.
This change allows building aarch64-w64-mingw32 from upstream
binutils/gcc/mingw repos.

gcc/ChangeLog:

* config/aarch64/aarch64-coff.h (SUPPORTS_INIT_PRIORITY):
Enable SUPPORTS_INIT_PRIORITY by default.

gcc/config/aarch64/aarch64-coff.h

index aef07e62a9f7fe17f3fe69155674d9837af3e1cc..6d4c7927c7dcd4da346e2ed6430bcca18bd12e29 100644 (file)
@@ -70,7 +70,4 @@
 
 #define GLOBAL_ASM_OP "\t.global\t"
 
-#undef SUPPORTS_INIT_PRIORITY
-#define SUPPORTS_INIT_PRIORITY 0
-
 #endif