[Top][All Lists]

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

Re: stop using P_, __P in header files

From: Eli Zaretskii
Subject: Re: stop using P_, __P in header files
Date: Mon, 05 Jul 2010 20:31:43 +0300

> From: Juanma Barranquero <address@hidden>
> Date: Mon, 5 Jul 2010 05:38:05 +0200
> Cc: address@hidden, Ken Raeburn <address@hidden>, address@hidden
> On Mon, Jul 5, 2010 at 05:05, Eli Zaretskii <address@hidden> wrote:
> > Emacs is compiled not only by GCC.
> True, but "register" never was more than a hint to the compiler.

I'm not an expert, so I don't know.  Maybe someone else could chime
in.  One issue that I'd be interested in is to know whether GCC uses
this hint at some low optimization level, because I frequently need to
use -O1 or -O0 to get a binary I can debug without getting older by
the hour.

> Surely most modern compilers do a better work on optimizing code on
> their own than relying on naive register declarations...

FWIW, the ones I put in some code I wrote long ago were not naive at
all.  And I don't think those we have in Emacs are naive, either.  But
if these hints are not used, it doesn't really matter.

reply via email to

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