This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to constify rtx_name
- To: rth at cygnus dot com
- Subject: Re: Patch to constify rtx_name
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Fri, 20 Aug 1999 18:35:23 -0400 (EDT)
- Cc: egcs-patches at egcs dot cygnus dot com
> From: Richard Henderson <rth@cygnus.com>
>
> On Thu, Aug 12, 1999 at 10:13:24AM -0400, Kaveh R. Ghazi wrote:
> > -char *rtx_name[] = {
> > +const char *rtx_name[] = {
>
> Actually, one thing to remember with all these is that the
> array itself is constant too; changing the declatation to
>
> const char * const rtx_name[] = {
>
> moves the array into read-only memory. Which I think you
> should also do.
> r~
Okay, installed. Thanks for reviewing the patch.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions