pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/cross/aarch64-none-elf-gcc make a version of the GCC 7...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03257cc0b42e
branches:  trunk
changeset: 314792:03257cc0b42e
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Thu Nov 08 23:28:28 2018 +0000

description:
make a version of the GCC 7 gcc/config/arm/arm.h change for arm64
so that this package builds on arm64 platforms.

this change probably can be copied into the main GCC 7 package too.

no pkg bump as this should only enable building where it was not
working already.

diffstat:

 cross/aarch64-none-elf-gcc/distinfo                                   |   3 +-
 cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h |  21 ++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 89adc0316bbc -r 03257cc0b42e cross/aarch64-none-elf-gcc/distinfo
--- a/cross/aarch64-none-elf-gcc/distinfo       Thu Nov 08 23:01:54 2018 +0000
+++ b/cross/aarch64-none-elf-gcc/distinfo       Thu Nov 08 23:28:28 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2017/09/01 20:56:43 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2018/11/08 23:28:28 mrg Exp $
 
 SHA1 (gcc-7.2.0.tar.gz) = dec3effe9f73bf2216a88804ac805a05f9b33ea8
 RMD160 (gcc-7.2.0.tar.gz) = fa4eb09ea8c3fc388c6918096f134e188cce4c2d
@@ -9,6 +9,7 @@
 SHA512 (newlib-2.5.0.tar.gz) = 4c99e8dfcb4a7ad0769b9e173ff06628d82e4993ef87d3adf9d6b5578626b14de81b4b3c5f0673ddbb49dc9f3d3628f9f8d4432dcded91f5cd3d27b7d44343cd
 Size (newlib-2.5.0.tar.gz) = 17912392 bytes
 SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
+SHA1 (patch-gcc_config_aarch64_aarch64.h) = bf1ab74227badf54afb6cc8d5536f3449ab6c251
 SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
 SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
 SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
diff -r 89adc0316bbc -r 03257cc0b42e cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/aarch64-none-elf-gcc/patches/patch-gcc_config_aarch64_aarch64.h     Thu Nov 08 23:28:28 2018 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-gcc_config_aarch64_aarch64.h,v 1.1 2018/11/08 23:28:28 mrg Exp $
+
+driver-aarch64.o is not included for NetBSD and it is responsible for
+the definition of host_detect_local_cpu.
+
+Without it, we get an undefined reference.
+
+Similar to GCC bugzilla #77800 for arm.
+
+--- gcc/config/aarch64/aarch64.h.orig  2017-01-19 15:51:49.000000000 -0800
++++ gcc/config/aarch64/aarch64.h       2018-11-08 14:31:59.315619048 -0800
+@@ -930,7 +930,8 @@
+ #define MCPU_TO_MARCH_SPEC_FUNCTIONS \
+   { "rewrite_mcpu", aarch64_rewrite_mcpu },
+ 
+-#if defined(__aarch64__)
++/* NetBSD does not export necessary info via /proc/cpuinfo. */
++#if defined(__aarch64__) && !defined(__NetBSD__)
+ extern const char *host_detect_local_cpu (int argc, const char **argv);
+ # define EXTRA_SPEC_FUNCTIONS                                         \
+   { "local_cpu_detect", host_detect_local_cpu },                      \



Home | Main Index | Thread Index | Old Index