From patchwork Mon Feb 17 13:22:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 1239227 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519644-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=LiOk2sIs; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Gf3GbI7d; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Ll6b1lBQz9sRG for ; Tue, 18 Feb 2020 00:23:19 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=PbBYh2YLfF8Q87UoSmis/FKua8wHGwOsllAfeBpz3m+Pf/8/FtUEQ 9CKTSupiIpgMnicWIwibHCgXiFGbH5KNIEpFG98Ar3xkI09lwbRmDshQo3ldhqbh WL3rLMSWTqucxbieASG4aawAGmzhdE/qZKuipxCoRLCh3mvjlfMT5M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=OICVeFxj/XzPM+1V0vEn2Ug0Ksc=; b=LiOk2sIsGycBR1JDSk2x y3N5egpWOurTrO4MNIyYnx/th6xGyznB3vMC8uRr6VE1dKQH+ICJfs9TTz8+212H abwhKR9ECGFb/oHynW0ZYdp5t+86I0n2VOng2AEtv/GcNE54ttEzoBTYBHZRk47Q acrpLq5KufNQo5Ly3ERnZdQ= Received: (qmail 28260 invoked by alias); 17 Feb 2020 13:22:43 -0000 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 Received: (qmail 28180 invoked by uid 89); 17 Feb 2020 13:22:42 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (207.211.31.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 17 Feb 2020 13:22:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581945759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=IYtVLE2pgLzVccLLY/5yTT+XQHIdnUaHvqWAFDYlp9U=; b=Gf3GbI7di+XDxfNejm3R2VQ98j0mtu4z1L8NV2ZN6o4OXeE4RIurkpQSy0S+224h/yLHpc nYFzaJikXIITadgZo9jXQaAUaLO7zvOFqvsmt+T8GCnPiQnfPq8BvcGv1V179x8Tu5RJun sa4hsMQle5Q4LQmbNkEa7QjtKckbpTA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-263-6D0rdPmJP_6mPhzBnr6J0Q-1; Mon, 17 Feb 2020 08:22:36 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CC67A800EB2; Mon, 17 Feb 2020 13:22:35 +0000 (UTC) Received: from localhost (unknown [10.33.36.167]) by smtp.corp.redhat.com (Postfix) with ESMTP id 79D98857BB; Mon, 17 Feb 2020 13:22:35 +0000 (UTC) Date: Mon, 17 Feb 2020 13:22:34 +0000 From: Jonathan Wakely To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc Message-ID: <20200217132234.GA1504959@redhat.com> MIME-Version: 1.0 X-Clacks-Overhead: GNU Terry Pratchett X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline * python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update value for partial_ordering::unordered. Tested powerpc64le-linux, committed to master. commit 4540ef781bcefffe779a8b31950ea737733f06a4 Author: Jonathan Wakely Date: Mon Feb 17 13:20:57 2020 +0000 libstdc++: Fix regression in libstdc++-prettyprinters/cxx20.cc * python/libstdcxx/v6/printers.py (StdCmpCatPrinter.to_string): Update value for partial_ordering::unordered. diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 7f69b0be9f1..e4da8dfe5b6 100644 --- a/libstdc++-v3/python/libstdcxx/v6/printers.py +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py @@ -1435,7 +1435,7 @@ class StdCmpCatPrinter: if self.typename == 'strong_ordering' and self.val == 0: name = 'equal' else: - names = {-127:'unordered', -1:'less', 0:'equivalent', 1:'greater'} + names = {2:'unordered', -1:'less', 0:'equivalent', 1:'greater'} name = names[int(self.val)] return 'std::{}::{}'.format(self.typename, name)