!538 fix: function missing return value

From: @rfwang07 
Reviewed-by: @huang-xiaoquan 
Signed-off-by: @huang-xiaoquan
This commit is contained in:
openeuler-ci-bot 2024-12-26 11:26:03 +00:00 committed by Gitee
commit a12bc03cb4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 8d8dff2b18de8149b4f9f03968abd1b6f4b8cc69 Mon Sep 17 00:00:00 2001
From: rfwang07 <wangrufeng5@huawei.com>
Date: Sat, 21 Dec 2024 18:29:10 +0800
Subject: [PATCH] fix: function missing return value
---
gcc/final.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/final.cc b/gcc/final.cc
index e4bfceabc..0252250ba 100644
--- a/gcc/final.cc
+++ b/gcc/final.cc
@@ -4443,7 +4443,7 @@ dump_direct_callee_info_to_asm (basic_block bb, gcov_type call_count)
}
/* Dump the edge info into asm. */
-static int
+static void
dump_edge_jump_info_to_asm (basic_block bb, gcov_type bb_count)
{
edge e;
--
2.39.5 (Apple Git-154)

View File

@ -2,7 +2,7 @@
%global gcc_major 12
# Note, gcc_release must be integer, if you want to add suffixes to
# %%{release}, append them after %%{gcc_release} on Release: line.
%global gcc_release 57
%global gcc_release 58
%global _unpackaged_files_terminate_build 0
%global _performance_build 1
@ -428,6 +428,7 @@ Patch319: 0319-CSPGO-fix-bugs-when-using-cspgo.patch
Patch320: 0320-if-split-fix-bugs.patch
Patch321: 0321-Struct-reorg-Avoid-doing-struct-split-and-reorder_fi.patch
Patch322: 0322-Bugfix-Create-POINTER_PLUS_EXPR-for-REFERENCE_TYPE.patch
Patch323: 0323-fix-function-missing-return-value.patch
# Part 1001-1999
%ifarch sw_64
@ -1536,6 +1537,7 @@ not stable, so plugins must be rebuilt any time GCC is updated.
%patch -P320 -p1
%patch -P321 -p1
%patch -P322 -p1
%patch -P323 -p1
%ifarch sw_64
%patch -P1001 -p1
@ -4158,6 +4160,12 @@ end
%doc rpm.doc/changelogs/libcc1/ChangeLog*
%changelog
* Thu Dec 26 2024 rfwang07 <wangrufeng5@huawei.com> - 12.3.1-58
- Type:Bugfix
- ID:NA
- SUG:NA
- DESC:Fix function missing return value.
* Mon Dec 09 2024 liyancheng <412998149@qq.com> - 12.3.1-57
- Type:Bugfix
- ID:NA