gcc/0209-Bugfix-remove-extra-files-in-temp-dir.patch

27 lines
727 B
Diff
Raw Normal View History

2024-12-16 19:31:37 +08:00
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