From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF3353858C78; Wed, 19 Jul 2023 20:42:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF3353858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689799333; bh=NmnX2S21COzASiK/tHR5GpcHbD6k17G5hVNAfRfjuMg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oBjp5DuOBrXBeuW6c9SqSPhiMPaEFHt6C7xgbWOBDZ7UarcSZnpMftkKI+PO8NzXv MWAMn4QJ9LRdc2tuLFQ2Frhve/4tS6lgyAasZWeYIgxjhMnblI31CJuyGkufoVeI2b ltdXg83iizKt/7UOJFF4ouzniyN4Nx4HO1/cPeR4= 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 20:42:13 +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 #2 from Andrew Pinski --- 7137 /* TARGET_EXPR temps aren't part of the enclosing block, so a= dd it 7138 to the temps list. Handle also variable length TARGET_EXP= Rs.=20 */ 7139 if (!poly_int_tree_p (DECL_SIZE (temp))) 7140 { 7141 if (!TYPE_SIZES_GIMPLIFIED (TREE_TYPE (temp))) 7142 gimplify_type_sizes (TREE_TYPE (temp), &init_pre_p); 7143 /* FIXME: this is correct only when the size of the type = does (gdb) p temp $1 =3D (tree) 0x7ffff760d3f0 (gdb) p debug_tree(temp) > addressable used ignored read VOID t5.c:4:1 (slightly different compiler) TARGET_EXPR ; TARGET_EXPR (__atomic_load_16 ((const volatile void *) &c, 5)))>; TARGET_EXPR ;, __builtin_ia32_fnclex ();;, TARGET_EXPR = ;, TARGET_EXPR ;;, __builtin_ia32_ldmxcsr (D.2771);; if (__atomic_compare_exchange_16 ((volatile void *) &c, (void *) &D.2763, VIEW_CONVERT_EXPR<__int128 unsigned>(D.2764), 0, 5, 5)) Note for C++ front-end, it uses error_mark_node for here rather than a void type for D.2762 ( D.4640)=