From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: master 37889523278: Add new `swap` macro and use it Date: Sat, 27 Jan 2024 01:27:06 +0000 Message-ID: <2f5a5ec4d5397d558f7c@heytings.org> References: <170452579053.27998.16123231327386305897@vcs2.savannah.gnu.org> <20240106072311.28B8FC0034E@vcs2.savannah.gnu.org> <87plye9ahs.fsf@yahoo.com> <83o7dyua0d.fsf@gnu.org> <87le9297ei.fsf@yahoo.com> <87cyue92fx.fsf@yahoo.com> <877ckm8uzz.fsf@yahoo.com> <83v886sgtl.fsf@gnu.org> <4719da9bc2bbcffdb634@heytings.org> <87bk9o1ooo.fsf@yahoo.com> <87ttncw6qz.fsf@yahoo.com> <87plxzwk2u.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Eli Zaretskii , emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 27 02:27:42 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rTXTy-0001kT-95 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Jan 2024 02:27:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTXTW-0000pS-KW; Fri, 26 Jan 2024 20:27:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTXTR-0000p6-EC for emacs-devel@gnu.org; Fri, 26 Jan 2024 20:27:09 -0500 Original-Received: from heytings.org ([95.142.160.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTXTP-0008Vy-R0; Fri, 26 Jan 2024 20:27:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1706318826; bh=YwyK5Vw7HnJnkNF3rQ6KyM+9WswneoEp9FNkiUXjiBA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=VnxrjRc8FOOkt6X5aU4611tf/1l3nZ8gWlDfXryS3HE7EMtQia7N2Xac9zm2F9P/2 WBC5/EV1Z7VaAEdAOAIC6bmp5wfpUrgfxku45nxzzOsXcNaoHRwfuPJd8vpk6Eck9d e50qu7JEDa+433N0c1y9Ic0CoDvHJCc450AR9i5j7iaH/7ROoJT6OsTGD+WQndWHH3 ZtAcwTp03c1KuXiLgBqPqyfAsxNgBFKODEN8rlKjtNGqbNLcytA2GS9NT8U14fvjhw cx2gCs7Q+9UQ4THY+t2cromSS13EMhydAdsC5czBi5VchsRfhg4J6pBb36debly94n B0xmaEcDn3urA== In-Reply-To: <87plxzwk2u.fsf@yahoo.com> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315449 Archived-At: >>> As regards __typeof__, I recall a comment in a GLib header to the >>> effect that it was unusable under compilers older than GCC 4.8, so we >>> should also avoid it in the PGTK port. >> >> Which GLib header was that? > > /usr/include/glib-2.0/glib/glib-typeof.h. > That information is completely irrelevant in the matter at hand. If, instead of throwing it in this discussion, and expecting someone else to debunk it, you had taken the time to check what the words "We can only use __typeof__ on GCC >= 4.8" in that header mean, you would have seen that: - this is about GCC < 4.8 (ten year old compilers) - on a specific platform (PowerPC, which is rarely used nowadays) - on which GCC displays a bogus "value computed is not used" warning (a warning, not an error!) - when __typeof__ is used in a cast operation on the return type of a function. That's a far cry, to say the least, from "__typeof__ is unusable under compilers older than GCC 4.8". Much ado about nothing, again.