Introduce aarch64-w64-mingw32 target

Add the initial aarch64-w64-mingw32 target for gcc.

This is the first commit in a sequence of patch series to add
new aarch64-w64-mingw32 target.

Coauthors: Zac Walker <zacwalker@microsoft.com>,
Mark Harmstone <mark@harmstone.com>  and
Ron Riddle <ron.riddle@microsoft.com>

Refactored, prepared, and validated by
Radek Barton <radek.barton@microsoft.com> and
Evgeny Karpov <evgeny.karpov@microsoft.com>

fixincludes/ChangeLog:

	* mkfixinc.sh: Extend for *-mingw32* targets.

gcc/ChangeLog:

	* config.gcc: Add aarch64-w64-mingw32 target.
This commit is contained in:
Zac Walker 2024-03-01 01:40:53 +01:00 committed by Christophe Lyon
parent 8d2c93fcfe
commit 13bad1ac7a
2 changed files with 14 additions and 2 deletions

View File

@ -12,8 +12,7 @@ target=fixinc.sh
# Check for special fix rules for particular targets # Check for special fix rules for particular targets
case $machine in case $machine in
i?86-*-cygwin* | \ i?86-*-cygwin* | \
i?86-*-mingw32* | \ *-mingw32* | \
x86_64-*-mingw32* | \
powerpc-*-eabisim* | \ powerpc-*-eabisim* | \
powerpc-*-eabi* | \ powerpc-*-eabi* | \
powerpc-*-rtems* | \ powerpc-*-rtems* | \

View File

@ -1270,6 +1270,19 @@ aarch64*-*-gnu*)
tmake_file="${tmake_file} aarch64/t-aarch64" tmake_file="${tmake_file} aarch64/t-aarch64"
tm_defines="${tm_defines} TARGET_DEFAULT_ASYNC_UNWIND_TABLES=1" tm_defines="${tm_defines} TARGET_DEFAULT_ASYNC_UNWIND_TABLES=1"
;; ;;
aarch64-*-mingw*)
tmake_file="${tmake_file} aarch64/t-aarch64"
case ${enable_threads} in
"" | yes | win32)
thread_file='win32'
;;
posix)
thread_file='posix'
;;
esac
default_use_cxa_atexit=yes
user_headers_inc_next_post="${user_headers_inc_next_post} float.h"
;;
aarch64*-wrs-vxworks*) aarch64*-wrs-vxworks*)
tm_file="${tm_file} elfos.h aarch64/aarch64-elf.h" tm_file="${tm_file} elfos.h aarch64/aarch64-elf.h"
tm_file="${tm_file} vx-common.h vxworks.h aarch64/aarch64-vxworks.h" tm_file="${tm_file} vx-common.h vxworks.h aarch64/aarch64-vxworks.h"