FreeBSD Bugzilla – Attachment 220350 Details for
Bug 251670
lang/gcc10: add support for powerpc64le
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
gcc10.patch (text/plain), 5.93 KB, created by
Piotr Kubaj
on 2020-12-07 16:29:15 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2020-12-07 16:29:15 UTC
Size:
5.93 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 557169) >+++ Makefile (working copy) >@@ -13,7 +13,7 @@ > LICENSE= GPLv3 GPLv3RLE > LICENSE_COMB= multi > >-ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 >+ONLY_FOR_ARCHS= aarch64 amd64 arm armv6 armv7 i386 powerpc powerpc64 powerpc64le > > LIB_DEPENDS= libgmp.so:math/gmp \ > libmpfr.so:math/mpfr \ >Index: files/patch-gcc_config.gcc >=================================================================== >--- files/patch-gcc_config.gcc (nonexistent) >+++ files/patch-gcc_config.gcc (working copy) >@@ -0,0 +1,13 @@ >+--- gcc/config.gcc.orig 2020-12-07 03:00:29 UTC >++++ gcc/config.gcc >+@@ -2868,6 +2868,10 @@ powerpc*-*-freebsd*) >+ extra_options="${extra_options} rs6000/sysv4.opt" >+ tmake_file="rs6000/t-fprules rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm" >+ case ${target} in >++ powerpc*le-*-*) >++ tm_file="${tm_file} rs6000/sysv4le.h" ;; >++ esac >++ case ${target} in >+ powerpc64*) >+ tm_file="${tm_file} rs6000/default64.h rs6000/freebsd64.h" >+ tmake_file="${tmake_file} rs6000/t-freebsd64" > >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_rs6000_freebsd64.h >=================================================================== >--- files/patch-gcc_config_rs6000_freebsd64.h (nonexistent) >+++ files/patch-gcc_config_rs6000_freebsd64.h (working copy) >@@ -0,0 +1,44 @@ >+--- gcc/config/rs6000/freebsd64.h.orig 2020-07-23 06:35:17 UTC >++++ gcc/config/rs6000/freebsd64.h >+@@ -51,11 +51,10 @@ extern int dot_symbols; >+ #define SET_CMODEL(opt) do {} while (0) >+ #endif >+ >+-/* Until now the 970 is the only Processor where FreeBSD 64-bit runs on. */ >+ #undef PROCESSOR_DEFAULT >+-#define PROCESSOR_DEFAULT PROCESSOR_POWER4 >++#define PROCESSOR_DEFAULT PROCESSOR_PPC7450 >+ #undef PROCESSOR_DEFAULT64 >+-#define PROCESSOR_DEFAULT64 PROCESSOR_POWER4 >++#define PROCESSOR_DEFAULT64 PROCESSOR_POWER8 >+ >+ /* We don't need to generate entries in .fixup, except when >+ -mrelocatable or -mrelocatable-lib is given. */ >+@@ -158,8 +157,8 @@ extern int dot_symbols; >+ #define ASM_SPEC64 "-a64" >+ >+ #define ASM_SPEC_COMMON "%(asm_cpu) \ >+-%{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}} \ >+-%{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian}" >++%{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \ >++ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN) >+ >+ #undef SUBSUBTARGET_EXTRA_SPECS >+ #define SUBSUBTARGET_EXTRA_SPECS \ >+@@ -181,9 +180,15 @@ extern int dot_symbols; >+ %{static:-Bstatic}} \ >+ %{symbolic:-Bsymbolic}" >+ >++#undef DEFAULT_ASM_ENDIAN >+ #define LINK_OS_FREEBSD_SPEC32 "-melf32ppc_fbsd " LINK_OS_FREEBSD_SPEC_DEF >+- >++#if (TARGET_DEFAULT & MASK_LITTLE_ENDIAN) >++#define DEFAULT_ASM_ENDIAN " -mlittle" >++#define LINK_OS_FREEBSD_SPEC64 "-melf64lppc_fbsd " LINK_OS_FREEBSD_SPEC_DEF >++#else >++#define DEFAULT_ASM_ENDIAN " -mbig" >+ #define LINK_OS_FREEBSD_SPEC64 "-melf64ppc_fbsd " LINK_OS_FREEBSD_SPEC_DEF >++#endif >+ >+ #undef MULTILIB_DEFAULTS >+ #define MULTILIB_DEFAULTS { "m64" } > >Property changes on: files/patch-gcc_config_rs6000_freebsd64.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 >Index: files/patch-gcc_configure >=================================================================== >--- files/patch-gcc_configure (nonexistent) >+++ files/patch-gcc_configure (working copy) >@@ -0,0 +1,20 @@ >+--- gcc/configure.orig 2020-07-23 06:35:17 UTC >++++ gcc/configure >+@@ -29398,13 +29398,16 @@ $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >+ esac >+ >+ case "$target:$tm_file" in >+- powerpc64-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) >++ powerpc64*-*-freebsd* | powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*) >+ case "$target" in >+ *le-*-linux*) >+ emul_name="-melf64lppc" >+ ;; >+ *-*-linux*) >+ emul_name="-melf64ppc" >++ ;; >++ *le-*-freebsd*) >++ emul_name="-melf64lppc_fbsd" >+ ;; >+ *-*-freebsd*) >+ emul_name="-melf64ppc_fbsd" > >Property changes on: files/patch-gcc_configure >___________________________________________________________________ >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-libcpp_lex.c >=================================================================== >--- files/patch-libcpp_lex.c (nonexistent) >+++ files/patch-libcpp_lex.c (working copy) >@@ -0,0 +1,16 @@ >+--- libcpp/lex.c.orig 2020-11-02 10:24:50 UTC >++++ libcpp/lex.c >+@@ -531,11 +531,11 @@ init_vectorized_lexer (void) >+ search_line_fast = impl; >+ } >+ >+-#elif defined(_ARCH_PWR8) && defined(__ALTIVEC__) >++#elif (GCC_VERSION >= 4005) && defined(_ARCH_PWR8) && defined(__ALTIVEC__) >+ >+ /* A vection of the fast scanner using AltiVec vectorized byte compares >+ and VSX unaligned loads (when VSX is available). This is otherwise >+- the same as the pre-GCC 5 version. */ >++ the same as the AltiVec version. */ >+ >+ ATTRIBUTE_NO_SANITIZE_UNDEFINED >+ static const uchar * > >Property changes on: files/patch-libcpp_lex.c >___________________________________________________________________ >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
Flags:
pkubaj
:
maintainer-approval?
(
gerald
)
Actions:
View
|
Diff
Attachments on
bug 251670
: 220350