From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B153138582A3; Wed, 19 Jul 2023 08:20:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B153138582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689754801; bh=Jaa1vobvDUc3ZrBAhdOYX+med6OF1dIxeIi7gVzePVY=; h=From:To:Subject:Date:From; b=WgBhqgAAtbAUBfiW2gOLoTaXhLjJm+t0JKTGlLfcHmW6lXigBfFgmJAK9s2ESDutO HDObCbQCLbvCVpHc+Pi6WZ0FX4FSyL62tk5gyJSj0yqp2jQFmmFCPNU2hVfH8a8lxs E5Fxd+jLS94DO7XJlKJSRyfF40oNEftcpnyT0nfI= From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110737] New: GCC: internal compiler error: Segmentation fault when processing __builtin_isinf and _Atomic long double together Date: Wed, 19 Jul 2023 08:19:53 +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=3D110737 Bug ID: 110737 Summary: GCC: internal compiler error: Segmentation fault when processing __builtin_isinf and _Atomic long double together 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 attempting to compile below program using gcc-14 with option `gcc-14 small.c`, gcc throws internal error. ``` _Atomic long double c; void f(void); void g(void) { __builtin_isinf(c /=3D f()); } ``` The output of gcc is pasted below: ``` : In function 'g': :3:1: error: void value not ignored as it ought to be 3 | void g(void) { __builtin_isinf(c /=3D f()); } | ^~~~ :3:34: internal compiler error: Segmentation fault 3 | void g(void) { __builtin_isinf(c /=3D f()); } | ^~ 0x21594ee internal_error(char const*, ...) ???:0 0xd6ec47 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xd7182a gimplify_stmt(tree_node**, gimple**) ???:0 0xd6f79b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xd7182a gimplify_stmt(tree_node**, gimple**) ???:0 0xd6ec6a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xd7182a gimplify_stmt(tree_node**, gimple**) ???:0 0xd6ec04 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ???:0 0xd7182a gimplify_stmt(tree_node**, gimple**) ???:0 0xd72cc3 gimplify_body(tree_node*, bool) ???:0 0xd7311f gimplify_function_tree(tree_node*) ???:0 0xbaffa7 cgraph_node::analyze() ???:0 0xbb3af1 symbol_table::finalize_compilation_unit() ???: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. ``` The above segment fault can be verified at compiler explorer: https://gcc.godbolt.org/z/Ghxe5Mc6e=