Ticket #17191: apple_silicon.patch

File apple_silicon.patch, 1.2 KB (added by przemub, 3 years ago)

Patch

  • gcc/gcc/config/aarch64/aarch64.h

    diff --git a/gcc/gcc/config/aarch64/aarch64.h b/gcc/gcc/config/aarch64/aarch64.h
    index 976f9afae5..736b83ff0b 100644
    a b extern const char *aarch64_rewrite_mcpu (int argc, const char **argv);  
    10001000#define MCPU_TO_MARCH_SPEC_FUNCTIONS \
    10011001  { "rewrite_mcpu", aarch64_rewrite_mcpu },
    10021002
    1003 #if defined(__aarch64__)
     1003#if defined(__aarch64__) && ! defined(__APPLE__)
    10041004extern const char *host_detect_local_cpu (int argc, const char **argv);
    10051005#define HAVE_LOCAL_CPU_DETECT
    10061006# define EXTRA_SPEC_FUNCTIONS                       \
  • gcc/gcc/config/host-darwin.c

    diff --git a/gcc/gcc/config/host-darwin.c b/gcc/gcc/config/host-darwin.c
    index 8f700eec85..b737abc006 100644
    a b  
    2222#include "coretypes.h"
    2323#include "diagnostic-core.h"
    2424#include "config/host-darwin.h"
     25#include "hosthooks.h"
     26#include "hosthooks-def.h"
    2527
    2628/* Yes, this is really supposed to work.  */
    2729static char pch_address_space[1024*1024*1024] __attribute__((aligned (4096)));
    darwin_gt_pch_use_address (void *addr, size_t sz, int fd, size_t off)  
    7577
    7678  return ret;
    7779}
     80
     81const struct host_hooks host_hooks = HOST_HOOKS_INITIALIZER;