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()


|   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
| 


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