summaryrefslogtreecommitdiff
path: root/0054-Struct-Reorg-Bugfix-for-structure-pointer-compressio.patch
blob: 54e93fc7c0da64fc764668d94e87caa39f012068 (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
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