This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [committed] Don't use convert in the middle end.


On Fri, 18 Feb 2005, Kaveh R. Ghazi wrote:

> I keep seeing this, does it make sense to poison "convert" in rtl.h so
> it doesn't regress?

Once all uses outside front ends are removed, rename the function in at 
least one front end so that you get link failures if the middle-end tries 
to use it.

> We could define a macro "really_call_convert" like we do for "malloc"
> if there are any places where we need to bypass the poison.

If it's really needed in the middle-end, change it to a langhook once all 
unnecessary uses are removed (and still rename it in at least one front 
end).  It's the last remaining magic function name front ends need to 
provide which hasn't become a langhook.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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