From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2AE4E3858D37; Sun, 22 Oct 2023 01:51:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AE4E3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697939511; bh=Spv00V+NW+7dFHGLrzA2D35BB3Le9ZDqXJt7iwMId2c=; h=From:To:Subject:Date:From; b=QGtVvPAqvQ+LUITB4CMHrUAnG6f5mAaeU45744AHNQ4jD3VVD2gsCOIGE0AMHMvBk rEU2HGYBclCnfoYKZIpyE6VBquiVVz07To15WeBwYTkOjUZ/1SiP0GHWdM++Gf8cus eZuIhmYkLL6vgF9m6ldEHI5t47U1CuDt99SrWb9M= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111912] New: GCC: 14: internal compile error when apply __transaction_atomic on logical or expr Date: Sun, 22 Oct 2023 01:51:47 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111912 Bug ID: 111912 Summary: GCC: 14: internal compile error when apply __transaction_atomic on logical or expr Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- When compile this small program: ``` int a; int f() { return __transaction_atomic (a || 1); } ``` GCC crashes, (verification link: https://gcc.godbolt.org/z/8onMYzqcv) The full stack dump: ``` : In function 'f': :2:40: internal compiler error: in gimplify_expr, at gimplify.cc:17= 510 2 | int f() { return __transaction_atomic (a || 1); } | ^ 0x231f49e internal_error(char const*, ...) ???:0 0xa00958 fancy_abort(char const*, int, char const*) ???:0 0xdbb3dc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbcc33 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbb78d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbcdf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbdddb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbb78d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbc9b7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbcdf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ```=