On Sun, Aug 3, 2025 at 3:21 PM Jason Xu <[email protected]> wrote: > > 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.
The other 2 *-mingw* case has use_gcc_stdint set to wrap too so this is ok. I pushed this with the following changelog added: gcc/ChangeLog: * config.gcc (aarch64-*-mingw*): Set use_gcc_stdint to wrap. This change is small enough not to be copyrighted but if you are thinking about contributing again please read https://gcc.gnu.org/contribute.html#legal about what is required for next time. Also having a changelog entry as GCC requires would be useful when reviewing too. Thanks, Andrew > --- > gcc/config.gcc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/config.gcc b/gcc/config.gcc > index 0d8dbc4fb19..0b1709ba30e 100644 > --- a/gcc/config.gcc > +++ b/gcc/config.gcc > @@ -1296,6 +1296,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" > ;; > -- > 2.50.1 >
