[AArch64][5/14] Make flag_omit_leaf_frame_pointer intialize to 2. Define and use...
[official-gcc.git] / gcc / config / aarch64 / aarch64.opt
blobe29d606bf78ac2bdd1bcc3fa3b757f367358d7f2
1 ; Machine description for AArch64 architecture.
2 ; Copyright (C) 2009-2015 Free Software Foundation, Inc.
3 ; Contributed by ARM Ltd.
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 by
9 ; the Free Software Foundation; either version 3, or (at your option)
10 ; any later version.
12 ; GCC is distributed in the hope that it will be useful, but
13 ; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 ; General Public License for more details.
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3.  If not see
19 ; <http://www.gnu.org/licenses/>.
21 HeaderInclude
22 config/aarch64/aarch64-opts.h
24 ; The TLS dialect names to use with -mtls-dialect.
26 Enum
27 Name(tls_type) Type(enum aarch64_tls_type)
28 The possible TLS dialects:
30 EnumValue
31 Enum(tls_type) String(trad) Value(TLS_TRADITIONAL)
33 EnumValue
34 Enum(tls_type) String(desc) Value(TLS_DESCRIPTORS)
36 ; The code model option names for -mcmodel.
38 Enum
39 Name(cmodel) Type(enum aarch64_code_model)
40 The code model option names for -mcmodel:
42 EnumValue
43 Enum(cmodel) String(tiny) Value(AARCH64_CMODEL_TINY)
45 EnumValue
46 Enum(cmodel) String(small) Value(AARCH64_CMODEL_SMALL)
48 EnumValue
49 Enum(cmodel) String(large) Value(AARCH64_CMODEL_LARGE)
51 mbig-endian
52 Target Report RejectNegative Mask(BIG_END)
53 Assume target CPU is configured as big endian
55 mgeneral-regs-only
56 Target Report RejectNegative Mask(GENERAL_REGS_ONLY)
57 Generate code which uses only the general registers
59 mfix-cortex-a53-835769
60 Target Report Var(aarch64_fix_a53_err835769) Init(2)
61 Workaround for ARM Cortex-A53 Erratum number 835769
63 mfix-cortex-a53-843419
64 Target Report
65 Workaround for ARM Cortex-A53 Erratum number 843419
67 mlittle-endian
68 Target Report RejectNegative InverseMask(BIG_END)
69 Assume target CPU is configured as little endian
71 mcmodel=
72 Target RejectNegative Joined Enum(cmodel) Var(aarch64_cmodel_var) Init(AARCH64_CMODEL_SMALL)
73 Specify the code model
75 mstrict-align
76 Target Report RejectNegative Mask(STRICT_ALIGN)
77 Don't assume that unaligned accesses are handled by the system
79 momit-leaf-frame-pointer
80 Target Report Save Var(flag_omit_leaf_frame_pointer) Init(2)
81 Omit the frame pointer in leaf functions
83 mtls-dialect=
84 Target RejectNegative Joined Enum(tls_type) Var(aarch64_tls_dialect) Init(TLS_DESCRIPTORS)
85 Specify TLS dialect
87 march=
88 Target RejectNegative ToLower Joined Var(aarch64_arch_string)
89 -march=ARCH     Use features of architecture ARCH
91 mcpu=
92 Target RejectNegative ToLower Joined Var(aarch64_cpu_string)
93 -mcpu=CPU       Use features of and optimize for CPU
95 mtune=
96 Target RejectNegative ToLower Joined Var(aarch64_tune_string)
97 -mtune=CPU      Optimize for CPU
99 mabi=
100 Target RejectNegative Joined Enum(aarch64_abi) Var(aarch64_abi) Init(AARCH64_ABI_DEFAULT)
101 -mabi=ABI       Generate code that conforms to the specified ABI
103 moverride=
104 Target RejectNegative ToLower Joined Var(aarch64_override_tune_string)
105 -moverride=STRING       Power users only! Override CPU optimization parameters
107 Enum
108 Name(aarch64_abi) Type(int)
109 Known AArch64 ABIs (for use with the -mabi= option):
111 EnumValue
112 Enum(aarch64_abi) String(ilp32) Value(AARCH64_ABI_ILP32)
114 EnumValue
115 Enum(aarch64_abi) String(lp64) Value(AARCH64_ABI_LP64)