This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: "register" specifiers of any value?
- To: Stan Shebs <shebs at apple dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Subject: Re: "register" specifiers of any value?
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 09 Oct 2001 13:15:31 -0700
--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