diff options
author | Sam James <sam@gentoo.org> | 2022-06-26 05:00:41 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-26 05:00:41 +0100 |
commit | 1acb0022d8e6578a26985b0016757581e43af072 (patch) | |
tree | bb0c00ee9169c34ba3933a5481c66dfc9d8c32dc /12.1.0 | |
parent | 12.1.0: update musl 50_all_calloc_libgccjit.patch (diff) | |
download | gcc-patches-1acb0022d8e6578a26985b0016757581e43af072.tar.gz gcc-patches-1acb0022d8e6578a26985b0016757581e43af072.tar.bz2 gcc-patches-1acb0022d8e6578a26985b0016757581e43af072.zip |
12.1.0: add 28_all_drop_CFLAGS_sed.patch
Bug: https://bugs.gentoo.org/849722
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '12.1.0')
-rw-r--r-- | 12.1.0/gentoo/27_all_plugin-objdump.patch (renamed from 12.1.0/gentoo/26_all_plugin-objdump.patch) | 0 | ||||
-rw-r--r-- | 12.1.0/gentoo/28_all_drop_CFLAGS_sed.patch | 35 | ||||
-rw-r--r-- | 12.1.0/gentoo/README.history | 4 |
3 files changed, 39 insertions, 0 deletions
diff --git a/12.1.0/gentoo/26_all_plugin-objdump.patch b/12.1.0/gentoo/27_all_plugin-objdump.patch index 059bca5..059bca5 100644 --- a/12.1.0/gentoo/26_all_plugin-objdump.patch +++ b/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 |