commit: 1acb0022d8e6578a26985b0016757581e43af072 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Jun 26 04:00:41 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Jun 26 04:00:41 2022 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1acb0022
12.1.0: add 28_all_drop_CFLAGS_sed.patch Bug: https://bugs.gentoo.org/849722 Signed-off-by: Sam James <sam <AT> gentoo.org> ...n-objdump.patch => 27_all_plugin-objdump.patch} | 0 12.1.0/gentoo/28_all_drop_CFLAGS_sed.patch | 35 ++++++++++++++++++++++ 12.1.0/gentoo/README.history | 4 +++ 3 files changed, 39 insertions(+) diff --git a/12.1.0/gentoo/26_all_plugin-objdump.patch b/12.1.0/gentoo/27_all_plugin-objdump.patch similarity index 100% rename from 12.1.0/gentoo/26_all_plugin-objdump.patch rename to 12.1.0/gentoo/27_all_plugin-objdump.patch diff --git a/12.1.0/gentoo/28_all_drop_CFLAGS_sed.patch b/12.1.0/gentoo/28_all_drop_CFLAGS_sed.patch new file mode 100644 index 0000000..764f34c --- /dev/null +++ b/12.1.0/gentoo/28_all_drop_CFLAGS_sed.patch @@ -0,0 +1,35 @@ +https://bugs.gentoo.org/849722 +https://github.com/InBetweenNames/gentooLTO/issues/846 +https://github.com/vaeth/portage-bashrc-mv/issues/11 +--- a/gcc/configure ++++ b/gcc/configure +@@ -5388,13 +5388,6 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + +-# Remove the -O2: for historical reasons, unless bootstrapping we prefer +-# optimizations to be activated explicitly by the toplevel. +-case "$CC" in +- */prev-gcc/xgcc*) ;; +- *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` +- CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;; +-esac + + + +--- a/gcc/configure.ac ++++ b/gcc/configure.ac +@@ -440,13 +440,6 @@ ACX_PROG_GDC([-I"$srcdir"/d]) + # Do configure tests with the C++ compiler, since that's what we build with. + AC_LANG(C++) + +-# Remove the -O2: for historical reasons, unless bootstrapping we prefer +-# optimizations to be activated explicitly by the toplevel. +-case "$CC" in +- */prev-gcc/xgcc*) ;; +- *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" ` +- CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[[ ]]//" -e "s/-O[[gs]][[ ]]//" -e "s/-O[[0-9]]*[[ ]]//" ` ;; +-esac + AC_SUBST(CFLAGS) + AC_SUBST(CXXFLAGS) + AC_SUBST(GDCFLAGS) diff --git a/12.1.0/gentoo/README.history b/12.1.0/gentoo/README.history index 9b64fee..04019c0 100644 --- a/12.1.0/gentoo/README.history +++ b/12.1.0/gentoo/README.history @@ -1,3 +1,7 @@ +8 26 Jun 2022 + + + 28_all_drop_CFLAGS_sed.patch + 7 30 May 2022 U 26_all_enable-cet.patch