Debian Codegraph @

gcc/config/avr/avr.opt

raw
1 ; Options for AVR 8-bit microcontrollers.
2
3 ; Copyright (C) 2005-2025 Free Software Foundation, Inc.
4 ;
5 ; This file is part of GCC.
6 ;
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
10 ; version.
11 ;
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 ; for more details.
16 ;
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/>.
20
21 mlra
22 Target Var(avropt_lra_p) UInteger Init(0) Optimization Undocumented
23 Usa LRA for reload instead of the old reload framework. This option is experimental, and it may be removed in future versions of the compiler.
24
25 mcall-prologues
26 Target Mask(CALL_PROLOGUES) Optimization
27 Optimization. Use subroutines for function prologues and epilogues.
28
29 mcvt
30 Target Mask(CVT)
31 Use a startup code with a compact vector table.
32
33 mmcu=
34 Target RejectNegative Joined Var(avropt_mmcu) MissingArgError(missing device or architecture after %qs)
35 -mmcu=<MCU> Select the target MCU.
36
37 mgas-isr-prologues
38 Target Var(avropt_gasisr_prologues) UInteger Init(0) Optimization
39 Optimization. Allow usage of __gcc_isr pseudo instructions in ISR prologues and epilogues.
40
41 mn-flash=
42 Target RejectNegative Joined Var(avropt_n_flash) UInteger Init(-1)
43 This option is used internally. Set the number of 64 KiB flash segments.
44
45 mcall-main
46 Target Var(avropt_call_main) UInteger Init(1)
47 Call main and exit (default).
48
49 mskip-bug
50 Target Mask(SKIP_BUG)
51 This option is used internally. Indicate presence of a processor erratum. Do not skip 32-bit instructions.
52
53 mrmw
54 Target Mask(RMW)
55 This option is used internally. Enable Read-Modify-Write (RMW) instructions support/use.
56
57 mdeb
58 Target Undocumented Mask(ALL_DEBUG)
59
60 mlog=
61 Target RejectNegative Joined Undocumented Var(avropt_log_details)
62
63 ;; Tries to work around PR118012.
64 mpr118012
65 Target Var(avropt_pr118012) UInteger Init(1) Undocumented
66 This option is on per default in order to work around PR118012.
67
68 muse-nonzero-bits
69 Target Var(avropt_use_nonzero_bits) UInteger Init(0) Optimization
70 Optimization. Allow to use nonzero_bits() in some insn conditions.
71
72 mshort-calls
73 Target RejectNegative Mask(SHORT_CALLS)
74 This option is used internally for multilib generation and selection. Assume RJMP / RCALL can target all program memory.
75
76 mint8
77 Target Mask(INT8)
78 Use an 8-bit 'int' type.
79
80 mno-interrupts
81 Target RejectNegative Mask(NO_INTERRUPTS)
82 Change the stack pointer without disabling interrupts.
83
84 mbranch-cost=
85 Target Joined RejectNegative UInteger Var(avropt_branch_cost) Init(0) Optimization
86 -mbranch-cost=<cost> Optimization. Set the branch costs for conditional branch instructions. Reasonable values are small, non-negative integers. The default branch cost is 0.
87
88 mmain-is-OS_task
89 Target Mask(MAIN_IS_OS_TASK) Optimization
90 Optimization. Treat main as if it had attribute OS_task.
91
92 morder1
93 Target Undocumented Mask(ORDER_1)
94
95 morder2
96 Target Undocumented Mask(ORDER_2)
97
98 mtiny-stack
99 Target Mask(TINY_STACK)
100 Change only the low 8 bits of the stack pointer.
101
102 mrelax
103 Target Optimization
104 Optimization. Relax branches.
105
106 mpmem-wrap-around
107 Target
108 Make the linker relaxation machine assume that a program counter wrap-around occurs.
109
110 maccumulate-args
111 Target Mask(ACCUMULATE_OUTGOING_ARGS) Optimization
112 Optimization. Accumulate outgoing function arguments and acquire/release the needed stack space for outgoing function arguments in function prologue/epilogue. Without this option, outgoing arguments are pushed before calling a function and popped afterwards. This option can lead to reduced code size for functions that call many functions that get their arguments on the stack like, for example printf.
113
114 msplit-bit-shift
115 Target Var(avropt_split_bit_shift) Init(0) Optimization
116 Optimization. Split shifts of 4-byte values into a byte shift and a residual bit shift.
117
118 msplit-ldst
119 Target Var(avropt_split_ldst) Init(0) Optimization
120 Optimization. Split most of the load and store instructions into byte load and stores.
121
122 mstrict-X
123 Target Var(avropt_strict_X) Init(0) Optimization
124 Optimization. When accessing RAM, use X as imposed by the hardware, i.e. just use pre-decrement, post-increment and indirect addressing with the X register. Without this option, the compiler may assume that there is an addressing mode X+const similar to Y+const and Z+const and emit instructions to emulate such an addressing mode for X.
125
126 mflmap
127 Target Var(avropt_flmap) Init(0)
128 This option is used internally. The device has the bitfield NVMCTRL_CTRLB.FLMAP.
129
130 mrodata-in-ram
131 Target Var(avropt_rodata_in_ram) Init(-1)
132 The device has the .rodata section located in the RAM area.
133
134 ;; For rationale behind -msp8 see explanation in avr.h.
135 msp8
136 Target RejectNegative Var(avropt_sp8) Init(0)
137 This option is used internally for multilib generation and selection. The device has no SPH special function register.
138
139 mfuse-add
140 Target Alias(mfuse-add=, 2, 0) Optimization
141 Optimization. Split register additions from load/store instructions. Most useful on Reduced Tiny.
142
143 mfuse-add=
144 Target Joined RejectNegative UInteger Var(avropt_fuse_add) Init(0) Optimization IntegerRange(0, 3)
145 -mfuse-add=<0,2> Optimization. Split register additions from load/store instructions. Most useful on Reduced Tiny.
146
147 Waddr-space-convert
148 Warning C Var(avropt_warn_addr_space_convert) Init(0)
149 Warn if the address space of an address is changed.
150
151 Wmisspelled-isr
152 Warning C C++ Var(avropt_warn_misspelled_isr) Init(1)
153 Warn if the ISR is misspelled, i.e. without __vector prefix. Enabled by default.
154
155 mfract-convert-truncate
156 Target Mask(FRACT_CONV_TRUNC)
157 Allow to use truncation instead of rounding towards zero for fractional fixed-point types.
158
159 mfuse-move
160 Target Alias(mfuse-move=, 23, 0) Optimization
161 Optimization. Run a post-reload pass that tweaks move instructions.
162
163 mfuse-move=
164 Target Joined RejectNegative UInteger Var(avropt_fuse_move) Init(0) Optimization IntegerRange(0, 23)
165 -mfuse-move=<0,23> Optimization. Run a post-reload pass that tweaks move instructions.
166
167 mfuse-move2
168 Target Var(avropt_fuse_move2) Init(0) Optimization
169 Optimization. Fuse some move insns after insn combine.
170
171 mabsdata
172 Target Mask(ABSDATA)
173 Assume that all data in static storage can be accessed by LDS / STS instructions. This option is only useful for reduced Tiny devices like ATtiny40.
174
175 mdouble=
176 Target Joined RejectNegative Var(avropt_double) Init(0) Enum(avropt_bits_e) Save
177 -mdouble=<BITS> Use <BITS> bits wide double type.
178
179 mlong-double=
180 Target Joined RejectNegative Var(avropt_long_double) Init(0) Enum(avropt_bits_e) Save
181 -mlong-double=<BITS> Use <BITS> bits wide long double type.
182
183 nodevicelib
184 Driver Target RejectNegative
185 Do not link against the device-specific library lib<MCU>.a.
186
187 nodevicespecs
188 Driver Target RejectNegative
189 Do not use the device-specific specs file device-specs/specs-<MCU>.
190
191 Enum
192 Name(avropt_bits_e) Type(int)
193 Available BITS selections:
194
195 EnumValue
196 Enum(avropt_bits_e) String(32) Value(32)
197
198 EnumValue
199 Enum(avropt_bits_e) String(64) Value(64)