summaryrefslogtreecommitdiff
path: root/0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch
diff options
context:
space:
mode:
Diffstat (limited to '0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch')
-rw-r--r--0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch b/0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch
new file mode 100644
index 0000000..54e93fc
--- /dev/null
+++ b/0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch
@@ -0,0 +1,28 @@
+From 9dc3df938b9ed2c27498c8548087fee1ce930366 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?=E9=83=91=E6=99=A8=E5=8D=89?= <zhengchenhui1@huawei.com>
+Date: Tue, 2 Apr 2024 11:08:30 +0800
+Subject: [PATCH] [Struct Reorg] Bugfix for structure pointer compression
+
+---
+ gcc/ipa-struct-reorg/ipa-struct-reorg.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/gcc/ipa-struct-reorg/ipa-struct-reorg.cc b/gcc/ipa-struct-reorg/ipa-struct-reorg.cc
+index fa33f2d35..3922873f3 100644
+--- a/gcc/ipa-struct-reorg/ipa-struct-reorg.cc
++++ b/gcc/ipa-struct-reorg/ipa-struct-reorg.cc
+@@ -7541,9 +7541,11 @@ ipa_struct_reorg::check_and_prune_struct_for_pointer_compression (void)
+ if (!type->has_legal_alloc_num)
+ {
+ if (current_layout_opt_level & POINTER_COMPRESSION_UNSAFE)
++ {
+ if (dump_file)
+ fprintf (dump_file, " has unknown alloc size, but"
+ " in unsafe mode, so");
++ }
+ else
+ {
+ if (dump_file)
+--
+2.33.0
+