]> git.ipfire.org Git - thirdparty/glibc.git/commit
or1k: Only define fpu rouding and exceptions with hard-float
authorStafford Horne <shorne@gmail.com>
Tue, 19 Mar 2024 20:53:37 +0000 (20:53 +0000)
committerStafford Horne <shorne@gmail.com>
Fri, 22 Mar 2024 15:43:34 +0000 (15:43 +0000)
commitdf7e29e2a4aadc7e19669eaf953cee1bcf8b156f
tree3b0b645737f4343ac9ed0a29f561297b15624552
parent2e982a3937f20156a72a59560061dda006d3480b
or1k: Only define fpu rouding and exceptions with hard-float

This test failure:

  math/test-fenv

If rounding mode and exception macros are defined then the fenv tests
run and always fail.  This patch adds an ifdef using the
__or1k_hard_float__ macro provided by gcc to avoid defining these fenv
macros when they cnnot be used.  This is similar to what is done in csky.

Note, I will post the or1k hard-float support soon. So, I prefer to
leave the hard-float bits here for now.
sysdeps/or1k/bits/fenv.h