pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gcc7snapshot: don't error on undefined reference
Module Name: pkgsrc-wip
Committed By: coypu <coypu%sdf.org@localhost>
Pushed By: coypu
Date: Sat Dec 31 22:12:01 2016 +0200
Changeset: fac8e3eef4f054e61ac9924983e26faa9278639a
Modified Files:
gcc7snapshot/distinfo
Added Files:
gcc7snapshot/patches/patch-gcc_config_arm_arm.h
Log Message:
gcc7snapshot: don't error on undefined reference
to host_detect_local_cpu on netbsd/arm. GCC bug #77800.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fac8e3eef4f054e61ac9924983e26faa9278639a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gcc7snapshot/distinfo | 1 +
gcc7snapshot/patches/patch-gcc_config_arm_arm.h | 20 ++++++++++++++++++++
2 files changed, 21 insertions(+)
diffs:
diff --git a/gcc7snapshot/distinfo b/gcc7snapshot/distinfo
index 5a353be..9f9ccbf 100644
--- a/gcc7snapshot/distinfo
+++ b/gcc7snapshot/distinfo
@@ -10,6 +10,7 @@ SHA512 (isl-0.14.tar.bz2) = 117c0c6f31d91a9284a8f54a748df6494ca2ac21507a45611e91
Size (isl-0.14.tar.bz2) = 1399896 bytes
SHA1 (patch-gcc_Makefile.in) = ce366a091960d335ecb022918e2f7bfc4e3fcccf
SHA1 (patch-gcc_config.gcc) = fea8288c22bb2c4dd44a5e77c8f92dee8f8f6b18
+SHA1 (patch-gcc_config_arm_arm.h) = 92c8bff1063e153fec4454e6dea5334a42b0dad6
SHA1 (patch-gcc_config_netbsd-protos.h) = 6d28864b4ccc8c1a63fe28e43601b84b63a00633
SHA1 (patch-gcc_config_netbsd.c) = 85f786bce881ef2fc348f98ef81fdbc001076183
SHA1 (patch-gcc_config_netbsd.h) = 81891a83bb17b99fdb2c9381b8e8a1767391c695
diff --git a/gcc7snapshot/patches/patch-gcc_config_arm_arm.h b/gcc7snapshot/patches/patch-gcc_config_arm_arm.h
new file mode 100644
index 0000000..037dd64
--- /dev/null
+++ b/gcc7snapshot/patches/patch-gcc_config_arm_arm.h
@@ -0,0 +1,20 @@
+$NetBSD$
+
+driver-arm.o is only included for freebsd/arm and linux/arm, and
+it is responsible for the definition of host_detect_local_cpu.
+
+Without it, we get an undefined reference.
+
+GCC bugzilla #77800
+
+--- gcc/config/arm/arm.h.orig 2016-12-15 17:51:46.000000000 +0000
++++ gcc/config/arm/arm.h
+@@ -2231,7 +2231,7 @@ extern const char *arm_target_thumb_only
+
+ /* -mcpu=native handling only makes sense with compiler running on
+ an ARM chip. */
+-#if defined(__arm__)
++#if defined(__arm__) && (defined(__linux__) || defined(__FreeBSD__))
+ 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