Define arm_arch_core_flags in a single file
[official-gcc.git] / gcc / config / arm / arm-opts.h
blobe06fedbcf5c075a07899e641a7ea2273144eb762
1 /* Definitions for option handling for ARM.
2 Copyright (C) 1991-2016 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
8 by the Free Software Foundation; either version 3, or (at your
9 option) any later version.
11 GCC is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 Under Section 7 of GPL version 3, you are granted additional
17 permissions described in the GCC Runtime Library Exception, version
18 3.1, as published by the Free Software Foundation.
20 You should have received a copy of the GNU General Public License and
21 a copy of the GCC Runtime Library Exception along with this program;
22 see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23 <http://www.gnu.org/licenses/>. */
25 #ifndef ARM_OPTS_H
26 #define ARM_OPTS_H
28 #include "arm-flags.h"
30 /* The various ARM cores. */
31 enum processor_type
33 #undef ARM_CORE
34 #define ARM_CORE(NAME, INTERNAL_IDENT, IDENT, ARCH, FLAGS, COSTS) \
35 TARGET_CPU_##INTERNAL_IDENT,
36 #include "arm-cores.def"
37 #undef ARM_CORE
38 /* Used to indicate that no processor has been specified. */
39 TARGET_CPU_arm_none
42 /* Which __fp16 format to use.
43 The enumeration values correspond to the numbering for the
44 Tag_ABI_FP_16bit_format attribute.
46 enum arm_fp16_format_type
48 ARM_FP16_FORMAT_NONE = 0,
49 ARM_FP16_FORMAT_IEEE = 1,
50 ARM_FP16_FORMAT_ALTERNATIVE = 2
53 /* Which ABI to use. */
54 enum arm_abi_type
56 ARM_ABI_APCS,
57 ARM_ABI_ATPCS,
58 ARM_ABI_AAPCS,
59 ARM_ABI_IWMMXT,
60 ARM_ABI_AAPCS_LINUX
63 enum float_abi_type
65 ARM_FLOAT_ABI_SOFT,
66 ARM_FLOAT_ABI_SOFTFP,
67 ARM_FLOAT_ABI_HARD
70 /* Which thread pointer access sequence to use. */
71 enum arm_tp_type {
72 TP_AUTO,
73 TP_SOFT,
74 TP_CP15
77 /* Which TLS scheme to use. */
78 enum arm_tls_type {
79 TLS_GNU,
80 TLS_GNU2
82 #endif