public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Options disabled under -Os
@ 2019-12-18 16:49 Visda.Vokhshoori
  2019-12-19  7:26 ` Kewen.Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Visda.Vokhshoori @ 2019-12-18 16:49 UTC (permalink / raw)
  To: gcc

Hello,

In GCC documentation,  3.1 Options that Control Optimization: it is indicated -Os disables alignment of functions, jumps, labels, and loops.  However, with -v -Q passed to the compile step, I see all these options enabled under -Os.  Is this intended behavior, therefore a documentation bug?
I have tried this with GCC4.4.7 and GCC8.3.1

Thanks,
Visda


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Options disabled under -Os
  2019-12-18 16:49 Options disabled under -Os Visda.Vokhshoori
@ 2019-12-19  7:26 ` Kewen.Lin
  0 siblings, 0 replies; 2+ messages in thread
From: Kewen.Lin @ 2019-12-19  7:26 UTC (permalink / raw)
  To: Visda.Vokhshoori, gcc

on 2019/12/19 上午12:49, Visda.Vokhshoori@microchip.com wrote:
> Hello,
> 
> In GCC documentation,  3.1 Options that Control Optimization: it is indicated -Os disables alignment of functions, jumps, labels, and loops.  However, with -v -Q passed to the compile step, I see all these options enabled under -Os.  Is this intended behavior, therefore a documentation bug?
> I have tried this with GCC4.4.7 and GCC8.3.1

Hi Visda,
This issue has been fixed in GCC 9 and trunk.
I can reproduce it with gcc 8.3.1 but it's gone with gcc 9.2.1 and latest trunk.

I also checked the latest gcc-branch-8 code, they are guarded in OPT_LEVELS_2_PLUS_SPEED_ONLY, so gcc8 just dumps inaccurate information but the behavior should be the same as documentation.


BR,
Kewen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-19  7:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18 16:49 Options disabled under -Os Visda.Vokhshoori
2019-12-19  7:26 ` Kewen.Lin

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).