> On 25 Jan 2022, at 15:27, David Edelsohn <dje....@gmail.com> wrote:
>
> This patch broke bootstrap on AIX. It may have broken Darwin.
As you anticipated, it did : fixed as below (tested on powerpc-darwin9,
pushed to master).
thanks
Iain
[pushed] Darwin, PPC: Fix bootstrap after GLIBC version changes.
A recent patch added tests for OPTION_GLIBC that is defined in
linux.h and linux64.h. This broke bootstrap for powerpc Darwin.
Fixed by adding a definition to 0 for OPTION_GLIBC.
Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>
gcc/ChangeLog:
* config/rs6000/darwin.h (OPTION_GLIBC): Define to 0.
---
gcc/config/rs6000/darwin.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index b5cef42610f..210c60694cd 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -34,6 +34,8 @@
#endif
#endif
+#define OPTION_GLIBC 0
+
/* The object file format is Mach-O. */
#define TARGET_OBJECT_FORMAT OBJECT_MACHO
--
2.24.1