The following testcase doesn't contain DW_AT_const_value for arrg3 nor min when
early inlining is used, while when normal inlining is performed all is fine.
-g -O2 --param early-inlining-insns=32 (doesn't work) vs.
-g -O2 --param early-inlining-insns=32 -fno-early-inlining
Sorry for the extra parameter, but the testcase was reported against 4.4-RH
which does 4.4-ish inlining decisions, so it needs some tweaks to get the same
effect in 4.5.
For arrg3, there are DEBUG stmts (and even var-tracking produces locations for
it), but dwarf2out ignores them, as the var has been non-localized (var_ann has
been NULL).  For min argument, a DEBUG stmt only appears when not using early
inlining.


-- 
           Summary: Early inlining causes suboptimal debug info
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-debug
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43329

Reply via email to