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 09F1F158020 for ; Sun, 20 Nov 2022 00:25:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1267E0AAB; Sun, 20 Nov 2022 00:25:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D9AE5E0AAB for ; Sun, 20 Nov 2022 00:25:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BA91340C74 for ; Sun, 20 Nov 2022 00:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 80076523 for ; Sun, 20 Nov 2022 00:25:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1668903941.6afd754068920d41f4115c28c6c02e964fa5e38c.sam@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 10.5.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 10.5.0/gentoo/76_all_configure-c89.patch 10.5.0/gentoo/README.history X-VCS-Directories: 10.5.0/gentoo/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6afd754068920d41f4115c28c6c02e964fa5e38c X-VCS-Branch: master Date: Sun, 20 Nov 2022 00:25:44 +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: ce7d1e4c-cf13-4aa0-baf1-da64452308f2 X-Archives-Hash: 99c285b6061d6932db3098525552a5c2 commit: 6afd754068920d41f4115c28c6c02e964fa5e38c Author: Sam James gentoo org> AuthorDate: Sat Nov 19 23:50:42 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sun Nov 20 00:25:41 2022 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6afd7540 10.5.0: add Clang 16 patches (-Wimplicit-function-declaration, -Wimplicit-int, etc) Signed-off-by: Sam James gentoo.org> 10.5.0/gentoo/76_all_configure-c89.patch | 141 +++++++++++++++++++++++++++++++ 10.5.0/gentoo/README.history | 3 + 2 files changed, 144 insertions(+) diff --git a/10.5.0/gentoo/76_all_configure-c89.patch b/10.5.0/gentoo/76_all_configure-c89.patch new file mode 100644 index 0000000..9d65cb2 --- /dev/null +++ b/10.5.0/gentoo/76_all_configure-c89.patch @@ -0,0 +1,141 @@ +https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=6be2672e4ee41c566a9e072088cccca263bab5f7 +https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=885b6660c17fb91980b5682514ef54668e544b02 + +From 942a325c81136138c4c199f8ab3e89a1945c3790 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Tue, 18 Oct 2022 16:58:48 +0200 +Subject: [PATCH 1/2] libsanitizer: Avoid implicit function declaration in + configure test + +libsanitizer/ + + * configure.ac (sanitizer_supported): Include for + syscall prototype. + * configure: Regenerate. + +From 9a43d0e406c05d2d7136721443192bb6588c3113 Mon Sep 17 00:00:00 2001 +From: Florian Weimer +Date: Tue, 18 Oct 2022 16:58:48 +0200 +Subject: [PATCH 2/2] libiberty: Fix C89-isms in configure tests + +libiberty/ + + * acinclude.m4 (ac_cv_func_strncmp_works): Add missing + int return type and parameter list to the definition of main. + Include and for prototypes. + (ac_cv_c_stack_direction): Add missing + int return type and parameter list to the definitions of + main, find_stack_direction. Include for exit + prototype. + * configure: Regenerate. + +--- a/libiberty/aclocal.m4 ++++ b/libiberty/aclocal.m4 +@@ -16,6 +16,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works, + [AC_TRY_RUN([ + /* Test by Jim Wilson and Kaveh Ghazi. + Check whether strncmp reads past the end of its string parameters. */ ++#include ++#include + #include + + #ifdef HAVE_FCNTL_H +@@ -43,7 +45,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works, + + #define MAP_LEN 0x10000 + +-main () ++int ++main (void) + { + #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE) + char *p; +@@ -149,7 +152,10 @@ if test $ac_cv_os_cray = yes; then + fi + + AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, +-[AC_TRY_RUN([find_stack_direction () ++[AC_TRY_RUN([#include ++ ++int ++find_stack_direction (void) + { + static char *addr = 0; + auto char dummy; +@@ -161,7 +167,9 @@ AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, + else + return (&dummy > addr) ? 1 : -1; + } +-main () ++ ++int ++main (void) + { + exit (find_stack_direction() < 0); + }], +--- a/libiberty/configure ++++ b/libiberty/configure +@@ -6718,7 +6718,10 @@ else + else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ +-find_stack_direction () ++#include ++ ++int ++find_stack_direction (void) + { + static char *addr = 0; + auto char dummy; +@@ -6730,7 +6733,9 @@ find_stack_direction () + else + return (&dummy > addr) ? 1 : -1; + } +-main () ++ ++int ++main (void) + { + exit (find_stack_direction() < 0); + } +@@ -7555,6 +7560,8 @@ else + + /* Test by Jim Wilson and Kaveh Ghazi. + Check whether strncmp reads past the end of its string parameters. */ ++#include ++#include + #include + + #ifdef HAVE_FCNTL_H +@@ -7582,7 +7589,8 @@ else + + #define MAP_LEN 0x10000 + +-main () ++int ++main (void) + { + #if defined(HAVE_MMAP) || defined(HAVE_MMAP_ANYWHERE) + char *p; +--- a/libsanitizer/configure ++++ b/libsanitizer/configure +@@ -16029,6 +16029,7 @@ case "$target" in + cat confdefs.h - <<_ACEOF >conftest.$ac_ext + /* end confdefs.h. */ + #include ++#include + int + main () + { +--- a/libsanitizer/configure.ac ++++ b/libsanitizer/configure.ac +@@ -155,7 +155,8 @@ case "$target" in + *-*-linux*) + # Some old Linux distributions miss required syscalls. + sanitizer_supported=no +- AC_TRY_COMPILE([#include ],[ ++ AC_TRY_COMPILE([#include ++#include ],[ + syscall (__NR_gettid); + syscall (__NR_futex); + syscall (__NR_exit_group); diff --git a/10.5.0/gentoo/README.history b/10.5.0/gentoo/README.history index 19b1d3a..41e961c 100644 --- a/10.5.0/gentoo/README.history +++ b/10.5.0/gentoo/README.history @@ -1,3 +1,6 @@ +1 19 Nov 2022 + + 76_all_configure-c89.patch + 0 22 Aug 2022 + 01_all_default-fortify-source.patch + 02_all_default-warn-format-security.patch