diff options
| author | 2022-08-22 03:07:36 +0100 | |
|---|---|---|
| committer | 2022-08-22 03:14:11 +0100 | |
| commit | 5214684ada542a7615215a731f2912b258f4824d (patch) | |
| tree | 52330e1e2650ccb71bc5b723ab8cd3a568847899 | |
| parent | 10.5.0: clone of 10.4.0 modulo glibc-2.36 patch (diff) | |
| download | gcc-patches-5214684ada542a7615215a731f2912b258f4824d.tar.gz gcc-patches-5214684ada542a7615215a731f2912b258f4824d.tar.bz2 gcc-patches-5214684ada542a7615215a731f2912b258f4824d.zip | |
11.3.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@gentoo.org>
| -rw-r--r-- | 11.3.0/gentoo/28_all_drop_CFLAGS_sed.patch | 35 | ||||
| -rw-r--r-- | 11.3.0/gentoo/README.history | 3 |
2 files changed, 38 insertions, 0 deletions
diff --git a/11.3.0/gentoo/28_all_drop_CFLAGS_sed.patch b/11.3.0/gentoo/28_all_drop_CFLAGS_sed.patch new file mode 100644 index 0000000..0a9fa13 --- /dev/null +++ b/11.3.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 +@@ -5265,13 +5265,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 +@@ -439,13 +439,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/11.3.0/gentoo/README.history b/11.3.0/gentoo/README.history index 44c3d49..c62f0cb 100644 --- a/11.3.0/gentoo/README.history +++ b/11.3.0/gentoo/README.history @@ -1,3 +1,6 @@ +7 22 August 2022 + + 28_all_drop_CFLAGS_sed.patch + 6 22 August 2022 + 77_all_glibc_236.patch |
