This is the mail archive of the gcc@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]

Re: fixups for calls to gen_rtx()


>    From: Richard Henderson <rth@cygnus.com>
>    Date: Mon, 22 Sep 1997 11:20:57 -0700 (PDT)
> 
>    I disagree; varargs is slow.  There is no need to be dropping the
>    last four register arguments into memory just so we can pull them
>    out again.
> 
> I honestly don't care how slow it is, I really want the type checking.

In some cases the types will be silently promoted to the correct type,
unless you use -Wtraditional (which would probably produce a lot of noise,
because the gcc source contains some ANSI specific code that is
conditionally used for compilation with an ANSI compiler).

Thus, to avoid problems bootstrapping with an K&R compiler, I suggest
that the functions are named differently for a K&R compilation, and
macros are defined that call the actual gen_rtx_* functions with
all arguments casted to the proper type - or if you want to get more
sophisticated, cast only to types that can be the result of a
prototype-guided argument promotion.


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