diff options
author | 2024-07-15 00:35:47 +0100 | |
---|---|---|
committer | 2024-07-15 00:35:47 +0100 | |
commit | f3f27691478a0b256a3b52348bae96f5a6b5f089 (patch) | |
tree | 94519008a68169e66237428b3be8d7664739e38e | |
parent | 15.0.0: drop x86 backend fixes (diff) | |
download | gcc-patches-f3f27691478a0b256a3b52348bae96f5a6b5f089.tar.gz gcc-patches-f3f27691478a0b256a3b52348bae96f5a6b5f089.tar.bz2 gcc-patches-f3f27691478a0b256a3b52348bae96f5a6b5f089.zip |
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@gentoo.org>
-rw-r--r-- | 15.0.0/gentoo/78_all_gcc_don-t-enable-fext-dce-with-O2-for-now.patch | 34 | ||||
-rw-r--r-- | 15.0.0/gentoo/README.history | 4 |
2 files changed, 38 insertions, 0 deletions
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 <sam@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 |