bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#11935: XINT etc. should be functions


From: Jan Djärv
Subject: bug#11935: XINT etc. should be functions
Date: Sun, 9 Jun 2013 11:18:45 +0200

Hello.

9 jun 2013 kl. 09:23 skrev Paul Eggert <eggert@cs.ucla.edu>:

> On 06/08/2013 11:56 PM, Jan Djärv wrote:
>> most people does not have the latest gcc version.
> 
> Most people can use older GCC versions just fine,
> since by default Emacs builds with optimization flags
> that will generate pretty much the same machine code
> regardless of whether the patch is used.
> 
> The only problem is with developers who are using older
> GCC versions and who wish to compile without optimization,
> to make Emacs easier to debug.  These folks can't use -Og
> (available in GCC 4.8 and later), so they have to make do
> with -O0.
> 

That is not the only problem.  etc/DEBUG recommends to build with no 
optimization when reporting errors.

> -Og is better for debugging than -O0 is, and the
> proposed patch caters to -Og.  Eventually the -Og
> approach will win out; the only question is when
> and how to start the ball rolling.

If you can make it detect when to use macros and when to use functions so -O0 
doesn't suffer, that is starting the ball rolling.  Otherwise it is setting up 
a brick wall for users/developers with older gcc.

        Jan D.






reply via email to

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