From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from confino.investici.org (confino.investici.org [93.190.126.19]) by sourceware.org (Postfix) with ESMTPS id 7F580385842B for ; Wed, 27 Apr 2022 18:07:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7F580385842B Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4KpRXj2j5Wz10yK; Wed, 27 Apr 2022 18:07:01 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: andrea.monaco@autistici.org) by localhost (Postfix) with ESMTPSA id 4KpRXj1J9nz10y9; Wed, 27 Apr 2022 18:07:01 +0000 (UTC) From: Andrea Monaco To: schwab@linux-m68k.org, jwakely.gcc@gmail.com Cc: gcc@gcc.gnu.org Subject: Re: No type checking in ctype builtins In-Reply-To: <87mtg65xom.fsf@igel.home> Date: Wed, 27 Apr 2022 20:07:00 +0200 Message-ID: <87pml21juj.fsf@autistici.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2022 18:07:08 -0000 > Try -Wsystem-headers. You're right. That showed a warning. > You need to suppress the macro to get the builtin. That means a macro expansion takes precedence over a builtin function substitution, if I understand correctly. It makes sense, because preprocessing happens before compilation. Maybe we could mention that in the manual, for example in "6.59 Other Built-in Functions Provided by GCC" (https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html). Andrea Monaco