commit: f3f27691478a0b256a3b52348bae96f5a6b5f089 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jul 14 23:35:47 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jul 14 23:35:47 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f3f27691
15.0.0: don't enable -fext-dce with -O2 Bug: https://gcc.gnu.org/PR115876 Bug: https://gcc.gnu.org/PR115877 Bug: https://gcc.gnu.org/PR115912 Bug: https://gcc.gnu.org/PR115916 Bug: https://gcc.gnu.org/PR115927 Signed-off-by: Sam James <sam <AT> gentoo.org> ...gcc_don-t-enable-fext-dce-with-O2-for-now.patch | 34 ++++++++++++++++++++++ 15.0.0/gentoo/README.history | 4 +++ 2 files changed, 38 insertions(+) diff --git a/15.0.0/gentoo/78_all_gcc_don-t-enable-fext-dce-with-O2-for-now.patch b/15.0.0/gentoo/78_all_gcc_don-t-enable-fext-dce-with-O2-for-now.patch new file mode 100644 index 0000000..82c5535 --- /dev/null +++ b/15.0.0/gentoo/78_all_gcc_don-t-enable-fext-dce-with-O2-for-now.patch @@ -0,0 +1,34 @@ +From 86de2fd7550f75a318aa9819b115487cd850b4fc Mon Sep 17 00:00:00 2001 +From: Sam James <s...@gentoo.org> +Date: Mon, 15 Jul 2024 00:32:18 +0100 +Subject: [PATCH] gcc: don't enable -fext-dce with -O2 for now + +There's too many bugs involving it for now. + + gcc/ + * opts.cc (default_options_table): Don't enable ext-dce at -O2 + +Bug: https://gcc.gnu.org/PR115876 +Bug: https://gcc.gnu.org/PR115877 +Bug: https://gcc.gnu.org/PR115912 +Bug: https://gcc.gnu.org/PR115916 +Bug: https://gcc.gnu.org/PR115927 +--- + gcc/opts.cc | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/gcc/opts.cc b/gcc/opts.cc +index be90a632338f..e1a1bdf15822 100644 +--- a/gcc/opts.cc ++++ b/gcc/opts.cc +@@ -634,7 +634,6 @@ static const struct default_options default_options_table[] = + { OPT_LEVELS_2_PLUS, OPT_fdevirtualize, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_fdevirtualize_speculatively, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_fexpensive_optimizations, NULL, 1 }, +- { OPT_LEVELS_2_PLUS, OPT_fext_dce, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_fgcse, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_findirect_inlining, NULL, 1 }, +-- +2.45.2 + diff --git a/15.0.0/gentoo/README.history b/15.0.0/gentoo/README.history index efe48af..eddda8f 100644 --- a/15.0.0/gentoo/README.history +++ b/15.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +5 15 July 2024 + + + 78_all_gcc_don-t-enable-fext-dce-with-O2-for-now.patch + 4 16 June 2024 - 77_all_PR115387.patch