From patchwork Wed Jun 12 16:01:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 1114662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-102656-incoming=patchwork.ozlabs.org@sourceware.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; secure) header.d=sourceware.org header.i=@sourceware.org header.b="fCw+avAn"; 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 45PBSB2ffpz9s6w for ; Thu, 13 Jun 2019 02:01:14 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=xQPx0GpeWrLvQEPOFCPl3ED0OeUpz QsVawRBr5hH6ZsBpw7VQOF2+G8FLiiz+1zRcLjAGbLSxILoJfF08PJPajXUiBmPP nxw9uNAbaR/nOSebc/+JEW75fVVcargMGoyRhXNp2hEYF+UEdFm+AXGuuOJvZOP2 IeRA2lPWldEX9Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type; s=default; bh=j2fSyzEBYamxSbLWrc6mAvtDGyE=; b=fCw +avAnDkI+DiuucVGe1di7C2/8W9yR6m85bfnp1al+LbbEYckovuseBirVT6NNh9Z k/Oq3Qd0erhSYJ5ul126Za9EG9W8ufYjH2E5yzT43UYbhK15ODK4kJwybjWbGQAt auBcLT8q2++DNgB63qhv2nagApKcsHwOUMfjHW7A= Received: (qmail 29834 invoked by alias); 12 Jun 2019 16:01:08 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 29821 invoked by uid 89); 12 Jun 2019 16:01:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:746 X-HELO: mx1.redhat.com From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH] : Inhibit macro expansion for __glibc_has_include Date: Wed, 12 Jun 2019 18:01:04 +0200 Message-ID: <87a7em6ben.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 This is currently ineffective with GCC because of GC PR 80005, but it makes sense to anticipate a fix for this defect. Suggested by Zack Weinberg. 2019-06-12 Florian Weimer * misc/sys/cdefs.h (__glibc_has_include): Do not use a function-like macro, so that __has_include can inhibit expansion of its argument. Reviewed-by: Carlos O'Donell diff --git a/misc/sys/cdefs.h b/misc/sys/cdefs.h index 638872b87b..ed146ce20b 100644 --- a/misc/sys/cdefs.h +++ b/misc/sys/cdefs.h @@ -413,7 +413,7 @@ #endif #ifdef __has_include -# define __glibc_has_include(header) __has_include (header) +# define __glibc_has_include __has_include #else # define __glibc_has_include(header) 0 #endif