public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Georg-Johann Lay <gjl@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9188] AVR: Tag optimization options as "Optimization". Date: Mon, 26 Feb 2024 21:09:07 +0000 (GMT) [thread overview] Message-ID: <20240226210907.42DEE3858C98@sourceware.org> (raw) https://gcc.gnu.org/g:96773ce7d667452a50b0456681f415b47c22960a commit r14-9188-g96773ce7d667452a50b0456681f415b47c22960a Author: Georg-Johann Lay <avr@gjlay.de> Date: Mon Feb 26 21:20:41 2024 +0100 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". Diff: --- gcc/config/avr/avr.opt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/avr/avr.opt b/gcc/config/avr/avr.opt index c9f2b4d2fe55..76530fd0f71b 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
reply other threads:[~2024-02-26 21:09 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240226210907.42DEE3858C98@sourceware.org \ --to=gjl@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).