!533 [Sync] Sync patch from openeuler/gcc

From: @zhenyu--zhao_admin 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
This commit is contained in:
openeuler-ci-bot 2024-12-17 02:48:11 +00:00 committed by Gitee
commit 661e8db609
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 99d6278b89cb5cb1d8ee4f4c6e3e794ba42795e6 Mon Sep 17 00:00:00 2001
From: zhenyu--zhao_admin <zhaozhenyu17@huawei.com>
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

View File

@ -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 <zhaozhenyu17@huawei.com> - 10.3.1-67
- Type:Bugfix
- ID:NA
- SUG:NA
- DESC: Sync patch from openeuler/gcc
* Thu Oct 10 2024 zhenyu zhao <zhaozhenyu17@huawei.com> - 10.3.1-66
- Type:Bugfix
- ID:NA