From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Some experience with the igc branch Date: Thu, 26 Dec 2024 16:12:52 +0000 Message-ID: References: <87o713wwsi.fsf@telefonica.net> <86o7112rnq.fsf@gnu.org> <867c7p2nz4.fsf@gnu.org> <87y104aih6.fsf@protonmail.com> <87ikr89gyp.fsf@protonmail.com> <87jzbn8zmu.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10216"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Gerd_M=C3=B6llmann?= , Eli Zaretskii , ofv@wanadoo.es, emacs-devel@gnu.org, eller.helmut@gmail.com, acorallo@gnu.org To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 26 17:13:49 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 1tQqUf-0002XV-45 for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Dec 2024 17:13:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQqTr-0006Hq-1N; Thu, 26 Dec 2024 11:12:59 -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 1tQqTp-0006Hg-S2 for emacs-devel@gnu.org; Thu, 26 Dec 2024 11:12:57 -0500 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tQqTn-0004YJ-VE; Thu, 26 Dec 2024 11:12:57 -0500 Original-Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5d3dce16a3dso11577332a12.1; Thu, 26 Dec 2024 08:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735229573; x=1735834373; darn=gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=XAGocqUSw+ETjNInxoUngQQjyYjf1PgKCNgYmrTqStg=; b=JPH4/ZNB2RFaySPaCegj4Y/KMa0UQqKBaxKX9uwYOlrz0foMq/wYujSlCe3pgISNXQ DGWRY8zbRgN8VfxXos7frKj9rjHpKrHlc5wDv1UU8PQYM//FL+59DD0ZXojx/4oiBgOr /dDyshBlnzkkLktvcVNPKNSTYSivYXUhTBiwg/xNnHzE+meoHiCX5A8mhwheDxalxvwK YUwDANYeFo+4bYnRBaV0C1piDurtkqn1G9tGnqfz28hrwrxdo49wJqiTIpza6FNFMY2/ WJZzIkInciVFoXdYzt0wOd2CdGVIug4RtF2HnnnCziuKfJ2+EAi8NxHkpiN7IQq8DEdq N0Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735229573; x=1735834373; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XAGocqUSw+ETjNInxoUngQQjyYjf1PgKCNgYmrTqStg=; b=d7Wm9eYhv81DyADE2nDS4LENhKJRnYiPqRIbpD5vKa3nO2jqy4rFtM74FPJ6kO8oVm sR9WthWgjEFBuuCRUmZjYTi1ec0GjbYTpJi79ZL9e9cZdA5k6fY9yoyvUlaHOhGnF5kW E5E3lAskJU71JSI5G+kNCNH3xGCv6Gt+7ZNhPtNaCoPg77ZxxgoWl5a9gdxO2ywFhGP2 RU5MTpzAQed27jyH5+L+wWZ3bIuK9gwex2X6vw4Dw5edk+NDYsmsxQCzWI9+7WkujkN5 RUGbZMQeqGtfb06fydEsu3r1Xhrr3y3RGUf8s875DM4ABuOF3FdgojFxTDB5Xg0EbC+i bvlA== X-Forwarded-Encrypted: i=1; AJvYcCUNynJYOnaKGzCJLUTK5pXiI82Z0Vrj5f5r6hXjAIh+nE6+q9UKqVTyNlWzDfUQKce4qNxMgg==@gnu.org, AJvYcCUpm/yjSJG/akfUWeXGnY79KYvQhSA4E8COYTDWXeVC3VMRZUkfHYIaq+zbil8zVuoYJku6SyD9RdcepZg=@gnu.org, AJvYcCWqggbFjipmC5mu8BfsEBF6q0JBR98xlBL6MmhoIbxhqjlYF01K4bdrKNku+2ZBXNTTYQHzdIEk6w==@gnu.org X-Gm-Message-State: AOJu0Yw+ZdTlfzC+FEP4MhJ5yvlq3TAFBqyoTghrrXDDr9RFmK7M0KaR dD3V/sSWFGQMkqWCIjeDYZF2NJYbBY6vUVgdW2U2DgsIpaw8xtM9bjVnMMTkKOLRZbvmmEUSWLT 4HB7NtuH3jEaiQiwjSjwHAPWfAgY= X-Gm-Gg: ASbGncsZ26t6CzOeUhSkrG2jSxi410rAPnbmJyCBII4CmSms1XVLSAhRgjv2he1nVKg o5TKHA+k/YHQajkXiPQ7VLBncd34DJMip/vz+jxo= X-Google-Smtp-Source: AGHT+IGxgzE1LdlCT7iZmFI7xwwSPXSxR56/VsvgO7x636ayrFzrcdZlm2rshpG0cljrfAtPrUs/HarFPXOnD8pBSGM= X-Received: by 2002:a05:6402:401f:b0:5d6:3716:950e with SMTP id 4fb4d7f45d1cf-5d81e8c1344mr20793314a12.11.1735229573305; Thu, 26 Dec 2024 08:12:53 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 26 Dec 2024 16:12:52 +0000 In-Reply-To: <87jzbn8zmu.fsf@protonmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x530.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:327160 Archived-At: Pip Cet writes: > "Stefan Kangas" writes: > >> Which parts of C11 help us? > > stdatomic.h, in this case. Thanks for the explanation. > IIRC, C99 doesn't have usable memory barriers, not even for signal > handler/main thread races such as this one. > > Of course almost every compiler that supports C99, and certainly all > compilers usable for compiling Emacs, provides (or doesn't need, in the > case of TinyCC) ways of implementing them. In the case of GCC, that > used to be asm volatile ("" : : : "memory"). I don't think I understand what this means in practice. Can we use stdatomic.h with C99, or do you propose that we require C11? FWIW, the Linux kernel has used -std=gnu11 for a few years already, but their job is probably easier than ours since they only target GCC and clang.