From patchwork Sun Dec 22 00:04:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 852883 Delivered-To: patch@linaro.org Received: by 2002:a5d:4888:0:b0:385:e875:8a9e with SMTP id g8csp2767270wrq; Sat, 21 Dec 2024 16:05:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUfBLAzpb6eeZs5w2J2QM3/s4M2DlCV/8Wbe8HLhdlaF6xmDpeTYGVttSGQ0Ux/d3Qdpx8i8w==@linaro.org X-Google-Smtp-Source: AGHT+IF12G4Nrf+Dr/LwPZlwjvxqG9Fd4lPXEB2pl0K0mTDrwrRfbOtddtC5yzEAaERuGtq7EHv0 X-Received: by 2002:a05:6214:250e:b0:6d8:a84b:b508 with SMTP id 6a1803df08f44-6dd2333ae04mr124935076d6.12.1734825944896; Sat, 21 Dec 2024 16:05:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734825944; cv=pass; d=google.com; s=arc-20240605; b=h4Tr0TAL2mMI2rfBKp8AaEsF84UlsJS9TnI7J4BISbr+7i244lNIjYgNNr+o/RUw1H BDz2zQk8Gryom7vtIIAfPXEEvlwe34C6clNIHQ2Z2VDvJ3/Pb4Vzoc5fEgOWEV8GIw0B x3JzIOpK+ixExLy4ZPaW7wFTJ6gvqVlp1x+acmVAb28yR/TyzVc+dglkld78KuIOqDkT ejEAs6XBZHD8uKtQt1idvjR+SUFh9gn69mXqle0tsSdc4SKI0xq8b3CdyVSITGgTWpmQ O+VgZb1xkwRbckqufdqIciT5kykptFmQfIsMVvBwA/QmBHahNpN5tbH9IxjtKV/y5lSt iftw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter:arc-filter:dmarc-filter :delivered-to:dkim-filter; bh=MWAZwz5kOz38b83iEzfAOUSnRi9+DecNfFKtExNqKuU=; fh=uKlFkH9AUukvL1xmvBA9M7Oe4ntiJIR8HCR4+3TPd4w=; b=AabF7bWhYLkgwo60g321OVOjYiBD9vXaJ/RqI/O969q1wsQLI0i+Yqtw8n7Af8nEf2 4Xn/6eIDIQXumQ4UkjY0/Fa/xiwcjGUK+4197bUqMGwJV277KMWMaWKG9/Yrz1svNwAc h6IAW+zffAgcqP5jEf/o8U+U/qsYjnFXu4XGWK6p1BFDlYEtIVuu2y7gw/f5HrCVDMcl qKCod+HTTZB36+ARsA7jEJeu6nYeOO7GLF1NgLNMy26a9iolDHfQ7QssQdybp/HzCXWi bUEBoGVcNQKAjmlZKSAzudgrTjcQpTIVXmqvdGjLoWNTaAMlfDfOjFdMsY/coe+Gb/8U ndqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ipnm4pmr; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id 6a1803df08f44-6dd1810c125si74682466d6.32.2024.12.21.16.05.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:05:44 -0800 (PST) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.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=@gmail.com header.s=20230601 header.b=Ipnm4pmr; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 525D3385829B for ; Sun, 22 Dec 2024 00:05:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 525D3385829B Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Ipnm4pmr X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 337253858D3C for ; Sun, 22 Dec 2024 00:05:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 337253858D3C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 337253858D3C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825915; cv=none; b=twwWeb9gXUCS6k078E6GCNQgFGcKRL4Gsk9BHwjwAup9lINrXHFzhyZgsCvJvrWjimihYGf5VxIyi2rvyw8jD3rdOQm+lTuOwMrcGhfJTPBCeJFuDhSpPT0qkZl02BaEyku/fTcPh1GIU8QGVK2waYVI48o7WIs6tlzSgpXyQno= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734825915; c=relaxed/simple; bh=ikZz5hJRCHjXUxmueFOXcJw6SVEjH/tnmBlIM7F70nA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=LwHcpq8R9rd6HwdDIkd/+y+lbUyvlj8XS9eZUo5sJrxh2TDPSPyVKyTMs/z7dzTQdghFm38Knio+kYC7m1VnP3QJ7VdMhMPLQhfUhvDC1m1zxFDie1hPs2puCw4gtDXGbPwsXYFMc9gC0b89+HQ4V3YZQz2j4lECpTbS8AhkHXY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 337253858D3C Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-215770613dbso20994855ad.2 for ; Sat, 21 Dec 2024 16:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734825914; x=1735430714; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MWAZwz5kOz38b83iEzfAOUSnRi9+DecNfFKtExNqKuU=; b=Ipnm4pmr7M8qylSifKLmIGxF1gg6ATIVWYqAlbS5qa3YichchOrVFtArnNnKJNYQLV Co/6tzBvIBqeimbYE1PPPPwaIeVYdz7B9oe+Q3d8fRYT5+hHkgQjCnODp5TI/8vUz4gk jSLEadTQsxQuWkM07hcc9UD6qWtfnVJzpKCy3AKumBl2oxp2D4IxaYpbRv967Spuzyso OVSB7N/fgSM2EEs9UggzrDhox0Mvz7gMysfPke91uW094CxRLn7dMkkOAt33cyQcNk27 BPhTpIk8zzZZA1oFin57Xy/4ztRweYb+d4+gSvC9E4F1z+NqNq3stmPJxCwAJ/7voGV7 qg9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734825914; x=1735430714; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MWAZwz5kOz38b83iEzfAOUSnRi9+DecNfFKtExNqKuU=; b=Tkhk9lRV02Lwkpr886AeyrIYqkM2pPqH8urgOKfUQO0OxWGL4QpaPkXaO0F5v/tcbZ GeeBLhEtlHBpaWq6P83dopytFNrjArigZCrWivFTaaytXY06D3QB8prqIp8a2woqf+rg K/gzWSoS3bQp6Wp5863N3O1E+K4a8ildQ4Hvd1CHYNKB56hNPX6W+4Fq23uSteQQepVQ VPSw+KVAT81NFxUubocSlQTio/SMMLk+B+fWsAV9+zolTzkLMvd8ghOABOpEkp3F1YDm ///DTEI4EOiBbc8cEakrM0lLplbpgbH1f5Lt8tZFTrLybONJMGnEdbJIbiBLa0CeXgOb /5bQ== X-Gm-Message-State: AOJu0YyVgUOH5Zr3ame5VfcG1Ad9emh5spHnMzInN3dVbz0DUOfpSXtH KM8yNnIlb86LkugPOHfKNTn7Ay359OPnupVm6jeAkaNZSih2HytzQmxWSYouBBwPAQ== X-Gm-Gg: ASbGncvrQVJ6pX8pVja51esJbtmpn55/2mgKKs/RKvnIHz4a9OSkZEqDwOHeeYkL4Xj XETbkSIn4DTTvzliWnNTPjk/5dvd5QxnozHd7I+Dn04sXInd2JI/NS19QoCTgLFM7IVrVTKf4xM uY6zVQHMrR8cUoVV7VKb7dG+UZVFNKQQ9fX1i7HKHVT9irlqRT574HbG22famuVaa4dMBCcXuXc Ol2DJEbUub6YmPpPSXZY2AlRPF8nfGU48FJstWIWoYFZoOCkJ4sdV1aEoyJ4xcIduteCeg= X-Received: by 2002:a17:902:db06:b0:216:2bd7:1c49 with SMTP id d9443c01a7336-219e6ebacdamr107287035ad.29.1734825914012; Sat, 21 Dec 2024 16:05:14 -0800 (PST) Received: from gnu-tgl-3.localdomain ([120.204.185.181]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc96e76fsm49108035ad.65.2024.12.21.16.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 16:05:13 -0800 (PST) Received: from gnu-tgl-3.lan (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id A15EFC05E3; Sun, 22 Dec 2024 08:05:11 +0800 (CST) From: "H.J. Lu" To: libc-alpha@sourceware.org Cc: sam@gentoo.org, Adhemerval Zanella Subject: [PATCH 01/39] conform: Use -dD instead of -dN on compiler invocation Date: Sun, 22 Dec 2024 08:04:24 +0800 Message-ID: <20241222000509.2205895-2-hjl.tools@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241222000509.2205895-1-hjl.tools@gmail.com> References: <20241222000509.2205895-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org From: Adhemerval Zanella clang does not support -dN. Reviewed-by: Sam James --- conform/conformtest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conform/conformtest.py b/conform/conformtest.py index 8337afcdad..d38afb06a8 100644 --- a/conform/conformtest.py +++ b/conform/conformtest.py @@ -620,7 +620,7 @@ class HeaderTests(object): out_file = os.path.join(self.temp_dir, 'namespace-out') with open(c_file, 'w') as c_file_out: c_file_out.write('#include <%s>\n' % self.header) - cmd = ('%s %s -E %s -P -Wp,-dN > %s' + cmd = ('%s %s -E %s -P -Wp,-dD > %s' % (self.cc, self.cflags_namespace, c_file, out_file)) subprocess.check_call(cmd, shell=True) bad_tokens = set() @@ -639,11 +639,11 @@ class HeaderTests(object): # macros defined by user code including the # header.) continue - match = re.match(r'#define (.*)', line) + match = re.match(r'#define (.*?[^\(\s]+)', line) if match: self.check_token(bad_tokens, match.group(1)) continue - match = re.match(r'#undef (.*)', line) + match = re.match(r'#undef (.*?[^\(\s]+)', line) if match: bad_tokens.discard(match.group(1)) continue