From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F0D0D3858C2B; Wed, 19 Jul 2023 22:29:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0D0D3858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689805768; bh=+dG0+9Ipflbmh467OT5RkMCXbGItllx3A+Ov0Iu7mC8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KqpaWs6MK8ycq+9u2hMkG+k4tcqWnE08psIoNeid1zhX/nzCJFt0lYtv+U9+giusI 0v+SnKsZ1bz0soZ8ZETZSRDFYJ6x3zSaK6IMr2NUP3I0i18wCM9SYoyBgmyrLx1Tgq K+BuBtr/3r/qvt5FmcynO5qgw7eGIXY6c5/RPHPM= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110737] GCC: internal compiler error: Segmentation fault when processing __builtin_isinf and _Atomic long double together Date: Wed, 19 Jul 2023 22:29:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110737 --- Comment #5 from Andrew Pinski --- build_atomic_assign does not handle this in a reasonable fashion. Note there is code like : if (modifycode !=3D NOP_EXPR) add_stmt (rhs); /* NOP_EXPR indicates it's a straight store of the RHS. Simply issue an atomic_store. */ if (modifycode =3D=3D NOP_EXPR) { ... /* VAL is the value which was stored, return a COMPOUND_STMT of the statement and that value. */ return build2 (COMPOUND_EXPR, nonatomic_lhs_type, compound_stmt, val); } Which definitely could be improved too.=