This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/7257: -O3 -fverbose-asm does not display -flag-inline-functions
- From: aj at suse dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 10 Jul 2002 07:18:28 -0000
- Subject: c/7257: -O3 -fverbose-asm does not display -flag-inline-functions
- Reply-to: aj at suse dot de
>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: