https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64246
--- Comment #1 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 10 Dec 2014, matt at gwalski dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64246 > > Bug ID: 64246 > Summary: [5 Regression] ICE building libada for Windows due to > NULL loop header > Product: gcc > Version: 5.0 > Status: UNCONFIRMED > Severity: major > Priority: P3 > Component: middle-end > Assignee: unassigned at gcc dot gnu.org > Reporter: matt at gwalski dot com > CC: rguenther at suse dot de > Host: x86_64-linux-gnu > Target: i686-w64-mingw32 > Build: x86_64-linux-gnu > > Attempting to build trunk SVN version 218496 supporting C,C++, and Ada fails > with the following: > > /home/matt/buildgcc/./gcc/xgcc -B/home/matt/buildgcc/./gcc/ > -L/usr/local/i686-w64-mingw32/lib -L/usr/local/mingw/lib -isystem > /usr/local/i686-w64-mingw32/include -isystem /usr/local/mingw/include > -B/usr/local/i686-w64-mingw32/bin/ -B/usr/local/i686-w64-mingw32/lib/ -isystem > /usr/local/i686-w64-mingw32/include -isystem > /usr/local/i686-w64-mingw32/sys-include -c -g -O2 -W -Wall -gnatpg > -nostdinc g-awk.adb -o g-awk.o > +===========================GNAT BUG DETECTED==============================+ > | 5.0.0 20141208 (experimental) (i686-w64-mingw32) GCC error: | > | in fix_loop_structure, at loop-init.c:263 | > | Error detected around g-awk.adb:727:8 | > | Please submit a bug report; see http://gcc.gnu.org/bugs.html. | > | Use a subject line meaningful to you and us to track the bug. | > | Include the entire contents of this bug box in the report. | > | Include the exact command that you entered. | > | Also include sources listed below. | > +==========================================================================+ > > Please include these source files with error report > Note that list may not be accurate in some cases, > so please double check that the problem can still > be reproduced with the set of files listed. > Consider also -gnatd.n switch (see debug.adb). > > system.ads > g-awk.adb > g-awk.ads > gnat.ads > ada.ads > a-finali.ads > s-finroo.ads > g-regpat.ads > s-regpat.ads > a-except.ads > s-parame.ads > s-stalib.ads > a-unccon.ads > s-traent.ads > a-textio.ads > a-ioexce.ads > a-stream.ads > s-ficobl.ads > interfac.ads > i-cstrea.ads > s-crtl.ads > s-wchcon.ads > a-string.ads > a-strunb.ads > a-strmap.ads > a-charac.ads > a-chlat1.ads > s-atocou.ads > a-strfix.ads > a-uncdea.ads > g-dirope.ads > g-dyntab.ads > g-os_lib.ads > s-os_lib.ads > s-string.ads > s-exctab.ads > a-tags.ads > s-stoele.ads > s-soflin.ads > s-stache.ads > s-finmas.ads > s-stopoo.ads > s-pooglo.ads > s-unstyp.ads > s-stratt.ads > s-secsta.ads > s-stposu.ads > s-ststop.ads > s-imgint.ads > s-valint.ads > s-valrea.ads > g-dyntab.adb > g-hesorg.ads > s-memory.ads > g-hesorg.adb > s-stoele.adb > > > raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:423 > make[4]: *** [g-awk.o] Error 1 > > It's hitting an assert added in r214957/r215012. > > I've been able to bootstrap a x86_64-linux-gnu Ada compiler fine with a > revision that fails for i686-w64-mingw32. > > I believe I'm also seeing the error building a native i686-w64-mingw32 > (bootstrap or no bootstrap) Ada compiler. > > Configuration options: > configure --build=x86_64-linux-gnu --enable-shared --enable-static > --disable-multilib --enable-threads=posix --enable-fully-dynamic-string > --enable-sjlj-exceptions --enable-libgomp --enable-languages=c,c++,ada,lto > --target=i686-w64-mingw32 --host=x86_64-linux-gnu Ok, trying to compile a cross compiler to reproduce the above seems to require target headers which I dont' have. I've built the ada compiler itself so can you please attach the files referenced above?