From ba97a2e89b5077b4ad04ce2c643bfb91e9f3e8cf Mon Sep 17 00:00:00 2001 From: rfwang07 Date: Sat, 21 Dec 2024 18:37:39 +0800 Subject: [PATCH] fix: function missing return value --- 0331-fix-function-missing-return-value.patch | 25 ++++++++++++++++++++ gcc.spec | 10 +++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0331-fix-function-missing-return-value.patch diff --git a/0331-fix-function-missing-return-value.patch b/0331-fix-function-missing-return-value.patch new file mode 100644 index 0000000..003760b --- /dev/null +++ b/0331-fix-function-missing-return-value.patch @@ -0,0 +1,25 @@ +From 8d8dff2b18de8149b4f9f03968abd1b6f4b8cc69 Mon Sep 17 00:00:00 2001 +From: rfwang07 +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) + diff --git a/gcc.spec b/gcc.spec index ee627d2..6328283 100644 --- a/gcc.spec +++ b/gcc.spec @@ -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 62 +%global gcc_release 63 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -436,6 +436,7 @@ Patch327: 0327-Bugfix-Adjust-the-same-gate-to-use-struct-option.patch Patch328: 0328-Bugfix-if-split-Added-checking-for-ssa_name.patch Patch329: 0329-Fixed-work-with-loops-in-process_complex_cond.patch Patch330: 0330-bugfix-fix-typo-error.patch +Patch331: 0331-fix-function-missing-return-value.patch # Part 1001-1999 %ifarch sw_64 @@ -1552,6 +1553,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch -P328 -p1 %patch -P329 -p1 %patch -P330 -p1 +%patch -P331 -p1 %ifarch sw_64 %patch -P1001 -p1 @@ -4175,6 +4177,12 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Sat Dec 21 2024 rfwang07 - 12.3.1-63 +- Type:Bugfix +- ID:NA +- SUG:NA +- DESC:Fix function missing return value. + * Wed Dec 18 2024 Mingchuan Wu - 12.3.1-62 - Type:Sync - ID:NA -- Gitee