From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 5EBA33858290; Fri, 28 Oct 2022 17:45:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EBA33858290 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666979154; bh=kHGrZzvkTSc71+lHPIj0cvmsS2yQvJEIGdpTuVQ94cM=; h=From:To:Subject:Date:From; b=npQPpvvvctmqKtwW2Xv8RB1Z7j9fvVnw6uARlczeK1/HyMbQyJQwyD6jPz6sOkROP AlxnRqQnGVsYLnhb0PeYlZuQQSUbhx+b9ogV9XNr9AS3Bwn1qJJIAgEG+ctgG9IHUh TMJ/3Cg6G8ZKjftHrh60r/j6NiXrQy8xKfIDEH2k= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] conform: Use -dD instead of -dN on compiler invocation X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 7cf6733ee0e19b45f3dbba59a7b5893a36f7603f X-Git-Newrev: a61a5378f10debd61e8cd8e4e810dc2863631f3c Message-Id: <20221028174554.5EBA33858290@sourceware.org> Date: Fri, 28 Oct 2022 17:45:54 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=a61a5378f10debd61e8cd8e4e810dc2863631f3c commit a61a5378f10debd61e8cd8e4e810dc2863631f3c Author: Adhemerval Zanella Date: Tue Mar 29 09:48:27 2022 -0300 conform: Use -dD instead of -dN on compiler invocation clang does not support -dN. Diff: --- conform/conformtest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conform/conformtest.py b/conform/conformtest.py index 94a7ee110f..3d2b9cec03 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