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

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=1 -c -g -O2
-m31 -fPIC  -W -Wall -gnatpg -nostdinc -m31  g-sehash.adb -o g-sehash.o         
during GIMPLE pass: lower                                                       
+===========================GNAT BUG DETECTED==============================+    
| 12.0.0 20210923 (experimental) (s390x-ibm-linux-gnu) GCC error:          |    
| in set_min_and_max_values_for_integral_type, at stor-layout.c:2851       |    
| Error detected around g-sehash.adb:98:4                                  |    
| Compiling g-sehash.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                                                                      
g-sehash.adb                                                                    
g-sehash.ads                                                                    
g-sechas.ads                                                                    
gnat.ads                                       
ada.ads                                        
a-stream.ads                                   
interfac.ads                                   
g-bytswa.ads                                   
a-sttebu.ads                                   
a-string.ads                                   
a-stuten.ads                                   
unchconv.ads                                   
s-exctab.ads                                   
s-stalib.ads                                   
a-unccon.ads                                   
a-tags.ads                                     
s-stoele.ads                                   
s-soflin.ads                                   
a-except.ads                                   
s-parame.ads                                   
s-traent.ads                                   
s-secsta.ads                                   
s-stache.ads                                   
s-putima.ads                                                                    
s-unstyp.ads                                                                    
g-sechas.adb                                                                    
s-stoele.adb                                                                    


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:414

precision=512 though, backtrace:#0  set_min_and_max_values_for_integral_type
(type=type@entry=0x3fffb7c3000, precision=512, sgn=sgn@entry=UNSIGNED) at
../../gcc/stor-layout.c:2851
#1  0x0000000001f141a8 in fixup_unsigned_type (type=type@entry=0x3fffb7c3000)
at ../../gcc/stor-layout.c:2885
#2  0x0000000001f14248 in make_unsigned_type (precision=<optimized out>) at
../../gcc/stor-layout.c:2708
#3  0x00000000013c0698 in gnat_type_for_size (precision=<optimized out>,
unsignedp=<optimized out>) at ../../gcc/ada/gcc-interface/utils.c:3670
#4  0x0000000001b6584e in gimple_fold_builtin_memory_op
(gsi=gsi@entry=0x3ffffffded8, dest=0x3fffb76f760, src=0x3fffb76e510,
code=code@entry=BUILT_IN_MEMMOVE)
    at ../../gcc/gimple-fold.c:1004
#5  0x0000000001b67a9e in gimple_fold_builtin (gsi=0x3ffffffded8) at
../../gcc/gimple.h:3297
#6  gimple_fold_call (gsi=gsi@entry=0x3ffffffded8, inplace=inplace@entry=false)
at ../../gcc/gimple-fold.c:5588
#7  0x0000000001b69732 in fold_stmt_1 (gsi=gsi@entry=0x3ffffffded8,
inplace=inplace@entry=false, valueize=valueize@entry=0x1b500b0
<no_follow_ssa_edges(tree_node*)>)
    at ../../gcc/gimple-fold.c:6290
#8  0x0000000001b6b260 in fold_stmt (gsi=gsi@entry=0x3ffffffded8) at
../../gcc/gimple-fold.c:6386
#9  0x00000000029188ca in lower_stmt (gsi=gsi@entry=0x3ffffffded8,
data=data@entry=0x3ffffffe060) at ../../gcc/gimple-low.c:390

Reply via email to