https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121279
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #8) > Created attachment 62127 [details] > untested patch > > Needs the testcase added, a full bootstrap and some extra comments. > BUT it looks like it is doing the correct thing. /home/apinski/src/upstream-gcc-git/gcc/libgomp/oacc-mem.c: In function ‘goacc_exit_datum_1’: /home/apinski/src/upstream-gcc-git/gcc/libgomp/oacc-mem.c:681:1: internal compiler error: in rewrite_to_defined_unconditional, at gimple-fold.cc:10582 681 | goacc_exit_datum_1 (struct gomp_device_descr *acc_dev, void *h, size_t s, | ^~~~~~~~~~~~~~~~~~ 0x36b61c9 internal_error(char const*, ...) /home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:534 0x36c3f2b fancy_abort(char const*, int, char const*) /home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostics/context.cc:1687 0x1469e49 rewrite_to_defined_unconditional /home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-fold.cc:10582 0x146a729 rewrite_to_defined_unconditional(gimple_stmt_iterator*) /home/apinski/src/upstream-gcc-git/gcc/gcc/gimple-fold.cc:10685 0x1a2801a predicate_statements /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-if-conv.cc:3082 0x1a288b7 combine_blocks /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-if-conv.cc:3228 0x1a2ba52 tree_if_conversion(loop*, vec<gimple*, va_heap, vl_ptr>*) /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-if-conv.cc:4198 0x1a2beb1 execute /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-if-conv.cc:4307 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[5]: *** [Makefile:809: oacc-mem.lo] Error 1