From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE6373945C12; Fri, 20 Mar 2020 16:26:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE6373945C12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584721605; bh=XqzasA9NiE3avfMFYt6L+sG2NxlGLIRBxllsLULCHhY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gaUSHmQ8q56brxO/PuITBUV7p51udeGCG10ajTHLo8sYOdmOmh8Jf6I4hcJwx7sJY PaZvuUcTqX1D3Dv4TzSkfdODh+Zyagh04xKFefOV7wzlcPwuilNyemXkRzrmnPqKWS WyGGNwVgHkqeHFXu8OfqIYr83Vvh7LS+8WbHgc4E= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/91027] [10 regression] SEGV in hash_table::find_slot_with_hash Date: Fri, 20 Mar 2020 16:26:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Mar 2020 16:26:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91027 --- Comment #12 from CVS Commits --- The master branch has been updated by Iain Buclaw : https://gcc.gnu.org/g:b5446d0cc09e6a931065b98101d799711fd5b035 commit r10-7302-gb5446d0cc09e6a931065b98101d799711fd5b035 Author: Iain Buclaw Date: Fri Mar 20 17:26:29 2020 +0100 d: Fix SEGV in hash_table::find_slot_with_hash This patch fixes LTO bug with the D front-end. As DECL_ASSEMBLER_NAME is set on the TYPE_DECL, so TYPE_CXX_ODR_P must also be set on the type. The addition of merge_aggregate_types is not strictly needed now, but it fixes a problem introduced in newer versions of the dmd front-end where templated types could be sent more than once to the D code generator. gcc/d/ChangeLog: 2020-03-20 Iain Buclaw PR lto/91027 * d-tree.h (struct GTY): Add daggregate field. (IDENTIFIER_DAGGREGATE): Define. (d_mangle_decl): Add declaration. * decl.cc (mangle_decl): Remove static linkage, rename to... (d_mangle_decl): ...this, update all callers. * types.cc (merge_aggregate_types): New function. (TypeVisitor::visit (TypeStruct *)): Call merge_aggregate_types, set IDENTIFIER_DAGGREGATE and TYPE_CXX_ODR_P. (TypeVisitor::visit (TypeClass *)): Likewise.=