pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/cross/arm-none-eabi-gcc skip host_detect_local_cpu() i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ecbbce0b0eb9
branches:  trunk
changeset: 423120:ecbbce0b0eb9
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Tue Feb 11 01:04:05 2020 +0000

description:
skip host_detect_local_cpu() if CROSS_DIRECTORY_STRUCTURE.

diffstat:

 cross/arm-none-eabi-gcc/distinfo                           |   3 +-
 cross/arm-none-eabi-gcc/patches/patch-gcc_config_arm_arm.h |  18 ++++++++++++++
 2 files changed, 20 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r e2b7036915f1 -r ecbbce0b0eb9 cross/arm-none-eabi-gcc/distinfo
--- a/cross/arm-none-eabi-gcc/distinfo  Tue Feb 11 00:00:26 2020 +0000
+++ b/cross/arm-none-eabi-gcc/distinfo  Tue Feb 11 01:04:05 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2019/05/12 06:20:56 ryoon Exp $
+$NetBSD: distinfo,v 1.9 2020/02/11 01:04:05 mrg Exp $
 
 SHA1 (gcc-8.3.0.tar.xz) = c27f4499dd263fe4fb01bcc5565917f3698583b2
 RMD160 (gcc-8.3.0.tar.xz) = 59396f7136301466d0ec15eb7307558c0da692df
@@ -9,6 +9,7 @@
 SHA512 (newlib-3.1.0.tar.gz) = efc4c3ab7153387780d141386bca5d3e20c9d25ae3e6b87cf94c8df9d301ce5926dacdff9bd33aeb9781559d933c3d0ae77f4e5b46120d90792f75dbfde702c7
 Size (newlib-3.1.0.tar.gz) = 17958952 bytes
 SHA1 (patch-contrib_download__prerequisites) = be9b02068b3d4d783e92bee66d480bb2bfe35a84
+SHA1 (patch-gcc_config_arm_arm.h) = 6d8cc2474cf9e902c766281315b75d6aadc42ed1
 SHA1 (patch-gcc_system.h) = 72a75ff773b9b5f3d2f16f4ec7d29e032aba5f53
 SHA1 (patch-libcc1_configure) = 0368733ddf79b109fcc7146b0baeb37ab31e634a
 SHA1 (patch-libcc1_connection.cc) = 2acd56a6f62b29ed3f02eecb7bf103e4564a442c
diff -r e2b7036915f1 -r ecbbce0b0eb9 cross/arm-none-eabi-gcc/patches/patch-gcc_config_arm_arm.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cross/arm-none-eabi-gcc/patches/patch-gcc_config_arm_arm.h        Tue Feb 11 01:04:05 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-gcc_config_arm_arm.h,v 1.1 2020/02/11 01:04:05 mrg Exp $
+
+Disable -march=native for cross compilers.
+
+
+--- gcc/config/arm/arm.h.orig  2018-03-22 10:24:41.000000000 -0700
++++ gcc/config/arm/arm.h       2020-02-10 16:39:34.594580129 -0800
+@@ -2194,8 +2194,8 @@
+   { "target_mode_check", arm_target_thumb_only },
+ 
+ /* -mcpu=native handling only makes sense with compiler running on
+-   an ARM chip.  */
+-#if defined(__arm__)
++   an ARM chip.  Cross compile hosts may not be able to do this.  */
++#if defined(__arm__) && !defined(CROSS_DIRECTORY_STRUCTURE)
+ extern const char *host_detect_local_cpu (int argc, const char **argv);
+ #define HAVE_LOCAL_CPU_DETECT
+ # define MCPU_MTUNE_NATIVE_FUNCTIONS                  \



Home | Main Index | Thread Index | Old Index