Compare commits

...

10 Commits

Author SHA256 Message Date
Petr Tesařík
44bd351c24 Ignore a bogus rpmlintrc error.
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=34
2025-01-24 17:22:37 +00:00
OBS User buildservice-autocommit
ea583af47f Updating link to change in devel:gcc/gcc48 revision 241
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=6434551076fc8beb08a4031ed87973a2
2023-12-19 12:04:56 +00:00
Petr Tesařík
bc9e8993eb Refresh specfiles and changelogs.
- Add gcc48-bsc1142649.patch.  [bsc#1142649, CVE-2019-14250]

OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=32
2022-04-25 13:25:10 +00:00
Petr Tesařík
d2173e2a6d Fix link.
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=31
2022-04-25 13:22:13 +00:00
Petr Tesařík
68d37fa493 Fix build for Tumbleweed
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=30
2021-06-08 11:40:23 +00:00
Petr Tesařík
cca0ded2cc Fix symbolic links to arch-specific binutils.
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=29
2021-04-30 13:57:17 +00:00
Petr Tesařík
463b423732 - Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions.  [bsc#1185395]

OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=28
2021-04-30 13:41:47 +00:00
Petr Tesařík
7bd4c76c2c Fix project diff.
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=27
2021-04-30 13:31:36 +00:00
Petr Tesařík
df559af0f2 Re-generate the cross spec files from spec.in.
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=26
2021-01-15 14:12:31 +00:00
Petr Tesařík
6cf6cd6883 Add more missing quotes to %if conditionals.
OBS-URL: https://build.opensuse.org/package/show/Kernel:tools/cross-gcc48?expand=0&rev=25
2021-01-15 14:08:23 +00:00
35 changed files with 690 additions and 140 deletions

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-aarch64-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -84,11 +85,11 @@ BuildRequires: isl-devel
%ifarch ia64
BuildRequires: libunwind-devel
%endif
ExclusiveArch: ppc64 x86_64 ia64 s390x
ExclusiveArch: ppc64 x86_64 ia64 s390x
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-armv7hl-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -88,7 +89,7 @@ ExclusiveArch: ppc64 x86_64 ia64 s390x aarch64
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-ia64-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -88,7 +89,7 @@ ExclusiveArch: ppc64 x86_64 s390x aarch64
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-ppc64-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -88,7 +89,7 @@ ExclusiveArch: x86_64 ia64 s390x aarch64
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-ppc64le-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -88,7 +89,7 @@ ExclusiveArch: ppc64 x86_64 ia64 s390x aarch64
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-s390x-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -88,7 +89,7 @@ ExclusiveArch: ppc64 x86_64 ia64 aarch64
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -0,0 +1 @@
addFilter("patch-macro-old-format")

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package cross-x86_64-gcc48
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,6 +23,7 @@
#
# spec file for package gcc (Version 4.0.1)
#
# Copyright (c) 2005 SUSE Linux AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -41,10 +42,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -88,7 +89,7 @@ ExclusiveArch: ppc64 ia64 s390x aarch64
%define _binary_payload w.ufdio
BuildRequires: update-alternatives
Requires(post): update-alternatives
Requires(preun): update-alternatives
Requires(preun):update-alternatives
%define biarch_targets x86_64 s390x powerpc64 powerpc sparc sparc64
@@ -145,6 +146,7 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -167,6 +169,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -177,12 +180,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -266,6 +270,7 @@ gcc-obj-c++.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch51
%patch55
%patch57
@@ -284,6 +289,7 @@ gcc-obj-c++.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -296,6 +302,7 @@ gcc-obj-c++.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -528,7 +535,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -632,7 +639,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -20,10 +20,10 @@
%define build_with_mudflap 0
%define binutils_target %{cross_arch}
%if "%{cross_arch}" == "armv7l" || %{cross_arch} == "armv7hl"
%if "%{cross_arch}" == "armv7l" || "%{cross_arch}" == "armv7hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv6l" || %{cross_arch} == "armv6hl"
%if "%{cross_arch}" == "armv6l" || "%{cross_arch}" == "armv6hl"
%define binutils_target arm
%endif
%if "%{cross_arch}" == "armv5tel"
@@ -118,7 +118,7 @@ done
# create symlinks to build-time binutils
for f in /usr/%{canonical_target}-suse-linux%{?canonical_target_abi}/bin/*; do
ln -s ../../../../bin/$(basename $f) %{buildroot}%{targetlibsubdir}/
ln -s $(realpath $f) %{buildroot}%{targetlibsubdir}/$(basename $f)
done
%post

View File

@@ -304,6 +304,8 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
Patch509: gcc48-bsc1218020.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -326,6 +328,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -336,6 +339,7 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
@@ -921,7 +925,7 @@ A foreign function interface is the popular name for the interface that allows c
# PACKAGE-BEGIN
%package -n libffi@base_ver@-devel@variant@
Summary: Foreign Function Interface library development files
License: BSD 3-Clause
License: BSD-3-Clause
Group: Development/Languages/C and C++
Requires: libffi%{libffi_sover}@variant@ >= %{version}-%{release}
Provides: libffi-devel@variant@ = %{version}-%{release}
@@ -1076,6 +1080,8 @@ Results from running the gcc and target library testsuites.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch509 -p1
%patch51
%patch55
%patch57
@@ -1094,6 +1100,7 @@ Results from running the gcc and target library testsuites.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -1106,6 +1113,7 @@ Results from running the gcc and target library testsuites.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end

36
gcc48-bsc1142649.patch Normal file
View File

@@ -0,0 +1,36 @@
From b1bc0f50350a568e67ed731c4fec2c72847f15fe Mon Sep 17 00:00:00 2001
From: Ren Kimura <rkx1209dev@gmail.com>
Date: Tue, 23 Jul 2019 07:33:32 +0000
Subject: [PATCH] libiberty: Check zero value shstrndx in simple-object-elf.c
To: gcc-patches@gcc.gnu.org
From-SVN: r273718
---
libiberty/ChangeLog | 5 +++++
libiberty/simple-object-elf.c | 10 +++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c
index 502388991a0..bdee963634d 100644
--- a/libiberty/simple-object-elf.c
+++ b/libiberty/simple-object-elf.c
@@ -548,7 +548,15 @@ simple_object_elf_match (unsigned char header[SIMPLE_OBJECT_MATCH_HEADER_LEN],
XDELETE (eor);
return NULL;
}
-
+
+ if (eor->shstrndx == 0)
+ {
+ *errmsg = "invalid ELF shstrndx == 0";
+ *err = 0;
+ XDELETE (eor);
+ return NULL;
+ }
+
return (void *) eor;
}
--
2.34.1

105
gcc48-bsc1218020.patch Normal file
View File

@@ -0,0 +1,105 @@
From 75c7257f75227e3db09120e38562cf3a3c136ced Mon Sep 17 00:00:00 2001
From: James Greenhalgh <james.greenhalgh@arm.com>
Date: Thu, 23 May 2013 10:18:19 +0000
Subject: [PATCH] [AArch64] Fix possible wrong code generation when comparing
DImode values.
To: gcc-patches@gcc.gnu.org
gcc/
* config/aarch64/aarch64-simd.md
(aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
From-SVN: r199241
---
diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md
index 9069a73c46c..f91cf814acc 100644
--- a/gcc/config/aarch64/aarch64-simd.md
+++ b/gcc/config/aarch64/aarch64-simd.md
@@ -3280,7 +3280,8 @@
(COMPARISONS:DI
(match_operand:DI 1 "register_operand" "w,w,r")
(match_operand:DI 2 "aarch64_simd_reg_or_zero" "w,ZDz,r")
- )))]
+ )))
+ (clobber (reg:CC CC_REGNUM))]
"TARGET_SIMD"
"@
cm<n_optab>\t%d0, %d<cmp_1>, %d<cmp_2>
@@ -3291,15 +3292,7 @@
happening in the 'w' constraint cases. */
&& GP_REGNUM_P (REGNO (operands[0]))
&& GP_REGNUM_P (REGNO (operands[1]))"
- [(set (reg:CC CC_REGNUM)
- (compare:CC
- (match_dup 1)
- (match_dup 2)))
- (set (match_dup 0)
- (neg:DI
- (COMPARISONS:DI
- (match_operand 3 "cc_register" "")
- (const_int 0))))]
+ [(const_int 0)]
{
enum machine_mode mode = SELECT_CC_MODE (<CMP>, operands[1], operands[2]);
rtx cc_reg = aarch64_gen_compare_reg (<CMP>, operands[1], operands[2]);
@@ -3332,7 +3325,8 @@
(UCOMPARISONS:DI
(match_operand:DI 1 "register_operand" "w,r")
(match_operand:DI 2 "aarch64_simd_reg_or_zero" "w,r")
- )))]
+ )))
+ (clobber (reg:CC CC_REGNUM))]
"TARGET_SIMD"
"@
cm<n_optab>\t%d0, %d<cmp_1>, %d<cmp_2>
@@ -3342,17 +3336,9 @@
happening in the 'w' constraint cases. */
&& GP_REGNUM_P (REGNO (operands[0]))
&& GP_REGNUM_P (REGNO (operands[1]))"
- [(set (reg:CC CC_REGNUM)
- (compare:CC
- (match_dup 1)
- (match_dup 2)))
- (set (match_dup 0)
- (neg:DI
- (UCOMPARISONS:DI
- (match_operand 3 "cc_register" "")
- (const_int 0))))]
+ [(const_int 0)]
{
- enum machine_mode mode = SELECT_CC_MODE (<CMP>, operands[1], operands[2]);
+ enum machine_mode mode = CCmode;
rtx cc_reg = aarch64_gen_compare_reg (<CMP>, operands[1], operands[2]);
rtx comparison = gen_rtx_<CMP> (mode, operands[1], operands[2]);
emit_insn (gen_cstoredi_neg (operands[0], comparison, cc_reg));
@@ -3385,7 +3371,8 @@
(and:DI
(match_operand:DI 1 "register_operand" "w,r")
(match_operand:DI 2 "register_operand" "w,r"))
- (const_int 0))))]
+ (const_int 0))))
+ (clobber (reg:CC CC_REGNUM))]
"TARGET_SIMD"
"@
cmtst\t%d0, %d1, %d2
@@ -3395,16 +3382,7 @@
happening in the 'w' constraint cases. */
&& GP_REGNUM_P (REGNO (operands[0]))
&& GP_REGNUM_P (REGNO (operands[1]))"
- [(set (reg:CC_NZ CC_REGNUM)
- (compare:CC_NZ
- (and:DI (match_dup 1)
- (match_dup 2))
- (const_int 0)))
- (set (match_dup 0)
- (neg:DI
- (ne:DI
- (match_operand 3 "cc_register" "")
- (const_int 0))))]
+ [(const_int 0)]
{
rtx and_tree = gen_rtx_AND (DImode, operands[1], operands[2]);
enum machine_mode mode = SELECT_CC_MODE (NE, and_tree, const0_rtx);
--
2.35.3

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Dec 19 12:02:30 UTC 2023 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1218020.patch to fix miscompile of wcstod on aarch64.
[bsc#1218020]
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package gcc48-testresults
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -14,7 +14,6 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# icecream 0
%define building_testsuite 1
@@ -22,6 +21,7 @@
#
# spec file for package gcc48
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,9 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# norootforbuild
# icecream 0
# Ada currently fails to build on a few platforms, enable it only
# on those that work
# Note that AdaCore only supports %ix86, x86_64 and ia64
@@ -315,6 +318,8 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
Patch509: gcc48-bsc1218020.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -337,6 +342,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -347,6 +353,7 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
@@ -354,7 +361,7 @@ Summary: Testsuite results
License: SUSE-Public-Domain
Group: Development/Languages/C and C++
%description
%description
Results from running the gcc and target library testsuites.
@@ -486,6 +493,8 @@ Results from running the gcc and target library testsuites.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch509 -p1
%patch51
%patch55
%patch57
@@ -504,6 +513,7 @@ Results from running the gcc and target library testsuites.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -516,6 +526,7 @@ Results from running the gcc and target library testsuites.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -748,7 +759,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -841,14 +852,14 @@ mkdir ../testresults
%install
export NO_BRP_CHECK_BYTECODE_VERSION=true
cd obj-%{GCCDIST}
%if 0%{?run_tests:1}
%if 0%{?run_tests:1}
cp `find . -name "*.sum"` ../testresults/
cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
chmod 644 ../testresults/*
%endif
%if 0%{?run_tests:1}
%files
%files
%defattr(-,root,root)
%doc testresults/test_summary.txt
%doc testresults/*.sum

110
gcc48-texi2pod-fixes.patch Normal file
View File

@@ -0,0 +1,110 @@
From 386c402747d2bc6bad3e1bc2f9383d4d669576e0 Mon Sep 17 00:00:00 2001
From: Uros Bizjak <uros@gcc.gnu.org>
Date: Sat, 24 May 2014 08:38:31 +0200
Subject: [PATCH] texi2pod.pl: Force .pod file to not be a numbered list.
To: gcc-patches@gcc.gnu.org
* texi2pod.pl: Force .pod file to not be a numbered list.
From-SVN: r210889
---
contrib/ChangeLog | 18 +++++++++++-------
contrib/texi2pod.pl | 4 ++--
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index 5a4bbacdf5e..55b6ba75227 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/texi2pod.pl
@@ -1,6 +1,6 @@
#! /usr/bin/perl -w
-# Copyright (C) 1999, 2000, 2001, 2003, 2010 Free Software Foundation, Inc.
+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# This file is part of GCC.
@@ -337,7 +337,7 @@ while(<$inf>) {
$_ = "\n=item $1\n";
}
} else {
- $_ = "\n=item $ic\n";
+ $_ = "\n=item Z\&LT;\&GT;$ic\n";
$ic =~ y/A-Ya-y/B-Zb-z/;
$ic =~ s/(\d+)/$1 + 1/eg;
}
--
2.26.2
From 6f853fd4536b85da53ebe9897ecbce22602304f8 Mon Sep 17 00:00:00 2001
From: Mingjie Xing <mingjie.xing@gmail.com>
Date: Mon, 11 Aug 2014 07:29:41 +0000
Subject: [PATCH] texi2pod.pl (postprocess): Move command process for '@sc' to
the front of '@dfn'.
To: gcc-patches@gcc.gnu.org
* texi2pod.pl (postprocess): Move command process for '@sc' to the
front of '@dfn'. Add a new command process for '@t{...}', just print
the content.
From-SVN: r213808
---
contrib/ChangeLog | 6 ++++++
contrib/texi2pod.pl | 3 ++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index 55b6ba75227..eba1bcaa3cf 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/texi2pod.pl
@@ -389,15 +389,16 @@ sub postprocess
# Formatting commands.
# Temporary escape for @r.
s/\@r\{([^\}]*)\}/R<$1>/g;
+ s/\@sc\{([^\}]*)\}/\U$1/g;
s/\@(?:dfn|var|emph|cite|i)\{([^\}]*)\}/I<$1>/g;
s/\@(?:code|kbd)\{([^\}]*)\}/C<$1>/g;
s/\@(?:samp|strong|key|option|env|command|b)\{([^\}]*)\}/B<$1>/g;
- s/\@sc\{([^\}]*)\}/\U$1/g;
s/\@acronym\{([^\}]*)\}/\U$1/g;
s/\@file\{([^\}]*)\}/F<$1>/g;
s/\@w\{([^\}]*)\}/S<$1>/g;
s/\@(?:dmn|math)\{([^\}]*)\}/$1/g;
s/\@\///g;
+ s/\@t\{([^\}]*)\}/$1/g;
# keep references of the form @ref{...}, print them bold
s/\@(?:ref)\{([^\}]*)\}/B<$1>/g;
--
2.26.2
From 4b5ed6cf575f29f17bad46f10a7b1c3f4a7bdd08 Mon Sep 17 00:00:00 2001
From: Uros Bizjak <uros@gcc.gnu.org>
Date: Tue, 4 Aug 2015 18:15:45 +0200
Subject: [PATCH] texi2pod.pl: Escape braces in regexp involving @strong{...}.
To: gcc-patches@gcc.gnu.org
* texi2pod.pl: Escape braces in regexp involving @strong{...}.
From-SVN: r226585
---
contrib/ChangeLog | 16 ++++++++++------
contrib/texi2pod.pl | 2 +-
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index eba1bcaa3cf..91bdbb5cea9 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/texi2pod.pl
@@ -316,7 +316,7 @@ while(<$inf>) {
@columns = ();
for $column (split (/\s*\@tab\s*/, $1)) {
# @strong{...} is used a @headitem work-alike
- $column =~ s/^\@strong{(.*)}$/$1/;
+ $column =~ s/^\@strong\{(.*)\}$/$1/;
push @columns, $column;
}
$_ = "\n=item ".join (" : ", @columns)."\n";
--
2.26.2

