public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-11032] Revert "libstdc++: Horrible macro hacks to allow building on avr"
@ 2023-10-04 11:28 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-10-04 11:28 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:7caac4e650f38f3bc341ef3513864605747af986
commit r11-11032-g7caac4e650f38f3bc341ef3513864605747af986
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Oct 3 16:08:41 2023 +0100
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:
---
libstdc++-v3/src/c++17/fs_ops.cc | 4 ----
libstdc++-v3/src/filesystem/ops-common.h | 4 ----
2 files changed, 8 deletions(-)
diff --git a/libstdc++-v3/src/c++17/fs_ops.cc b/libstdc++-v3/src/c++17/fs_ops.cc
index 802894ea5b5..4155b4d64b9 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 a680a51c984..54bafff2a9c 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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-04 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-04 11:28 [gcc r11-11032] Revert "libstdc++: Horrible macro hacks to allow building on avr" Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).