From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79725 invoked by alias); 9 Sep 2017 08:30:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 79094 invoked by uid 89); 9 Sep 2017 08:30:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=bonafide X-HELO: mail-io0-f172.google.com Received: from mail-io0-f172.google.com (HELO mail-io0-f172.google.com) (209.85.223.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Sep 2017 08:30:55 +0000 Received: by mail-io0-f172.google.com with SMTP id j141so9746437ioj.4 for ; Sat, 09 Sep 2017 01:30:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=T82mzzNmMjew0ZI+rgVpXmvl2FWlnQUw78T3cGz8cN8=; b=PhGbYF0F9bRYmSo2yYv5dRvRu4MOPvVqqDeXNDrIZGfW+Wccqvqi3/iBkP6faE5pz5 YOt7LVBx5WYPBKY3LZb1Dvacq6DBp6p83j5d2nXJ2yI6NDj3E06/2L/6fqO+RG8x9VTp krTcibi/WhCEG9IFLFMHhkkXFuLFEyIOPMNgV+w8SpWhpLjGGWG3fD+Q9qfJobLlamwB e0w/fEn3AYhoGFnGSX827dAOLMqSJ1bJSJ1N0u82gzRgOAgo9zCyUZApL6sA89BDMGlh XiDRSqY/DLV2NBK6eNrXOEYeiMZn+DId6zeKqPRU3t5gyEjUi0N4kWsdZlkXCBTPs928 q/6g== X-Gm-Message-State: AHPjjUhMS0B3igD/xJTOaPjzLZkQ+mSn7EDPMJagC8+AnUXg+p9a7h94 I4elX68cXhaPzgoOeQ3HDJLAFTQE51Bx X-Google-Smtp-Source: ADKCNb5KpKq9XBAMCU+SgA8MScqGvRa+DNCtzmYPQxLa8033aZWggIp4NlhZrnG/4AxUpe9tqXY1Qq4gqDk39bogFOU= X-Received: by 10.107.36.144 with SMTP id k138mr6491092iok.205.1504945853602; Sat, 09 Sep 2017 01:30:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.181.23 with HTTP; Sat, 9 Sep 2017 01:30:33 -0700 (PDT) In-Reply-To: <1514184.0xIGq3mKY2@polaris> References: <4078981.6jQ9KEkrUD@polaris> <8F5955E0-4B06-4668-9BCC-233E90F6F7A0@gmail.com> <1514184.0xIGq3mKY2@polaris> From: Jason Merrill Date: Sat, 09 Sep 2017 08:30:00 -0000 Message-ID: Subject: Re: [C++] Fix PR bootstrap/81926 To: Eric Botcazou Cc: Richard Biener , gcc-patches List Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00523.txt.bz2 On Mon, Sep 4, 2017 at 10:08 AM, Eric Botcazou wrote: >> A solution would be to put them into a global GCed pointer-map or vector, >> freeing that at free-lang-data time. > > Here's a version that implements a bona-fide type->offset_type map. > > PR bootstrap/81926 > * cp-objcp-common.c (struct offset_type_hasher): New class. > (offset_type_hash): New variable. > (cp_get_debug_type): Associate the OFFSET_TYPEs with the types. This looks good. But let's call it debug_type_hash instead. OK with that change. Jason