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

Alex Kashchenko akashche at redhat.com
Thu Mar 17 20:12:58 UTC 2016


Please review and sponsor the small change to templateTable_aarch32.cpp 
that is required for successful compilation with GCC6:

  - issue: https://bugs.openjdk.java.net/browse/JDK-8152131
  - webrev: 
http://cr.openjdk.java.net/~akasko/aarch32/jdk8u/8152131/webrev.00/

The following cast of fmod function pointer to address causes 
"overloaded function with no contextual type information" compilation 
error with GCC6:

__ mov(rscratch1, (address)fmod);

Proposed change is to cast fmod to the double version:

__ mov(rscratch1, (address)(double (*)(double, double))fmod);

-- 
-Alex


More information about the aarch32-port-dev mailing list