From patchwork Sun Sep 23 10:08:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Fran=C3=A7ois_Dumont?= X-Patchwork-Id: 186193 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 270E02C0085 for ; Sun, 23 Sep 2012 20:08:55 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1348999736; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=+R1Zbx0 jxCl0UuAfWuImmaVb8+U=; b=XKorD/B89nI3KayIqDtJ8EJHDlP8Z/cOEG6WL4n MDVgIMKFuXCdc/FvdyCJGZcwoHD4HHRk3+k6/9hQRp/LBcBU09o4dITZeQTghTFg tPLShfmGBpXX8f1uvHgGGd8AuWcrnLBGaUNBGOsdDKqX8YuLtrXmf11HmqpKQ4Pk 0QTM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=hUwhuzjcn6wR9gE75nUHI6bmSTysxxKJoLxFW4GvXQiPcBRuG+7leY55JkSkAo WnePxT1ljg+K2PVJXEzO5uK7Mz00NFcVR3rX45prSTR8dNygL2jPy38AiAULxvQd 7E4Y96CnefS3lLdFenOh7Qq3EeWkEQmOJN1UKgXnlywr0=; Received: (qmail 13722 invoked by alias); 23 Sep 2012 10:08:36 -0000 Received: (qmail 13697 invoked by uid 22791); 23 Sep 2012 10:08:35 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-ey0-f175.google.com (HELO mail-ey0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Sep 2012 10:08:22 +0000 Received: by eaad12 with SMTP id d12so1529046eaa.20 for ; Sun, 23 Sep 2012 03:08:21 -0700 (PDT) Received: by 10.14.179.137 with SMTP id h9mr11536102eem.22.1348394901035; Sun, 23 Sep 2012 03:08:21 -0700 (PDT) Received: from localhost.localdomain (arf62-1-82-237-250-248.fbx.proxad.net. [82.237.250.248]) by mx.google.com with ESMTPS id k41sm37360825eep.13.2012.09.23.03.08.18 (version=SSLv3 cipher=OTHER); Sun, 23 Sep 2012 03:08:20 -0700 (PDT) Message-ID: <505EDF90.8080405@gmail.com> Date: Sun, 23 Sep 2012 12:08:16 +0200 From: =?ISO-8859-1?Q?Fran=E7ois_Dumont?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120829 Thunderbird/15.0 MIME-Version: 1.0 To: "libstdc++@gcc.gnu.org" , gcc-patches Subject: Fix code regression Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi I detect this regression while running performance tests. I think it comes from: 2012-04-12 Benjamin Kosnik * include/bits/unordered_map.h (__unordered_map): Remove. (__unordered_multimap): Remove. Add aliases for __umap_traits, __umap_hashtable, __ummap_traits, __ummap_hashtable. (unordered_map): Derive from __umap_hashtable. (unordered_multimap): Derive from __ummap_hashtable. * include/bits/unordered_set.h (__unordered_set): Remove. (__unordered_multiset): Remove. ... 2012-09-19 François Dumont * testsuite/performance/23_containers/insert_erase/41975.cc: Use __uset_hashtable rather than now missing __unordered_set. Ok to commit ? François Index: testsuite/performance/23_containers/insert_erase/41975.cc =================================================================== --- testsuite/performance/23_containers/insert_erase/41975.cc (revision 191279) +++ testsuite/performance/23_containers/insert_erase/41975.cc (working copy) @@ -40,8 +40,9 @@ const int nb = 200000; start_counters(time, resource); - std::__unordered_set, std::equal_to, - std::allocator, use_cache> us; + std::__uset_hashtable, std::equal_to, + std::allocator, + std::__uset_traits> us; for (int i = 0; i != nb; ++i) us.insert(i); @@ -125,9 +126,10 @@ start_counters(time, resource); - std::__unordered_set, - std::equal_to, - std::allocator, use_cache> us; + std::__uset_hashtable, + std::equal_to, + std::allocator, + std::__uset_traits> us; for (int i = 0; i != nb; ++i) us.insert(strs[i]);