https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107898
Bug ID: 107898
Summary: [11/12/13 Regression] ICE in irange_intersect, at
value-range.cc:1640
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Started between 20220403 and 20220410,
with file gcc.dg/Walloca-larger-than-2.c :
(and started between 20201018 and 20201108 with -O1+)
$ gcc-13-20221127 -c Walloca-larger-than-2.c -fsanitize=address
-fsanitize=pointer-subtract -fpreprocessed -Walloca-larger-than=5000
Walloca-larger-than-2.c:7:1: warning: parameter names (without types) in
function declaration
7 | extern void* alloca (__SIZE_TYPE__);
| ^~~~~~
Walloca-larger-than-2.c: In function 'test_alloca':
Walloca-larger-than-2.c:17:5: warning: implicit declaration of function 'T'
[-Wimplicit-function-declaration]
17 | T (alloca (0));
| ^
Walloca-larger-than-2.c:17:16: warning: 'alloca' argument 1 type is 'int' where
'long unsigned int' is expected in a call to built-in function declared without
prototype [-Wbuiltin-declaration-mismatch]
17 | T (alloca (0));
| ^
Walloca-larger-than-2.c:7:14: note: built-in 'alloca' declared here
7 | extern void* alloca (__SIZE_TYPE__);
| ^~~~~~
Walloca-larger-than-2.c:21:16: warning: 'alloca' argument 1 type is 'int' where
'long unsigned int' is expected in a call to built-in function declared without
prototype [-Wbuiltin-declaration-mismatch]
21 | T (alloca (1));
| ^
Walloca-larger-than-2.c:7:14: note: built-in 'alloca' declared here
7 | extern void* alloca (__SIZE_TYPE__);
| ^~~~~~
Walloca-larger-than-2.c:24:16: warning: 'alloca' argument 1 type is 'unsigned
int' where 'long unsigned int' is expected in a call to built-in function
declared without prototype [-Wbuiltin-declaration-mismatch]
24 | T (alloca (n));
| ^
Walloca-larger-than-2.c:7:14: note: built-in 'alloca' declared here
7 | extern void* alloca (__SIZE_TYPE__);
| ^~~~~~
Walloca-larger-than-2.c:17:5: warning: argument to 'alloca' is zero
[-Walloca-larger-than=]
17 | T (alloca (0));
| ^~~~~~~~~~~~~~
Walloca-larger-than-2.c:21:5: warning: use of 'alloca' within a loop
[-Walloca-larger-than=]
21 | T (alloca (1));
| ^~~~~~~~~~~~~~
during GIMPLE pass: walloca
Walloca-larger-than-2.c:25:1: internal compiler error: in irange_intersect, at
value-range.cc:2560
25 | }
| ^
0x12550c8 irange::irange_intersect(irange const&)
../../gcc/value-range.cc:2559
0x1251a81 irange::legacy_verbose_intersect(irange const*)
../../gcc/value-range.cc:2324
0x1cc78dc irange::intersect(vrange const&)
../../gcc/value-range.h:969
0x1cc78dc alloca_call_type
../../gcc/gimple-ssa-warn-alloca.cc:228
0x1cc8243 pass_walloca::execute(function*)
../../gcc/gimple-ssa-warn-alloca.cc:292