View File

@@ -0,0 +1,24 @@
commit d57c99458933a21fdf94f508191f145ad8d5ec58
Author: Aditya Kumar <hiraditya@msn.com>
Date: Thu May 7 17:57:11 2015 +0000
gcov-tool.c (do_merge): Refactore to remove int ret.
* reload.h (struct target_reload): Changee to type of
x_spill_indirect_levels from bool to unsigned char.
From-SVN: r222884
diff --git a/gcc/reload.h b/gcc/reload.h
index a58b9025bf5..a089faafffe 100644
--- a/gcc/reload.h
+++ b/gcc/reload.h
@@ -168,7 +168,7 @@ struct target_reload {
value indicates the level of indirect addressing supported, e.g., two
means that (MEM (MEM (REG n))) is also valid if (REG n) does not get
a hard register. */
- bool x_spill_indirect_levels;
+ unsigned char x_spill_indirect_levels;
/* True if caller-save has been reinitialized. */
bool x_caller_save_initialized_p;

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Dec 19 12:02:30 UTC 2023 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1218020.patch to fix miscompile of wcstod on aarch64.
[bsc#1218020]
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package gcc48
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -297,6 +297,8 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
Patch509: gcc48-bsc1218020.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -319,6 +321,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -329,12 +332,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -344,11 +348,8 @@ Language frontends other than C are split to different sub-packages,
namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
gcc-obj-c++.
%package -n gcc48-32bit
Summary: The GNU C Compiler 32bit support
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
Requires: gcc48 = %{version}-%{release}
Requires: libgcc_s%{libgcc_s}-32bit >= %{version}-%{release}
@@ -380,7 +381,6 @@ This package contains 32bit support for the GNU Compiler Collection.
%package -n gcc48-64bit
Summary: The GNU C Compiler 64bit support
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
Requires: gcc48 = %{version}-%{release}
Requires: libgcc_s%{libgcc_s}-64bit >= %{version}-%{release}
@@ -406,7 +406,6 @@ Requires: glibc-devel-64bit
%description -n gcc48-64bit
This package contains 64bit support for the GNU Compiler Collection.
%package locale
Summary: Locale Data for the GNU Compiler Collection
License: GPL-3.0-or-later
@@ -417,7 +416,6 @@ Requires: gcc48 = %{version}-%{release}
Locale data for the GNU Compiler Collection (GCC) to give error message
in the current locale.
%package c++
Summary: The GNU C++ Compiler
License: GPL-3.0-or-later
@@ -430,7 +428,7 @@ This package contains the GNU compiler for C++.
%package -n libstdc++48-devel
Summary: Include Files and Libraries mandatory for Development
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Requires: glibc-devel
Requires: libstdc++%{libstdcxx_sover} >= %{version}-%{release}
@@ -441,9 +439,10 @@ Requires: libunwind-devel
%description -n libstdc++48-devel
This package contains all the headers and libraries of the standard C++
library. It is needed for compiling C++ code.
%package -n libstdc++48-devel-32bit
Summary: Include Files and Libraries mandatory for Development
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Requires: glibc-devel-32bit
Requires: libstdc++%{libstdcxx_sover}-32bit >= %{version}-%{release}
@@ -454,9 +453,10 @@ Requires: libunwind-devel
%description -n libstdc++48-devel-32bit
This package contains all the headers and libraries of the standard C++
library. It is needed for compiling C++ code.
%package -n libstdc++48-devel-64bit
Summary: Include Files and Libraries mandatory for Development
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Requires: glibc-devel-64bit
Requires: libstdc++%{libstdcxx_sover}-64bit >= %{version}-%{release}
@@ -468,10 +468,9 @@ Requires: libunwind-devel
This package contains all the headers and libraries of the standard C++
library. It is needed for compiling C++ code.
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}
Summary: C compiler runtime library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Base
Provides: libgcc_s%{libgcc_s} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -484,9 +483,10 @@ Libgcc is needed for dynamically linked C programs.
%post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix} -p /sbin/ldconfig
%postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix} -p /sbin/ldconfig
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit
Summary: C compiler runtime library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Base
Provides: libgcc_s%{libgcc_s}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -499,9 +499,10 @@ Libgcc is needed for dynamically linked C programs.
%post -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit -p /sbin/ldconfig
%postun -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-32bit -p /sbin/ldconfig
%package -n libgcc_s%{libgcc_s}%{libgcc_s_suffix}-64bit
Summary: C compiler runtime library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Base
Provides: libgcc_s%{libgcc_s}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -517,7 +518,7 @@ Libgcc is needed for dynamically linked C programs.
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}
Summary: The GNU compiler collection OpenMP runtime library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Base
Provides: libgomp%{libgomp_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -534,9 +535,10 @@ option.
%post -n libgomp%{libgomp_sover}%{libgomp_suffix} -p /sbin/ldconfig
%postun -n libgomp%{libgomp_sover}%{libgomp_suffix} -p /sbin/ldconfig
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit
Summary: The GNU compiler collection OpenMP runtime library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Base
Provides: libgomp%{libgomp_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -553,9 +555,10 @@ option.
%post -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit -p /sbin/ldconfig
%postun -n libgomp%{libgomp_sover}%{libgomp_suffix}-32bit -p /sbin/ldconfig
%package -n libgomp%{libgomp_sover}%{libgomp_suffix}-64bit
Summary: The GNU compiler collection OpenMP runtime library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Base
Provides: libgomp%{libgomp_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -575,7 +578,7 @@ option.
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}
Summary: The standard C++ shared library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Suggests: libstdc++%{libstdcxx_sover}-locale
Provides: libstdc++%{libstdcxx_sover} = %{version}-%{release}
@@ -590,9 +593,10 @@ The standard C++ library, needed for dynamically linked C++ programs.
%post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix} -p /sbin/ldconfig
%postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix} -p /sbin/ldconfig
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit
Summary: The standard C++ shared library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Suggests: libstdc++%{libstdcxx_sover}-locale
Provides: libstdc++%{libstdcxx_sover}-32bit = %{version}-%{release}
@@ -607,9 +611,10 @@ The standard C++ library, needed for dynamically linked C++ programs.
%post -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit -p /sbin/ldconfig
%postun -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-32bit -p /sbin/ldconfig
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-64bit
Summary: The standard C++ shared library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Suggests: libstdc++%{libstdcxx_sover}-locale
Provides: libstdc++%{libstdcxx_sover}-64bit = %{version}-%{release}
@@ -627,7 +632,7 @@ The standard C++ library, needed for dynamically linked C++ programs.
%package -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
Summary: Locale Data for the standard C++ shared library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Provides: libstdc++%{libstdcxx_sover}-locale = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -637,7 +642,6 @@ Conflicts: %selfconflict libstdc++%{libstdcxx_sover}-locale
%description -n libstdc++%{libstdcxx_sover}%{libstdcxx_suffix}-locale
The standard C++ library locale data.
%package info
Summary: Documentation for the GNU compiler collection
License: GFDL-1.2-only
@@ -651,7 +655,6 @@ BuildArch: noarch
GNU info-pages for the GNU compiler collection covering both user-level
and internals documentation.
%package objc
Summary: GNU Objective C Compiler
License: GPL-3.0-or-later
@@ -663,6 +666,7 @@ Requires: libobjc%{libobjc_sover} >= %{version}-%{release}
This package contains the GNU Objective C compiler. Objective C is an
object oriented language, created by Next Inc. and used in their
Nextstep OS. The source code is available in the gcc package.
%package objc-32bit
Summary: GNU Objective C Compiler
License: GPL-3.0-or-later
@@ -674,6 +678,7 @@ Requires: libobjc%{libobjc_sover}-32bit >= %{version}-%{release}
This package contains the GNU Objective C compiler. Objective C is an
object oriented language, created by Next Inc. and used in their
Nextstep OS. The source code is available in the gcc package.
%package objc-64bit
Summary: GNU Objective C Compiler
License: GPL-3.0-or-later
@@ -688,7 +693,7 @@ Nextstep OS. The source code is available in the gcc package.
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}
Summary: Library for the GNU Objective C Compiler
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Libraries/Other
Provides: libobjc%{libobjc_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -701,9 +706,10 @@ The library for the GNU Objective C compiler.
%post -n libobjc%{libobjc_sover}%{libobjc_suffix} -p /sbin/ldconfig
%postun -n libobjc%{libobjc_sover}%{libobjc_suffix} -p /sbin/ldconfig
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit
Summary: Library for the GNU Objective C Compiler
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Libraries/Other
Provides: libobjc%{libobjc_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -716,9 +722,10 @@ The library for the GNU Objective C compiler.
%post -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit -p /sbin/ldconfig
%postun -n libobjc%{libobjc_sover}%{libobjc_suffix}-32bit -p /sbin/ldconfig
%package -n libobjc%{libobjc_sover}%{libobjc_suffix}-64bit
Summary: Library for the GNU Objective C Compiler
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Libraries/Other
Provides: libobjc%{libobjc_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -744,7 +751,6 @@ This package contains the GNU Objective C++ compiler. Objective C++ is an
object oriented language, created by Next Inc. and used in their
Nextstep OS. The source code is available in the gcc package.
%package -n cpp48
Summary: The GCC Preprocessor
License: GPL-3.0-or-later
@@ -754,7 +760,6 @@ Group: Development/Languages/C and C++
This Package contains just the preprocessor that is used by the X11
packages.
%package ada
Summary: GNU Ada95 Compiler Based on GCC (GNAT)
License: GPL-3.0-or-later
@@ -767,6 +772,7 @@ This package contains an Ada95 compiler and associated development
tools based on the GNU GCC technology. Ada95 is the object oriented
successor of the Ada83 language. To build this package from source you
must have installed a binary version to bootstrap the compiler.
%package ada-32bit
Summary: GNU Ada95 Compiler Based on GCC (GNAT)
License: GPL-3.0-or-later
@@ -779,6 +785,7 @@ This package contains an Ada95 compiler and associated development
tools based on the GNU GCC technology. Ada95 is the object oriented
successor of the Ada83 language. To build this package from source you
must have installed a binary version to bootstrap the compiler.
%package ada-64bit
Summary: GNU Ada95 Compiler Based on GCC (GNAT)
License: GPL-3.0-or-later
@@ -794,7 +801,7 @@ must have installed a binary version to bootstrap the compiler.
%package -n libada48
Summary: GNU Ada Runtime Libraries
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Provides: libgnarl-4_8 = %{version}-%{release}
Conflicts: %selfconflict libgnarl-4_8
@@ -812,9 +819,10 @@ implementation of Distributed Systems Programming (GLADE) and the Posix
%post -n libada48 -p /sbin/ldconfig
%postun -n libada48 -p /sbin/ldconfig
%package -n libada48-32bit
Summary: GNU Ada Runtime Libraries
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Provides: libgnarl-4_8-32bit = %{version}-%{release}
Conflicts: %selfconflict libgnarl-4_8-32bit
@@ -832,9 +840,10 @@ implementation of Distributed Systems Programming (GLADE) and the Posix
%post -n libada48-32bit -p /sbin/ldconfig
%postun -n libada48-32bit -p /sbin/ldconfig
%package -n libada48-64bit
Summary: GNU Ada Runtime Libraries
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: System/Libraries
Provides: libgnarl-4_8-64bit = %{version}-%{release}
Conflicts: %selfconflict libgnarl-4_8-64bit
@@ -865,6 +874,7 @@ Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
%description fortran
This is the Fortran compiler of the GNU Compiler Collection (GCC).
%package fortran-32bit
Summary: The GNU Fortran Compiler and Support Files
License: GPL-3.0-or-later
@@ -877,6 +887,7 @@ Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
%description fortran-32bit
This is the Fortran compiler of the GNU Compiler Collection (GCC).
%package fortran-64bit
Summary: The GNU Fortran Compiler and Support Files
License: GPL-3.0-or-later
@@ -892,7 +903,7 @@ This is the Fortran compiler of the GNU Compiler Collection (GCC).
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}
Summary: The GNU Fortran Compiler Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/Fortran
%ifarch %quadmath_arch
Requires: libquadmath%{libquadmath_sover} >= %{version}-%{release}
@@ -909,9 +920,10 @@ of the GNU Compiler Collection (GCC).
%post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix} -p /sbin/ldconfig
%postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix} -p /sbin/ldconfig
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit
Summary: The GNU Fortran Compiler Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/Fortran
%ifarch %quadmath_arch
Requires: libquadmath%{libquadmath_sover}-32bit >= %{version}-%{release}
@@ -928,9 +940,10 @@ of the GNU Compiler Collection (GCC).
%post -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit -p /sbin/ldconfig
%postun -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-32bit -p /sbin/ldconfig
%package -n libgfortran%{libgfortran_sover}%{libgfortran_suffix}-64bit
Summary: The GNU Fortran Compiler Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/Fortran
%ifarch %quadmath_arch
Requires: libquadmath%{libquadmath_sover}-64bit >= %{version}-%{release}
@@ -965,6 +978,7 @@ operations.
%post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix} -p /sbin/ldconfig
%postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix} -p /sbin/ldconfig
%package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit
Summary: The GNU Fortran Compiler Quadmath Runtime Library
License: LGPL-2.1-only
@@ -982,6 +996,7 @@ operations.
%post -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit -p /sbin/ldconfig
%postun -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-32bit -p /sbin/ldconfig
%package -n libquadmath%{libquadmath_sover}%{libquadmath_suffix}-64bit
Summary: The GNU Fortran Compiler Quadmath Runtime Library
License: LGPL-2.1-only
@@ -1002,7 +1017,7 @@ operations.
%package -n libmudflap48
Summary: The Mudflap Extension Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Provides: libmudflap%{libmudflap_sover} = %{version}-%{release}
Conflicts: %selfconflict libmudflap%{libmudflap_sover}
@@ -1015,9 +1030,10 @@ This is the Mudflap Extension Runtime Library.
%post -n libmudflap48 -p /sbin/ldconfig
%postun -n libmudflap48 -p /sbin/ldconfig
%package -n libmudflap48-32bit
Summary: The Mudflap Extension Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Provides: libmudflap%{libmudflap_sover}-32bit = %{version}-%{release}
Conflicts: %selfconflict libmudflap%{libmudflap_sover}-32bit
@@ -1030,9 +1046,10 @@ This is the Mudflap Extension Runtime Library.
%post -n libmudflap48-32bit -p /sbin/ldconfig
%postun -n libmudflap48-32bit -p /sbin/ldconfig
%package -n libmudflap48-64bit
Summary: The Mudflap Extension Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Provides: libmudflap%{libmudflap_sover}-64bit = %{version}-%{release}
Conflicts: %selfconflict libmudflap%{libmudflap_sover}-64bit
@@ -1062,6 +1079,7 @@ The runtime library needed to run programs compiled with the
%post -n libitm%{libitm_sover}%{libitm_suffix} -p /sbin/ldconfig
%postun -n libitm%{libitm_sover}%{libitm_suffix} -p /sbin/ldconfig
%package -n libitm%{libitm_sover}%{libitm_suffix}-32bit
Summary: The GNU Compiler Transactional Memory Runtime Library
License: MIT
@@ -1078,6 +1096,7 @@ The runtime library needed to run programs compiled with the
%post -n libitm%{libitm_sover}%{libitm_suffix}-32bit -p /sbin/ldconfig
%postun -n libitm%{libitm_sover}%{libitm_suffix}-32bit -p /sbin/ldconfig
%package -n libitm%{libitm_sover}%{libitm_suffix}-64bit
Summary: The GNU Compiler Transactional Memory Runtime Library
License: MIT
@@ -1111,6 +1130,7 @@ The runtime library needed to run programs compiled with the
%post -n libasan%{libasan_sover}%{libasan_suffix} -p /sbin/ldconfig
%postun -n libasan%{libasan_sover}%{libasan_suffix} -p /sbin/ldconfig
%package -n libasan%{libasan_sover}%{libasan_suffix}-32bit
Summary: The GNU Compiler Address Sanitizer Runtime Library
License: MIT
@@ -1127,6 +1147,7 @@ The runtime library needed to run programs compiled with the
%post -n libasan%{libasan_sover}%{libasan_suffix}-32bit -p /sbin/ldconfig
%postun -n libasan%{libasan_sover}%{libasan_suffix}-32bit -p /sbin/ldconfig
%package -n libasan%{libasan_sover}%{libasan_suffix}-64bit
Summary: The GNU Compiler Address Sanitizer Runtime Library
License: MIT
@@ -1160,6 +1181,7 @@ The runtime library needed to run programs compiled with the
%post -n libtsan%{libtsan_sover}%{libtsan_suffix} -p /sbin/ldconfig
%postun -n libtsan%{libtsan_sover}%{libtsan_suffix} -p /sbin/ldconfig
%package -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit
Summary: The GNU Compiler Thread Sanitizer Runtime Library
License: MIT
@@ -1176,6 +1198,7 @@ The runtime library needed to run programs compiled with the
%post -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit -p /sbin/ldconfig
%postun -n libtsan%{libtsan_sover}%{libtsan_suffix}-32bit -p /sbin/ldconfig
%package -n libtsan%{libtsan_sover}%{libtsan_suffix}-64bit
Summary: The GNU Compiler Thread Sanitizer Runtime Library
License: MIT
@@ -1195,7 +1218,7 @@ The runtime library needed to run programs compiled with the
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}
Summary: The GNU Compiler Atomic Operations Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Provides: libatomic%{libatomic_sover} = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -1208,9 +1231,10 @@ The runtime library for atomic operations of the GNU Compiler Collection (GCC).
%post -n libatomic%{libatomic_sover}%{libatomic_suffix} -p /sbin/ldconfig
%postun -n libatomic%{libatomic_sover}%{libatomic_suffix} -p /sbin/ldconfig
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit
Summary: The GNU Compiler Atomic Operations Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Provides: libatomic%{libatomic_sover}-32bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -1223,9 +1247,10 @@ The runtime library for atomic operations of the GNU Compiler Collection (GCC).
%post -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit -p /sbin/ldconfig
%postun -n libatomic%{libatomic_sover}%{libatomic_suffix}-32bit -p /sbin/ldconfig
%package -n libatomic%{libatomic_sover}%{libatomic_suffix}-64bit
Summary: The GNU Compiler Atomic Operations Runtime Library
License: GPL-3.0-with-GCC-exception
License: GPL-3.0-only WITH GCC-exception-3.1
Group: Development/Languages/C and C++
Provides: libatomic%{libatomic_sover}-64bit = %{version}-%{release}
# Only one package may provide this - allows multiple gcc versions
@@ -1271,14 +1296,13 @@ Requires: libgcj48-devel = %{version}-%{release}
%description -n gcc48-java
The Java compiler from the GCC-tools-suite.
%package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
Summary: Fake library for BC-ABI compatibility.
License: GPL-2.0-with-classpath-exception
Group: Development/Libraries/Java
# libgcj_bc is special in that it just contains a symlink to
# a proper libgcj version. So require that library and add
# provides for the shlib version as created at link time
License: GPL-2.0-with-classpath-exception
Group: Development/Libraries/Java
Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
%ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
@@ -1296,7 +1320,6 @@ binaries built with the BC-ABI link against a constant SONAME.
This way, BC-ABI binaries continue to work if the SONAME underlying
libgcj.so changes.
%package -n libgcj48-jar
Summary: Java runtime library (jar files).
License: GPL-2.0-with-classpath-exception
@@ -1305,7 +1328,6 @@ Group: Development/Libraries/Java
%description -n libgcj48-jar
These are the jar files that go along with the gcj front end to gcc.
%package -n libgcj48-devel
Summary: Include Files and Libraries mandatory for Development.
License: GPL-2.0-with-classpath-exception
@@ -1326,7 +1348,6 @@ Requires: libunwind-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n gcc48-gij
Summary: Java Bytecode Interpreter for gcc
License: GPL-2.0-with-classpath-exception
@@ -1336,7 +1357,6 @@ Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
%description -n gcc48-gij
This package contains the java bytecode interpreter gij and related tools.
%package -n libstdc++48-doc
Summary: Documentation for the GNU C++ standard library
License: GPL-3.0-or-later
@@ -1348,7 +1368,6 @@ BuildArch: noarch
%description -n libstdc++48-doc
Extensive HTML documentation for the GNU C++ standard library.
%package -n libffi%{libffi_sover}%{libffi_suffix}
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -1364,6 +1383,7 @@ A foreign function interface is the popular name for the interface that allows c
%post -n libffi%{libffi_sover}%{libffi_suffix} -p /sbin/ldconfig
%postun -n libffi%{libffi_sover}%{libffi_suffix} -p /sbin/ldconfig
%package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -1379,6 +1399,7 @@ A foreign function interface is the popular name for the interface that allows c
%post -n libffi%{libffi_sover}%{libffi_suffix}-32bit -p /sbin/ldconfig
%postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit -p /sbin/ldconfig
%package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -1405,6 +1426,7 @@ Conflicts: %selfconflict libffi-devel
%description -n libffi48-devel
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package -n libffi48-devel-32bit
Summary: Foreign Function Interface library development files
License: BSD-3-Clause
@@ -1415,6 +1437,7 @@ Conflicts: %selfconflict libffi-devel-32bit
%description -n libffi48-devel-32bit
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package -n libffi48-devel-64bit
Summary: Foreign Function Interface library development files
License: BSD-3-Clause
@@ -1563,6 +1586,8 @@ Results from running the gcc and target library testsuites.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch509 -p1
%patch51
%patch55
%patch57
@@ -1581,6 +1606,7 @@ Results from running the gcc and target library testsuites.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -1593,6 +1619,7 @@ Results from running the gcc and target library testsuites.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -1825,7 +1852,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -2186,7 +2213,7 @@ for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
mv $l.new $l
done
%if 0%{?run_tests:1}
%if 0%{?run_tests:1}
cp `find . -name "*.sum"` ../testresults/
cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
chmod 644 ../testresults/*
@@ -2303,7 +2330,7 @@ mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{b
%ifarch %itm_arch
mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
%endif
%if %{build_fortran}
%if %{build_fortran}
%ifarch %quadmath_arch
mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
%endif
@@ -2328,7 +2355,7 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc48-locale.lang
%install_info --info-dir=%{_infodir} %{_infodir}/gccint%{binsuffix}.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/gccinstall%{binsuffix}.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/libgomp%{binsuffix}.info.gz
%if %{build_fortran}
%if %{build_fortran}
%install_info --info-dir=%{_infodir} %{_infodir}/gfortran%{binsuffix}.info.gz
%ifarch %quadmath_arch
%install_info --info-dir=%{_infodir} %{_infodir}/libquadmath%{binsuffix}.info.gz
@@ -3019,6 +3046,7 @@ cat cpplib%{binsuffix}.lang gcc%{binsuffix}.lang > gcc48-locale.lang
%post -n libffi48-devel
%install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
%postun -n libffi48-devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Dec 19 12:02:30 UTC 2023 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1218020.patch to fix miscompile of wcstod on aarch64.
[bsc#1218020]
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libffi48
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -14,13 +14,13 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# icecream 0
%define building_libffi 1
#
# spec file for package gcc48
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,9 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# norootforbuild
# icecream 0
# Ada currently fails to build on a few platforms, enable it only
# on those that work
# Note that AdaCore only supports %ix86, x86_64 and ia64
@@ -314,6 +317,8 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
Patch509: gcc48-bsc1218020.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -336,6 +341,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -346,12 +352,13 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
Group: Development/Languages/C and C++
Summary: The GNU C Compiler and Support Files
License: GPL-3.0-or-later
Group: Development/Languages/C and C++
%description
Core package for the GNU Compiler Collection, including the C language
@@ -360,6 +367,7 @@ frontend.
Language frontends other than C are split to different sub-packages,
namely gcc-ada, gcc-c++, gcc-fortran, gcc-java, gcc-objc and
gcc-obj-c++.
%package -n libffi%{libffi_sover}%{libffi_suffix}
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -375,6 +383,7 @@ A foreign function interface is the popular name for the interface that allows c
%post -n libffi%{libffi_sover}%{libffi_suffix} -p /sbin/ldconfig
%postun -n libffi%{libffi_sover}%{libffi_suffix} -p /sbin/ldconfig
%package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -390,6 +399,7 @@ A foreign function interface is the popular name for the interface that allows c
%post -n libffi%{libffi_sover}%{libffi_suffix}-32bit -p /sbin/ldconfig
%postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit -p /sbin/ldconfig
%package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -416,6 +426,7 @@ Conflicts: %selfconflict libffi-devel
%description -n libffi48-devel
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package -n libffi48-devel-32bit
Summary: Foreign Function Interface library development files
License: BSD-3-Clause
@@ -426,6 +437,7 @@ Conflicts: %selfconflict libffi-devel-32bit
%description -n libffi48-devel-32bit
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package -n libffi48-devel-64bit
Summary: Foreign Function Interface library development files
License: BSD-3-Clause
@@ -574,6 +586,8 @@ Results from running the gcc and target library testsuites.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch509 -p1
%patch51
%patch55
%patch57
@@ -592,6 +606,7 @@ Results from running the gcc and target library testsuites.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -604,6 +619,7 @@ Results from running the gcc and target library testsuites.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -836,7 +852,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -1032,7 +1048,7 @@ for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
mv $l.new $l
done
%if 0%{?run_tests:1}
%if 0%{?run_tests:1}
cp `find . -name "*.sum"` ../testresults/
cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
chmod 644 ../testresults/*
@@ -1141,6 +1157,7 @@ rm -f $RPM_BUILD_ROOT%{libsubdir}/liblto_plugin.la
%post -n libffi48-devel
%install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
%postun -n libffi48-devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Tue Dec 19 12:02:30 UTC 2023 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1218020.patch to fix miscompile of wcstod on aarch64.
[bsc#1218020]
-------------------------------------------------------------------
Tue Mar 29 14:21:56 UTC 2022 - Richard Biener <rguenther@suse.com>
- Add gcc48-bsc1142649.patch. [bsc#1142649, CVE-2019-14250]
-------------------------------------------------------------------
Thu Apr 29 06:48:08 UTC 2021 - Richard Biener <rguenther@suse.com>
- Add gcc48-texi2pod-fixes.patch to fix manpage build with newer
perl versions. [bsc#1185395]
-------------------------------------------------------------------
Thu Nov 12 11:32:08 UTC 2020 - Richard Biener <rguenther@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libgcj48
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -14,13 +14,13 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# icecream 0
%define building_libjava 1
#
# spec file for package gcc48
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,6 +34,9 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# norootforbuild
# icecream 0
# Ada currently fails to build on a few platforms, enable it only
# on those that work
# Note that AdaCore only supports %ix86, x86_64 and ia64
@@ -314,6 +317,8 @@ Patch504: gcc48-mindirect-branch.diff
Patch505: gcc48-backport-pr86952-jump-tables.patch
Patch506: gcc48-bsc1161913.patch
Patch507: gcc48-pr63567.patch
Patch508: gcc48-bsc1142649.patch
Patch509: gcc48-bsc1218020.patch
# A set of patches from the RH srpm
Patch51: gcc41-ia64-stack-protector.patch
Patch55: gcc41-java-slow_pthread_self.patch
@@ -336,6 +341,7 @@ Patch83: gcc48-bnc988274.patch
Patch84: gcc48-bnc1011348-dr1288.patch
Patch85: gcc48-bnc1044016.patch
Patch86: gcc48-bnc1087932.patch
Patch87: gcc48-texi2pod-fixes.patch
# Patches from us
Patch100: gcc48-bnc976627.patch
Patch101: gcc48-bnc1082130.patch
@@ -346,6 +352,7 @@ Patch105: gcc48-flive-patching.patch
Patch106: gcc48-ipa-clones-dump.patch
# Patches for kbuild
Patch200: gcc48-keep-gcc-binary-with-ext.patch
Patch201: gcc48-x_spill_indirect_levels-type.patch
#testpatch end
@@ -362,7 +369,7 @@ Conflicts: %selfconflict libgij%{libgcj_sover}
Provides: libgcj-tools%{libgcj_sover} = %{version}-%{release}
Conflicts: %selfconflict libgcj-tools%{libgcj_sover}
%description
%description
This library is needed if you want to use the GNU Java compiler, gcj.
Source code for this package is in gcc.
@@ -380,14 +387,13 @@ Requires: libgcj48-devel = %{version}-%{release}
%description -n gcc48-java
The Java compiler from the GCC-tools-suite.
%package -n libgcj_bc%{libgcj_bc_sover}%{libgcj_bc_suffix}
Summary: Fake library for BC-ABI compatibility.
License: GPL-2.0-with-classpath-exception
Group: Development/Libraries/Java
# libgcj_bc is special in that it just contains a symlink to
# a proper libgcj version. So require that library and add
# provides for the shlib version as created at link time
License: GPL-2.0-with-classpath-exception
Group: Development/Libraries/Java
Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
%ifarch x86_64 ia64 ppc64 s390x sparc64 aarch64
Provides: libgcj_bc.so.%{libgcj_bc_sover}()(64bit)
@@ -405,7 +411,6 @@ binaries built with the BC-ABI link against a constant SONAME.
This way, BC-ABI binaries continue to work if the SONAME underlying
libgcj.so changes.
%package -n libgcj48-jar
Summary: Java runtime library (jar files).
License: GPL-2.0-with-classpath-exception
@@ -414,7 +419,6 @@ Group: Development/Libraries/Java
%description -n libgcj48-jar
These are the jar files that go along with the gcj front end to gcc.
%package -n libgcj48-devel
Summary: Include Files and Libraries mandatory for Development.
License: GPL-2.0-with-classpath-exception
@@ -435,7 +439,6 @@ Requires: libunwind-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
%package -n gcc48-gij
Summary: Java Bytecode Interpreter for gcc
License: GPL-2.0-with-classpath-exception
@@ -445,7 +448,6 @@ Requires: libgcj%{libgcj_sover} >= %{version}-%{release}
%description -n gcc48-gij
This package contains the java bytecode interpreter gij and related tools.
%package -n libstdc++48-doc
Summary: Documentation for the GNU C++ standard library
License: GPL-3.0-or-later
@@ -457,7 +459,6 @@ BuildArch: noarch
%description -n libstdc++48-doc
Extensive HTML documentation for the GNU C++ standard library.
%package -n libffi%{libffi_sover}%{libffi_suffix}
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -473,6 +474,7 @@ A foreign function interface is the popular name for the interface that allows c
%post -n libffi%{libffi_sover}%{libffi_suffix} -p /sbin/ldconfig
%postun -n libffi%{libffi_sover}%{libffi_suffix} -p /sbin/ldconfig
%package -n libffi%{libffi_sover}%{libffi_suffix}-32bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -488,6 +490,7 @@ A foreign function interface is the popular name for the interface that allows c
%post -n libffi%{libffi_sover}%{libffi_suffix}-32bit -p /sbin/ldconfig
%postun -n libffi%{libffi_sover}%{libffi_suffix}-32bit -p /sbin/ldconfig
%package -n libffi%{libffi_sover}%{libffi_suffix}-64bit
Summary: Foreign Function Interface library
License: BSD-3-Clause
@@ -514,6 +517,7 @@ Conflicts: %selfconflict libffi-devel
%description -n libffi48-devel
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package -n libffi48-devel-32bit
Summary: Foreign Function Interface library development files
License: BSD-3-Clause
@@ -524,6 +528,7 @@ Conflicts: %selfconflict libffi-devel-32bit
%description -n libffi48-devel-32bit
A foreign function interface is the popular name for the interface that allows code written in one language to call code written in another language.
%package -n libffi48-devel-64bit
Summary: Foreign Function Interface library development files
License: BSD-3-Clause
@@ -672,6 +677,8 @@ Results from running the gcc and target library testsuites.
%patch505 -p1
%patch506 -p1
%patch507
%patch508 -p1
%patch509 -p1
%patch51
%patch55
%patch57
@@ -690,6 +697,7 @@ Results from running the gcc and target library testsuites.
%patch84
%patch85
%patch86
%patch87 -p1
%patch100
%patch101
%ifarch aarch64
@@ -702,6 +710,7 @@ Results from running the gcc and target library testsuites.
%patch105 -p1
%patch106 -p1
%patch200 -p1
%patch201 -p1
#test patching end
@@ -934,7 +943,7 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS $GCJ_EXTRA_FLAGS" \
--enable-fix-cortex-a53-835769 \
--enable-fix-cortex-a53-843419 \
%endif
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc" || "%{TARGET_ARCH}" == "powerpc64" || "%{TARGET_ARCH}" == "powerpc64le"
%if "%{TARGET_ARCH}" == "powerpc"
--with-cpu=default32 \
%endif
@@ -1218,7 +1227,7 @@ for l in `find $RPM_BUILD_ROOT -name '*.la'`; do
mv $l.new $l
done
%if 0%{?run_tests:1}
%if 0%{?run_tests:1}
cp `find . -name "*.sum"` ../testresults/
cp `find . -name "*.log" \! -name "config.log" | grep -v 'acats.\?/tests' ` ../testresults/
chmod 644 ../testresults/*
@@ -1335,7 +1344,7 @@ mv $RPM_BUILD_ROOT%{_infodir}/libgomp.info $RPM_BUILD_ROOT%{_infodir}/libgomp%{b
%ifarch %itm_arch
mv $RPM_BUILD_ROOT%{_infodir}/libitm.info $RPM_BUILD_ROOT%{_infodir}/libitm%{binsuffix}.info
%endif
%if %{build_fortran}
%if %{build_fortran}
%ifarch %quadmath_arch
mv $RPM_BUILD_ROOT%{_infodir}/libquadmath.info $RPM_BUILD_ROOT%{_infodir}/libquadmath%{binsuffix}.info
%endif
@@ -1376,7 +1385,7 @@ mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%
%if %{build_java}
%if %{build_libjava}
%files
%files
%defattr(-,root,root)
%dir %{_libdir}/gcj-%{gcc_dir_version}-%{libgcj_sover}
%dir %{_libdir}/gcc
@@ -1497,6 +1506,7 @@ mv $RPM_BUILD_ROOT%{_infodir}/gnat_ugn.info $RPM_BUILD_ROOT%{_infodir}/gnat_ugn%
%post -n libffi48-devel
%install_info --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz
%postun -n libffi48-devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libffi%{binsuffix}.info.gz