Compare commits
51 commits
rawhide
...
private-f3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07a9464505 | ||
|
|
adc89608c0 | ||
|
|
c25791e799 | ||
|
|
6d625ad409 | ||
|
|
fd5541b8df | ||
|
|
a18fa763f9 | ||
|
|
1e6e45ec00 | ||
|
|
d0bcb56742 | ||
|
|
f89f895a8e | ||
|
|
d40573479e | ||
|
|
8f9e1ed09a | ||
|
|
c49077600a | ||
|
|
90787b81c6 | ||
|
|
d7d4e1aba0 | ||
|
|
8d2cade2db | ||
|
|
e6f5ca8ac1 | ||
|
|
aedbee16bc | ||
|
|
e66bb65ab3 | ||
|
|
b1db644be8 | ||
|
|
e8768c7015 | ||
|
|
e03d55c2ad | ||
|
|
e086e65a04 | ||
|
|
a9b15d7950 | ||
|
|
94a6f9faf6 | ||
|
|
73d84e32ea | ||
|
|
0fa7823d69 | ||
|
|
41cae8bec1 | ||
|
|
a674eaa254 | ||
|
|
526d16843d | ||
|
|
28b4d989e5 | ||
|
|
caea58a62a | ||
|
|
0a1fd18028 | ||
|
|
ea43c4eafe | ||
|
|
70289f770a | ||
|
|
492993fb3d | ||
|
|
18bfb37b76 | ||
|
|
486fdbdc34 | ||
|
|
43d4247ce8 | ||
|
|
6cfa0a826b | ||
|
|
72595b0908 | ||
|
|
2e3cb4baca | ||
|
|
a1979f63e7 | ||
|
|
03b259db03 | ||
|
|
bca5d90009 | ||
|
|
4cfa2459d2 | ||
|
|
bd34d9b9ca | ||
|
|
87464ae8e4 | ||
|
|
aa1f06c095 | ||
|
|
24eaf98e04 | ||
|
|
b42210e2f0 | ||
|
|
9410b27f55 |
2 changed files with 1122 additions and 58 deletions
1113
gcc-error-logging.patch
Normal file
1113
gcc-error-logging.patch
Normal file
File diff suppressed because it is too large
Load diff
67
gcc.spec
67
gcc.spec
|
|
@ -136,7 +136,7 @@
|
|||
Summary: Various compilers (C, C++, Objective-C, ...)
|
||||
Name: gcc
|
||||
Version: %{gcc_version}
|
||||
Release: %{gcc_release}%{?dist}
|
||||
Release: %{gcc_release}.implicits.8%{?dist}.6
|
||||
# libgcc, libgfortran, libgomp, libstdc++ and crtstuff have
|
||||
# GCC Runtime Exception.
|
||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
|
||||
|
|
@ -292,6 +292,8 @@ Patch50: isl-rh2155127.patch
|
|||
|
||||
Patch100: gcc13-fortran-fdec-duplicates.patch
|
||||
|
||||
Patch990: gcc-error-logging.patch
|
||||
|
||||
# On ARM EABI systems, we do want -gnueabi to be part of the
|
||||
# target triple.
|
||||
%ifnarch %{arm}
|
||||
|
|
@ -873,6 +875,8 @@ touch -r isl-0.24/m4/ax_prog_cxx_for_build.m4 isl-0.24/m4/ax_prog_cc_for_build.m
|
|||
%patch -P100 -p1 -b .fortran-fdec-duplicates~
|
||||
%endif
|
||||
|
||||
%patch -P 990 -p1 -b .error-logging
|
||||
|
||||
%ifarch %{arm}
|
||||
rm -f gcc/testsuite/go.test/test/fixedbugs/issue19182.go
|
||||
%endif
|
||||
|
|
@ -911,6 +915,9 @@ fi
|
|||
rm -f gcc/testsuite/go.test/test/chan/goroutines.go
|
||||
|
||||
%build
|
||||
# Do not write the failures anywhere. Currently required for rebuilding
|
||||
# with an instrumented GCC.
|
||||
export GCC_ERROR_LOG_DIRECTORY=/disabled
|
||||
|
||||
# Undo the broken autoconf change in recent Fedora versions
|
||||
export CONFIG_SITE=NONE
|
||||
|
|
@ -1185,7 +1192,7 @@ CC="$CC" CXX="$CXX" CFLAGS="$OPT_FLAGS" \
|
|||
%ifarch sparc sparcv9 sparc64
|
||||
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now bootstrap
|
||||
%else
|
||||
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now profiledbootstrap
|
||||
make %{?_smp_mflags} BOOT_CFLAGS="$OPT_FLAGS" LDFLAGS_FOR_TARGET=-Wl,-z,relro,-z,now bootstrap
|
||||
%endif
|
||||
|
||||
CC="`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc`"
|
||||
|
|
@ -2201,62 +2208,6 @@ ln -sf gcc-annobin.so.0.0.0 $FULLPATH/plugin/gcc-annobin.so.0
|
|||
ln -sf gcc-annobin.so.0.0.0 $FULLPATH/plugin/gcc-annobin.so
|
||||
%endif
|
||||
|
||||
%check
|
||||
cd obj-%{gcc_target_platform}
|
||||
|
||||
# run the tests.
|
||||
LC_ALL=C make %{?_smp_mflags} -k check ALT_CC_UNDER_TEST=gcc ALT_CXX_UNDER_TEST=g++ \
|
||||
%if 0%{?fedora} >= 20 || 0%{?rhel} > 7
|
||||
RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector-strong}'" || :
|
||||
%else
|
||||
RUNTESTFLAGS="--target_board=unix/'{,-fstack-protector}'" || :
|
||||
%endif
|
||||
%if !%{build_annobin_plugin}
|
||||
if [ -f %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so ]; then
|
||||
# Test whether current annobin plugin won't fail miserably with the newly built gcc.
|
||||
echo -e '#include <stdio.h>\nint main () { printf ("Hello, world!\\n"); return 0; }' > annobin-test.c
|
||||
echo -e '#include <iostream>\nint main () { std::cout << "Hello, world!" << std::endl; return 0; }' > annobin-test.C
|
||||
`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cc` \
|
||||
-O2 -g -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS \
|
||||
-fexceptions -fstack-protector-strong -grecord-gcc-switches -o annobin-test{c,.c} \
|
||||
-Wl,-rpath,%{gcc_target_platform}/libgcc/ \
|
||||
-fplugin=%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so \
|
||||
2> ANNOBINOUT1 || echo Annobin test 1 FAIL > ANNOBINOUT2;
|
||||
`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-cxx` \
|
||||
`%{gcc_target_platform}/libstdc++-v3/scripts/testsuite_flags --build-includes` \
|
||||
-O2 -g -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS \
|
||||
-fexceptions -fstack-protector-strong -grecord-gcc-switches -o annobin-test{C,.C} \
|
||||
-Wl,-rpath,%{gcc_target_platform}/libgcc/:%{gcc_target_platform}/libstdc++-v3/src/.libs/ \
|
||||
-fplugin=%{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}/plugin/annobin.so \
|
||||
-B %{gcc_target_platform}/libstdc++-v3/src/.libs/ \
|
||||
2> ANNOBINOUT3 || echo Annobin test 2 FAIL > ANNOBINOUT4;
|
||||
[ -f ./annobin-testc ] || echo Annobin test 1 MISSING > ANNOBINOUT5;
|
||||
[ -f ./annobin-testc ] && \
|
||||
( ./annobin-testc > ANNOBINRES1 2>&1 || echo Annobin test 1 RUNFAIL > ANNOBINOUT6 );
|
||||
[ -f ./annobin-testC ] || echo Annobin test 2 MISSING > ANNOBINOUT7;
|
||||
[ -f ./annobin-testC ] && \
|
||||
( ./annobin-testC > ANNOBINRES2 2>&1 || echo Annobin test 2 RUNFAIL > ANNOBINOUT8 );
|
||||
cat ANNOBINOUT[1-8] > ANNOBINOUT
|
||||
touch ANNOBINRES1 ANNOBINRES2
|
||||
[ -s ANNOBINOUT ] && echo Annobin testing FAILed > ANNOBINRES
|
||||
cat ANNOBINOUT ANNOBINRES[12] >> ANNOBINRES
|
||||
rm -f ANNOBINOUT* ANNOBINRES[12] annobin-test{c,C}
|
||||
fi
|
||||
%endif
|
||||
echo ====================TESTING=========================
|
||||
( LC_ALL=C ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
|
||||
%if !%{build_annobin_plugin}
|
||||
[ -f ANNOBINRES ] && cat ANNOBINRES
|
||||
%endif
|
||||
echo ====================TESTING END=====================
|
||||
mkdir testlogs-%{_target_platform}-%{version}-%{release}
|
||||
for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
|
||||
ln $i testlogs-%{_target_platform}-%{version}-%{release}/ || :
|
||||
done
|
||||
tar cf - testlogs-%{_target_platform}-%{version}-%{release} | xz -9e \
|
||||
| uuencode testlogs-%{_target_platform}.tar.xz || :
|
||||
rm -rf testlogs-%{_target_platform}-%{version}-%{release}
|
||||
|
||||
%post go
|
||||
%{_sbindir}/update-alternatives --install \
|
||||
%{_prefix}/bin/go go %{_prefix}/bin/go.gcc 92 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue