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

            Bug ID: 115918
           Summary: Bootstrap failure in GNAT with
                    --with-build-config=bootstrap-lto
                    --enable-languages=c,ada,c++,lto
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arsen at gcc dot gnu.org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---

Created attachment 58658
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58658&action=edit
fail.log

current trunk (r15-2026-g44c9403ed1833a) fails to bootstrap w/ Ada and
bootstrap-lto enabled:

~/gcc/scratch-build 1 $ grep 'internal compiler error:' fail.log 
../../gcc/gcc/ada/bindo-elaborators.adb:1285:7: internal compiler error: in
fold_stmt, at gimple-range-fold.cc:701
../../gcc/gcc/ada/table.adb:164:7: internal compiler error: in fold_stmt, at
gimple-range-fold.cc:701
../../gcc/gcc/ada/bindo-elaborators.adb:704:7: internal compiler error: in
fold_stmt, at gimple-range-fold.cc:701
ada/g-graphs.adb:986:10: internal compiler error: in fold_stmt, at
gimple-range-fold.cc:701
../../gcc/gcc/ada/sinput.adb:541:4: internal compiler error: in fold_stmt, at
gimple-range-fold.cc:701
../../gcc/gcc/ada/fmap.adb:175:4: internal compiler error: in fold_stmt, at
gimple-range-fold.cc:701
~/gcc/scratch-build$ ./config.status --config
 '--with-build-config=bootstrap-lto' '--enable-languages=c,ada,c++,lto'

more complete log attached.  no special setup was required

host gcc: gcc (Gentoo Hardened 14.1.1_p20240706 p3) 14.1.1 20240706
host gnat: GNAT 14.1.1 20240706

interestingly, all the files that are failing are .adb files.  this could be
because there is an LTO bug that only gets noticed or GNAT, or because GNAT
does something to cause LTO to fail.  unsure which one is the case

I could not reproduce this for gcc-14 20240706

Reply via email to