From 8ad59a38fe5a0e3b05ea99854ce0d9df0e95bc51 Mon Sep 17 00:00:00 2001 From: zhenyu--zhao_admin Date: Mon, 16 Dec 2024 19:31:37 +0800 Subject: [PATCH] [Bugfix] Remove extra file in tmp dir. --- ...ugfix-remove-extra-files-in-temp-dir.patch | 26 +++++++++++++++++++ gcc.spec | 10 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 0209-Bugfix-remove-extra-files-in-temp-dir.patch diff --git a/0209-Bugfix-remove-extra-files-in-temp-dir.patch b/0209-Bugfix-remove-extra-files-in-temp-dir.patch new file mode 100644 index 0000000..afdf041 --- /dev/null +++ b/0209-Bugfix-remove-extra-files-in-temp-dir.patch @@ -0,0 +1,26 @@ +From 99d6278b89cb5cb1d8ee4f4c6e3e794ba42795e6 Mon Sep 17 00:00:00 2001 +From: zhenyu--zhao_admin +Date: Wed, 11 Dec 2024 16:09:28 +0800 +Subject: [PATCH] [Bugfix]: remove extra files in temp dir. + +--- + gcc/collect2.c | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/gcc/collect2.c b/gcc/collect2.c +index cd29a9e97..0d859eb36 100644 +--- a/gcc/collect2.c ++++ b/gcc/collect2.c +@@ -393,6 +393,9 @@ tool_cleanup (bool from_signal) + if (o_file != 0 && o_file[0]) + maybe_unlink (o_file); + ++ if (ai_optimize_file != 0 && ai_optimize_file[0]) ++ maybe_unlink (ai_optimize_file); ++ + #ifdef COLLECT_EXPORT_LIST + if (export_file != 0 && export_file[0]) + maybe_unlink (export_file); +-- +2.33.0 + diff --git a/gcc.spec b/gcc.spec index 1b122c3..e608fb7 100644 --- a/gcc.spec +++ b/gcc.spec @@ -61,7 +61,7 @@ Summary: Various compilers (C, C++, Objective-C, ...) Name: gcc Version: %{gcc_version} -Release: 66 +Release: 67 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD URL: https://gcc.gnu.org @@ -316,6 +316,7 @@ Patch205: 0205-bolt-plugin-supports-optimization-for-dyn-and-pie.patch Patch206: 0206-Strcut-Reorg-fix-spec2017-505-build-issue-with-fipa-.patch Patch207: 0207-Use-AI-ability-to-enable-Link-Time-Optimization.patch patch208: 0208-Bugfix-fix-some-typo-errors.patch +patch209: 0209-Bugfix-remove-extra-files-in-temp-dir.patch %global gcc_target_platform %{_arch}-linux-gnu @@ -977,6 +978,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch206 -p1 %patch207 -p1 %patch208 -p1 +%patch209 -p1 %build @@ -3011,6 +3013,12 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Mon Dec 16 2024 zhenyu zhao - 10.3.1-67 +- Type:Bugfix +- ID:NA +- SUG:NA +- DESC: Sync patch from openeuler/gcc + * Thu Oct 10 2024 zhenyu zhao - 10.3.1-66 - Type:Bugfix - ID:NA -- Gitee