From: Jonathan Wakely Date: Tue, 3 Oct 2023 15:08:41 +0000 (+0100) Subject: Revert "libstdc++: Horrible macro hacks to allow building on avr" X-Git-Tag: releases/gcc-11.5.0~552 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7caac4e650f38f3bc341ef3513864605747af986;p=thirdparty%2Fgcc.git Revert "libstdc++: Horrible macro hacks to allow building on avr" This reverts commit 061700c9f6f0f9f4219ddeb236d55764b42869b6. This hack will be unnecessary, as I'm backporting the __unsupported() utility from the later branches. libstdc++-v3/ChangeLog: * src/c++17/fs_ops.cc (not_supported): * src/filesystem/ops-common.h (ENOTSUP): --- diff --git a/libstdc++-v3/src/c++17/fs_ops.cc b/libstdc++-v3/src/c++17/fs_ops.cc index 802894ea5b55..4155b4d64b9c 100644 --- a/libstdc++-v3/src/c++17/fs_ops.cc +++ b/libstdc++-v3/src/c++17/fs_ops.cc @@ -61,10 +61,6 @@ #define _GLIBCXX_END_NAMESPACE_FILESYSTEM } #include "../filesystem/ops-common.h" -#ifdef __AVR__ -# define not_supported function_not_supported -#endif - #pragma GCC diagnostic ignored "-Wunused-parameter" namespace fs = std::filesystem; diff --git a/libstdc++-v3/src/filesystem/ops-common.h b/libstdc++-v3/src/filesystem/ops-common.h index a680a51c984f..54bafff2a9cf 100644 --- a/libstdc++-v3/src/filesystem/ops-common.h +++ b/libstdc++-v3/src/filesystem/ops-common.h @@ -170,10 +170,6 @@ namespace __gnu_posix # endif using char_type = char; #else // ! _GLIBCXX_FILESYSTEM_IS_WINDOWS && ! _GLIBCXX_HAVE_UNISTD_H -#ifdef __AVR__ -# define ENOTSUP ENOSYS -#endif - inline int open(const char*, int, ...) { errno = ENOTSUP; return -1; } inline int close(int) { errno = ENOTSUP; return -1; } using mode_t = int;