FreeBSD Bugzilla – Attachment 187024 Details for
Bug 221905
[patch] adapt lang/gcc* to new 'armv7' architecture
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add support for armv7 to lang/gcc6
gcc6.diff (text/plain), 2.86 KB, created by
Michal Meloun
on 2017-10-09 10:44:37 UTC
(
hide
)
Description:
add support for armv7 to lang/gcc6
Filename:
MIME Type:
Creator:
Michal Meloun
Created:
2017-10-09 10:44:37 UTC
Size:
2.86 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 451356) >+++ Makefile (working copy) >@@ -14,7 +14,7 @@ > LICENSE= GPLv3 GPLv3RLE > LICENSE_COMB= multi > >-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 i386 powerpc powerpc64 sparc64 >+ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 sparc64 > BROKEN_sparc64= fails to configure: cannot compute suffix of object files: cannot compile > > LIB_DEPENDS= libgmp.so:math/gmp \ >@@ -73,7 +73,7 @@ > USE_GCC= 5 # Cannot require ourselves, needs to be at least 4.9. > .endif > >-.if ${ARCH} == aarch64 || ${ARCH} == armv6 >+.if ${ARCH} == aarch64 || ${ARCH} == armv6 || ${ARCH} == armv7 > . if ${COMPILER_TYPE} == clang > . if empty(PORT_OPTIONS:MBOOTSTRAP) > MAKE_ARGS+=CXXFLAGS=-fbracket-depth=512 >Index: files/patch-gcc_config.gcc >=================================================================== >--- files/patch-gcc_config.gcc (nonexistent) >+++ files/patch-gcc_config.gcc (working copy) >@@ -0,0 +1,12 @@ >+--- gcc/config.gcc.orig 2017-10-08 11:57:29 UTC >++++ gcc/config.gcc >+@@ -1072,6 +1072,9 @@ arm*-*-freebsd*) # ARM FreeBSD EABI >+ tm_defines="${tm_defines} TARGET_FREEBSD_ARM_HARD_FLOAT=1" >+ fi >+ ;; >++ armv7*-*-freebsd*) >++ tm_defines="${tm_defines} TARGET_FREEBSD_ARMv7=1 TARGET_FREEBSD_ARM_HARD_FLOAT=1" >++ ;; >+ esac >+ with_tls=${with_tls:-gnu} >+ ;; > >Property changes on: files/patch-gcc_config.gcc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property >Index: files/patch-gcc_config_arm_freebsd.h >=================================================================== >--- files/patch-gcc_config_arm_freebsd.h (nonexistent) >+++ files/patch-gcc_config_arm_freebsd.h (working copy) >@@ -0,0 +1,17 @@ >+--- gcc/config/arm/freebsd.h.orig 2017-10-08 12:00:05 UTC >++++ gcc/config/arm/freebsd.h >+@@ -112,10 +112,12 @@ >+ #undef WCHAR_TYPE_SIZE >+ #define WCHAR_TYPE_SIZE BITS_PER_WORD >+ >+-#if defined (TARGET_FREEBSD_ARMv6) >++#if defined (TARGET_FREEBSD_ARMv7) >+ #undef SUBTARGET_CPU_DEFAULT >++#define SUBTARGET_CPU_DEFAULT TARGET_CPU_genericv7a >++#elif defined (TARGET_FREEBSD_ARMv6) >++#undef SUBTARGET_CPU_DEFAULT >+ #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm1176jzs >+-#else >+ #undef SUBTARGET_CPU_DEFAULT >+ #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9 >+ #endif > >Property changes on: files/patch-gcc_config_arm_freebsd.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 221905
:
185873
| 187024