From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B0603858407; Fri, 24 Sep 2021 09:45:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B0603858407 From: "rdapp at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/102450] GCC error: in set_min_and_max_values_for_integral_type, at stor-layout.c:2851 Date: Fri, 24 Sep 2021 09:44:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp at linux dot ibm.com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2021 09:45:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102450 rdapp at linux dot ibm.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rdapp at linux dot ibm.com --- Comment #4 from rdapp at linux dot ibm.com --- Also happens on s390 with -m31 in stage 3: /home/rdapp/projects/gcc/build/./gcc/xgcc -B/home/rdapp/projects/gcc/build/./gcc/ -B/home/rdapp/gcc-fail/s390x-ibm-linux-gnu/bin/ -B/home/rdapp/gcc-fail/s390x-ibm-linux-gnu/lib/ -isystem /home/rdapp/gcc-fail/s390x-ibm-linux-gnu/include -isystem /home/rdapp/gcc-fail/s390x-ibm-linux-gnu/sys-include -fchecking=3D1 -c -g= -O2 -m31 -fPIC -W -Wall -gnatpg -nostdinc -m31 g-sehash.adb -o g-sehash.o=20= =20=20=20=20=20=20=20=20 during GIMPLE pass: lower=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+=20=20=20=20 | 12.0.0 20210923 (experimental) (s390x-ibm-linux-gnu) GCC error: = |=20=20=20=20 | in set_min_and_max_values_for_integral_type, at stor-layout.c:2851 = |=20=20=20=20 | Error detected around g-sehash.adb:98:4 = |=20=20=20=20 | Compiling g-sehash.adb = |=20=20=20=20 | Please submit a bug report; see https://gcc.gnu.org/bugs/ . = |=20=20=20=20 | Use a subject line meaningful to you and us to track the bug. = |=20=20=20=20 | Include the entire contents of this bug box in the report. = |=20=20=20=20 | Include the exact command that you entered. = |=20=20=20=20 | Also include sources listed below. = |=20=20=20=20 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= +=20=20=20=20 Please include these source files with error report=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Note that list may not be accurate in some cases,=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 so please double check that the problem can still=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 be reproduced with the set of files listed.=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 Consider also -gnatd.n switch (see debug.adb).=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 system.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 g-sehash.adb=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 g-sehash.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 g-sechas.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 gnat.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ada.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-stream.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 interfac.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 g-bytswa.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-sttebu.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-string.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-stuten.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 unchconv.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-exctab.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-stalib.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-unccon.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-tags.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-stoele.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-soflin.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 a-except.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-parame.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-traent.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-secsta.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-stache.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-putima.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-unstyp.ads=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 g-sechas.adb=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 s-stoele.adb=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:414 precision=3D512 though, backtrace:#0 set_min_and_max_values_for_integral_t= ype (type=3Dtype@entry=3D0x3fffb7c3000, precision=3D512, sgn=3Dsgn@entry=3DUNSI= GNED) at ../../gcc/stor-layout.c:2851 #1 0x0000000001f141a8 in fixup_unsigned_type (type=3Dtype@entry=3D0x3fffb7= c3000) at ../../gcc/stor-layout.c:2885 #2 0x0000000001f14248 in make_unsigned_type (precision=3D) = at ../../gcc/stor-layout.c:2708 #3 0x00000000013c0698 in gnat_type_for_size (precision=3D, unsignedp=3D) at ../../gcc/ada/gcc-interface/utils.c:3670 #4 0x0000000001b6584e in gimple_fold_builtin_memory_op (gsi=3Dgsi@entry=3D0x3ffffffded8, dest=3D0x3fffb76f760, src=3D0x3fffb76e510, code=3Dcode@entry=3DBUILT_IN_MEMMOVE) at ../../gcc/gimple-fold.c:1004 #5 0x0000000001b67a9e in gimple_fold_builtin (gsi=3D0x3ffffffded8) at ../../gcc/gimple.h:3297 #6 gimple_fold_call (gsi=3Dgsi@entry=3D0x3ffffffded8, inplace=3Dinplace@en= try=3Dfalse) at ../../gcc/gimple-fold.c:5588 #7 0x0000000001b69732 in fold_stmt_1 (gsi=3Dgsi@entry=3D0x3ffffffded8, inplace=3Dinplace@entry=3Dfalse, valueize=3Dvalueize@entry=3D0x1b500b0 ) at ../../gcc/gimple-fold.c:6290 #8 0x0000000001b6b260 in fold_stmt (gsi=3Dgsi@entry=3D0x3ffffffded8) at ../../gcc/gimple-fold.c:6386 #9 0x00000000029188ca in lower_stmt (gsi=3Dgsi@entry=3D0x3ffffffded8, data=3Ddata@entry=3D0x3ffffffe060) at ../../gcc/gimple-low.c:390=