Module Name: src Committed By: mrg Date: Sat Nov 16 22:51:51 UTC 2019
Modified Files: src/sys/arch/ia64/include: fenv.h Log Message: do the ignore -Wshadow dance for builtins and GCC 8, copied from ppc version. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/ia64/include/fenv.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/ia64/include/fenv.h diff -u src/sys/arch/ia64/include/fenv.h:1.2 src/sys/arch/ia64/include/fenv.h:1.3 --- src/sys/arch/ia64/include/fenv.h:1.2 Thu Mar 23 18:27:29 2017 +++ src/sys/arch/ia64/include/fenv.h Sat Nov 16 22:51:51 2019 @@ -67,6 +67,11 @@ extern const fenv_t __fe_dfl_env; #define __stfpsr(__r) __asm __volatile("mov %0=ar.fpsr" : "=r" (*(__r))) #define __ldfpsr(__r) __asm __volatile("mov ar.fpsr=%0;;" : : "r" (__r)) +#if __GNUC_PREREQ__(8, 0) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wshadow" +#endif + __fenv_static inline int feclearexcept(int __excepts) { @@ -206,6 +211,10 @@ fesetenv(const fenv_t *__envp) int feupdateenv(const fenv_t *__envp); +#if __GNUC_PREREQ__(8, 0) +#pragma GCC diagnostic pop +#endif + #if defined(_NETBSD_SOURCE) || defined(_GNU_SOURCE) __fenv_static inline int