commit: d27a3410a918f3666b657692e694618197b99b2f Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Aug 22 02:24:28 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Aug 22 02:37:03 2022 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d27a3410
10.4.0: add 28_all_drop_CFLAGS_sed.patch Previously was just for 12. Bug: https://bugs.gentoo.org/849722 Signed-off-by: Sam James <sam <AT> gentoo.org> 10.4.0/gentoo/34_all_drop_CFLAGS_sed.patch | 35 ++++++++++++++++++++++++++++++ 10.4.0/gentoo/README.history | 3 +++ 2 files changed, 38 insertions(+) diff --git a/10.4.0/gentoo/34_all_drop_CFLAGS_sed.patch b/10.4.0/gentoo/34_all_drop_CFLAGS_sed.patch new file mode 100644 index 0000000..0136628 --- /dev/null +++ b/10.4.0/gentoo/34_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 +@@ -5195,13 +5195,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 +@@ -397,13 +397,6 @@ ACX_PROG_GNAT([-I"$srcdir"/ada/libgnat]) + # 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) + diff --git a/10.4.0/gentoo/README.history b/10.4.0/gentoo/README.history index c4ae3f6..a60e657 100644 --- a/10.4.0/gentoo/README.history +++ b/10.4.0/gentoo/README.history @@ -1,3 +1,6 @@ +5 22 Aug 2022 + + 34_all_drop_CFLAGS_sed.patch + 4 22 Aug 2022 + 76_all_d_compiler_for_build_pie.patch
