diff options
| author | 2022-08-22 03:27:23 +0100 | |
|---|---|---|
| committer | 2022-08-22 03:37:04 +0100 | |
| commit | 20b8e7fec339997398bc6881b30b9cf01cc9f0b1 (patch) | |
| tree | a3ee134dbc80ed3e6ce1cc0724f3d47a99798ce0 | |
| parent | 10.4.0: add 28_all_drop_CFLAGS_sed.patch (diff) | |
| download | gcc-patches-20b8e7fec339997398bc6881b30b9cf01cc9f0b1.tar.gz gcc-patches-20b8e7fec339997398bc6881b30b9cf01cc9f0b1.tar.bz2 gcc-patches-20b8e7fec339997398bc6881b30b9cf01cc9f0b1.zip | |
10.5.0: add 34_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-- | 10.5.0/gentoo/34_all_drop_CFLAGS_sed.patch | 35 | ||||
| -rw-r--r-- | 10.5.0/gentoo/README.history | 3 |
2 files changed, 37 insertions, 1 deletions
diff --git a/10.5.0/gentoo/34_all_drop_CFLAGS_sed.patch b/10.5.0/gentoo/34_all_drop_CFLAGS_sed.patch new file mode 100644 index 0000000..0136628 --- /dev/null +++ b/10.5.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.5.0/gentoo/README.history b/10.5.0/gentoo/README.history index 6c7ed1b..19b1d3a 100644 --- a/10.5.0/gentoo/README.history +++ b/10.5.0/gentoo/README.history @@ -1,4 +1,4 @@ -0 ?? ???? ???? +0 22 Aug 2022 + 01_all_default-fortify-source.patch + 02_all_default-warn-format-security.patch + 03_all_default-warn-trampolines.patch @@ -32,4 +32,5 @@ + 31_all_fno-delayed-branch.patch + 32_all_vtv-slibtool.patch + 33_all_msgfmt-libstdc++-link.patch + + 34_all_drop_CFLAGS_sed.patch + 75_all_d_compiler_for_build_pie.patch |
