This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/81768] error: control flow in the middle of basic block
- From: "amonakov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Aug 2017 14:09:22 +0000
- Subject: [Bug libgomp/81768] error: control flow in the middle of basic block
- Auto-submitted: auto-generated
- References: <bug-81768-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81768
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |openmp
CC| |amonakov at gcc dot gnu.org
--- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
It's not quite right to say this is minimized from for-5.c, as original for-5.c
does not fail in this way. The difference that makes this one ICE is presence
of #pragma omp declare target [end] around declarations of global arrays.
Unrelated to offloading (fails the same with -foffload=disable).
Without the 'simd' clause it exhibits a different ICE:
pr81768.c: In function ‘f14_tpf_simd_static32._omp_fn.1’:
pr81768.c:21:1: error: constant not recomputed when ADDR_EXPR changed
}
^
&b[0][0][0]
cc1: note: in statement
if (k > &b[0][0][0])
pr81768.c:21:1: error: constant not recomputed when ADDR_EXPR changed
&b[0][0][0]
cc1: note: in statement
if (j > &b[0][0][0])
during IPA pass: *free_lang_data
pr81768.c:21:1: internal compiler error: verify_gimple failed