From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Introducing 'safety' compilation parameter Date: Fri, 10 May 2024 07:42:16 -0400 Message-ID: References: <86a5kz74yw.fsf@gnu.org> <86ttj63r96.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32530"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, mattias.engdegard@gmail.com, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 13:42:48 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 1s5OeF-0008Dd-I1 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 13:42:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5Odv-0002bl-HI; Fri, 10 May 2024 07:42:27 -0400 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 1s5Odq-0002bO-R3 for emacs-devel@gnu.org; Fri, 10 May 2024 07:42:25 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5Odq-0007Iy-HO; Fri, 10 May 2024 07:42:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=4QrVec15swK085dWZYILjtiPyl4snN9/Vt8RJ/AjbHY=; b=T4a+ABo573g9+5XJkadq 4v+j1d/Eso2/VxRMJJqhay1P27Jift60P5p9lLfWmyCQB2/CHOnXBCKTnUf4QVCjqwPh26LkWGpIr D8NvPO6vV7l3apL2qXohKrneBNQLdQQcMAuwqRtjx9WwI1XYBuIt9DtsKkBfWqq4DbYM2lreQ3cwi aGTfR2s2OEX334Bdxnd1n8GS6gg176iNquEG5wlH+aFx4cVQnb5vWGr0d2yX29TEyWXbGkEp8VvZU JVuHCABIzAlNzrAeC4rN5e0WBZNlRt0Fo2UONEKkzIAd7pWYN0FLT6+ri3UeRMAGr370dJ5YMyUZU c1xgCEfF6OUSjg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s5Odk-0001EQ-Bb; Fri, 10 May 2024 07:42:21 -0400 In-Reply-To: <86ttj63r96.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 May 2024 13:17:41 +0300") 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:319132 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, >> mattias.engdegard@gmail.com, stefankangas@gmail.com >> Date: Fri, 10 May 2024 03:47:53 -0400 >> >> Eli Zaretskii writes: >> >> >> From: Andrea Corallo >> >> Cc: Eli Zaretskii , monnier@iro.umontreal.ca, >> >> mattias.engdegard@gmail.com, stefankangas@gmail.com >> >> Date: Tue, 07 May 2024 06:37:50 -0400 >> >> >> >> I've put in scratch/comp-safety a branch wich introduces 'safety' as >> >> compilation parameter. >> >> >> >> 'safety' can be used similarly to 'native-comp-speed' both as a global >> >> variable to influence compilation both as a function declaration. >> >> >> >> 'safety' justification of existence is ATM being able to control the >> >> undefined behaviour being created when function type declaration added >> >> by the user is not correct. >> >> >> >> ATM we can have two values: >> >> >> >> 1 Emitted code is generated in a safe matter even if function types are >> >> miss-declared. >> >> 0 Emitted code can misbehave or crash Emacs if function declarations are >> >> not correct and the function is native compiled (@pxref{Native >> >> Compilation}). >> >> >> >> 1 is ATM the default. >> > >> > Is this for Emacs 30 or Emacs 31? >> >> Hi Eli, >> >> the question is related to the patch or the defaul value? > > Both. ATM the default is the equivalent to the proposed 0 (and so it was since the introduction of native compilation). The proposal is for 30 but if it's too late it's for 31 :) Thanks Andrea