public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/7257: -O3 -fverbose-asm does not display -flag-inline-functions
@ 2002-07-10  0:26 aj
  0 siblings, 0 replies; only message in thread
From: aj @ 2002-07-10  0:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7257
>Category:       c
>Synopsis:       -O3 -fverbose-asm does not display -flag-inline-functions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 00:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     aj@suse.de
>Release:        GCC 3.1 CVS, GCC 3.2 CVS
>Organization:
>Environment:
i686-linux-gnu
>Description:
According to the manual, -O3 enables -finline-functions.
-fverbose-asm enables the output of all flags that are set.

Some analysis:
- toplev.c sets flag_inline_functions
- c-common.c sets then in c_common_post_options flag_inline_functions to 0 and sets flag_inline_trees to 2.
- print_switch_values in toplev.c sees now
  flag_inline_functions=0 but does not see flag_inline_trees and therefore the flag is not shown.

The same happens for C++ in cp/decl.c.

This is a regression from GCC 2.95.3.
>How-To-Repeat:
gcc -O3 -fverbose-asm -save-temps hello.c

outputs a hello.s with:
 GNU C version 3.2 20020707 (experimental) (i686-pc-linux-gnu)
#       compiled by GNU C version 3.2 20020707 (experimental).
# options passed:  -fpreprocessed -O3 -fverbose-asm
# options enabled:  -fdefer-pop -foptimize-sibling-calls -fcse-follow-jumps
# -fcse-skip-blocks -fexpensive-optimizations -fthread-jumps
# -fstrength-reduce -fpeephole -fforce-mem -ffunction-cse
# -fkeep-static-consts -fcaller-saves -fpcc-struct-return -fgcse -fgcse-lm
# -fgcse-sm -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
# -frerun-cse-after-loop -frerun-loop-opt -fdelete-null-pointer-checks
# -fschedule-insns2 -fsched-interblock -fsched-spec -fbranch-count-reg
# -freorder-blocks -freorder-functions -frename-registers -fcprop-registers
# -fcommon -fverbose-asm -fgnu-linker -fregmove -foptimize-register-move
# -fargument-alias -fstrict-aliasing -fmerge-constants
# -fzero-initialized-in-bss -fident -fpeephole2 -fguess-branch-probability
# -fmath-errno -ftrapping-math -m80387 -mhard-float -mno-soft-float
# -mieee-fp -mfp-ret-in-387 -mcpu=pentiumpro -march=i386
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-10  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-10  0:26 c/7257: -O3 -fverbose-asm does not display -flag-inline-functions aj

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