diff --git a/0364-fix-llc-feature-case-failed.patch b/0364-fix-llc-feature-case-failed.patch new file mode 100644 index 0000000000000000000000000000000000000000..3bfcf72aa224f09c77652150932bc019c87d2078 --- /dev/null +++ b/0364-fix-llc-feature-case-failed.patch @@ -0,0 +1,78 @@ +From 889fed32e6e86a64974ec9edc69cd2c88c14e6f0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E9=99=88=E9=B8=BF?= +Date: Sat, 15 Mar 2025 14:58:11 +0800 +Subject: [PATCH] fix llc feature case failed + +--- + gcc/testsuite/gcc.dg/llc-allocate/llc-1.c | 2 +- + gcc/testsuite/gcc.dg/llc-allocate/llc-nonzero-offset.c | 2 +- + gcc/testsuite/gcc.dg/llc-allocate/llc-ref-trace.c | 2 +- + gcc/testsuite/gfortran.dg/llc-allocate/llc-3.f90 | 4 ++-- + .../gfortran.dg/llc-allocate/llc-unknown-type-size-unit.f90 | 2 +- + 5 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/gcc/testsuite/gcc.dg/llc-allocate/llc-1.c b/gcc/testsuite/gcc.dg/llc-allocate/llc-1.c +index 0b81394ad..55d1396d4 100644 +--- a/gcc/testsuite/gcc.dg/llc-allocate/llc-1.c ++++ b/gcc/testsuite/gcc.dg/llc-allocate/llc-1.c +@@ -56,6 +56,6 @@ main (int argc, char *argv[]) + /* { dg-final { scan-tree-dump "\\d\\tupperPtr\\t\\(2.933319, 1, 1, 0\\)" "llc_allocate" } } */ + /* { dg-final { scan-tree-dump "\\d\\tlPtr\\t\\(1.466660, 1, 1, 0\\)" "llc_allocate" } } */ + /* { dg-final { scan-tree-dump "\\d\\tuPtr\\t\\(1.466660, 1, 1, 0\\)" "llc_allocate" } } */ +-/* { dg-final { scan-tree-dump-times "runtime issue" 1 "llc_allocate" } } */ ++/* { dg-final { scan-tree-dump-times "runtime issue" 0 "llc_allocate" } } */ + /* { dg-final { scan-tree-dump-times "static issue" 2 "llc_allocate" } } */ + /* { dg-final { scan-tree-dump-times "insert svprfd" 2 "llc_allocate" } } */ +diff --git a/gcc/testsuite/gcc.dg/llc-allocate/llc-nonzero-offset.c b/gcc/testsuite/gcc.dg/llc-allocate/llc-nonzero-offset.c +index e18725f60..5e908b380 100644 +--- a/gcc/testsuite/gcc.dg/llc-allocate/llc-nonzero-offset.c ++++ b/gcc/testsuite/gcc.dg/llc-allocate/llc-nonzero-offset.c +@@ -46,5 +46,5 @@ convert_regs_exit (basic_block bb, int value_reg_low, int value_reg_high) + return output_stack->reg[0]; + } + +-/* { dg-final { scan-tree-dump-times "runtime issue" 1 "llc_allocate" } } */ ++/* { dg-final { scan-tree-dump-times "runtime issue" 0 "llc_allocate" } } */ + /* { dg-final { scan-tree-dump-times "static issue" 1 "llc_allocate" } } */ +\ No newline at end of file +diff --git a/gcc/testsuite/gcc.dg/llc-allocate/llc-ref-trace.c b/gcc/testsuite/gcc.dg/llc-allocate/llc-ref-trace.c +index ba90e7ea4..9196d1d95 100644 +--- a/gcc/testsuite/gcc.dg/llc-allocate/llc-ref-trace.c ++++ b/gcc/testsuite/gcc.dg/llc-allocate/llc-ref-trace.c +@@ -59,4 +59,4 @@ main (int argc, char *argv[]) + + /* { dg-final { scan-tree-dump-times "Tracing succeeded" 24 "llc_allocate" } } */ + /* { dg-final { scan-tree-dump-not "Tracing failed" "llc_allocate" } } */ +-/* { dg-final { scan-tree-dump-times "unhandled issue scene" 2 "llc_allocate" } } */ +\ No newline at end of file ++/* { dg-final { scan-tree-dump-times "unhandled issue scene" 0 "llc_allocate" } } */ +\ No newline at end of file +diff --git a/gcc/testsuite/gfortran.dg/llc-allocate/llc-3.f90 b/gcc/testsuite/gfortran.dg/llc-allocate/llc-3.f90 +index b0f68ebe3..da9669639 100644 +--- a/gcc/testsuite/gfortran.dg/llc-allocate/llc-3.f90 ++++ b/gcc/testsuite/gfortran.dg/llc-allocate/llc-3.f90 +@@ -205,7 +205,7 @@ END SUBROUTINE calc_p_rho + ! { dg-final { scan-tree-dump-times "\\d\\tt_1\\t\\(0.000000, 3, 1, 0\\)" 1 "llc_allocate" } } + ! { dg-final { scan-tree-dump-times "\\d\\tt_2\\t\\(0.000000, 3, 1, 0\\)" 1 "llc_allocate" } } + ! { dg-final { scan-tree-dump-times "\\d\\tc2a\\t\\(0.000000, 3, 1, 0\\)" 2 "llc_allocate" } } +-! { dg-final { scan-tree-dump-times "runtime issue" 2 "llc_allocate" } } ++! { dg-final { scan-tree-dump-times "runtime issue" 0 "llc_allocate" } } + ! { dg-final { scan-tree-dump-times "static issue" 2 "llc_allocate" } } + ! { dg-final { scan-tree-dump-times "insert svprfd" 2 "llc_allocate" } } +-! { dg-final { scan-tree-dump-times "cumul_size.*150960\\)" 1 "llc_allocate" } } ++! { dg-final { scan-tree-dump-times "cumul_size.*150960\\)" 0 "llc_allocate" } } +diff --git a/gcc/testsuite/gfortran.dg/llc-allocate/llc-unknown-type-size-unit.f90 b/gcc/testsuite/gfortran.dg/llc-allocate/llc-unknown-type-size-unit.f90 +index 7345759db..eb2cc8690 100644 +--- a/gcc/testsuite/gfortran.dg/llc-allocate/llc-unknown-type-size-unit.f90 ++++ b/gcc/testsuite/gfortran.dg/llc-allocate/llc-unknown-type-size-unit.f90 +@@ -54,5 +54,5 @@ SUBROUTINE calc_p8w(p8w, ix, iy, k_start, k_end) + + END SUBROUTINE calc_p8w + +-! { dg-final { scan-tree-dump-times "runtime issue" 1 "llc_allocate" } } ++! { dg-final { scan-tree-dump-times "runtime issue" 0 "llc_allocate" } } + ! { dg-final { scan-tree-dump-times "static issue" 1 "llc_allocate" } } +\ No newline at end of file +-- +2.44.0.windows.1 + diff --git a/gcc.spec b/gcc.spec index 56af76ade1407bfb6b4a68ff3be283ec8d4fd94a..cde2d7738bf49387a480da30d134cde8ff3a613c 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 79 +%global gcc_release 80 %global _unpackaged_files_terminate_build 0 %global _performance_build 1 @@ -469,6 +469,7 @@ Patch360: 0360-struct-reorg-fix-residual-ssa_name-issue.patch Patch361: 0361-tracer-static-Fix-divide-by-zero-error.patch Patch362: 0362-fix-prefetch-case-failed.patch Patch363: 0363-llc-feature-bugfix.patch +Patch364: 0364-fix-llc-feature-case-failed.patch # Part 1001-1999 %ifarch sw_64 @@ -1618,6 +1619,7 @@ not stable, so plugins must be rebuilt any time GCC is updated. %patch -P361 -p1 %patch -P362 -p1 %patch -P363 -p1 +%patch -P364 -p1 %ifarch sw_64 %patch -P1001 -p1 @@ -4255,6 +4257,12 @@ end %doc rpm.doc/changelogs/libcc1/ChangeLog* %changelog +* Sat Mar 15 2025 chenhong - 12.3.1-80 +- Type:Bugfix +- ID:NA +- SUG:NA +- DESC:Fix llc feature failed case + * Wed Mar 12 2025 chenhong - 12.3.1-79 - Type:Bugfix - ID:NA