pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gcc6 gcc6: add patch that helps netbsd/arm builds...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2f0c00ed5753
branches:  trunk
changeset: 362850:2f0c00ed5753
user:      maya <maya%pkgsrc.org@localhost>
date:      Sun May 28 01:22:38 2017 +0000

description:
gcc6: add patch that helps netbsd/arm builds continue

those builds are still broken, but it will help if someone addresses it.

diffstat:

 lang/gcc6/distinfo                           |   3 ++-
 lang/gcc6/patches/patch-gcc_config_arm_arm.h |  20 ++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r 027e33a4f378 -r 2f0c00ed5753 lang/gcc6/distinfo
--- a/lang/gcc6/distinfo        Sun May 28 01:01:33 2017 +0000
+++ b/lang/gcc6/distinfo        Sun May 28 01:22:38 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2016/12/30 00:22:44 maya Exp $
+$NetBSD: distinfo,v 1.6 2017/05/28 01:22:38 maya Exp $
 
 SHA1 (gcc-6.3.0.tar.bz2) = 928ab552666ee08eed645ff20ceb49d139205dea
 RMD160 (gcc-6.3.0.tar.bz2) = 38d297e66ff27786f52ccc2b3a006cd1b056b0f7
@@ -10,6 +10,7 @@
 Size (isl-0.14.tar.bz2) = 1399896 bytes
 SHA1 (patch-gcc_Makefile.in) = 41d45e8988b59e6ffa7adb7833290d39fc1fd0e1
 SHA1 (patch-gcc_config.gcc) = 84fedf863c853c40bf81884f5db3617200f0d31d
+SHA1 (patch-gcc_config_arm_arm.h) = e69b7f89ba245847f58253675a16749890b9d1ae
 SHA1 (patch-gcc_config_netbsd-protos.h) = 6d28864b4ccc8c1a63fe28e43601b84b63a00633
 SHA1 (patch-gcc_config_netbsd-stdint.h) = 025fc883101a187e84ed4c0772406720d645d550
 SHA1 (patch-gcc_config_netbsd.c) = 3c09521e1803633a3643cf396a03f1f433ec869b
diff -r 027e33a4f378 -r 2f0c00ed5753 lang/gcc6/patches/patch-gcc_config_arm_arm.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc6/patches/patch-gcc_config_arm_arm.h      Sun May 28 01:22:38 2017 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-gcc_config_arm_arm.h,v 1.1 2017/05/28 01:22:38 maya Exp $
+
+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-04-01 14:58:53.000000000 +0000
++++ gcc/config/arm/arm.h
+@@ -2247,7 +2247,7 @@ extern const char *arm_rewrite_mcpu (int
+ 
+ /* -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