https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89223
Bug ID: 89223
Summary: internal compiler error: in int_cst_value, at
tree.c:11226
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: gsocsameeran at gmail dot com
Target Milestone: ---
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
Build: x86_64-linux-gnu
Created attachment 45620
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45620&action=edit
Preprocessed code of file named "crash1.c"
------------------------------BACKTRACK---------------------------------
during GIMPLE pass: pcom
crash1.c: In function ‘func_13.constprop’:
crash1.c:701:24: internal compiler error: in int_cst_value, at tree.c:11730
701 | static const int32_t * func_13(int32_t * p_14)
| ^~~~~~~
0x1fa2edc int_cst_value(tree_node const*)
../../gcc/tree.c:11730
0x31bd717 initialize_matrix_A
../../gcc/tree-data-ref.c:3194
0x31bf66d analyze_subscript_affine_affine
../../gcc/tree-data-ref.c:3614
0x31c15ff analyze_siv_subscript
../../gcc/tree-data-ref.c:3925
0x31c2b16 analyze_overlapping_iterations
../../gcc/tree-data-ref.c:4171
0x31c4e49 subscript_dependence_tester_1
../../gcc/tree-data-ref.c:4713
0x31c5074 subscript_dependence_tester
../../gcc/tree-data-ref.c:4760
0x31c54c9 compute_affine_dependence(data_dependence_relation*, loop*)
../../gcc/tree-data-ref.c:4819
0x31c5a3f compute_all_dependences(vec<data_reference*, va_heap,
vl_ptr>, vec<data_dependence_relation*, va_heap, vl_ptr>*, vec<loop*,
va_heap, vl_ptr>, bool)
../../gcc/tree-data-ref.c:4886
0x31c7daf compute_data_dependences_for_loop(loop*, bool, vec<loop*,
va_heap, vl_ptr>*, vec<data_reference*, va_heap, vl_ptr>*,
vec<data_dependence_relation*, va_heap, vl_ptr>*)
../../gcc/tree-data-ref.c:5360
0x1a465ac tree_predictive_commoning_loop
../../gcc/tree-predcom.c:3191
0x1a47190 tree_predictive_commoning()
../../gcc/tree-predcom.c:3313
0x1a472eb run_tree_predictive_commoning
../../gcc/tree-predcom.c:3338
0x1a473b7 execute
../../gcc/tree-predcom.c:3367
---------------------------COMMMAND LINE--------------------------------
~/again_build/bin/current-gcc -O3 -fgnu-tm crash1.c -I../../runtime/ -w
----------------------------GCC VERSION----------------------------------
current-gcc (GCC) 9.0.0 20190108 (experimental)
--------------------------PREVIOUS REPORTING-------------------------------
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=SUSPENDED&bug_status=WAITING&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&cf_known_to_fail_type=allwords&cf_known_to_work_type=allwords&list_id=228813&query_format=advanced&short_desc=internal%20compiler%20error%3A%20in%20int_cst_value&short_desc_type=allwordssubstr
---------------------------REDUCED TEST CASE ----------------------------
a[5];
unsigned __int128 b;
c() {
b = 4;
for (;; b--)
a[b] = ({ a[b + b]; });
}
Previous reporting were on older version and reduced test case were different.
So I filed a new bug because it fails on the trunk.