This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: CLASS_CANNOT_CHANGE_MODE* redesign
- From: Michael Matz <matz at suse dot de>
- To: Richard Henderson <rth at redhat dot com>,Aldy Hernandez <aldyh at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 25 Oct 2002 11:44:21 +0200 (CEST)
- Subject: Re: CLASS_CANNOT_CHANGE_MODE* redesign
Hi Richard, Aldy,
On Thu, 24 Oct 2002, Richard Henderson wrote:
> > + #ifdef HARD_CONST
> > + extern void cannot_change_mode_set_regs PARAMS ((HARD_REG_SET *,
> > + enum machine_mode,
> > + unsigned int));
> > + #endif
> >
> > in rtl.h looks wrong.
>
> I know, but there are other instances of the same already.
> And there doesn't appear to be a better place to put it.
Err. Not the place looks wrong. The fact, that the prototype is guarded
by HARD_CONST (anyway defined unconditionally) and not C_C_C_M_P, by which
the implementation is guarded, and that only one of them is guarded seems
wrong.
> > in rtl.h looks wrong. Also
>
> This seemed like the more logical place because it had all the proper
> include files included,
Dito ;-)
Ciao,
Michael.