From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6F768158086 for ; Thu, 2 Dec 2021 15:03:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC3772BC012; Thu, 2 Dec 2021 15:03:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 479952BC019 for ; Thu, 2 Dec 2021 15:03:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E36233430CD for ; Thu, 2 Dec 2021 15:03:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3904F1C6 for ; Thu, 2 Dec 2021 15:03:02 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1638040858.e84b34dedf9f3bc2e21fa9f1dbb77770d29afde8.soap@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 11.3.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 11.3.0/gentoo/02_all_default-warn-format-security.patch 11.3.0/gentoo/04_all_nossp-on-nostdlib.patch 11.3.0/gentoo/07_all_libiberty-asprintf.patch 11.3.0/gentoo/15_all_libgomp-Werror.patch 11.3.0/gentoo/16_all_libitm-Werror.patch 11.3.0/gentoo/17_all_libatomic-Werror.patch 11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch X-VCS-Directories: 11.3.0/gentoo/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: e84b34dedf9f3bc2e21fa9f1dbb77770d29afde8 X-VCS-Branch: master Date: Thu, 2 Dec 2021 15:03:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0a3f0806-2d53-4ec5-ab58-9ef7d1c8655e X-Archives-Hash: 643a124dbb48ae8949ba1e42f445267f commit: e84b34dedf9f3bc2e21fa9f1dbb77770d29afde8 Author: David Seifert gentoo org> AuthorDate: Sat Nov 27 19:20:58 2021 +0000 Commit: David Seifert gentoo org> CommitDate: Sat Nov 27 19:20:58 2021 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e84b34de 11.3.0: rebase patches to avoid fuzz * 11.3.0/gentoo/02_all_default-warn-format-security.patch * 11.3.0/gentoo/04_all_nossp-on-nostdlib.patch * 11.3.0/gentoo/07_all_libiberty-asprintf.patch * 11.3.0/gentoo/15_all_libgomp-Werror.patch * 11.3.0/gentoo/16_all_libitm-Werror.patch * 11.3.0/gentoo/17_all_libatomic-Werror.patch * 11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch Signed-off-by: David Seifert gentoo.org> 11.3.0/gentoo/02_all_default-warn-format-security.patch | 12 ++++++------ 11.3.0/gentoo/04_all_nossp-on-nostdlib.patch | 10 +++++----- 11.3.0/gentoo/07_all_libiberty-asprintf.patch | 6 +++--- 11.3.0/gentoo/15_all_libgomp-Werror.patch | 10 ++++++++-- 11.3.0/gentoo/16_all_libitm-Werror.patch | 10 ++++++++-- 11.3.0/gentoo/17_all_libatomic-Werror.patch | 10 ++++++++-- 11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch | 14 +++++++------- 7 files changed, 45 insertions(+), 27 deletions(-) diff --git a/11.3.0/gentoo/02_all_default-warn-format-security.patch b/11.3.0/gentoo/02_all_default-warn-format-security.patch index f809abd..13fa24a 100644 --- a/11.3.0/gentoo/02_all_default-warn-format-security.patch +++ b/11.3.0/gentoo/02_all_default-warn-format-security.patch @@ -1,9 +1,9 @@ Enable -Wformat and -Wformat-security by default. ---- a/gcc/c-family/c.opt 2016-03-23 18:51:56.000000000 +0100 -+++ b/gcc/c-family/c.opt 2016-04-28 23:45:54.063351272 +0200 -@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit - Warn about format strings that are not literals. +--- a/gcc/c-family/c.opt ++++ b/gcc/c-family/c.opt +@@ -637,7 +637,7 @@ + of the destination region. Same as -Wformat-overflow=1. Wformat-security -C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) @@ -11,7 +11,7 @@ Enable -Wformat and -Wformat-security by default. Warn about possible security problems with format functions. Wformat-signedness -@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l +@@ -658,7 +658,7 @@ Warn about zero-length formats. Wformat= @@ -19,4 +19,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. - Wignored-qualifiers + Wformat-overflow= diff --git a/11.3.0/gentoo/04_all_nossp-on-nostdlib.patch b/11.3.0/gentoo/04_all_nossp-on-nostdlib.patch index 4e581a5..20afef1 100644 --- a/11.3.0/gentoo/04_all_nossp-on-nostdlib.patch +++ b/11.3.0/gentoo/04_all_nossp-on-nostdlib.patch @@ -1,10 +1,10 @@ Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding https://bugs.gentoo.org/484714 ---- a/gcc/gcc.c 2017-07-04 09:15:57.740793000 +0200 -+++ b/gcc/gcc.c 2018-03-02 13:58:44.387741114 +0100 -@@ -857,6 +857,12 @@ proper position among the other output f - #define LINK_GCC_C_SEQUENCE_SPEC "%G %L %G" +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -977,6 +977,12 @@ + #define LINK_GCC_C_SEQUENCE_SPEC "%G %{!nolibc:%L %G}" #endif +#ifdef ENABLE_DEFAULT_SSP @@ -16,7 +16,7 @@ https://bugs.gentoo.org/484714 #ifndef LINK_SSP_SPEC #ifdef TARGET_LIBC_PROVIDES_SSP #define LINK_SSP_SPEC "%{fstack-protector|fstack-protector-all" \ -@@ -1131,7 +1148,7 @@ static const char *cc1_options = +@@ -1273,7 +1279,7 @@ %{-version:--version}\ %{-help=*:--help=%*}\ %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %w%b.s}}}\ diff --git a/11.3.0/gentoo/07_all_libiberty-asprintf.patch b/11.3.0/gentoo/07_all_libiberty-asprintf.patch index bee0c4c..702ae3c 100644 --- a/11.3.0/gentoo/07_all_libiberty-asprintf.patch +++ b/11.3.0/gentoo/07_all_libiberty-asprintf.patch @@ -4,7 +4,7 @@ --- a/include/libiberty.h +++ b/include/libiberty.h -@@ -609,8 +609,11 @@ extern int pwait (int, int *, int); +@@ -652,8 +652,11 @@ /* Like sprintf but provides a pointer to malloc'd storage, which must be freed by the caller. */ @@ -14,5 +14,5 @@ #endif +#endif - #if !HAVE_DECL_VASPRINTF - /* Like vsprintf but provides a pointer to malloc'd storage, which + /* Like asprintf but allocates memory without fail. This works like + xmalloc. */ diff --git a/11.3.0/gentoo/15_all_libgomp-Werror.patch b/11.3.0/gentoo/15_all_libgomp-Werror.patch index 416808a..deda157 100644 --- a/11.3.0/gentoo/15_all_libgomp-Werror.patch +++ b/11.3.0/gentoo/15_all_libgomp-Werror.patch @@ -4,17 +4,23 @@ https://bugs.gentoo.org/229059 http://gcc.gnu.org/PR38436 --- a/libgomp/configure.ac +++ b/libgomp/configure.ac -@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" +@@ -123,7 +123,7 @@ + # Add -Wall -Werror if we are using GCC. if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" + XCFLAGS="$XCFLAGS -Wall" fi + + # Find other programs we need. --- a/libgomp/configure +++ b/libgomp/configure -@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" +@@ -4613,7 +4613,7 @@ + # Add -Wall -Werror if we are using GCC. if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" + XCFLAGS="$XCFLAGS -Wall" fi + + # Find other programs we need. diff --git a/11.3.0/gentoo/16_all_libitm-Werror.patch b/11.3.0/gentoo/16_all_libitm-Werror.patch index 27181e0..c8e991c 100644 --- a/11.3.0/gentoo/16_all_libitm-Werror.patch +++ b/11.3.0/gentoo/16_all_libitm-Werror.patch @@ -3,17 +3,23 @@ libitm does not respect --disable-werror https://bugs.gentoo.org/475350 --- a/libitm/configure.ac +++ b/libitm/configure.ac -@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" +@@ -263,7 +263,7 @@ + # Add -Wall -Werror if we are using GCC. if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" + XCFLAGS="$XCFLAGS -Wall" fi + + XCFLAGS="$XCFLAGS $XPCFLAGS" --- a/libitm/configure +++ b/libitm/configure -@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" +@@ -17854,7 +17854,7 @@ + # Add -Wall -Werror if we are using GCC. if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" + XCFLAGS="$XCFLAGS -Wall" fi + + XCFLAGS="$XCFLAGS $XPCFLAGS" diff --git a/11.3.0/gentoo/17_all_libatomic-Werror.patch b/11.3.0/gentoo/17_all_libatomic-Werror.patch index 0550722..7b29b04 100644 --- a/11.3.0/gentoo/17_all_libatomic-Werror.patch +++ b/11.3.0/gentoo/17_all_libatomic-Werror.patch @@ -3,17 +3,23 @@ libatomic does not respect --disable-werror https://bugs.gentoo.org/475350 --- a/libatomic/configure.ac +++ b/libatomic/configure.ac -@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" +@@ -253,7 +253,7 @@ + # Add -Wall -Werror if we are using GCC. if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" + XCFLAGS="$XCFLAGS -Wall" fi + + # Add CET specific flags if CET is enabled --- a/libatomic/configure +++ b/libatomic/configure -@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS" +@@ -15562,7 +15562,7 @@ + # Add -Wall -Werror if we are using GCC. if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" + XCFLAGS="$XCFLAGS -Wall" fi + + # Add CET specific flags if CET is enabled diff --git a/11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch b/11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch index 121dec4..630d900 100644 --- a/11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch +++ b/11.3.0/gentoo/22_all_EXTRA_OPTIONS-z-now.patch @@ -1,8 +1,8 @@ On Hardened we add some options like -z now ---- a/gcc/gcc.c 2016-02-19 23:18:38.000000000 +0100 -+++ b/gcc/gcc.c 2016-05-02 22:56:10.185721270 +0200 -@@ -868,6 +868,12 @@ proper position among the other output f +--- a/gcc/gcc.c ++++ b/gcc/gcc.c +@@ -994,6 +994,12 @@ #endif #endif @@ -13,9 +13,9 @@ On Hardened we add some options like -z now +#endif + #ifdef ENABLE_DEFAULT_PIE - #define NO_PIE_SPEC "no-pie|static" - #define PIE_SPEC NO_PIE_SPEC "|r|shared:;" -@@ -1013,7 +1020,7 @@ proper position among the other output f + #define PIE_SPEC "!no-pie" + #define NO_FPIE1_SPEC "fno-pie" +@@ -1154,7 +1160,7 @@ %(linker) " \ LINK_PLUGIN_SPEC \ "%{flto|flto=*:%