Siddhesh Poyarekar d7e64365fe Avoid attempt for runtime checks if all environments are defined
getconf has the capability to do a runtime check for environment
support in cases where there is optional support for an environment
(_POSIX_V7_ILP32_OFF32 on x86_64 for example) and this is indicated by
not defining the _POSIX_V7_ILP32_OFF32 macro, which results in getconf
doing an additional execve of _POSIX_V7_ILP32_OFF32 in the
$GETCONF_DIR.

The default bits/environments.h however does not leave any environment
macros undefined, which means that no such additional execve is
needed.  gcc trunk catches this as a build failure since it finds that
the code block inside switch(specs[i].num) is not reachable.  Avoid
this error by not bothering about the additional exec (and looking in
specific environments) when all environments are defined.

Tested on aarch64.

	* posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
	environment macros are defined.
	(main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
2016-06-24 02:00:12 +05:30
..
2016-04-14 08:54:57 +02:00
2016-03-07 00:21:37 -03:00
2013-06-06 02:15:33 +02:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-03-07 00:21:37 -03:00
2016-04-14 08:54:57 +02:00
2016-04-14 08:54:57 +02:00
2016-04-14 08:54:57 +02:00