Removed #ifndef _ARM_PCS_VFP_ from sys/fenv.h for arm

Message ID 20200703224106.17335-1-eshandhawan51@gmail.com
State Accepted
Commit 104caeb7b1dcd1377dfcfc267c95e1159cf83ef6
Headers show
Series
  • Removed #ifndef _ARM_PCS_VFP_ from sys/fenv.h for arm
Related show

Commit Message

Keith Packard via Newlib July 3, 2020, 10:41 p.m.
Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>

---
 newlib/libc/machine/arm/sys/fenv.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.17.1

Comments

Szabolcs Nagy July 6, 2020, 9:06 a.m. | #1
The 07/04/2020 04:11, Eshan dhawan via Newlib wrote:
> Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>

> ---

>  newlib/libc/machine/arm/sys/fenv.h | 4 ++--

>  1 file changed, 2 insertions(+), 2 deletions(-)

> 

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

> index af74c5f47..740995a1a 100644

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

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

> @@ -94,7 +94,7 @@ extern const fenv_t	*_fe_dfl_env;

>  #define	_ENABLE_MASK	(FE_ALL_EXCEPT << _FPUSW_SHIFT)

>  #endif

>  

> -#ifndef __ARM_PCS_VFP

> +

>  

>  int feclearexcept(int excepts);

>  int fegetexceptflag(fexcept_t *flagp, int excepts);

> @@ -113,7 +113,7 @@ int fedisableexcept(int __mask);

>  int fegetexcept(void);

>  #endif /* __BSD_VISIBLE */

>  

> -#endif	/* __ARM_PCS_VFP */

> +

>  

>  #ifdef __cplusplus

>  }


thanks this fixes the build issue i see.
Keith Packard via Newlib July 6, 2020, 11:19 a.m. | #2
On Jul  4 04:11, Eshan dhawan via Newlib wrote:
> Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>

> ---

>  newlib/libc/machine/arm/sys/fenv.h | 4 ++--

>  1 file changed, 2 insertions(+), 2 deletions(-)

> 

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

> index af74c5f47..740995a1a 100644

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

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

> @@ -94,7 +94,7 @@ extern const fenv_t	*_fe_dfl_env;

>  #define	_ENABLE_MASK	(FE_ALL_EXCEPT << _FPUSW_SHIFT)

>  #endif

>  

> -#ifndef __ARM_PCS_VFP

> +

>  

>  int feclearexcept(int excepts);

>  int fegetexceptflag(fexcept_t *flagp, int excepts);

> @@ -113,7 +113,7 @@ int fedisableexcept(int __mask);

>  int fegetexcept(void);

>  #endif /* __BSD_VISIBLE */

>  

> -#endif	/* __ARM_PCS_VFP */

> +

>  

>  #ifdef __cplusplus

>  }

> -- 

> 2.17.1


Pushed


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Patch

diff --git a/newlib/libc/machine/arm/sys/fenv.h b/newlib/libc/machine/arm/sys/fenv.h
index af74c5f47..740995a1a 100644
--- a/newlib/libc/machine/arm/sys/fenv.h
+++ b/newlib/libc/machine/arm/sys/fenv.h
@@ -94,7 +94,7 @@  extern const fenv_t	*_fe_dfl_env;
 #define	_ENABLE_MASK	(FE_ALL_EXCEPT << _FPUSW_SHIFT)
 #endif
 
-#ifndef __ARM_PCS_VFP
+
 
 int feclearexcept(int excepts);
 int fegetexceptflag(fexcept_t *flagp, int excepts);
@@ -113,7 +113,7 @@  int fedisableexcept(int __mask);
 int fegetexcept(void);
 #endif /* __BSD_VISIBLE */
 
-#endif	/* __ARM_PCS_VFP */
+
 
 #ifdef __cplusplus
 }