From: Jason Xu Date: Sun, 3 Aug 2025 22:19:04 +0000 (-0400) Subject: gcc: Make aarch64-mingw32 target install wrap stdint.h X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=577c0f4a402bfb99d9770e3a90556a3946cb0e18;p=thirdparty%2Fgcc.git gcc: Make aarch64-mingw32 target install wrap stdint.h 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. --- diff --git a/gcc/config.gcc b/gcc/config.gcc index fa3ce390f70..eeecbd8463a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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" ;;