riscv/sys/fenv.h: Add missing extern for fe_dfl_env_p

Message ID 1570636881-25491-1-git-send-email-joel@rtems.org
State Accepted
Commit 9e06ba1ac310c5a2392bb9d150e4686bbb118d6c
Headers show
Series
  • riscv/sys/fenv.h: Add missing extern for fe_dfl_env_p
Related show

Commit Message

Joel Sherrill Oct. 9, 2019, 4:01 p.m.
---
 newlib/libc/machine/riscv/sys/fenv.h | 2 ++
 1 file changed, 2 insertions(+)

-- 
1.8.3.1

Comments

Kito Cheng Oct. 17, 2019, 4:20 p.m. | #1
Hi Joel:

LGTM, verified with rv64gc and rv32g.

Thanks :)

On Thu, Oct 10, 2019 at 12:01 AM Joel Sherrill <joel@rtems.org> wrote:

> ---

>  newlib/libc/machine/riscv/sys/fenv.h | 2 ++

>  1 file changed, 2 insertions(+)

>

> diff --git a/newlib/libc/machine/riscv/sys/fenv.h

> b/newlib/libc/machine/riscv/sys/fenv.h

> index e69978d..6cbd321 100644

> --- a/newlib/libc/machine/riscv/sys/fenv.h

> +++ b/newlib/libc/machine/riscv/sys/fenv.h

> @@ -72,6 +72,8 @@

>  typedef size_t fenv_t;

>  typedef size_t fexcept_t;

>  extern const fenv_t fe_dfl_env;

> +extern const fenv_t *fe_dfl_env_p;

> +

>  #define FE_DFL_ENV fe_dfl_env_p

>

>  #endif /* _SYS_FENV_H */

> --

> 1.8.3.1

>

>

Patch

diff --git a/newlib/libc/machine/riscv/sys/fenv.h b/newlib/libc/machine/riscv/sys/fenv.h
index e69978d..6cbd321 100644
--- a/newlib/libc/machine/riscv/sys/fenv.h
+++ b/newlib/libc/machine/riscv/sys/fenv.h
@@ -72,6 +72,8 @@ 
 typedef size_t fenv_t;
 typedef size_t fexcept_t;
 extern const fenv_t fe_dfl_env;
+extern const fenv_t *fe_dfl_env_p;
+
 #define FE_DFL_ENV fe_dfl_env_p
 
 #endif /* _SYS_FENV_H */