Skip to content

Instantly share code, notes, and snippets.

@DavidEGrayson
Created June 11, 2021 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidEGrayson/88bceb3f4e62f45725ecbb9248366300 to your computer and use it in GitHub Desktop.
Save DavidEGrayson/88bceb3f4e62f45725ecbb9248366300 to your computer and use it in GitHub Desktop.
GCC 11 patch for ARM darwin
diff -ur gcc-11.1.0/gcc/config/host-darwin.c gcc-11.1.0-fixed/gcc/config/host-darwin.c
--- gcc-11.1.0/gcc/config/host-darwin.c 2021-04-27 03:00:13.000000000 -0700
+++ gcc-11.1.0-fixed/gcc/config/host-darwin.c 2021-06-11 14:49:13.754000000 -0700
@@ -22,6 +22,10 @@
#include "coretypes.h"
#include "diagnostic-core.h"
#include "config/host-darwin.h"
+#include "hosthooks.h"
+#include "hosthooks-def.h"
+
+const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;
/* Yes, this is really supposed to work. */
/* This allows for a pagesize of 16384, which we have on Darwin20, but should
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment