28 lines
1023 B
Diff
28 lines
1023 B
Diff
From 7f7d120824f6c9c8a79ab0086a07125680790645 Mon Sep 17 00:00:00 2001
|
|
From: xiabangfeng <xiabangfeng@hygon.cn>
|
|
Date: Fri, 9 Aug 2024 07:22:08 +0000
|
|
Subject: [PATCH] [Strcut-Reorg] fix spec2017/505 build issue with
|
|
-fipa-struct-reorg=5 the "pc_gptr" should be added to "varpool_node" after
|
|
creating
|
|
|
|
Change-Id: I0a0a96b9c28a45b131fbaf87bdca882541fea28c
|
|
---
|
|
gcc/ipa-struct-reorg/ipa-struct-reorg.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/gcc/ipa-struct-reorg/ipa-struct-reorg.c b/gcc/ipa-struct-reorg/ipa-struct-reorg.c
|
|
index dcfa7cd9535..10c73fb87d7 100644
|
|
--- a/gcc/ipa-struct-reorg/ipa-struct-reorg.c
|
|
+++ b/gcc/ipa-struct-reorg/ipa-struct-reorg.c
|
|
@@ -508,6 +508,7 @@ srtype::create_global_ptr_for_pc ()
|
|
tree new_var = build_decl (UNKNOWN_LOCATION, VAR_DECL, new_name, new_type);
|
|
set_var_attributes (new_var);
|
|
pc_gptr = new_var;
|
|
+ varpool_node::add (pc_gptr);
|
|
|
|
if (dump_file && (dump_flags & TDF_DETAILS))
|
|
fprintf (dump_file, "\nType: %s has create global header for pointer"
|
|
--
|
|
2.34.1
|
|
|