This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: GEN_INT_MODE (1/~4)
Richard Henderson <rth@redhat.com> writes:
> On Fri, Mar 15, 2002 at 05:10:14PM +0100, Lars Brinkhoff wrote:
> > + #define GEN_INT_MODE(N, MODE) GEN_INT (trunc_int_for_mode ((N), (MODE)))
> I'd prefer this to be a function in emit-rtl.c, placed immediately
> after gen_rtx_CONST_INT. There's no sense inlining two function
> calls like this.
I see that the definition of GEN_INT use a cast to avoid trouble when
gen_rtx_CONST_INT isn't prototyped. So should GEN_INT_MODE be a
macro, with a corresponding cast, calling the new function?
--
Lars Brinkhoff http://lars.nocrew.org/ Linux, GCC, PDP-10,
Brinkhoff Consulting http://www.brinkhoff.se/ HTTP programming