From patchwork Tue Oct 3 17:18:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 14885 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2290194vqb; Tue, 3 Oct 2023 12:02:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkDz1Es9SE47FxJCxZbG8U67IJdsNlSfeDw01M6qHg505LujkSZ90XKv6AmjR9u6HKEFYE X-Received: by 2002:a05:6402:1296:b0:523:41e1:705e with SMTP id w22-20020a056402129600b0052341e1705emr50432edv.21.1696359773425; Tue, 03 Oct 2023 12:02:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696359773; cv=none; d=google.com; s=arc-20160816; b=mlGpc5kadiTKJ0GRfg6TZsllw+Dx2fh53aP/CcHiyr/1No1bJksj/vcfyBOfPkm3Aq az9dI9iURUihMz3KvBuT0wy5M505uWmjuKgBYCRkIqy/mX7bb5JbwdWbFRr94hrfqMvI 2h64LSVl7xqWXXUzd+DnO7LiuP/g2uHmCoRh4sQ/oa+aCENRdrxoDi9Bmkgdgdy+8BM4 CP1kZkClrlgwAu4OBBaPOX7jR6GZCfGAQoewzn2ToUpGh73LjA8kOvxkTm8t1sZP6+/Y rFMfiNHckY8cqInHZTq5yn3IFiJH/oQG5FWUQg/A5v+vl8vs7mSuy/iSV0DsJ9Fwc7F3 3LhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=jfx+jvRTTklhS4o7aobWGuk5agNqovj19Nyvrn+gpvk=; fh=tWtX2nBowArQFpO5tL5gtY10/+xKa8dUFoy2HZVoc4M=; b=bfKeO8fTaSik9Xorz7f1CNmriSU3lRsh+gHkPXES4d01hAoIrUlJRLEcrSZ0uB1rJ6 JTAKfdvP6plY1S/n7DKnpGUBC3cCOQRDzAGe0FQcD2Qr6qa+pdRNIfSAt0x07YxZVCLk ZdZGku6u4BlmzuD2ENyVbJsBCDYMYO1n1qEfmhcg/ZHnvEFrFwg+xRCm8hJtZL1UZpU/ +MgHlJMeay2GWnMxlxkxPR0H6Z8o0jSRtqNfAs+OFTzEyhzrXCfsLrmYWoD5z9RKrBef I+iJN+EIbwZcrRgPGIzuTMKcQ29wET/2hQKlQqMuuRqRM0JDNEuVqqLRa9N2qCr8od30 CIUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=bL3EetWJ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id j22-20020aa7ca56000000b0053445f6ec46si866476edt.279.2023.10.03.12.02.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:02:53 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=bL3EetWJ; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 171043830B64 for ; Tue, 3 Oct 2023 17:19:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id 5BDF43858D39 for ; Tue, 3 Oct 2023 17:19:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5BDF43858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-3528bc102adso4209545ab.2 for ; Tue, 03 Oct 2023 10:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1696353540; x=1696958340; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jfx+jvRTTklhS4o7aobWGuk5agNqovj19Nyvrn+gpvk=; b=bL3EetWJOLuDm8HiM1sdIXCW8kqG+T6bQo8+1AB9oy0m5dOaIGlKLxsV5KuOUz0OBb Ru1p86DyntQOLiSRPD9iUeR4eXOxJ6iWGjjHEymRXgThhVwylV9cCQBV8WOSrVyOEM09 uXc05vu8pK4knRYrvVDuSwvbGO7VWfKsypUnfXfZRfUIqt2gpwQu7XA+xwWnAsyMTE2p XKv2GHKPyqntSZLyBWBDOOc0+7Wcy8eDXnpy2kkd2N+rA1mfCh/Zj+4hzomkuiMSS+Na paH4BNHXXjCWlsyQNXg2xWnnVcI0q40j+5yawzjdY4lPgwY9Obq67TpgbrJIH75VS8O/ gH9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696353540; x=1696958340; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jfx+jvRTTklhS4o7aobWGuk5agNqovj19Nyvrn+gpvk=; b=jElqSEjiRaCDaxRxUE7kSqw8NL99c9SC2w4Y6Gj672lmjVWutNY9EfqgvVSpcAtH5l CFddLhwRwdCub2Lft66wy6GvegrhxkYib5PZ3c9B9WnkKlQa+KHUhOysxLoBAuWBlFBZ 8owFDirbS/T440U6AeD4pY90GMh0ZQicEE0Yq10YW0306ZZcSWOtRWqLJGHumYAyGi7u K2EdT7oqkD1dnKiNhLx281o9xkxyxtuZ7HDjDJM3ZjvZWQUhAq1Mv1T/8jQwMhrbbeis 5xaRNfqyBRT5+1WZWh5qDwBZu3M0+i6+xp9DcFg8glgeyksAd364QswOrluSLUN1TnTq s9+g== X-Gm-Message-State: AOJu0Yyw+N+p1wIwQEUcDOhfXTZ1i4ckai8BnzNIFKtHE8Kx/KqcbRvH 1Ftb3FRwq4aepJJjuSTtAz0Q6N1bInNeEk7S8r3/ng== X-Received: by 2002:a05:6e02:214d:b0:352:620b:f8b with SMTP id d13-20020a056e02214d00b00352620b0f8bmr111149ilv.9.1696353540562; Tue, 03 Oct 2023 10:19:00 -0700 (PDT) Received: from localhost.localdomain (71-211-130-31.hlrn.qwest.net. [71.211.130.31]) by smtp.gmail.com with ESMTPSA id p7-20020a92c607000000b0035134215863sm480967ilm.55.2023.10.03.10.18.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 10:19:00 -0700 (PDT) From: Tom Tromey To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [PATCH 0/2] A couple minor _versioned_namespace patches Date: Tue, 3 Oct 2023 11:18:49 -0600 Message-Id: <20231003171851.1161340-1-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778762145578735158 X-GMAIL-MSGID: 1778762145578735158 While I was working on the flake8/black patches, flake8 pointed out a bug in xmethods.py. This is fixed in patch 1. Then I found the checks of _versioned_namespace to be a bit odd, so I wrote patch 2. Tested on x86-64 Fedora 36. Tom