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

            Bug ID: 94240
           Summary: [D] lto1: internal compiler error: in
                    add_symbol_to_partition_1, at lto/lto-partition.c:215
           Product: gcc
           Version: 9.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.c:215^M
0x5d0032 add_symbol_to_partition_1^M
        ../../gcc/lto/lto-partition.c:215^M
0x7e261b add_references_to_partition^M
        ../../gcc/lto/lto-partition.c:111^M
0x7e276d add_symbol_to_partition_1^M
        ../../gcc/lto/lto-partition.c:188^M
0x7e4a00 lto_1_to_1_map()^M
        ../../gcc/lto/lto-partition.c:340^M
0x7dc60d do_whole_program_analysis^M
        ../../gcc/lto/lto.c:493^M
0x7dc60d lto_main()^M
        ../../gcc/lto/lto.c:642^M
Please submit a full bug report,^M
with preprocessed source if appropriate.^M
Please include the complete backtrace with any bug report.^M
See <https://gcc.gnu.org/bugs/> for instructions.^M
lto-wrapper: fatal error: /gcc/testsuite/gdc/../../gdc returned 1 exit status^M
compilation terminated.^M
collect2: fatal error: lto-wrapper returned 1 exit status^M
compilation terminated.^M
compiler exited with status 1
FAIL: gdc.dg/lto/ltotests d_lto_ltotests_0.o-d_lto_ltotests_1.o link, -O0 -flto
-flto-partition=1to1 -fno-use-linker-plugin  (internal compiler error)


This has been failing in the testsuite since introduction of the D front-end. 
However weirdly I was not able to reproduce until after upgrading my OS.

A fix is ready for this to be committed to trunk, it should be backported to
the gcc-9 branch as well.

Reply via email to