From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from www523.your-server.de (www523.your-server.de [159.69.224.22]) by sourceware.org (Postfix) with ESMTPS id 4443A382FD8A for ; Tue, 30 Aug 2022 19:57:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4443A382FD8A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tim-lange.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tim-lange.me DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tim-lange.me; s=default2108; h=Content-Type:MIME-Version:Message-Id:To: Subject:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=zA76AVP1yy+2z/PzKYOtUmqGb2N0E6io7+oYcrjwJLU=; b=cbofnXIymCep9HU6YlGG7zxcOu IYKWZ8cLIJb6gyzPSo1qriFHejjkgUtX205z6dLqbuYpEpxQIqOGPI612l3Lj25myB7Y6joGU0Dgm kv6G3YeSWb1TdfWKdQz9c/RExDiHZ5x4FNFmuSzncevb8yAYGVvTbFNkOIPdIrV8x8/wsEaH3I6h9 cIoBYvBXTkxDhwyej7gAE9PTru6AP2qd4dsuwjmiWJbj4r8iuMAslQ6xBN05tE/zEaRdrl7k6FKR8 7CJ3DqXZ1WEFqHuBXihV1GuI6+H11COKUOsC5XiRvRGiMkqazfOSRNcuTRqU0GikEOLEasQo2+x6R TRp/AD2w==; Received: from sslproxy02.your-server.de ([78.47.166.47]) by www523.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1oT7Mt-0001xQ-J8 for gcc@gcc.gnu.org; Tue, 30 Aug 2022 21:57:51 +0200 Received: from [2a02:908:1861:d6a0::6b5] (helo=fedora) by sslproxy02.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oT7Mt-0003Fm-EB for gcc@gcc.gnu.org; Tue, 30 Aug 2022 21:57:51 +0200 Date: Tue, 30 Aug 2022 21:57:45 +0200 From: Tim Lange Subject: Usage of the C++ stdlib unordered_map in GCC To: GCC Mailing List Message-Id: <942GHR.WGPY8O255349@tim-lange.me> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Authenticated-Sender: mail@tim-lange.me X-Virus-Scanned: Clear (ClamAV 0.103.6/26643/Tue Aug 30 09:54:13 2022) X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, I was preparing a patch for GCC and used the unordered_map from the C++ stdlib in my patch. Later on, I noticed that it is used nowhere else inside GCC except for some files in the go frontend. I wondered, now that building GCC requires a C++11 host compiler, whether there is a consensus on which data structure implementation is preferred. Should I rather use a hash_map instead of an unordered_map or is it on my side to decide which one I choose? - Tim