From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67143 invoked by alias); 15 Jan 2019 12:27:26 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 67082 invoked by uid 89); 15 Jan 2019 12:27:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:714, DATE, H*f:sk:87sgxu7, H*i:sk:87sgxu7 X-HELO: mail-yb1-f179.google.com Received: from mail-yb1-f179.google.com (HELO mail-yb1-f179.google.com) (209.85.219.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 15 Jan 2019 12:27:23 +0000 Received: by mail-yb1-f179.google.com with SMTP id t16so946760ybk.10 for ; Tue, 15 Jan 2019 04:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=u2M+5M4Wwe7S22kDU3zJf5TcTY9MYuYOD0iJ/GqxgiQ=; b=Gx6KRV7FZdsGZeBbSdrJKkfWirIZ2G6BcXpGdjsXN9Y7YwnUQytx15uz3B0Tc4eWhi kBU39kZt+tZ7EiSGRBEd02b7K+OZW03ow/Og2UnNS+K/fuSCTCVd7TGsp87jioNs62h1 P6HW5f/VqqvNV1Cjg1mT7Sd0GuekQKwthrU7VeGFwul2DSO7bzZtMapRYZVc52U2XszQ ea2W68rmeVXI16YGqp4Cx84uwzuJDd7jSmz2vFXKYrVjKaEWHGFlzbLrZ1/nqjLffOBv WutrM0DpxT67KVTUxON4ztKv+x/HdrkhvGW9pA8nekU0jxUKbJDUqCGmV3nu6PzjowMK 7sJg== Return-Path: Received: from ?IPv6:2620:10d:c0a3:1407:e9d7:1d32:4318:1135? ([2620:10d:c091:200::5:1edf]) by smtp.googlemail.com with ESMTPSA id z37sm1126824ywj.3.2019.01.15.04.27.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 04:27:21 -0800 (PST) Sender: Nathan Sidwell Subject: Re: __has_include__ is problematic To: Florian Weimer Cc: Jakub Jelinek , gcc@gcc.gnu.org References: <87ef9kk304.fsf@oldenburg2.str.redhat.com> <20190110143230.GX30353@tucnak> <830f643e-d5a0-72be-abd6-e8a78c861c12@acm.org> <87sgxu7vs0.fsf@oldenburg2.str.redhat.com> From: Nathan Sidwell Message-ID: Date: Tue, 15 Jan 2019 12:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <87sgxu7vs0.fsf@oldenburg2.str.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2019-01/txt/msg00114.txt.bz2 >> Why not give the wierdo __has_include__ an unspellable name? >> ('builtinhasinclude') and take care constructing the >> __has_include macro expansion to have a token with exactly that >> spelling? > > Wouldn't that break -dM rather horribly? pah! > However, the following thinks __DATE__ is a defined macro, so there must be some other subtlety with __has_include? nathans@zathras:6>gcc -xc - <:2:2: error: #error DATE IS A MACRO (typing that makes me realize why users think it is __has_include__, that's a really unfortunate name to use for an implementation detail) nathan -- Nathan Sidwell