]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc: Make aarch64-mingw32 target install wrap stdint.h
authorJason Xu <bravejason@outlook.com>
Sun, 3 Aug 2025 22:19:04 +0000 (18:19 -0400)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sat, 15 Nov 2025 21:15:37 +0000 (13:15 -0800)
Wrapped stdint.h for AArch64 MinGW32 is useful for bare-matal PE
target e.g. UEFI, as those platform does not provide a system
stdint.h, this would align with x86_64 mingw32 target which provides a
wrapped stdint.h

I have tested this by compiling a AArch64 UEFI Application using gcc's
stdint.h, with -ffreestanding flag, and execute the application with
AAVMF(edk2) inside QEMU.

gcc/ChangeLog:
* config.gcc (aarch64-*-mingw*): Set use_gcc_stdint to wrap.

gcc/config.gcc

index fa3ce390f700d342d0532ce95131563387392eca..eeecbd8463a72cc0d77d165f1b0785584ffdf4c4 100644 (file)
@@ -1316,6 +1316,7 @@ aarch64-*-mingw*)
            ;;
        esac
        default_use_cxa_atexit=yes
+       use_gcc_stdint=wrap
        user_headers_inc_next_post="${user_headers_inc_next_post} float.h"
        tm_defines="${tm_defines} TARGET_AARCH64_MS_ABI=1"
        ;;