summaryrefslogtreecommitdiff
path: root/m68k-unknown-amigaos/recipes/patches/gcc/gcc6.p
diff options
context:
space:
mode:
Diffstat (limited to 'm68k-unknown-amigaos/recipes/patches/gcc/gcc6.p')
-rw-r--r--m68k-unknown-amigaos/recipes/patches/gcc/gcc6.p45
1 files changed, 0 insertions, 45 deletions
diff --git a/m68k-unknown-amigaos/recipes/patches/gcc/gcc6.p b/m68k-unknown-amigaos/recipes/patches/gcc/gcc6.p
index 8b4d30c..bac72b5 100644
--- a/m68k-unknown-amigaos/recipes/patches/gcc/gcc6.p
+++ b/m68k-unknown-amigaos/recipes/patches/gcc/gcc6.p
@@ -9821,51 +9821,6 @@ index 6942a504127f..ebe3e1c37121 100644
#include "stringpool.h"
#include "expmed.h"
#include "optabs.h"
-diff --git a/gcc/gcc.c b/gcc/gcc.c
-index 85ea19bd3a09..a4da7d515ce5 100644
---- gcc/gcc.c
-+++ gcc/gcc.c
-@@ -10107,3 +10107,40 @@ driver_get_configure_time_options (void (*cb) (const char *option,
- obstack_free (&obstack, NULL);
- n_switches = 0;
- }
-+
-+#ifdef TARGET_AMIGA
-+const char * amiga_m68k_prefix_func(int argc, const char ** argv) {
-+ char * p = 0;
-+ if (standard_libexec_prefix)
-+ {
-+ char * glp = concat(standard_libexec_prefix, "", NULL);
-+ p = strrchr(glp, '/');
-+ if (p)
-+ {
-+ *p = 0;
-+ p = strrchr(glp, '/');
-+ if (p)
-+ {
-+ *p = 0;
-+ p = strrchr(glp, '/');
-+ if (p)
-+ {
-+ p[1] = 0;
-+ p = concat(glp, "m68k-amigaos/", NULL);
-+ }
-+ }
-+ }
-+ free(glp);
-+ }
-+ if (!p)
-+ p = concat("../../../../", "", NULL);
-+
-+ for (int i = 0; i < argc; ++i) {
-+ char * q = concat(p, argv[i], NULL);
-+ free(p);
-+ p = q;
-+ }
-+// printf("amiga_m68k_prefix_func='%s'\n", p);
-+ return p;
-+}
-+#endif
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 5b2c96ecb5a6..f74e733f9337 100644
--- gcc/gcse.c