]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Revert "libstdc++: Horrible macro hacks to allow building on avr"
authorJonathan Wakely <jwakely@redhat.com>
Tue, 3 Oct 2023 15:08:41 +0000 (16:08 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 4 Oct 2023 11:10:03 +0000 (12:10 +0100)
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):

libstdc++-v3/src/c++17/fs_ops.cc
libstdc++-v3/src/filesystem/ops-common.h

index 802894ea5b554db746d9942b1be28a25f1812c92..4155b4d64b9c01b77079caab8205211a9de1731d 100644 (file)
 #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;
index a680a51c984f750cfff498dd09916b61f9b9c67b..54bafff2a9cf14795ada3c0282bcc250b9a73b85 100644 (file)
@@ -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;