diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-02-26 21:20:41 +0100 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-02-26 22:07:21 +0100 |
commit | 96773ce7d667452a50b0456681f415b47c22960a (patch) | |
tree | 14a45f4afacfcd499588b089d72684f5edc45da9 | |
parent | 9b0f7ef8bcf3b837365a2cf0af6b3ddbcdfdeb4f (diff) | |
download | gcc-96773ce7d667452a50b0456681f415b47c22960a.zip gcc-96773ce7d667452a50b0456681f415b47c22960a.tar.gz gcc-96773ce7d667452a50b0456681f415b47c22960a.tar.bz2 |
AVR: Tag optimization options as "Optimization".
Some options that are pure optimizations where not tagged as such.
gcc/
* config/avr/avr.opt (mcall-prologues, mrelax, maccumulate-args)
(mstrict-X): Tag as "Optimization".
-rw-r--r-- | gcc/config/avr/avr.opt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/avr/avr.opt b/gcc/config/avr/avr.opt index c9f2b4d..76530fd 100644 --- a/gcc/config/avr/avr.opt +++ b/gcc/config/avr/avr.opt @@ -19,7 +19,7 @@ ; <http://www.gnu.org/licenses/>. mcall-prologues -Target Mask(CALL_PROLOGUES) +Target Mask(CALL_PROLOGUES) Optimization Use subroutines for function prologues and epilogues. mmcu= @@ -79,7 +79,7 @@ Target Mask(TINY_STACK) Change only the low 8 bits of the stack pointer. mrelax -Target +Target Optimization Relax branches. mpmem-wrap-around @@ -87,11 +87,11 @@ Target Make the linker relaxation machine assume that a program counter wrap-around occurs. maccumulate-args -Target Mask(ACCUMULATE_OUTGOING_ARGS) +Target Mask(ACCUMULATE_OUTGOING_ARGS) 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. mstrict-X -Target Var(avr_strict_X) Init(0) +Target Var(avr_strict_X) Init(0) 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. mflmap |