tech-toolchain archive

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

-march=native with diff



I was wondering why this fails for a while, but with xtos giving a
strong hint, I finally have a diff that works.

So, why are we doing this? :-) for unmodified gcc -dumpspecs we have:

*cc1:
%(cc1_cpu)

*cc1_cpu:
%{march=native:%>march=native %:local_cpu_detect(arch)   %{!mtune=*:%>mtune=native %:local_cpu_detect(tune)}} %{mtune=native:%>mtune=native %:local_cpu_detect(tune)}


for base gcc:
*cc1:
%{cxx-isystem}

*cc1_cpu:
%{march=native:%>march=native %:local_cpu_detect(arch)   %{!mtune=*:%>mtune=native %:local_cpu_detect(tune)}} %{mtune=native:%>mtune=native %:local_cpu_detect(tune)}





Index: gcc/config/netbsd.h
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/dist/gcc/config/netbsd.h,v
retrieving revision 1.28
diff -u -r1.28 netbsd.h
--- gcc/config/netbsd.h	7 Apr 2019 14:11:23 -0000	1.28
+++ gcc/config/netbsd.h	8 Apr 2019 11:34:05 -0000
@@ -153,16 +153,6 @@
 #define NETBSD_LIBGCC_SPEC "-lgcc"
 #endif
 
-/* Pass -cxx-isystem to cc1/cc1plus.  */
-#define NETBSD_CC1_AND_CC1PLUS_SPEC		\
-  "%{cxx-isystem}"
-
-#undef CC1_SPEC
-#define CC1_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC
-
-#undef CC1PLUS_SPEC
-#define CC1PLUS_SPEC NETBSD_CC1_AND_CC1PLUS_SPEC
-
 #if defined(HAVE_LD_EH_FRAME_HDR)
 #define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
 #endif



Home | Main Index | Thread Index | Old Index