[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introducing 'safety' compilation parameter
From: |
Andrea Corallo |
Subject: |
Re: Introducing 'safety' compilation parameter |
Date: |
Fri, 10 May 2024 07:42:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Andrea Corallo <acorallo@gnu.org>
>> 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 <eliz@gnu.org> writes:
>>
>> >> From: Andrea Corallo <acorallo@gnu.org>
>> >> Cc: Eli Zaretskii <eliz@gnu.org>, 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
- Re: Introducing 'safety' compilation parameter, (continued)
- Re: Introducing 'safety' compilation parameter, Stefan Monnier, 2024/05/07
- Re: Introducing 'safety' compilation parameter, Andrea Corallo, 2024/05/07
- Re: Introducing 'safety' compilation parameter, Andrea Corallo, 2024/05/10
- Re: Introducing 'safety' compilation parameter, Stefan Monnier, 2024/05/12
- Re: Introducing 'safety' compilation parameter, Eli Zaretskii, 2024/05/13
- Re: Introducing 'safety' compilation parameter, Andrea Corallo, 2024/05/13
- Re: Introducing 'safety' compilation parameter, Eli Zaretskii, 2024/05/14
Re: Introducing 'safety' compilation parameter, Eli Zaretskii, 2024/05/09
Re: Introducing 'safety' compilation parameter, Andrea Corallo, 2024/05/10
Re: Introducing 'safety' compilation parameter, Gerd Möllmann, 2024/05/09