This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: fixups for calls to gen_rtx()
- To: crux at Pool dot Informatik dot RWTH-Aachen dot DE, law at cygnus dot com
- Subject: Re: fixups for calls to gen_rtx()
- From: meissner at cygnus dot com
- Date: Mon, 22 Sep 1997 13:59:27 -0400 (EDT)
- Cc: davem at jenolan dot rutgers dot edu, egcs at cygnus dot com
| In message <Pine.HPP.3.93.970922135900.6164J-100000@damabus.informatik.rwth-aachen.de>you write:
| > I once had a patch that scans rtl.def and generates a lot of functions
| > with names like "gen_rtx_REG" which don't use varargs and have a proper
| > prototype. Is someone interested in this?
| I don't think so. Though others may disagree.
|
| I don't see any reason not to use varargs for the gen_ functions.
|
I do disagree. I find every so often, I pass the wrong number of arguments
when calling gen_rtx and fiends. Having alternate functions would allow this
checking to occur at compile time rather than runtime.
| Jeff
|