On 18/05/16 15:33, Matthew Wahab wrote: > On 18/05/16 09:41, Ramana Radhakrishnan wrote: >> On Mon, May 16, 2016 at 2:16 PM, Tejas Belagod >> <tejas.bela...@foss.arm.com> wrote: >> >>> >>> We do have plans to fix pre-ACLE behavior of fp16 to conform to current ACLE >>> spec, but can't say when exactly. >> >> Matthew, could you please take a look at this while you are in this area ? > > Ok. > > Part of this is likely to involve removing TARGET_CONVERT_TO_TYPE from the > ARM backend. grep doesn't show anywhere that uses this hook, the only other > occurrence is in the ARC backend. Does the hook ever get used? > > Matthew > >
The use in the front-ends / mid-end is usually in lower case - thus grepping for convert_to_type will give you the answer. grep -r convert_to_type * gcc/jit/jit-playback.c: t_ret = targetm.convert_to_type (t_dst_type, t_expr); gcc/cp/cvt.c: e1 = targetm.convert_to_type (type, e); gcc/c/c-convert.c: ret = targetm.convert_to_type (type, expr); gcc/config/arm/arm.c:static tree arm_convert_to_type (tree type, tree expr); gcc/config/arm/arm.c:#define TARGET_CONVERT_TO_TYPE arm_convert_to_type gcc/config/arm/arm.c:arm_convert_to_type (tree type, tree expr) gcc/config/avr/avr.c:avr_convert_to_type (tree type, tree expr) gcc/config/avr/avr.c:#define TARGET_CONVERT_TO_TYPE avr_convert_to_type I don't think you can poison this as the avr backend appears to use this rather than arc. regards Ramana