emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs port to gcc -fcheck-pointer-bounds


From: Eli Zaretskii
Subject: Re: Emacs port to gcc -fcheck-pointer-bounds
Date: Sun, 10 Dec 2017 19:27:13 +0200

> From: Paul Eggert <address@hidden>
> Cc: address@hidden, address@hidden
> Date: Sat, 9 Dec 2017 23:10:43 -0800
> 
> 1. The Emacs C code should store pointer values only in objects declared to 
> be 
> of type pointer. Otherwise, every time Emacs converted an integer to a 
> pointer, 
> machine code generated by -fcheck-pointer-bounds would disable bounds 
> checking 
> for that pointer (which would defeat the point of bounds checking).
> 
> This is what the first patch does. I like this patch anyway, since it cleans 
> up 
> the Emacs internals a bit and it doesn't significantly affect performance in 
> the 
> typical case where -fcheck-pointer-bounds is not used.

But if we install this patch regardless of -fcheck-pointer-bounds,
then the --with-wide-int build will cease working, won't it?

Thanks for the other explanations.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]