Compare commits
4 Commits
9.2.0-3mam
...
10.1.0-2ma
Author | SHA1 | Date | |
---|---|---|---|
507d443445 | |||
fcf33b7cf9 | |||
545e0c4d19 | |||
628b8909d7 |
24
gcc-10.1.0-arm-provide-futex-atomic-functions.patch
Normal file
24
gcc-10.1.0-arm-provide-futex-atomic-functions.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -ru gcc-10.1.0/libstdc++-v3/include/bits/atomic_futex.h gcc-10.1.0.patched/libstdc++-v3/include/bits/atomic_futex.h
|
||||
--- gcc-10.1.0/libstdc++-v3/include/bits/atomic_futex.h 2020-05-07 12:50:02.000000000 +0200
|
||||
+++ gcc-10.1.0.patched/libstdc++-v3/include/bits/atomic_futex.h 2020-06-08 18:18:38.544259479 +0200
|
||||
@@ -49,7 +49,7 @@
|
||||
_GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||
|
||||
#ifdef _GLIBCXX_HAS_GTHREADS
|
||||
-#if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
|
||||
+#if defined(_GLIBCXX_HAVE_LINUX_FUTEX)
|
||||
struct __atomic_futex_unsigned_base
|
||||
{
|
||||
// Returns false iff a timeout occurred.
|
||||
diff -ru gcc-10.1.0/libstdc++-v3/src/c++11/futex.cc gcc-10.1.0.patched/libstdc++-v3/src/c++11/futex.cc
|
||||
--- gcc-10.1.0/libstdc++-v3/src/c++11/futex.cc 2020-05-07 12:50:02.000000000 +0200
|
||||
+++ gcc-10.1.0.patched/libstdc++-v3/src/c++11/futex.cc 2020-06-08 18:19:20.413501894 +0200
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <bits/atomic_futex.h>
|
||||
#ifdef _GLIBCXX_HAS_GTHREADS
|
||||
-#if defined(_GLIBCXX_HAVE_LINUX_FUTEX) && ATOMIC_INT_LOCK_FREE > 1
|
||||
+#if defined(_GLIBCXX_HAVE_LINUX_FUTEX)
|
||||
#include <chrono>
|
||||
#include <climits>
|
||||
#include <syscall.h>
|
22
gcc.spec
22
gcc.spec
@ -39,8 +39,8 @@
|
||||
%define majver %(echo %version | cut -d. -f 1-2)
|
||||
|
||||
Name: gcc
|
||||
Version: 9.2.0
|
||||
Release: 3mamba
|
||||
Version: 10.1.0
|
||||
Release: 2mamba
|
||||
Summary: GNU Compiler Collection (C, C++, Fortran, Go, Ada)
|
||||
Group: Applications/Development
|
||||
Vendor: openmamba
|
||||
@ -67,6 +67,7 @@ Patch14: gcc-4.8.0-libffi-texinfo.patch
|
||||
Patch15: gcc-4.9.0-upstream-fixes-1.patch
|
||||
Patch16: gcc-4.9.2-arm-lra-bootstrap.patch
|
||||
Patch19: gcc-7.1.0-cross-ftbfs-ucontet_t.patch
|
||||
Patch20: gcc-10.1.0-arm-provide-futex-atomic-functions.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
@ -600,6 +601,7 @@ Cross Platform gcc for %{_target_platform}.
|
||||
%patch11 -p1
|
||||
|
||||
%ifarch arm
|
||||
%patch20 -p1
|
||||
# workaround for gcc-go
|
||||
cp libgo/go/internal/syscall/unix/{getrandom_linux_arm.go,dummy.go}
|
||||
%endif
|
||||
@ -781,6 +783,8 @@ cd ../%{name}-build-%{_target_platform}
|
||||
make DESTDIR=%{buildroot} install
|
||||
|
||||
%if "%{_target_platform}" == "%{_host}"
|
||||
install -m644 libiberty/pic/libiberty.a %{buildroot}%{_libdir}/libiberty.a
|
||||
|
||||
# make target platform binaries symlinks to avoid binary duplicates
|
||||
for p in gcc-%{version} gcc gcc-ar gcc-nm gcc-ranlib c++ g++ gfortran; do
|
||||
rm -f %{buildroot}%{_bindir}/%{_target_platform}-$p
|
||||
@ -924,6 +928,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
|
||||
%{_bindir}/gcov
|
||||
%{_bindir}/gcov-dump
|
||||
%{_bindir}/gcov-tool
|
||||
%{_bindir}/lto-dump
|
||||
%{_bindir}/%{_target_platform}-cc
|
||||
%{_bindir}/%{_target_platform}-gcc-%{version}
|
||||
%{_bindir}/%{_target_platform}-gcc
|
||||
@ -946,6 +951,7 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
|
||||
%{_mandir}/man1/gcov.1.*
|
||||
%{_mandir}/man1/gcov-dump.1.*
|
||||
%{_mandir}/man1/gcov-tool.1.*
|
||||
%{_mandir}/man1/lto-dump.1*
|
||||
%{_mandir}/man7/fsf-funding.7.*
|
||||
%{_mandir}/man7/gfdl.7.*
|
||||
%{_mandir}/man7/gpl.7.*
|
||||
@ -1462,6 +1468,18 @@ rm -f %{buildroot}%{_infodir}/libffi.info*
|
||||
%endif # cross-platform
|
||||
|
||||
%changelog
|
||||
* Mon Jun 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 10.1.0-2mamba
|
||||
- arm: added patch to provide futex atomic functions _M_futex_notify_all and _M_futex_wait_until (armv7)
|
||||
|
||||
* Mon May 11 2020 Automatic Build System <autodist@mambasoft.it> 10.1.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Fri Mar 13 2020 Automatic Build System <autodist@mambasoft.it> 9.3.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Feb 29 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 9.2.0-4mamba
|
||||
- install libiberty.a with pic support
|
||||
|
||||
* Thu Dec 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 9.2.0-3mamba
|
||||
- added add and d languages; added --enable-cet=auto and more options
|
||||
|
||||
|
Reference in New Issue
Block a user