diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2018-10-27 11:06:16 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2018-10-27 11:06:16 +0100 |
commit | e2c9eba5f076cfd8e064fdad01b0fa7da030c008 (patch) | |
tree | 2ba6bab9e1975cb9efd47dccd9a0e7c6909718bb /6.5.0/gentoo/01_all_default-fortify-source.patch | |
parent | 6.4.0: cut 1.8 patchset (diff) | |
download | gcc-patches-e2c9eba5f076cfd8e064fdad01b0fa7da030c008.tar.gz gcc-patches-e2c9eba5f076cfd8e064fdad01b0fa7da030c008.tar.bz2 gcc-patches-e2c9eba5f076cfd8e064fdad01b0fa7da030c008.zip |
6.5.0: cut 1.0 patchset, a copy of 6.4.0-1.8 patchset
The only different from 6.4.0-1.8 patchset is dropped
patches that are already upstream.
22 patches:
+ 01_all_default-fortify-source.patch
+ 02_all_default-warn-format-security.patch
+ 03_all_default-warn-trampolines.patch
+ 04_all_default-ssp-fix.patch
+ 05_all_alpha-mieee-default.patch
+ 06_all_arm_armv4t-default.patch
+ 07_all_ia64_note.GNU-stack.patch
+ 08_all_superh_default-multilib.patch
+ 09_all_libiberty-asprintf.patch
+ 10_all_libiberty-pic.patch
+ 11_all_nopie-all-flags.patch
+ 12_all_extra-options.patch
+ 13_all_pr55930-dependency-tracking.patch
+ 14_all_asan-signal_h.patch
+ 15_all_respect-build-cxxflags.patch
+ 16_all_libgfortran-Werror.patch
+ 17_all_libgomp-Werror.patch
+ 18_all_libitm-Werror.patch
+ 19_all_libatomic-Werror.patch
+ 20_all_libbacktrace-Werror.patch
+ 21_all_libsanitizer-libbacktrace-Werror.patch
+ 22_all_libstdcxx-no-vtv.patch
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '6.5.0/gentoo/01_all_default-fortify-source.patch')
-rw-r--r-- | 6.5.0/gentoo/01_all_default-fortify-source.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/6.5.0/gentoo/01_all_default-fortify-source.patch b/6.5.0/gentoo/01_all_default-fortify-source.patch new file mode 100644 index 0000000..36c5762 --- /dev/null +++ b/6.5.0/gentoo/01_all_default-fortify-source.patch @@ -0,0 +1,15 @@ +Enable -D_FORTIFY_SOURCE=2 by default. + + +--- a/gcc/c-family/c-cppbuiltin.c ++++ b/gcc/c-family/c-cppbuiltin.c +@@ -951,6 +951,9 @@ c_cpp_builtins (cpp_reader *pfile) + builtin_define_with_value ("__REGISTER_PREFIX__", REGISTER_PREFIX, 0); + builtin_define_with_value ("__USER_LABEL_PREFIX__", user_label_prefix, 0); + ++ /* Fortify Source enabled by default w/optimization. */ ++ cpp_define (pfile, "_FORTIFY_SOURCE=((defined __OPTIMIZE__ && __OPTIMIZE__ > 0) ? 2 : 0)"); ++ + /* Misc. */ + if (flag_gnu89_inline) + cpp_define (pfile, "__GNUC_GNU_INLINE__"); |