]> begriffs open source - cmsis/commit
Fix __set_FPSCR and __get_FPSCR for (non-ARM) Clang
authorNorbert Lange <norbert.lange@andritz.com>
Mon, 24 Apr 2017 16:21:09 +0000 (18:21 +0200)
committerNorbert Lange <norbert.lange@andritz.com>
Mon, 24 Apr 2017 16:27:03 +0000 (18:27 +0200)
commita6995602bae32460056311b0c50dfb810ef909dc
treed4e05893ad86a1dc5c0babc5fa9d2b20b4c65175
parentb3a818ab9b7ccdb6ba7a8b0f551005fcbd792617
Fix __set_FPSCR and __get_FPSCR for (non-ARM) Clang

The clang assembler does not know the vfpcc register, compiling
code using CMSIS will therefor fail.

This patch will use the corresponding builtin thats available on
Clang, and is supposed to be supported with GCC since Version 5.

A patch for GCC 7 is available, fixing a mistake
(https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html).
Optimistically this patch enabled the builtin for GCC 7.1.
CMSIS/Core/Include/cmsis_gcc.h