FreeBSD Bugzilla – Attachment 243671 Details for
Bug 272759
lang/gcc12: Only for arches not including riscv (blocks 310 packages on my list)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
fenv.h.diff (text/plain), 958 bytes, created by
Jessica Clarke
on 2023-07-28 18:11:15 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Jessica Clarke
Created:
2023-07-28 18:11:15 UTC
Size:
958 bytes
patch
obsolete
>diff --git a/lib/msun/riscv/fenv.h b/lib/msun/riscv/fenv.h >index f5c56f73b229..da28461eb59b 100644 >--- a/lib/msun/riscv/fenv.h >+++ b/lib/msun/riscv/fenv.h >@@ -218,23 +218,24 @@ feupdateenv(const fenv_t *__envp) > > #if __BSD_VISIBLE > >-/* We currently provide no external definitions of the functions below. */ >- > #ifdef __riscv_float_abi_soft > int feenableexcept(int __mask); > int fedisableexcept(int __mask); > int fegetexcept(void); > #else >-static inline int >-feenableexcept(int __mask __unused) >+__fenv_static inline int >+feenableexcept(int __mask) > { > > /* No exception traps. */ > >+ if (__mask != 0) >+ return (-1); >+ > return (0); > } > >-static inline int >+__fenv_static inline int > fedisableexcept(int __mask __unused) > { > >@@ -243,6 +244,7 @@ fedisableexcept(int __mask __unused) > return (0); > } > >+/* We currently provide no external definition of fegetexcept(). */ > static inline int > fegetexcept(void) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 272759
:
243670
| 243671 |
246629