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

            Bug ID: 81869
           Summary: [8 Regression] --enable-checking=yes,rtl failed to
                    bootstrap on 32-bit hosts
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

On 32-bit hosts, when configured with

--enable-checking=yes,rtl

I got

Breakpoint 5, xmalloc_failed (size=56137200)
    at /export/gnu/import/git/sources/gcc/libiberty/xmalloc.c:123
123       if (first_break != NULL)
(gdb) bt
#0  xmalloc_failed (size=56137200)
    at /export/gnu/import/git/sources/gcc/libiberty/xmalloc.c:123
#1  0x024ce8f0 in xmalloc (size=56137200)
    at /export/gnu/import/git/sources/gcc/libiberty/xmalloc.c:149
#2  0x011c91f9 in (anonymous namespace)::pass_cprop_hardreg::execute (
    this=0x30f8fd0, fun=0xd34b63a8)
    at /export/gnu/import/git/sources/gcc/gcc/regcprop.c:1272
#3  0x01147550 in execute_one_pass (
    pass=<opt_pass* 0x30f8fd0 "cprop_hardreg"(299)>)
    at /export/gnu/import/git/sources/gcc/gcc/passes.c:2495
#4  0x011478c6 in execute_pass_list_1 (
    pass=<opt_pass* 0x30f8fd0 "cprop_hardreg"(299)>)
    at /export/gnu/import/git/sources/gcc/gcc/passes.c:2584
#5  0x011478f8 in execute_pass_list_1 (
    pass=<opt_pass* 0x30f8bd0 "*all-postreload"(-1)>)
    at /export/gnu/import/git/sources/gcc/gcc/passes.c:2585
#6  0x011478f8 in execute_pass_list_1 (
    pass=<opt_pass* 0x30f7fd0 "*rest_of_compilation"(-1)>)
    at /export/gnu/import/git/sources/gcc/gcc/passes.c:2585
#7  0x0114795a in execute_pass_list (fn=0xd34b63a8, pass=
    <opt_pass* 0x30f5940 "fixup_cfg"(94)>)
    at /export/gnu/import/git/sources/gcc/gcc/passes.c:2595
#8  0x00c52937 in cgraph_node::expand (
---Type <return> to continue, or q <return> to quit---
    this=<cgraph_node* 0xc7f97000 "insn_extract">)
    at /export/gnu/import/git/sources/gcc/gcc/cgraphunit.c:2054
#9  0x00c53009 in expand_all_functions ()
    at /export/gnu/import/git/sources/gcc/gcc/cgraphunit.c:2190
#10 0x00c53c27 in symbol_table::compile (this=0xf64080d8)
    at /export/gnu/import/git/sources/gcc/gcc/cgraphunit.c:2542
#11 0x00c53e92 in symbol_table::finalize_compilation_unit (this=0xf64080d8)
    at /export/gnu/import/git/sources/gcc/gcc/cgraphunit.c:2631
#12 0x01337fc6 in compile_file ()
    at /export/gnu/import/git/sources/gcc/gcc/toplev.c:496
#13 0x0133a77d in do_compile ()
    at /export/gnu/import/git/sources/gcc/gcc/toplev.c:2037
#14 0x0133aa9a in toplev::main (this=0xffffc3ee, argc=72, argv=0xffffc4d4)
    at /export/gnu/import/git/sources/gcc/gcc/toplev.c:2171
#15 0x02415af2 in main (argc=72, argv=0xffffc4d4)
    at /export/gnu/import/git/sources/gcc/gcc/main.c:39
(gdb) call dump_memory_report (1)
Number of expanded macros:                     82835
Average number of tokens per macro expansion:    291

Line Table allocations during the compilation process
Number of ordinary maps used:          550 
Ordinary map used size:                 12k
Number of ordinary maps allocated:    1365 
Ordinary maps allocated size:           31k
Number of macro maps used:              80k
Macro maps used size:                 1936k
Macro maps locations size:             184M
Macro maps size:                       186M
Duplicated maps locations size:       5533k
Total allocated maps size:             186M
Total used maps size:                  186M
Ad-hoc table size:                      64M
Ad-hoc table entries used:           2145806
optimized_ranges: 580577
unoptimized_ranges: 1958174

Memory still allocated at the end of the compilation process
Size      Allocated        Used    Overhead
8               340k        307k       8160 
16               51M         15M        826k
32               12M       3631k        151k
128              36k         17k        324 
256              48k         21k        384 
512             124k         86k        992 
1024           2548k       2509k         19k
2048           2936k       2918k         22k
4096             10M         10M         84k
8192             11M         11M         46k
16384            40M         40M         81k
32768            54M         54M         54k
65536            61M         61M         30k
131072           50M         50M         12k
262144           32M         32M       4096 
524288           16M         16M       1024 
1048576          10M         10M        320 
2097152        2048k       2048k         32 
67108864         64M         64M         32 
24               38M         12M        500k
40               31M         18M        343k
48               15M       4353k        150k
56             5076k       1055k         49k
72             1048k        840k       9432 
112              20k       7280         180 
120            1496k       1486k         13k
80             3196k       2535k         28k
88              920k        800k       8280 
96             2208k       2125k         19k
104            3476k       3397k         30k
64             4112k       3643k         40k
216            1236k        969k       9888 
Total           530M        430M       2549k

String pool
entries         116294
identifiers     30442 (26.18%)
slots           262144
deleted         85852
bytes           535k (4095M overhead)
table size      1024k
coll/search     0.7417
ins/search      0.3532
avg. entry      4.71 bytes (+/- 9.25)
longest entry   85
(No per-node statistics)
Type hash: size 8191, 4283 elements, 0.379889 collisions
DECL_DEBUG_EXPR  hash: size 1021, 0 elements, 0.000000 collisions
DECL_VALUE_EXPR  hash: size 1021, 0 elements, 0.000000 collisions
no search statistics
decl_specializations: size 1021, 487 elements, 1.258203 collisions
type_specializations: size 2039, 996 elements, 1.519699 collisions
No gimple statistics
No RTX statistics

Heap vectors                                            Leak           Peak    
Times       Leak items Peak items
--------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------
Total                                                      0                   
    0                0
--------------------------------------------------------------------------------------------------------------------------------------------


Alias oracle query stats:
  refs_may_alias_p: 0 disambiguations, 0 queries
  ref_maybe_used_by_call_p: 3 disambiguations, 3480 queries
  call_may_clobber_ref_p: 0 disambiguations, 0 queries
  TBAA oracle: 139600 disambiguations 476377 queries
               165628 are in alias set 0
               25685 queries asked about the same object
               0 queries asked about the same alias set
               0 access volatile
               145464 are dependent in the DAG
               0 are aritificially in conflict with void *

PTA query stats:
  pt_solution_includes: 0 disambiguations, 142162 queries
  pt_solutions_intersect: 0 disambiguations, 0 queries
(gdb) c
Continuing.

cc1plus: out of memory allocating 56137200 bytes after a total of 3147132928
bytes

Breakpoint 3, 0xf67c3380 in exit () from /libx32/libc.so.6

Reply via email to