From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2BC93834E58; Thu, 26 May 2022 11:28:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2BC93834E58 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/105739] [9/10 Regression] Miscompilation of Linux kernel update.c Date: Thu, 26 May 2022 11:28:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 10.3.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org 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: 9.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Thu, 26 May 2022 11:28:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105739 --- Comment #3 from Jakub Jelinek --- The call is added at: #0 gimple_set_code (g=3D, code=3DGIMPLE_CALL) = at ../../gcc/gimple.c:108 #1 0x0000000000bceae1 in gimple_alloc (code=3DGIMPLE_CALL, num_ops=3D7) at ../../gcc/gimple.c:140 #2 0x0000000000bd189a in gimple_copy (stmt=3D)= at ../../gcc/gimple.c:1806 #3 0x000000000109ed79 in remap_gimple_stmt (stmt=3D, id=3D0x7fffffffd620) at ../../gcc/tree-inline.c:1796 #4 0x000000000109f39a in copy_bb (id=3D0x7fffffffd620, bb=3D, num=3D..., den=3D...) at ../../gcc/tree-inline.c:1950 #5 0x00000000010a223c in copy_cfg_body (id=3D0x7fffffffd620, entry_block_map=3D, exit_block_map=3D,=20 new_entry=3D) at ../../gcc/tree-inline.c:2884 #6 0x00000000010a2d21 in copy_body (id=3D0x7fffffffd620, entry_block_map=3D, exit_block_map=3D,=20 new_entry=3D) at ../../gcc/tree-inline.c:3126 #7 0x00000000010a6aa2 in expand_call_inline (bb=3D, stmt=3D, id=3D0x7fffffffd620, to_purge=3D0x7fffffffd600) at ../../gcc/tree-inline.c:4867 #8 0x00000000010a76e7 in gimple_expand_calls_inline (bb=3D, id=3D0x7fffffffd620, to_purge=3D0x7fffffffd600) at ../../gcc/tree-inline.c:5060 #9 0x00000000010a7da5 in optimize_inline_calls (fn=3D) at ../../gcc/tree-inline.c:5202 #10 0x0000000001cc06ec in inline_transform (node=3D) at ../../gcc/ipa-inline-transform.c:682 during inlining of trc_wait_for_one_reader into rcu_tasks_trace_pertask, wh= en copying _printk ("\x016%s(P%d/%d) IPI to task still in flight.\n", &__func__, _1, _= 8); and later changed to __builtin_unreachable in: #0 gimple_call_set_fndecl (gs=3D0x7fffea08a2a0, decl=3D) at ../../gcc/gimple.h:3058 #1 0x00000000009f8bb2 in cgraph_edge::redirect_call_stmt_to_callee ( this=3D -> )>) at ../../gcc/cgraph.c:1489 #2 0x00000000010a1f10 in redirect_all_calls (id=3D0x7fffffffd620, bb=3D) at ../../gcc/tree-inline.c:2814 #3 0x00000000010a262b in copy_cfg_body (id=3D0x7fffffffd620, entry_block_map=3D, exit_block_map=3D,=20 new_entry=3D) at ../../gcc/tree-inline.c:2950 #4 0x00000000010a2d21 in copy_body (id=3D0x7fffffffd620, entry_block_map=3D, exit_block_map=3D,=20 new_entry=3D) at ../../gcc/tree-inline.c:3126 #5 0x00000000010a6aa2 in expand_call_inline (bb=3D, stmt=3D, id=3D0x7fffffffd620, to_purge=3D0x7fffffffd600) at ../../gcc/tree-inline.c:4867 #6 0x00000000010a76e7 in gimple_expand_calls_inline (bb=3D, id=3D0x7fffffffd620, to_purge=3D0x7fffffffd600) at ../../gcc/tree-inline.c:5060 #7 0x00000000010a7da5 in optimize_inline_calls (fn=3D) at ../../gcc/tree-inline.c:5202=