From e1f07131e2d88b08f75ffea2a8dcfb16607629aa Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 19 Nov 2020 08:55:01 -0800 Subject: config: Add tests for modules-desired features this adds configure tests for features that modules can take advantage of -- and if they are not present has reduced or fallback functionality. gcc/ * configure.ac: Add tests for fstatat, sighandler_t, O_CLOEXEC, unix-domain and ipv6 sockets. * config.in: Rebuilt. * configure: Rebuilt. --- gcc/config.in | 60 +++++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 12 deletions(-) (limited to 'gcc/config.in') diff --git a/gcc/config.in b/gcc/config.in index 6fae7b769b8..3221dae411c 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -302,6 +302,18 @@ #endif +/* Define if AF_INET6 supported. */ +#ifndef USED_FOR_TARGET +#undef HAVE_AF_INET6 +#endif + + +/* Define if AF_UNIX supported. */ +#ifndef USED_FOR_TARGET +#undef HAVE_AF_UNIX +#endif + + /* Define if your assembler supports architecture modifiers. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_ARCHITECTURE_MODIFIERS @@ -564,12 +576,24 @@ #endif +/* Define if the assembler understands -march=rv*_zifencei. */ +#ifndef USED_FOR_TARGET +#undef HAVE_AS_MARCH_ZIFENCEI +#endif + + /* Define if your assembler supports mfcr field. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_MFCRF #endif +/* Define if the assembler understands -misa-spec=. */ +#ifndef USED_FOR_TARGET +#undef HAVE_AS_MISA_SPEC +#endif + + /* Define if your Mac OS X assembler supports the -mmacos-version-min option. */ #ifndef USED_FOR_TARGET @@ -643,18 +667,6 @@ #endif -/* Define if your assembler supports -misa-spec=. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_MISA_SPEC -#endif - - -/* Define if your assembler supports -march=rv*_zifencei. */ -#ifndef USED_FOR_TARGET -#undef HAVE_AS_MARCH_ZIFENCEI -#endif - - /* Define if your assembler supports relocs needed by -fpic. */ #ifndef USED_FOR_TARGET #undef HAVE_AS_SMALL_PIC_RELOCS @@ -1265,6 +1277,12 @@ #endif +/* Define to 1 if you have the `fstatat' function. */ +#ifndef USED_FOR_TARGET +#undef HAVE_FSTATAT +#endif + + /* Define to 1 if you have the header file. */ #ifndef USED_FOR_TARGET #undef HAVE_FTW_H @@ -1770,6 +1788,12 @@ #endif +/* Define to 1 if you have the `posix_fallocate' function. */ +#ifndef USED_FOR_TARGET +#undef HAVE_POSIX_FALLOCATE +#endif + + /* Define to 1 if you have the `putchar_unlocked' function. */ #ifndef USED_FOR_TARGET #undef HAVE_PUTCHAR_UNLOCKED @@ -1794,6 +1818,12 @@ #endif +/* Define if defines sighandler_t */ +#ifndef USED_FOR_TARGET +#undef HAVE_SIGHANDLER_T +#endif + + /* Define if the system-provided CRTs are present on Solaris. */ #ifndef USED_FOR_TARGET #undef HAVE_SOLARIS_CRTS @@ -2033,6 +2063,12 @@ #endif +/* Define if O_CLOEXEC supported by fcntl. */ +#ifndef USED_FOR_TARGET +#undef HOST_HAS_O_CLOEXEC +#endif + + /* Define as const if the declaration of iconv() needs const. */ #ifndef USED_FOR_TARGET #undef ICONV_CONST -- cgit v1.2.1