!473 fix spec2017/505 build issue for SP3

From: @starfivev 
Reviewed-by: @xiongzhou4 
Signed-off-by: @xiongzhou4
This commit is contained in:
openeuler-ci-bot 2024-08-23 09:07:43 +00:00 committed by Gitee
commit 6f86d01459
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,27 @@
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

View File

@ -61,7 +61,7 @@
Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc
Version: %{gcc_version}
Release: 53
Release: 54
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
URL: https://gcc.gnu.org
@ -297,6 +297,7 @@ Patch186: 0186-Loop-CRC-Solving-the-problem-of-insufficient-CRC-tab.patch
Patch187: 0187-Add-IPA-prefetch-test.patch
Patch188: 0188-Fix-fails-in-ICP-for-src-openEuler-gcc-I90P7M-I91CZ8.patch
Patch189: 0189-Add-hip11-CPU-pipeline-scheduling.patch
Patch190: 0190-Strcut-Reorg-fix-spec2017-505-build-issue-with-fipa-.patch
%global gcc_target_platform %{_arch}-linux-gnu
@ -939,6 +940,7 @@ not stable, so plugins must be rebuilt any time GCC is updated.
%patch187 -p1
%patch188 -p1
%patch189 -p1
%patch190 -p1
%build
@ -2968,6 +2970,12 @@ end
%doc rpm.doc/changelogs/libcc1/ChangeLog*
%changelog
* Thu Aug 22 2024 wuxinghang <wuxinghang@higon.cn> - 10.3.1-54
- Type:Sync
- ID:NA
- SUG:NA
- DESC:Sync patch from openeuler/gcc fix spec2017/505 build issue
* Mon Apr 15 2024 huyubiao <huyubiao@huawei.com> - 10.3.1-53
- Type:SPEC
- ID:NA