This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Modes on CONST_INTs
- To: Bernd Schmidt <bernds at redhat dot com>
- Subject: Re: Modes on CONST_INTs
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 27 Nov 2000 04:14:25 -0200
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.21.0011240956520.12759-100000@host117.cygnus>
On Nov 24, 2000, Bernd Schmidt <bernds@redhat.com> wrote:
> 1. Create a new macro GENMINT (MODE, INTVAL). This macro will at first
> ignore the MODE argument.
> Replace all uses of GEN_INT with GENMINT. Once done, remove the old
> GEN_INT and rename GENMINT to GEN_INT. (I'm open to suggestions for
> a better name than GENMINT, but it should have 7 characters to avoid
> reformatting madness).
How about G<MODE>_INT (INTVAL), to avoid reformatting madness. For
each MODE (expressed as SI, HI, etc), G<MODE>_INT (VAL) would just
call GEN_INT (<MODE>mode, (VAL)). The advantage of changing GEN_INT
so that it takes a pair of arguments is that the compiler would catch
old-style uses for you.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me