This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [patch] genrecog.c: Simplify comparisons against small constantsin insn-recog.c.


> On Jan 30, 2004, at 2:44 PM, Richard Henderson wrote:
>
>  It would also be nice if we could somehow mark the const_int_rtx array
>  as const or unchanging once initialized?
>
> I can't think of any way.
>
>No. People ask us for this all the time, and there's no way to do it.
>It used to work to declare it non-const in the file where it's
>initialized, and
>const everywhere else (including the header file), but that was always
>nonstandard and stopped working around gcc 3.0. A missing feature
>in the languages.

Like accessing it through

const rtx * const const_const_int_rtx = const_int_rtx;

? But I must be missing something...

Richard.


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