From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 660893858031; Fri, 2 Dec 2022 16:13:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 660893858031 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669997608; bh=4Z9WEtZjMNo/SuvuT4WhIUVwON+h8r17U8C7awpIqZY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l0rWKXO0PzNGLDrzaLVt69AqT+KBfKy+YsmFiI5pikpjDJ02zyfTFawCD5TNjoP/0 F1AhQI0L+ox8sqRFGZPbQGjMbYfHoCiPSoXyPOWYNCNgVsbuy+RTVk0+wCEyNMmWAO K3qlFsjnQRnVWSpwPjbOR5QPU2VvMN1z2XsM5E4M= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107023] [10/11/12/13 Regression] [[gnu::stdcall]] Crashes the compiler, but __attribute__((stdcall)) and __stdcall worrks Date: Fri, 02 Dec 2022 16:13:27 +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: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D107023 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #6 from Jakub Jelinek --- The ICE part with additional -g is fixed on the trunk with PR106937 r13-3202-g67efffec9436 fix. Even just: --- gcc/c-family/c-pretty-print.cc +++ gcc/c-family/c-pretty-print.cc @@ -901,7 +901,7 @@ pp_c_attributes_display (c_pretty_printer *pp, tree a) { pp_separate_with (pp, ','); } - pp_tree_identifier (pp, TREE_PURPOSE (a)); + pp_tree_identifier (pp, get_attribute_name (a)); if (TREE_VALUE (a)) pp_c_call_argument_list (pp, TREE_VALUE (a)); } would prevent the ICE. I can't reproduce any cc1plus: out of memory allocating 18446744073537494608 bytes after a total = of 3219456 bytes nor any issue without -g though.=