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: [PATCH] ARM half-precision floating point, 3/8 (target hooks)


On Thu, 16 Apr 2009, Paolo Bonzini wrote:

> Doing this in the front-end also fixes the problem that...
> 
> >  care would be needed to
> >  ensure that whatever compiler-generated function calls it affects, it
> >  doesn't affect the libcalls converting between HFmode and SFmode

It may fix problems, but I think we should move away from using this hook 
in the front ends at all.  Variation between the types used in language 
terms and the final ABI should be handled at some point after the front 
ends have finished; maybe a lowering stage carried out on GIMPLE, but if 
the language allows arguments and return values of a given type I think 
the GIMPLE coming out of the front end should represent that they are of 
that type.  Note that in AAPCS the conversion from half-precision to 
single-precision is part of the language-independent argument-passing 
rules, not part of how C language types are mapped to language-independent 
types.

-- 
Joseph S. Myers
joseph@codesourcery.com


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