summaryrefslogtreecommitdiff
path: root/0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch
diff options
context:
space:
mode:
Diffstat (limited to '0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch')
-rw-r--r--0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch b/0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch
new file mode 100644
index 0000000..88613ba
--- /dev/null
+++ b/0076-Struct-Reorg-Fix-speccpu2006-462-double-free-I60YUV.patch
@@ -0,0 +1,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
+