From 4a6aca7bf8a70f1dc66a07c04aba2d7fd837602d Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 29 Dec 2014 17:37:54 +0530 Subject: Remove Wundef warnings for specification macros This patch adds a file posix-conf-vars.list that is used to generate macros to determine if a macro is defined as set, unset or not defined. gen-posix-conf-vars.awk processes this file and generates a header (posix-conf-vars-def.h) with these macros. A new header posix-conf-vars.h includes this generated header and defines accessor macros for the generated macros. Tested on x86_64. * posix/Makefile (before-compile): Add posix-conf-vars-def.h. ($(objpfx)posix-conf-vars-def.h): New target. * posix/posix-conf-vars.list: New file. * posix/posix-conf-vars.h: New file. * posix/confstr.c: Include posix-conf-vars.h. (confstr): Use CONF_IS_* macros. * posix/posix-envs.def: Include posix-conf-vars.h. Use CONF_IS_* macros. * scripts/gen-posix-conf-vars.awk: New file. --- ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a02e52668d..3e765e31f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2014-12-29 Siddhesh Poyarekar + + * posix/Makefile (before-compile): Add posix-conf-vars-def.h. + ($(objpfx)posix-conf-vars-def.h): New target. + * posix/posix-conf-vars.list: New file. + * posix/posix-conf-vars.h: New file. + * posix/confstr.c: Include posix-conf-vars.h. + (confstr): Use CONF_IS_* macros. + * posix/posix-envs.def: Include posix-conf-vars.h. Use + CONF_IS_* macros. + * scripts/gen-posix-conf-vars.awk: New file. + 2014-12-26 Chris Metcalf * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv, -- cgit v1.2.3