[8u][gcc6] RFR: 8152131: aarch32: specify which overloaded variant of fmod to use

Edward Nevill edward.nevill at gmail.com
Tue Mar 22 16:38:44 UTC 2016


Hi Alex,

On Tue, 2016-03-22 at 15:52 +0000, Alex Kashchenko wrote:
> Hi Edward,
> 
> On 03/22/2016 10:56 AM, Edward Nevill wrote:
> > Hi Alex,
> >
> I am getting the same error using that macro:
> 
> [...]/hotspot/src/cpu/aarch32/vm/templateTable_aarch32.cpp: In static 
> member function 'static void TemplateTable::dop2(TemplateTable::Operation)':
> [...]/hotspot/src/share/vm/utilities/globalDefinitions.hpp:331:81: 
> error: overloaded function with no contextual type information
>   #define CAST_FROM_FN_PTR(new_type, func_ptr) 
> ((new_type)((address_word)(func_ptr)))
>  
>            ^
> [...]/hotspot/src/cpu/aarch32/vm/templateTable_aarch32.cpp:1466:23: 
> note: in expansion of macro 'CAST_FROM_FN_PTR'
>       __ mov(rscratch1, CAST_FROM_FN_PTR(address, fmod));
>                         ^~~~~~~~~~~~~~~~
> [...]/hotspot/make/linux/makefiles/rules.make:157: recipe for target 
> 'templateTable_aarch32.o' failed

Thanks for trying this. I'll push your patch as is.

All the best,
Ed.




More information about the aarch32-port-dev mailing list