commit: 257336021ebdc63cdd390487506f23d83f04ab91 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sun Apr 7 23:23:32 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Apr 7 23:23:32 2024 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=25733602
14.0.0: rebase patches Signed-off-by: Sam James <sam <AT> gentoo.org> 14.0.0/gentoo/02_all_default-warn-format-security.patch | 9 ++++----- 14.0.0/gentoo/04_all_nossp-on-nostdlib.patch | 9 +++++---- 14.0.0/gentoo/README.history | 5 +++++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/14.0.0/gentoo/02_all_default-warn-format-security.patch b/14.0.0/gentoo/02_all_default-warn-format-security.patch index 9723a1c..439d9d8 100644 --- a/14.0.0/gentoo/02_all_default-warn-format-security.patch +++ b/14.0.0/gentoo/02_all_default-warn-format-security.patch @@ -1,9 +1,8 @@ Enable -Wformat and -Wformat-security by default. - --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt -@@ -696,7 +696,7 @@ Warn about function calls with format strings that write past the end - of the destination region. Same as -Wformat-overflow=1. +@@ -770,7 +770,7 @@ Warn about function calls with format strings that write past the end + of the destination region. Wformat-security -C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) @@ -11,7 +10,7 @@ Enable -Wformat and -Wformat-security by default. Warn about possible security problems with format functions. Wformat-signedness -@@ -717,7 +717,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++ +@@ -795,7 +795,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++ Warn about zero-length formats. Wformat= @@ -19,4 +18,4 @@ Enable -Wformat and -Wformat-security by default. +C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) Warn about printf/scanf/strftime/strfmon format string anomalies. - Wformat-overflow= + Wframe-address diff --git a/14.0.0/gentoo/04_all_nossp-on-nostdlib.patch b/14.0.0/gentoo/04_all_nossp-on-nostdlib.patch index b633d7f..30c5825 100644 --- a/14.0.0/gentoo/04_all_nossp-on-nostdlib.patch +++ b/14.0.0/gentoo/04_all_nossp-on-nostdlib.patch @@ -1,5 +1,4 @@ -Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding - +│Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding https://bugs.gentoo.org/484714 --- a/gcc/gcc.cc +++ b/gcc/gcc.cc @@ -16,12 +15,14 @@ https://bugs.gentoo.org/484714 #ifndef LINK_SSP_SPEC #ifdef TARGET_LIBC_PROVIDES_SSP #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ -@@ -1280,7 +1286,7 @@ static const char *cc1_options = +@@ -1286,7 +1292,7 @@ static const char *cc1_options = %{-version:--version}\ %{-help=*:--help=%*}\ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %w%b.s}}}\ - %{fsyntax-only:-o %j} %{-param*}\ + %{fsyntax-only:-o %j} %{-param*} " NO_SSP_SPEC "\ %{coverage:-fprofile-arcs -ftest-coverage}\ - %{fprofile-arcs|fprofile-generate*|coverage:\ + %{fprofile-arcs|fcondition-coverage|fprofile-generate*|coverage:\ %{!fprofile-update=single:\ +-- +2.44.0 diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 33e0319..8e0250c 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,8 @@ +26 7 Apr 2024 + + U 02_all_default-warn-format-security.patch + U 04_all_nossp-on-nostdlib.patch + 25 11 Mar 2024 - 50_all_PR111632_system_cxx_headers_libcxx.patch
