Accepting request 1088819 from devel:gcc
- Disable multilib and go on riscv64 - libgcc-riscv-div.patch: Backport of r12-5799-g45116f342057b7 to fix build with current binutils (forwarded request 1088798 from Andreas_Schwab) OBS-URL: https://build.opensuse.org/request/show/1088819 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gcc7?expand=0&rev=39
This commit is contained in:
commit
26f889d325
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -150,6 +150,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -344,6 +345,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -670,6 +672,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -150,6 +150,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -344,6 +345,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -670,6 +672,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -150,6 +150,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -344,6 +345,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -670,6 +672,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -149,6 +149,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -343,6 +344,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -669,6 +671,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
11
gcc.spec.in
11
gcc.spec.in
@ -40,7 +40,7 @@
|
|||||||
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
||||||
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64
|
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64
|
||||||
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
|
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
|
||||||
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64
|
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64 riscv64
|
||||||
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
||||||
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64
|
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64
|
||||||
%if 0%{?build_libvtv:1}
|
%if 0%{?build_libvtv:1}
|
||||||
@ -55,7 +55,11 @@
|
|||||||
%define build_fortran 1
|
%define build_fortran 1
|
||||||
%define build_objc 1
|
%define build_objc 1
|
||||||
%define build_objcp 1
|
%define build_objcp 1
|
||||||
|
%ifarch riscv64
|
||||||
|
%define build_go 0
|
||||||
|
%else
|
||||||
%define build_go 1
|
%define build_go 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{build_objcp}
|
%if %{build_objcp}
|
||||||
%define build_cp 1
|
%define build_cp 1
|
||||||
@ -332,6 +336,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42 : libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -1136,6 +1141,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -1462,6 +1468,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
||||||
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64
|
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64
|
||||||
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
|
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
|
||||||
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64
|
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64 riscv64
|
||||||
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
||||||
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64
|
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64
|
||||||
%if 0%{?build_libvtv:1}
|
%if 0%{?build_libvtv:1}
|
||||||
@ -74,7 +74,11 @@
|
|||||||
%define build_fortran 1
|
%define build_fortran 1
|
||||||
%define build_objc 1
|
%define build_objc 1
|
||||||
%define build_objcp 1
|
%define build_objcp 1
|
||||||
|
%ifarch riscv64
|
||||||
|
%define build_go 0
|
||||||
|
%else
|
||||||
%define build_go 1
|
%define build_go 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{build_objcp}
|
%if %{build_objcp}
|
||||||
%define build_cp 1
|
%define build_cp 1
|
||||||
@ -346,6 +350,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -525,6 +530,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -851,6 +857,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 23 13:29:37 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- Disable multilib and go on riscv64
|
||||||
|
- libgcc-riscv-div.patch: Backport of r12-5799-g45116f342057b7 to fix
|
||||||
|
build with current binutils
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 9 13:12:55 UTC 2023 - Richard Biener <rguenther@suse.com>
|
Tue May 9 13:12:55 UTC 2023 - Richard Biener <rguenther@suse.com>
|
||||||
|
|
||||||
|
11
gcc7.spec
11
gcc7.spec
@ -38,7 +38,7 @@
|
|||||||
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
%define tsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
||||||
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64
|
%define asan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %sparc %arm aarch64
|
||||||
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
|
%define itm_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc
|
||||||
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64
|
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k ia64 riscv64
|
||||||
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
%define lsan_arch x86_64 aarch64 ppc ppc64 ppc64le
|
||||||
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64
|
%define ubsan_arch x86_64 %ix86 ppc ppc64 ppc64le s390 s390x %arm aarch64
|
||||||
%if 0%{?build_libvtv:1}
|
%if 0%{?build_libvtv:1}
|
||||||
@ -53,7 +53,11 @@
|
|||||||
%define build_fortran 1
|
%define build_fortran 1
|
||||||
%define build_objc 1
|
%define build_objc 1
|
||||||
%define build_objcp 1
|
%define build_objcp 1
|
||||||
|
%ifarch riscv64
|
||||||
|
%define build_go 0
|
||||||
|
%else
|
||||||
%define build_go 1
|
%define build_go 1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{build_objcp}
|
%if %{build_objcp}
|
||||||
%define build_cp 1
|
%define build_cp 1
|
||||||
@ -325,6 +329,7 @@ Patch38: gcc7-libsanitizer-cherry-pick-9cf13067cb5088626ba7-from-u.patch
|
|||||||
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
Patch39: gcc7-libgo-don-t-include-linux-fs.h-when-building-gen-sys.patch
|
||||||
Patch40: gcc7-pr72764.patch
|
Patch40: gcc7-pr72764.patch
|
||||||
Patch41: gcc7-pr89124.patch
|
Patch41: gcc7-pr89124.patch
|
||||||
|
Patch42: libgcc-riscv-div.patch
|
||||||
# A set of patches from the RH srpm
|
# A set of patches from the RH srpm
|
||||||
Patch51: gcc41-ppc32-retaddr.patch
|
Patch51: gcc41-ppc32-retaddr.patch
|
||||||
# Some patches taken from Debian
|
# Some patches taken from Debian
|
||||||
@ -1862,6 +1867,7 @@ ln -s nvptx-newlib/newlib .
|
|||||||
%patch39 -p1
|
%patch39 -p1
|
||||||
%patch40 -p1
|
%patch40 -p1
|
||||||
%patch41 -p1
|
%patch41 -p1
|
||||||
|
%patch42 -p1
|
||||||
%patch51
|
%patch51
|
||||||
%patch60
|
%patch60
|
||||||
%patch61
|
%patch61
|
||||||
@ -2188,6 +2194,9 @@ nvptx-none, \
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "m68k"
|
%if "%{TARGET_ARCH}" == "m68k"
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
|
%endif
|
||||||
|
%if "%{TARGET_ARCH}" == "riscv64"
|
||||||
|
--disable-multilib \
|
||||||
%endif
|
%endif
|
||||||
--build=%{GCCDIST} \
|
--build=%{GCCDIST} \
|
||||||
--host=%{GCCDIST}
|
--host=%{GCCDIST}
|
||||||
|
121
libgcc-riscv-div.patch
Normal file
121
libgcc-riscv-div.patch
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
From 485b0a0039a29cf046fe97c7d72aefe49275b141 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nelson Chu <nelson.chu@sifive.com>
|
||||||
|
Date: Mon, 29 Nov 2021 04:48:20 -0800
|
||||||
|
Subject: [PATCH] RISC-V: jal cannot refer to a default visibility symbol for
|
||||||
|
shared object.
|
||||||
|
|
||||||
|
This is the original binutils bugzilla report,
|
||||||
|
https://sourceware.org/bugzilla/show_bug.cgi?id=28509
|
||||||
|
|
||||||
|
And this is the first version of the proposed binutils patch,
|
||||||
|
https://sourceware.org/pipermail/binutils/2021-November/118398.html
|
||||||
|
|
||||||
|
After applying the binutils patch, I get the the unexpected error when
|
||||||
|
building libgcc,
|
||||||
|
|
||||||
|
/scratch/nelsonc/riscv-gnu-toolchain/riscv-gcc/libgcc/config/riscv/div.S:42:
|
||||||
|
/scratch/nelsonc/build-upstream/rv64gc-linux/build-install/riscv64-unknown-linux-gnu/bin/ld: relocation R_RISCV_JAL against `__udivdi3' which may bind externally can not be used when making a shared object; recompile with -fPIC
|
||||||
|
|
||||||
|
Therefore, this patch add an extra hidden alias symbol for __udivdi3, and
|
||||||
|
then use HIDDEN_JUMPTARGET to target a non-preemptible symbol instead.
|
||||||
|
The solution is similar to glibc as follows,
|
||||||
|
https://sourceware.org/git/?p=glibc.git;a=commit;h=68389203832ab39dd0dbaabbc4059e7fff51c29b
|
||||||
|
|
||||||
|
libgcc/ChangeLog:
|
||||||
|
|
||||||
|
* config/riscv/div.S: Add the hidden alias symbol for __udivdi3, and
|
||||||
|
then use HIDDEN_JUMPTARGET to target it since it is non-preemptible.
|
||||||
|
* config/riscv/riscv-asm.h: Added new macros HIDDEN_JUMPTARGET and
|
||||||
|
HIDDEN_DEF.
|
||||||
|
---
|
||||||
|
libgcc/config/riscv/div.S | 23 ++++++++++++++++-------
|
||||||
|
1 file changed, 16 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libgcc/config/riscv/div.S b/libgcc/config/riscv/div.S
|
||||||
|
index 63d542e846c..2d43a48a302 100644
|
||||||
|
--- a/libgcc/config/riscv/div.S
|
||||||
|
+++ b/libgcc/config/riscv/div.S
|
||||||
|
@@ -23,6 +23,14 @@ a copy of the GCC Runtime Library Exception along with this program;
|
||||||
|
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
+#define FUNC_ALIAS(X,Y) \
|
||||||
|
+ .globl X; \
|
||||||
|
+ X = Y
|
||||||
|
+#define CONCAT1(a, b) CONCAT2(a, b)
|
||||||
|
+#define CONCAT2(a, b) a ## b
|
||||||
|
+#define HIDDEN_JUMPTARGET(X) CONCAT1(__hidden_, X)
|
||||||
|
+#define HIDDEN_DEF(X) FUNC_ALIAS(HIDDEN_JUMPTARGET(X), X); \
|
||||||
|
+ .hidden HIDDEN_JUMPTARGET(X)
|
||||||
|
.text
|
||||||
|
.align 2
|
||||||
|
|
||||||
|
@@ -39,7 +47,7 @@ __udivsi3:
|
||||||
|
sll a0, a0, 32
|
||||||
|
sll a1, a1, 32
|
||||||
|
move t0, ra
|
||||||
|
- jal __udivdi3
|
||||||
|
+ jal HIDDEN_JUMPTARGET(__udivdi3)
|
||||||
|
sext.w a0, a0
|
||||||
|
jr t0
|
||||||
|
|
||||||
|
@@ -51,7 +59,7 @@ __umodsi3:
|
||||||
|
srl a0, a0, 32
|
||||||
|
srl a1, a1, 32
|
||||||
|
move t0, ra
|
||||||
|
- jal __udivdi3
|
||||||
|
+ jal HIDDEN_JUMPTARGET(__udivdi3)
|
||||||
|
sext.w a0, a1
|
||||||
|
jr t0
|
||||||
|
|
||||||
|
@@ -96,12 +104,13 @@ __udivdi3:
|
||||||
|
bnez a3, .L3
|
||||||
|
.L5:
|
||||||
|
ret
|
||||||
|
+HIDDEN_DEF (__udivdi3)
|
||||||
|
|
||||||
|
.globl __umoddi3
|
||||||
|
__umoddi3:
|
||||||
|
/* Call __udivdi3(a0, a1), then return the remainder, which is in a1. */
|
||||||
|
move t0, ra
|
||||||
|
- jal __udivdi3
|
||||||
|
+ jal HIDDEN_JUMPTARGET(__udivdi3)
|
||||||
|
move a0, a1
|
||||||
|
jr t0
|
||||||
|
|
||||||
|
@@ -110,12 +119,12 @@ __umoddi3:
|
||||||
|
neg a0, a0
|
||||||
|
bgez a1, .L12 /* Compute __udivdi3(-a0, a1), then negate the result. */
|
||||||
|
neg a1, a1
|
||||||
|
- j __udivdi3 /* Compute __udivdi3(-a0, -a1). */
|
||||||
|
+ j HIDDEN_JUMPTARGET(__udivdi3) /* Compute __udivdi3(-a0, -a1). */
|
||||||
|
.L11: /* Compute __udivdi3(a0, -a1), then negate the result. */
|
||||||
|
neg a1, a1
|
||||||
|
.L12:
|
||||||
|
move t0, ra
|
||||||
|
- jal __udivdi3
|
||||||
|
+ jal HIDDEN_JUMPTARGET(__udivdi3)
|
||||||
|
neg a0, a0
|
||||||
|
jr t0
|
||||||
|
|
||||||
|
@@ -125,7 +134,7 @@ __moddi3:
|
||||||
|
bltz a1, .L31
|
||||||
|
bltz a0, .L32
|
||||||
|
.L30:
|
||||||
|
- jal __udivdi3 /* The dividend is not negative. */
|
||||||
|
+ jal HIDDEN_JUMPTARGET(__udivdi3) /* The dividend is not negative. */
|
||||||
|
move a0, a1
|
||||||
|
jr t0
|
||||||
|
.L31:
|
||||||
|
@@ -133,7 +142,7 @@ __moddi3:
|
||||||
|
bgez a0, .L30
|
||||||
|
.L32:
|
||||||
|
neg a0, a0
|
||||||
|
- jal __udivdi3 /* The dividend is hella negative. */
|
||||||
|
+ jal HIDDEN_JUMPTARGET(__udivdi3) /* The dividend is hella negative. */
|
||||||
|
neg a0, a1
|
||||||
|
jr t0
|
||||||
|
|
||||||
|
--
|
||||||
|
2.40.1
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user