summaryrefslogtreecommitdiff
path: root/0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch
blob: 88613ba97716c1adf4051a67cf5494f4ff0b24e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From b669b4512e8425f4d752ef76bf61097cf40d9b35 Mon Sep 17 00:00:00 2001
From: zgat <1071107108@qq.com>
Date: Thu, 17 Nov 2022 02:55:48 +0000
Subject: [PATCH 28/35] [Struct Reorg] Fix speccpu2006 462 double free #I60YUV
 modify gcc/tree.c. Normal operation speccpu 462 after modifed

Signed-off-by: zgat <1071107108@qq.com>
---
 gcc/tree.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gcc/tree.c b/gcc/tree.c
index 2a532d15a..a61788651 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5224,8 +5224,7 @@ fld_simplified_type_name (tree type)
      optimizations.  */
   if (flag_ipa_struct_reorg
       && lang_c_p ()
-      && flag_lto_partition == LTO_PARTITION_ONE
-      && (in_lto_p || flag_whole_program))
+      && flag_lto_partition == LTO_PARTITION_ONE)
     return TYPE_NAME (type);
 
   if (!TYPE_NAME (type) || TREE_CODE (TYPE_NAME (type)) != TYPE_DECL)
@@ -5471,8 +5470,7 @@ fld_simplified_type (tree t, class free_lang_data_d *fld)
      optimizations.  */
   if (flag_ipa_struct_reorg
       && lang_c_p ()
-      && flag_lto_partition == LTO_PARTITION_ONE
-      && (in_lto_p || flag_whole_program))
+      && flag_lto_partition == LTO_PARTITION_ONE)
     return t;
   if (POINTER_TYPE_P (t))
     return fld_incomplete_type_of (t, fld);
-- 
2.27.0.windows.1