[PR testsuite/116860] Testsuite adjustment for recently added tests
[official-gcc.git] / gcc / config / aarch64 / aarch64-gnu.h
blob554da8d118f8d5de32337a2d57a9265c47e950c1
1 /* Definitions for AArch64 running GNU/Hurd.
2 Copyright (C) 2009-2025 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
9 any later version.
11 GCC is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 #ifndef GCC_AARCH64_GNU_H
21 #define GCC_AARCH64_GNU_H
23 #define GNU_USER_DYNAMIC_LINKER "/lib/ld-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
25 #define CPP_SPEC "%{pthread:-D_REENTRANT}"
27 #define GNU_TARGET_LINK_SPEC "%{h*} \
28 %{static:-Bstatic} \
29 %{shared:-shared} \
30 %{symbolic:-Bsymbolic} \
31 %{!static:%{!static-pie: \
32 %{rdynamic:-export-dynamic} \
33 %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}} \
34 %{static-pie:-Bstatic -pie --no-dynamic-linker -z text} \
35 -X \
36 %{mbig-endian:-EB} %{mlittle-endian:-EL} \
37 -maarch64gnu%{mabi=ilp32:32}%{mbig-endian:b}"
39 #ifndef CC1_SPEC
40 # define CC1_SPEC AARCH64_ERRATA_COMPILE_SPEC
41 #endif
43 #ifndef CC1PLUS_SPEC
44 # define CC1PLUS_SPEC AARCH64_ERRATA_COMPILE_SPEC
45 #endif
47 #define LINK_SPEC GNU_TARGET_LINK_SPEC AARCH64_ERRATA_LINK_SPEC
49 #define GNU_USER_TARGET_MATHFILE_SPEC \
50 "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}}"
52 #undef ENDFILE_SPEC
53 #define ENDFILE_SPEC \
54 GNU_USER_TARGET_MATHFILE_SPEC " " \
55 GNU_USER_TARGET_ENDFILE_SPEC
57 #define TARGET_OS_CPP_BUILTINS() \
58 do \
59 { \
60 GNU_USER_TARGET_OS_CPP_BUILTINS(); \
61 } \
62 while (0)
64 #define TARGET_ASM_FILE_END aarch64_file_end_indicate_exec_stack
66 /* Uninitialized common symbols in non-PIE executables, even with
67 strong definitions in dependent shared libraries, will resolve
68 to COPY relocated symbol in the executable. See PR65780. */
69 #undef TARGET_BINDS_LOCAL_P
70 #define TARGET_BINDS_LOCAL_P default_binds_local_p_2
72 /* Define this to be nonzero if static stack checking is supported. */
73 #define STACK_CHECK_STATIC_BUILTIN 1
75 #endif /* GCC_AARCH64_GNU_H */