[PATCH 5/9] alpha: Add __BEGIN_DECLS/__END_DECLS to bits/fenv.h

Carlos O'Donell carlos@redhat.com
Mon Nov 2 16:59:40 GMT 2026


On 10/21/26 9:54 AM, Adhemerval Zanella wrote:
> The __ieee_get_fp_control and __ieee_set_fp_control prototypes are not
> in the __BEGIN_DECLS block of <fenv.h>.
> 
> Checked with the math installed-header tests on alpha-linux-gnu.

LGTM.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

> ---
>   sysdeps/alpha/fpu/bits/fenv.h | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/sysdeps/alpha/fpu/bits/fenv.h b/sysdeps/alpha/fpu/bits/fenv.h
> index 530f298914a..1a639eb0280 100644
> --- a/sysdeps/alpha/fpu/bits/fenv.h
> +++ b/sysdeps/alpha/fpu/bits/fenv.h
> @@ -128,10 +128,14 @@ typedef unsigned long int fenv_t;
>   # define FE_NONIEEE_ENV ((const fenv_t *) 0x8800000000003000UL)
>   #endif
>   
> +__BEGIN_DECLS
> +
>   /* The system calls to talk to the kernel's FP code.  */
>   extern unsigned long int __ieee_get_fp_control (void) __THROW;
>   extern void __ieee_set_fp_control (unsigned long int __value) __THROW;
>   
> +__END_DECLS
> +
>   #if __GLIBC_USE (IEC_60559_BFP_EXT_C23)
>   /* Type representing floating-point control modes.  */
>   typedef unsigned long int femode_t;


-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list