From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E539A3861001; Tue, 3 Nov 2020 20:42:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E539A3861001 From: "msc at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/97709] New: powerpc: ICE when building glibc with latest gcc Date: Tue, 03 Nov 2020 20:42:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msc at linux dot ibm.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2020 20:42:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97709 Bug ID: 97709 Summary: powerpc: ICE when building glibc with latest gcc Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msc at linux dot ibm.com Target Milestone: --- Created attachment 49499 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49499&action=3Dedit Pre-processed source with the issue This was first observed when upgrading GCC on Advance Toolchain, but I was = also able to reproduce this with upstream GCC (commit 93e79ed391b9c636f0).=20 Trying to build glibc with latest GCC causes an internal compiler error: vfprintf-internal.c: In function =E2=80=98__vfprintf_internal=E2=80=99: vfprintf-internal.c:1320:1: error: SSA_NAME_OCCURS_IN_ABNORMAL_PHI should be set for SSA_NAME: _1972 in statement: prec_413(ab) =3D PHI <_1972(36)> PHI argument _1972 for PHI node prec_413(ab) =3D PHI <_1972(36)> during GIMPLE pass: slp vfprintf-internal.c:1320:1: internal compiler error: verify_ssa failed 0x10dfa0d3 verify_ssa(bool, bool) /home/mscastanho/src/gcc/gcc/tree-ssa.c:1208 0x1099fc1f execute_function_todo /home/mscastanho/src/gcc/gcc/passes.c:2046 0x109a088b do_per_function /home/mscastanho/src/gcc/gcc/passes.c:1687 0x109a0aaf execute_todo /home/mscastanho/src/gcc/gcc/passes.c:2093 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. Preprocessed source generated with -save-temps is attached to the bug. The issue only happens if I use -mcpu=3Dpower9 or -mcpu=3Dpower10. -mcpu=3Dpowe= r8 seems to be OK. Cmdline used: ~/usr/bin/gcc -m64 ./stdio-common/vfprintf-internal.i -c -std=3Dgnu11 -fgnu89-inline -g -O3 -mcpu=3Dpower9 -Wall NOTE: The original Advance Toolchain build used a slightly older GCC (commit 943cc2a1b70f), and the error message I saw was a bit different (although st= ill somewhat related): Unable to coalesce ssa_names 219 and 1972 which are marked as MUST COALESCE= .=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 prec_219(ab) and _1972=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 during RTL pass: expand vfprintf-internal.c: In function =E2=80=98__vfprintf_internal=E2=80=99: vfprintf-internal.c:148:25: internal compiler error: SSA corruption=20=20= =20=20=20=20=20=20=20=20=20=20=20 148 | # define vfprintf __vfprintf_internal=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 | ^~~~~~~~~~~~~~~~~~~=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 vfprintf-internal.c:1320:1: note: in expansion of macro =E2=80=98vfprintf= =E2=80=99=20=20=20=20=20=20=20=20=20=20=20=20=20=20 1320 | vfprintf (FILE *s, const CHAR_T *format, va_list ap, unsigned int mode_flags) | ^~~~~~~~=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 0x109e7dc7 fail_abnormal_edge_coalesce=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20 /home/mscastanho/AT/broken-gcc-p910/build/at15.0-0-alpha.redhat-8_ppc64le_p= pc64le/sources/gcc/gcc/tree-ssa-coalesce.c:1003=20 0x109e7dc7 coalesce_partitions=20=20=20 =20=20=20=20=20=20=20 /home/mscastanho/AT/broken-gcc-p910/build/at15.0-0-alpha.redhat-8_ppc64le_p= pc64le/sources/gcc/gcc/tree-ssa-coalesce.c:1425 0x109e7dc7 coalesce_ssa_name(_var_map*) =20=20=20=20=20=20=20 /home/mscastanho/AT/broken-gcc-p910/build/at15.0-0-alpha.redhat-8_ppc64le_p= pc64le/sources/gcc/gcc/tree-ssa-coalesce.c:1755 0x1097f8bb remove_ssa_form =20=20=20=20=20=20=20 /home/mscastanho/AT/broken-gcc-p910/build/at15.0-0-alpha.redhat-8_ppc64le_p= pc64le/sources/gcc/gcc/tree-outof-ssa.c:1065 0x1097f8bb rewrite_out_of_ssa(ssaexpand*) =20=20=20=20=20=20=20 /home/mscastanho/AT/broken-gcc-p910/build/at15.0-0-alpha.redhat-8_ppc64le_p= pc64le/sources/gcc/gcc/tree-outof-ssa.c:1323 0x1035f04b execute =20=20=20=20=20=20=20 /home/mscastanho/AT/broken-gcc-p910/build/at15.0-0-alpha.redhat-8_ppc64le_p= pc64le/sources/gcc/gcc/cfgexpand.c:6378=