From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: stop using P_, __P in header files Date: Mon, 05 Jul 2010 23:23:09 -0400 Message-ID: References: <4C2DB1E0.7010305@swipnet.se> <83aaqa9ml7.fsf@gnu.org> <9A690AC5-8C59-4691-88AC-EDDABCF2F704@raeburn.org> <83ocem8w6i.fsf@gnu.org> <83k4p996o0.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278386602 31203 80.91.229.12 (6 Jul 2010 03:23:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 03:23:22 +0000 (UTC) Cc: Juanma Barranquero , raeburn@raeburn.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 06 05:23:19 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OVyke-0006n0-UP for ged-emacs-devel@m.gmane.org; Tue, 06 Jul 2010 05:23:17 +0200 Original-Received: from localhost ([127.0.0.1]:41272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVyke-000769-4h for ged-emacs-devel@m.gmane.org; Mon, 05 Jul 2010 23:23:16 -0400 Original-Received: from [199.232.76.173] (port=39801 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVykZ-00075u-Nu for emacs-devel@gnu.org; Mon, 05 Jul 2010 23:23:11 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OVykY-00012G-KB for emacs-devel@gnu.org; Mon, 05 Jul 2010 23:23:11 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44744) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OVykY-00012C-EE for emacs-devel@gnu.org; Mon, 05 Jul 2010 23:23:10 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OVykY-0006s0-0D; Mon, 05 Jul 2010 23:23:10 -0400 In-Reply-To: <83k4p996o0.fsf@gnu.org> (Eli Zaretskii's message of "Mon\, 05 Jul 2010 20\:31\:43 +0300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126817 Archived-At: Eli Zaretskii writes: >> From: Juanma Barranquero >> Date: Mon, 5 Jul 2010 05:38:05 +0200 >> Cc: dann@gnu.org, Ken Raeburn , emacs-devel@gnu.org >> >> On Mon, Jul 5, 2010 at 05:05, Eli Zaretskii 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. Why don't you try if it makes any difference? Add #define register at the beginning of a C file, after all the #includes and then check if there's any code generation difference.