From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 9CC82385841D; Tue, 2 Apr 2024 15:57:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9CC82385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712073468; bh=6D9ZJ84ReCRStqzDksbab3RDeMpgBHVGEugTZtiF2Bs=; h=From:To:Subject:Date:From; b=Y7bDRIW0M1Vw0oYTr+gewvCimqRF6RnYihHr77GZqybftBs2ueFDZIGjC33GlEskC mm8e4SSNzEw3i9io8nfehfIpZAFwIbUED0W8+76qivSDmI3AJy9W9fIsPSiRnuacey CK3TqXow7CfpKaweCTDqssC+70amJ9N/3IiePo7o= 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: cd59efef1a813e73bc7982cea09fd70a8e4387ed X-Git-Newrev: db827c3d6d54d46d0b0c7800d3ac16431347c9e0 Message-Id: <20240402155748.9CC82385841D@sourceware.org> Date: Tue, 2 Apr 2024 15:57:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=db827c3d6d54d46d0b0c7800d3ac16431347c9e0 commit db827c3d6d54d46d0b0c7800d3ac16431347c9e0 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 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