https://gcc.gnu.org/g:577c0f4a402bfb99d9770e3a90556a3946cb0e18

commit r16-5306-g577c0f4a402bfb99d9770e3a90556a3946cb0e18
Author: Jason Xu <[email protected]>
Date:   Sun Aug 3 18:19:04 2025 -0400

    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:
---
 gcc/config.gcc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/config.gcc b/gcc/config.gcc
index fa3ce390f700..eeecbd8463a7 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"
        ;;

Reply via email to