https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90972
Bug ID: 90972 Summary: [9 Regression] ICE in fold_convert_loc, at fold-const.c:2429 Product: gcc Version: 9.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- gdb with some multilibs enabled ftbfs with gcc-9 r on powerpc64le-linux-gnu. Work around is to build with -O2. can be seen with a native and a cross compiler. $ cat cpu-i386.i long f; void a(); void *g() { char h[] = {}, j[] = {}, k[] = {}, l[] = {}, m[] = {}, n[] = {}, o[] = {}, q[] = {}, r[] = {}; static const char i[] = {6, 0}; const char *nops[] = {h, i, j, k, l, m, n, o, q, r}; long s = 2; void *fill = a; char *p = fill; while (f) { void *b = p; const void *c = nops[1]; long d = s, e = __builtin_object_size(b, 0); __builtin___memcpy_chk(b, c, d, e); p += s; f -= s; } return fill; } $ powerpc64le-linux-gnu-gcc -c -Wall -mcpu=power8 -O3 cpu-i386.i during GIMPLE pass: vect cpu-i386.i: In function 'g': cpu-i386.i:3:7: internal compiler error: in fold_convert_loc, at fold-const.c:2429 3 | void *g() { | ^ Please submit a full bug report, with preprocessed source if appropriate.