https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102450
Bug ID: 102450
Summary: GCC error: in
set_min_and_max_values_for_integral_type, at
stor-layout.c:2851
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: danglin at gcc dot gnu.org
Target Milestone: ---
Host: hppa*-*-* (32-bit)
Target: hppa*-*-* (32-bit)
Build: hppa*-*-* (32-bit)
/home/dave/gnu/gcc/objdir/./gcc/xgcc -B/home/dave/gnu/gcc/objdir/./gcc/
-B/opt/g
nu/gcc/gcc-12/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-12/hppa2.0w-hp-hpux1
1.11/lib/ -isystem /opt/gnu/gcc/gcc-12/hppa2.0w-hp-hpux11.11/include -isystem
/o
pt/gnu/gcc/gcc-12/hppa2.0w-hp-hpux11.11/sys-include -fchecking=1 -c -g -O2
-f
PIC -W -Wall -gnatpg -nostdinc s-regpat.adb -o s-regpat.o
during GIMPLE pass: lower
+===========================GNAT BUG DETECTED==============================+
| 12.0.0 20210922 (experimental) (hppa2.0w-hp-hpux11.11) GCC error: |
| in set_min_and_max_values_for_integral_type, at stor-layout.c:2851 |
| Error detected around s-regpat.adb:345:4 |
| Compiling s-regpat.adb |
| Please submit a bug report; see https://gcc.gnu.org/bugs/ . |
| 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
s-regpat.adb
s-regpat.ads
s-io.ads
ada.ads
a-charac.ads
a-chahan.ads
a-unccon.ads
s-exctab.ads
s-stalib.ads
a-except.ads
s-parame.ads
s-traent.ads
s-valint.ads
s-unstyp.ads
s-valuns.ads
s-valueu.ads
s-valuei.ads
s-imgcha.ads
s-secsta.ads
s-stoele.ads
s-imgint.ads
s-imagei.ads
raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:414
make[7]: *** [../gcc-interface/Makefile:300: s-regpat.o] Error 1
make[7]: Leaving directory '/home/dave/gnu/gcc/objdir/gcc/ada/rts'
make[6]: *** [gcc-interface/Makefile:627: gnatlib] Error 2
make[6]: Leaving directory '/home/dave/gnu/gcc/objdir/gcc/ada'
make[5]: *** [gcc-interface/Makefile:662: gnatlib-shared-default] Error 2
make[5]: Leaving directory '/home/dave/gnu/gcc/objdir/gcc/ada'
Also occurs on Linux:
https://buildd.debian.org/status/fetch.php?pkg=gcc-snapshot&arch=hppa&ver=1%3A20210918-1&stamp=1632002454&raw=0