Menu

#71 Invalid check for hardware floating point in GCC/ARM_CM4F

v1.0 (example)
closed-rejected
nobody
None
5
2014-04-24
2013-08-19
Anonymous
No

Is:
#ifndef __VFP_FP__

should be:

#if defined(__SOFTFP__)
#error This port can only be used when the project options are configured to enable hardware floating point support.
#endif

Discussion

  • Anonymous

    Anonymous - 2013-08-19
    • summary: Invalid check for hardware floating point in M_CM4F port --> Invalid check for hardware floating point in GCC/ARM_CM4F
     
  • Richard

    Richard - 2013-08-19

    I would be grateful if you could provide further explanation of why you think this is a bug.

    From my understanding __VFP_FP__ is defined if the compiler is configured to generated VFP instructions - which is the intention of the test here, whereas __SOFTFP__ is defined if floating point parameters are passed in integer registers.

     
  • Richard Barry

    Richard Barry - 2014-04-24
    • status: open --> closed-rejected
    • Group: --> v1.0 (example)
     

Log in to post a comment.