https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89499
Bug ID: 89499 Summary: [7/8/9 Regression] ICE in expand_UNIQUE, at internal-fn.c:2605 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started with gcc-6 at -O[23] : $ cat z1.c #pragma acc routine vector void Vector (int *ptr, int n, const int inc) { #pragma acc loop vector for (int i = 0; i < n; i++) ptr[i] += inc; return; } void foo (void) { const int m = 16; int ary[m][m]; Vector (&ary[0][0], m*m, (1 << 24) - (1 << 16)); return; } $ gcc-9-20190224 -c z1.c -fopenacc -O0 $ gcc-9-20190224 -c z1.c -fopenacc -O1 $ $ gcc-9-20190224 -c z1.c -fopenacc -O2 during RTL pass: expand z1.c: In function 'foo': z1.c:4:11: internal compiler error: in expand_UNIQUE, at internal-fn.c:2605 4 | #pragma acc loop vector | ^~~ 0x8a133f expand_UNIQUE ../../gcc/internal-fn.c:2605 0x6d3a57 expand_call_stmt ../../gcc/cfgexpand.c:2633 0x6d3a57 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3691 0x6d3a57 expand_gimple_stmt ../../gcc/cfgexpand.c:3850 0x6d5a57 expand_gimple_basic_block ../../gcc/cfgexpand.c:5886 0x6db096 execute ../../gcc/cfgexpand.c:6509