https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84408

            Bug ID: 84408
           Summary: [8 regression] gcc.dg/plugin/poly-int-07_plugin.c
                    compilation times out with -g
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nsz at gcc dot gnu.org
  Target Milestone: ---

i think it's since r257631 that assembler time went from 1s to 50s on
aarch64-linux-gnu, this seems a bit excessive for default -g behaviour, so
either less .loc directives should be emitted or as should be optimized to deal
with it.
(i don't think poly-int-07_plugin.c is very special)

starting from a preprocessed poly-int-07_plugin.ii:

-O -g:

$ ./xg++ -B. -g -O -fPIC -shared -fno-rtti -time poly-int-07_plugin.ii
# cc1plus 37.16 0.58
# as 50.89 0.30
# collect2 0.23 0.04
$ ./xg++ -B. -g -O -fPIC -shared -fno-rtti -S -o - poly-int-07_plugin.ii |wc -l
1884187
$ size -A a.out  |grep debug
.debug_aranges      1504        0
.debug_info      3225386        0
.debug_abbrev       4236        0
.debug_line       576871        0
.debug_str        291657        0
.debug_loc       1690436        0
.debug_ranges     317184        0

-O -g -gno-inline-points:

$ ./xg++ -B. -g -gno-inline-points -O -fPIC -shared -fno-rtti -time
poly-int-07_plugin.ii
# cc1plus 33.99 0.48
# as 1.11 0.07
# collect2 0.16 0.03
$ ./xg++ -B. -g -gno-inline-points -O -fPIC -shared -fno-rtti -S -o -
poly-int-07_plugin.ii |wc -l
610435
$ size -A a.out  |grep debug
.debug_aranges      1504        0
.debug_info       704560        0
.debug_abbrev       4017        0
.debug_line       142083        0
.debug_str        291676        0
.debug_loc        557516        0
.debug_ranges      98896        0

Reply via email to