[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.
- Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/07
- Re: Emacs port to gcc -fcheck-pointer-bounds, Eli Zaretskii, 2017/12/08
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/08
- Re: Emacs port to gcc -fcheck-pointer-bounds, Eli Zaretskii, 2017/12/09
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/10
- Re: Emacs port to gcc -fcheck-pointer-bounds,
Eli Zaretskii <=
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/11
- Re: Emacs port to gcc -fcheck-pointer-bounds, Eli Zaretskii, 2017/12/11
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/12
- Re: Emacs port to gcc -fcheck-pointer-bounds, Eli Zaretskii, 2017/12/13
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/13
- Re: Emacs port to gcc -fcheck-pointer-bounds, Stefan Monnier, 2017/12/13
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/13
- Re: Emacs port to gcc -fcheck-pointer-bounds, Paul Eggert, 2017/12/17
Re: Emacs port to gcc -fcheck-pointer-bounds, Pip Cet, 2017/12/08