AARCH64: Add Qualcomnm oryon-1 core
[official-gcc.git] / gcc / config / arm / uclinux-eabi.h
blob769dee7ec04acf1afb6534fe46a6030618e1f042
1 /* Definitions for ARM EABI ucLinux
2 Copyright (C) 2006-2024 Free Software Foundation, Inc.
3 Contributed by Paul Brook <paul@codesourcery.com>
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 Under Section 7 of GPL version 3, you are granted additional
18 permissions described in the GCC Runtime Library Exception, version
19 3.1, as published by the Free Software Foundation.
21 You should have received a copy of the GNU General Public License and
22 a copy of the GCC Runtime Library Exception along with this program;
23 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24 <http://www.gnu.org/licenses/>. */
26 /* Override settings that are different to the uclinux-elf or
27 bpabi defaults. */
29 #undef TARGET_DEFAULT
30 #define TARGET_DEFAULT (MASK_SINGLE_PIC_BASE | MASK_INTERWORK)
32 /* On EABI GNU/Linux, we want both the BPABI builtins and the
33 GNU/Linux builtins. */
34 #undef TARGET_OS_CPP_BUILTINS
35 #define TARGET_OS_CPP_BUILTINS() \
36 do \
37 { \
38 TARGET_BPABI_CPP_BUILTINS(); \
39 builtin_define ("__uClinux__"); \
40 builtin_define ("__gnu_linux__"); \
41 builtin_define_std ("linux"); \
42 builtin_define_std ("unix"); \
43 builtin_assert ("system=linux"); \
44 builtin_assert ("system=unix"); \
45 builtin_assert ("system=posix"); \
46 } \
47 while (false)
49 #undef SUBTARGET_EXTRA_LINK_SPEC
50 #define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux_eabi -elf2flt" \
51 " --pic-veneer --target2=abs"
53 /* We default to the "aapcs-linux" ABI so that enums are int-sized by
54 default. */
55 #undef ARM_DEFAULT_ABI
56 #define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
58 /* Clear the instruction cache from `beg' to `end'. This makes an
59 inline system call to SYS_cacheflush. */
60 #undef CLEAR_INSN_CACHE
61 #define CLEAR_INSN_CACHE(BEG, END) \
62 { \
63 register unsigned long _beg __asm ("a1") = (unsigned long) (BEG); \
64 register unsigned long _end __asm ("a2") = (unsigned long) (END); \
65 register unsigned long _flg __asm ("a3") = 0; \
66 register unsigned long _scno __asm ("r7") = 0xf0002; \
67 __asm __volatile ("swi 0x0 @ sys_cacheflush" \
68 : "=r" (_beg) \
69 : "0" (_beg), "r" (_end), "r" (_flg), "r" (_scno)); \
72 #define ARM_TARGET2_DWARF_FORMAT DW_EH_PE_absptr