Fall back to elementwise access for too spaced SLP single element interleaving
[official-gcc.git] / gcc / config / aarch64 / aarch64-freebsd.h
blobe26d69ce46c7376402c96b846e21a6c0846ebe04
1 /* Definitions for AArch64 running FreeBSD
2 Copyright (C) 2016-2024 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_FREEBSD_H
21 #define GCC_AARCH64_FREEBSD_H
23 #undef SUBTARGET_CPP_SPEC
24 #define SUBTARGET_CPP_SPEC FBSD_CPP_SPEC
26 #if TARGET_BIG_ENDIAN_DEFAULT
27 #define TARGET_LINKER_EMULATION "aarch64fbsdb"
28 #else
29 #define TARGET_LINKER_EMULATION "aarch64fbsd"
30 #endif
32 #undef SUBTARGET_EXTRA_LINK_SPEC
33 #define SUBTARGET_EXTRA_LINK_SPEC " -m" TARGET_LINKER_EMULATION
35 #undef FBSD_TARGET_LINK_SPEC
36 #define FBSD_TARGET_LINK_SPEC " \
37 %{p:%nconsider using `-pg' instead of `-p' with gprof (1)} \
38 " FBSD_LINK_PG_NOTE " \
39 %{v:-V} \
40 %{assert*} %{R*} %{rpath*} %{defsym*} \
41 %{shared:-Bshareable %{h*} %{soname*}} \
42 %{symbolic:-Bsymbolic} \
43 %{static:-Bstatic} \
44 %{!static: \
45 %{rdynamic:-export-dynamic} \
46 %{!shared:-dynamic-linker " FBSD_DYNAMIC_LINKER " }} \
47 -X" SUBTARGET_EXTRA_LINK_SPEC " \
48 %{mbig-endian:-EB} %{mlittle-endian:-EL}"
50 #undef LINK_SPEC
51 #define LINK_SPEC FBSD_TARGET_LINK_SPEC AARCH64_ERRATA_LINK_SPEC
53 #define GNU_USER_TARGET_MATHFILE_SPEC \
54 "%{Ofast|ffast-math|funsafe-math-optimizations:%{!shared:crtfastmath.o%s}}"
56 #undef ENDFILE_SPEC
57 #define ENDFILE_SPEC \
58 GNU_USER_TARGET_MATHFILE_SPEC " " \
59 FBSD_ENDFILE_SPEC
61 #undef TARGET_OS_CPP_BUILTINS
62 #define TARGET_OS_CPP_BUILTINS() \
63 do \
64 { \
65 FBSD_TARGET_OS_CPP_BUILTINS (); \
66 } \
67 while (false)
69 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
71 /* Uninitialized common symbols in non-PIE executables, even with
72 strong definitions in dependent shared libraries, will resolve
73 to COPY relocated symbol in the executable. See PR65780. */
74 #undef TARGET_BINDS_LOCAL_P
75 #define TARGET_BINDS_LOCAL_P default_binds_local_p_2
77 /* Use the AAPCS type for wchar_t, override the one from
78 config/freebsd.h. */
79 #undef WCHAR_TYPE
80 #define WCHAR_TYPE "unsigned int"
82 #undef MCOUNT_NAME
83 #define MCOUNT_NAME ".mcount"
85 #endif /* GCC_AARCH64_FREEBSD_H */