This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "register" specifiers of any value?




--On Monday, October 08, 2001 07:55:01 PM -0700 Stan Shebs 
<shebs@apple.com> wrote:

> While studying dwarf2out.c, I note that many locals are specified
> as "register", most likely a pointless thing these days.  At best
> they might speed up a GCC built with somebody else's compiler, but
> that doesn't seem very valuable, and we could get rid of some
> clutter by whacking them.  Looks like there are several thousand,
> mostly concentrated in older files - can anybody come up with a
> reason for keeping them?

No.  Our policy is to never use `register' in new code, and there's
nothing wrong with removing it from old code.  Patches to do that
are preapproved.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]