public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2022-05-22 23:16 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2022-05-22 23:16 UTC (permalink / raw
  To: gentoo-commits

commit:     923e139b53fc8214a7c24583e3b2cfe54ae45b84
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun May 22 21:17:04 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 22 23:16:39 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=923e139b

11.4.0: cleanup 20_all_libstdcxx-no-vtv.patch

Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/20_all_libstdcxx-no-vtv.patch | 25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)

diff --git a/11.4.0/gentoo/20_all_libstdcxx-no-vtv.patch b/11.4.0/gentoo/20_all_libstdcxx-no-vtv.patch
index 45a3d39..c079698 100644
--- a/11.4.0/gentoo/20_all_libstdcxx-no-vtv.patch
+++ b/11.4.0/gentoo/20_all_libstdcxx-no-vtv.patch
@@ -1,5 +1,8 @@
-diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am
-index f92a52748c5..cdf0c89c5a7 100644
+Final libstdc++.so should not contain rpath to make libvtv usable.
+It's up to final binaries to link against proper libvtv.
+
+Bug: https://bugs.gentoo.org/582524
+Bug: https://gcc.gnu.org/PR85884
 --- a/libstdc++-v3/src/Makefile.am
 +++ b/libstdc++-v3/src/Makefile.am
 @@ -266,7 +266,6 @@ CXXLINK = \
@@ -10,8 +13,6 @@ index f92a52748c5..cdf0c89c5a7 100644
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) \
  	$(LTLDFLAGS) $(LTLIBICONV) \
  	-o $@
-diff --git a/libstdc++-v3/src/Makefile.in b/libstdc++-v3/src/Makefile.in
-index 2fff46209ad..4d19c943757 100644
 --- a/libstdc++-v3/src/Makefile.in
 +++ b/libstdc++-v3/src/Makefile.in
 @@ -630,7 +630,6 @@ CXXLINK = \
@@ -22,8 +23,6 @@ index 2fff46209ad..4d19c943757 100644
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) \
  	$(LTLDFLAGS) $(LTLIBICONV) \
  	-o $@
-diff --git a/libstdc++-v3/src/c++11/Makefile.am b/libstdc++-v3/src/c++11/Makefile.am
-index a26903db6bc..299592b82f5 100644
 --- a/libstdc++-v3/src/c++11/Makefile.am
 +++ b/libstdc++-v3/src/c++11/Makefile.am
 @@ -214,5 +214,4 @@ CXXLINK = \
@@ -32,8 +31,6 @@ index a26903db6bc..299592b82f5 100644
  	--mode=link $(CXX) \
 -	$(VTV_CXXLINKFLAGS) \
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
-diff --git a/libstdc++-v3/src/c++11/Makefile.in b/libstdc++-v3/src/c++11/Makefile.in
-index 86540509e81..2fe04633f15 100644
 --- a/libstdc++-v3/src/c++11/Makefile.in
 +++ b/libstdc++-v3/src/c++11/Makefile.in
 @@ -580,7 +580,6 @@ CXXLINK = \
@@ -44,8 +41,6 @@ index 86540509e81..2fe04633f15 100644
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
  
  all: all-am
-diff --git a/libstdc++-v3/src/c++17/Makefile.am b/libstdc++-v3/src/c++17/Makefile.am
-index 2aebc6d5251..e6a4054ddff 100644
 --- a/libstdc++-v3/src/c++17/Makefile.am
 +++ b/libstdc++-v3/src/c++17/Makefile.am
 @@ -132,5 +132,4 @@ CXXLINK = \
@@ -54,8 +49,6 @@ index 2aebc6d5251..e6a4054ddff 100644
  	--mode=link $(CXX) \
 -	$(VTV_CXXLINKFLAGS) \
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
-diff --git a/libstdc++-v3/src/c++17/Makefile.in b/libstdc++-v3/src/c++17/Makefile.in
-index 8c02be6514f..d76d8a043e8 100644
 --- a/libstdc++-v3/src/c++17/Makefile.in
 +++ b/libstdc++-v3/src/c++17/Makefile.in
 @@ -509,7 +509,6 @@ CXXLINK = \
@@ -66,8 +59,6 @@ index 8c02be6514f..d76d8a043e8 100644
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
  
  all: all-am
-diff --git a/libstdc++-v3/src/c++20/Makefile.am b/libstdc++-v3/src/c++20/Makefile.am
-index 5d0af9eb627..8f7ffbb56cb 100644
 --- a/libstdc++-v3/src/c++20/Makefile.am
 +++ b/libstdc++-v3/src/c++20/Makefile.am
 @@ -101,5 +101,4 @@ CXXLINK = \
@@ -76,8 +67,6 @@ index 5d0af9eb627..8f7ffbb56cb 100644
  	--mode=link $(CXX) \
 -	$(VTV_CXXLINKFLAGS) \
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
-diff --git a/libstdc++-v3/src/c++20/Makefile.in b/libstdc++-v3/src/c++20/Makefile.in
-index e6892d370fb..903b3c3daf0 100644
 --- a/libstdc++-v3/src/c++20/Makefile.in
 +++ b/libstdc++-v3/src/c++20/Makefile.in
 @@ -486,7 +486,6 @@ CXXLINK = \
@@ -88,8 +77,6 @@ index e6892d370fb..903b3c3daf0 100644
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
  
  all: all-am
-diff --git a/libstdc++-v3/src/c++98/Makefile.am b/libstdc++-v3/src/c++98/Makefile.am
-index 0fa6ab95fb4..58c613f805e 100644
 --- a/libstdc++-v3/src/c++98/Makefile.am
 +++ b/libstdc++-v3/src/c++98/Makefile.am
 @@ -268,5 +268,4 @@ CXXLINK = \
@@ -98,8 +85,6 @@ index 0fa6ab95fb4..58c613f805e 100644
  	--mode=link $(CXX) \
 -	$(VTV_CXXLINKFLAGS) \
  	$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
-diff --git a/libstdc++-v3/src/c++98/Makefile.in b/libstdc++-v3/src/c++98/Makefile.in
-index 94c68487fde..0756ecd9528 100644
 --- a/libstdc++-v3/src/c++98/Makefile.in
 +++ b/libstdc++-v3/src/c++98/Makefile.in
 @@ -582,7 +582,6 @@ CXXLINK = \


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2022-08-22  2:14 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2022-08-22  2:14 UTC (permalink / raw
  To: gentoo-commits

commit:     066517adc2e7fe3650ab4bf09cc27777f1866ac2
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 22 02:13:33 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Aug 22 02:14:12 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=066517ad

11.4.0: add 28_all_drop_CFLAGS_sed.patch

Previously was just for 12.

Bug: https://bugs.gentoo.org/849722
Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/28_all_drop_CFLAGS_sed.patch | 35 ++++++++++++++++++++++++++++++
 11.4.0/gentoo/README.history               |  3 +++
 2 files changed, 38 insertions(+)

diff --git a/11.4.0/gentoo/28_all_drop_CFLAGS_sed.patch b/11.4.0/gentoo/28_all_drop_CFLAGS_sed.patch
new file mode 100644
index 0000000..0a9fa13
--- /dev/null
+++ b/11.4.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
+@@ -5265,13 +5265,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
+@@ -439,13 +439,6 @@ ACX_PROG_GNAT([-I"$srcdir"/ada/libgnat])
+ # 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)
+ 

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 695ab6a..963b9ac 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+2		22 Aug 2022
+	+ 28_all_drop_CFLAGS_sed.patch
+
 1		3 July 2022
 	+ 27_all_msgfmt-libstdc++-link.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2022-11-20  0:25 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2022-11-20  0:25 UTC (permalink / raw
  To: gentoo-commits

commit:     f03f0dd86d2f2eb1ff0dbe7d54a3361d690fac37
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 19 23:54:46 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 00:25:41 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f03f0dd8

11.4.0: add Clang 16 patches (-Wimplicit-function-declaration, -Wimplicit-int, etc)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/77_all_configure-c89.patch | 141 +++++++++++++++++++++++++++++++
 11.4.0/gentoo/README.history             |   3 +
 2 files changed, 144 insertions(+)

diff --git a/11.4.0/gentoo/77_all_configure-c89.patch b/11.4.0/gentoo/77_all_configure-c89.patch
new file mode 100644
index 0000000..6b297b5
--- /dev/null
+++ b/11.4.0/gentoo/77_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 <fweimer@redhat.com>
+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 <unistd.h> for
+        syscall prototype.
+        * configure: Regenerate.
+
+From 9a43d0e406c05d2d7136721443192bb6588c3113 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+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 <stdlib.h> and <string.h> for prototypes.
+        (ac_cv_c_stack_direction): Add missing
+        int return type and parameter list to the definitions of
+        main, find_stack_direction.  Include <stdlib.h> for exit
+        prototype.
+        * configure: Regenerate.
+
+--- a/libiberty/acinclude.m4
++++ b/libiberty/acinclude.m4
+@@ -24,6 +24,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 <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ 
+ #ifdef HAVE_FCNTL_H
+@@ -51,7 +53,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;
+@@ -157,7 +160,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 <stdlib.h>
++
++int
++find_stack_direction (void)
+ {
+   static char *addr = 0;
+   auto char dummy;
+@@ -169,7 +175,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
+@@ -6774,7 +6774,10 @@ else
+ else
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+-find_stack_direction ()
++#include <stdlib.h>
++
++int
++find_stack_direction (void)
+ {
+   static char *addr = 0;
+   auto char dummy;
+@@ -6786,7 +6789,9 @@ find_stack_direction ()
+   else
+     return (&dummy > addr) ? 1 : -1;
+ }
+-main ()
++
++int
++main (void)
+ {
+   exit (find_stack_direction() < 0);
+ }
+@@ -7611,6 +7616,8 @@ else
+ 
+ /* Test by Jim Wilson and Kaveh Ghazi.
+    Check whether strncmp reads past the end of its string parameters. */
++#include <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ 
+ #ifdef HAVE_FCNTL_H
+@@ -7638,7 +7645,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
+@@ -16035,6 +16035,7 @@ case "$target" in
+     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h.  */
+ #include <sys/syscall.h>
++#include <unistd.h>
+ int
+ main ()
+ {
+--- a/libsanitizer/configure.ac
++++ b/libsanitizer/configure.ac
+@@ -161,7 +161,8 @@ case "$target" in
+   *-*-linux*)
+     # Some old Linux distributions miss required syscalls.
+     sanitizer_supported=no
+-    AC_TRY_COMPILE([#include <sys/syscall.h>],[
++    AC_TRY_COMPILE([#include <sys/syscall.h>
++#include <unistd.h>],[
+       syscall (__NR_gettid);
+       syscall (__NR_futex);
+       syscall (__NR_exit_group);

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 963b9ac..473a8d7 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+3		19 Nov 2022
+	+ 77_all_configure-c89.patch
+
 2		22 Aug 2022
 	+ 28_all_drop_CFLAGS_sed.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2022-12-17  4:54 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2022-12-17  4:54 UTC (permalink / raw
  To: gentoo-commits

commit:     e8a0be0130af739172f5f694a782c684fd341c09
Author:     Arsen Arsenović <arsen <AT> aarsen <DOT> me>
AuthorDate: Fri Dec  9 14:41:40 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 17 04:54:04 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e8a0be01

11.4.0: backport make 4.4 jobserver fixes

Bug: https://bugs.gentoo.org/884633
Signed-off-by: Arsen Arsenović <arsen <AT> aarsen.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/README.history | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 473a8d7..9455661 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,7 @@
+4		9 Dec 2022
+	+ 78_all_Factor-out-jobserver_active_p.patch
+	+ 79_all_lto-support-jobserver-style-fifo-for-recent-GNU-make.patch
+
 3		19 Nov 2022
 	+ 77_all_configure-c89.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2022-12-17  4:54 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2022-12-17  4:54 UTC (permalink / raw
  To: gentoo-commits

commit:     90d6e02b9980b278cb63f2b8e79b0a29dab5262f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 17 02:49:35 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 17 04:54:05 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=90d6e02b

Revert "11.4.0: backport make 4.4 jobserver fixes"

Not complete but wanted to commit it for posterity
in case we want to resume it.

This reverts commit 54c43babcc6a7b957ef59725b5b54608517e6fb0.

Bug: https://bugs.gentoo.org/884633
Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/README.history | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 9455661..473a8d7 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,7 +1,3 @@
-4		9 Dec 2022
-	+ 78_all_Factor-out-jobserver_active_p.patch
-	+ 79_all_lto-support-jobserver-style-fifo-for-recent-GNU-make.patch
-
 3		19 Nov 2022
 	+ 77_all_configure-c89.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2022-12-17  4:54 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2022-12-17  4:54 UTC (permalink / raw
  To: gentoo-commits

commit:     f8954b016938b1e66d455ed5e5953a43604e682f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 17 02:57:04 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 17 04:54:05 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f8954b01

11.4.0: add 29_all_tar_libstdc++-link.patch

Bug: https://bugs.gentoo.org/886447
Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/29_all_tar_libstdc++-link.patch | 54 +++++++++++++++++++++++++++
 11.4.0/gentoo/README.history                  |  3 ++
 2 files changed, 57 insertions(+)

diff --git a/11.4.0/gentoo/29_all_tar_libstdc++-link.patch b/11.4.0/gentoo/29_all_tar_libstdc++-link.patch
new file mode 100644
index 0000000..678efc5
--- /dev/null
+++ b/11.4.0/gentoo/29_all_tar_libstdc++-link.patch
@@ -0,0 +1,54 @@
+From eae11e896edef4199a128bf6720b5bd4e5edc2f9 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sat, 17 Dec 2022 02:42:59 +0000
+Subject: [PATCH] Fix calling libarchive's tar
+
+https://bugs.gentoo.org/886447
+
+Very similar to 33_all_msgfmt-libstdc++-link.patch, whose description is:
+"""
+Ensure that msgfmt doesn't encounter problems during gcc bootstrapping.
+
+Solves error messages like the following:
+
+msgfmt: /var/tmp/portage/sys-devel/gcc-4.1.2/work/build/./gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/libstdc++.so.6)
+
+The libgcc_s.so used during build doesn't satisfy the needs of the
+libstdc++.so that msgfmt is linked against. On the other hand, msgfmt
+is used as a stand-alone application here, and what library it uses
+behind the scenes is of no concern to the gcc build process.
+Therefore, simply invoking it "as usual", i.e. without any special
+library path, will make it work as expected here.
+
+2011-09-19 Martin von Gagern
+
+References:
+https://bugs.gentoo.org/372377
+https://bugs.gentoo.org/295480
+https://bugs.gentoo.org/843119
+"""
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/gcc/Makefile.in
++++ b/gcc/Makefile.in
+@@ -3904,9 +3904,9 @@ install-headers-tar: stmp-int-hdrs install-include-dir
+ # Unless a full pathname is provided, some shells would print the new CWD,
+ # found in CDPATH, corrupting the output.  We could just redirect the
+ # output of `cd', but some shells lose on redirection within `()'s
+-	(cd `${PWD_COMMAND}`/include ; \
++	(unset LD_LIBRARY_PATH ; cd `${PWD_COMMAND}`/include ; \
+ 	 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include; tar xpf - )
+-	(cd `${PWD_COMMAND}`/include-fixed ; \
++	(unset LD_LIBRARY_PATH ; cd `${PWD_COMMAND}`/include-fixed ; \
+ 	 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
+ # /bin/sh on some systems returns the status of the first tar,
+ # and that can lose with GNU tar which always writes a full block.
+@@ -3928,7 +3928,7 @@ install-headers-cp: stmp-int-hdrs install-include-dir
+ # Targets without dependencies, for use in prev-gcc during bootstrap.
+ real-install-headers-tar:
+ 	(cd `${PWD_COMMAND}`/include-fixed ; \
+-	 tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; tar xpf - )
++	 unset LD_LIBRARY_PATH; tar -cf - .; exit 0) | (cd $(DESTDIR)$(libsubdir)/include-fixed; unset LD_LIBRARY_PATH; tar xpf - )
+ 
+ real-install-headers-cpio:
+ 	cd `${PWD_COMMAND}`/include-fixed ; \

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 473a8d7..fc526c2 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+4		17 Dec 2022
+	+ 35_all_tar_libstdc++-link.patch
+
 3		19 Nov 2022
 	+ 77_all_configure-c89.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-01-07  7:47 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-01-07  7:47 UTC (permalink / raw
  To: gentoo-commits

commit:     1e0bddd1b980e617230107999f6c7277a8ef5998
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  7 07:30:23 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan  7 07:30:23 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1e0bddd1

11.4.0: drop upstream 77_all_configure-c89.patch

Now merged upstream.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/77_all_configure-c89.patch | 141 -------------------------------
 11.4.0/gentoo/README.history             |   3 +
 2 files changed, 3 insertions(+), 141 deletions(-)

diff --git a/11.4.0/gentoo/77_all_configure-c89.patch b/11.4.0/gentoo/77_all_configure-c89.patch
deleted file mode 100644
index 6b297b5..0000000
--- a/11.4.0/gentoo/77_all_configure-c89.patch
+++ /dev/null
@@ -1,141 +0,0 @@
-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 <fweimer@redhat.com>
-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 <unistd.h> for
-        syscall prototype.
-        * configure: Regenerate.
-
-From 9a43d0e406c05d2d7136721443192bb6588c3113 Mon Sep 17 00:00:00 2001
-From: Florian Weimer <fweimer@redhat.com>
-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 <stdlib.h> and <string.h> for prototypes.
-        (ac_cv_c_stack_direction): Add missing
-        int return type and parameter list to the definitions of
-        main, find_stack_direction.  Include <stdlib.h> for exit
-        prototype.
-        * configure: Regenerate.
-
---- a/libiberty/acinclude.m4
-+++ b/libiberty/acinclude.m4
-@@ -24,6 +24,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 <stdlib.h>
-+#include <string.h>
- #include <sys/types.h>
- 
- #ifdef HAVE_FCNTL_H
-@@ -51,7 +53,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;
-@@ -157,7 +160,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 <stdlib.h>
-+
-+int
-+find_stack_direction (void)
- {
-   static char *addr = 0;
-   auto char dummy;
-@@ -169,7 +175,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
-@@ -6774,7 +6774,10 @@ else
- else
-   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
--find_stack_direction ()
-+#include <stdlib.h>
-+
-+int
-+find_stack_direction (void)
- {
-   static char *addr = 0;
-   auto char dummy;
-@@ -6786,7 +6789,9 @@ find_stack_direction ()
-   else
-     return (&dummy > addr) ? 1 : -1;
- }
--main ()
-+
-+int
-+main (void)
- {
-   exit (find_stack_direction() < 0);
- }
-@@ -7611,6 +7616,8 @@ else
- 
- /* Test by Jim Wilson and Kaveh Ghazi.
-    Check whether strncmp reads past the end of its string parameters. */
-+#include <stdlib.h>
-+#include <string.h>
- #include <sys/types.h>
- 
- #ifdef HAVE_FCNTL_H
-@@ -7638,7 +7645,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
-@@ -16035,6 +16035,7 @@ case "$target" in
-     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
- #include <sys/syscall.h>
-+#include <unistd.h>
- int
- main ()
- {
---- a/libsanitizer/configure.ac
-+++ b/libsanitizer/configure.ac
-@@ -161,7 +161,8 @@ case "$target" in
-   *-*-linux*)
-     # Some old Linux distributions miss required syscalls.
-     sanitizer_supported=no
--    AC_TRY_COMPILE([#include <sys/syscall.h>],[
-+    AC_TRY_COMPILE([#include <sys/syscall.h>
-+#include <unistd.h>],[
-       syscall (__NR_gettid);
-       syscall (__NR_futex);
-       syscall (__NR_exit_group);

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index c799994..e29c262 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+6		7 Jan 2022
+	- 77_all_configure-c89.patch
+
 5		17 Dec 2022
 	U 29_all_tar_libstdc++-link.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-01-23  0:35 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-01-23  0:35 UTC (permalink / raw
  To: gentoo-commits

commit:     3efe77f935c0d12b9bcc869bca60669e12a0c0ad
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 23 00:27:56 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 00:35:20 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3efe77f9

11.4.0: backport driver environ corruption fix

Bug: https://bugs.gentoo.org/885501
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../77_all_driver_environ_putenv_PR106624.patch    | 44 ++++++++++++++++++++++
 11.4.0/gentoo/README.history                       |  3 +-
 2 files changed, 46 insertions(+), 1 deletion(-)

diff --git a/11.4.0/gentoo/77_all_driver_environ_putenv_PR106624.patch b/11.4.0/gentoo/77_all_driver_environ_putenv_PR106624.patch
new file mode 100644
index 0000000..baad63a
--- /dev/null
+++ b/11.4.0/gentoo/77_all_driver_environ_putenv_PR106624.patch
@@ -0,0 +1,44 @@
+https://bugs.gentoo.org/885501
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106624
+https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2b403297b111c990c331b5bbb6165b061ad2259b
+
+From 2b403297b111c990c331b5bbb6165b061ad2259b Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <siarheit@google.com>
+Date: Tue, 16 Aug 2022 12:35:07 +0100
+Subject: [PATCH 1/1] driver: fix environ corruption after putenv() [PR106624]
+
+The bug appeared afte r13-2010-g1270ccda70ca09 "Factor out
+jobserver_active_p" slightly changed `putenv()` use from allocating
+to non-allocating:
+
+    -xputenv (concat ("MAKEFLAGS=", dup, NULL));
+    +xputenv (jinfo.skipped_makeflags.c_str ());
+
+`xputenv()` (and `putenv()`) don't copy strings and only store the
+pointer in the `environ` global table. As a result `environ` got
+corrupted as soon as `jinfo.skipped_makeflags` store got deallocated.
+
+This started causing bootstrap crashes in `execv()` calls:
+
+    xgcc: fatal error: cannot execute '/build/build/./prev-gcc/collect2': execv: Bad address
+
+The change restores memory allocation for `xputenv()` argument.
+
+gcc/
+
+	PR driver/106624
+	* gcc.c (driver::detect_jobserver): Allocate storage xputenv()
+	argument using xstrdup().
+--- a/gcc/gcc.c
++++ b/gcc/gcc.c
+@@ -9182,7 +9182,7 @@ driver::detect_jobserver () const
+ {
+   jobserver_info jinfo;
+   if (!jinfo.is_active && !jinfo.skipped_makeflags.empty ())
+-    xputenv (jinfo.skipped_makeflags.c_str ());
++    xputenv (xstrdup (jinfo.skipped_makeflags.c_str ()));
+ }
+ 
+ /* Determine what the exit code of the driver should be.  */
+-- 
+2.31.1

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 1f5565d..bf891fa 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,5 +1,6 @@
-7		22 Jan 2022
+7		23 Jan 2022
 	- 26_all_enable-cet.patch
+	+ 77_all_driver_environ_putenv_PR106624.patch
 
 6		7 Jan 2022
 	- 77_all_configure-c89.patch


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-01-23  0:35 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-01-23  0:35 UTC (permalink / raw
  To: gentoo-commits

commit:     15daf0510a5fab17cd556261d688a6618391a0c1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 22 08:35:13 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jan 23 00:35:20 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=15daf051

11.4.0: drop 26_all_enable-cet.patch (bootstrapping issues with PGO/LTO?)

See https://bugs.gentoo.org/891655#c2 in particular:
"""
In https://bugs.gentoo.org/822036#c14, I got fed up and changed to the Ubuntu-style
specs patching for the time being, because it was too fragile otherwise.

We should probably just drop the CET patch for 11.x. We can keep the USE in
make.defaults for CET on hardened profiles though, as support for it is still useful, but it'll only be on by default with 12.

I do want to revisit the specs patch later on as it's not very maintainable though.
"""

11.x is really not the place we want to experiment further at this point,
so go for the safe option and either develop the approach further for 12
or maybe even 13.

Arsen notes that we might be able to try --enable-cet=yes (rather than
default auto) but let's leave that for now given ^ wrt 11.

Bug: https://bugs.gentoo.org/822036
Closes: https://bugs.gentoo.org/891655
Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/26_all_enable-cet.patch | 48 -----------------------------------
 11.4.0/gentoo/README.history          |  3 +++
 2 files changed, 3 insertions(+), 48 deletions(-)

diff --git a/11.4.0/gentoo/26_all_enable-cet.patch b/11.4.0/gentoo/26_all_enable-cet.patch
deleted file mode 100644
index 75f9c8b..0000000
--- a/11.4.0/gentoo/26_all_enable-cet.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 83efc6ce009021f27b602c1dfcf65338f761b095 Mon Sep 17 00:00:00 2001
-From: Sam James <sam@gentoo.org>
-Date: Tue, 28 Dec 2021 03:42:53 +0000
-Subject: [PATCH] Enable CET (-fcf-protection=full) by default
-
-Needs:
-- CET to be enabled for GCC
-- -DEXTRA_OPTIONS_CF to be passed during build (via toolchain.eclass).
-
-  Only supported on amd64.
-
---- a/gcc/config/i386/i386-options.c
-+++ b/gcc/config/i386/i386-options.c
-@@ -3049,6 +3049,9 @@ ix86_option_override_internal (bool main_args_p,
-         = build_target_option_node (opts, opts_set);
-     }
- 
-+  if (TARGET_64BIT && TARGET_CMOV)
-+    SET_OPTION_IF_UNSET (opts, opts_set, flag_cf_protection, DEFAULT_FLAG_CF);
-+
-   if (opts->x_flag_cf_protection != CF_NONE)
-     {
-       if ((opts->x_flag_cf_protection & CF_BRANCH) == CF_BRANCH
---- a/gcc/defaults.h
-+++ b/gcc/defaults.h
-@@ -1463,6 +1463,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
- #define DEFAULT_FLAG_SCP 0
- #endif
- 
-+/* Default value for flag_cf_protection when flag_cf_protection is
-+   initialized to CF_FULL.
-+
-+   We use a new option (EXTRA_OPTIONS_CF) here to avoid turning
-+   this on accidentally for other arches. */
-+#ifdef EXTRA_OPTIONS_CF
-+#define DEFAULT_FLAG_CF CF_FULL
-+#endif
-+#ifndef DEFAULT_FLAG_CF
-+#define DEFAULT_FLAG_CF CF_NONE
-+#endif
-+
-+
- /* By default, the C++ compiler will use function addresses in the
-    vtable entries.  Setting this nonzero tells the compiler to use
-    function descriptors instead.  The value of this macro says how
--- 
-2.34.1
-

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index e29c262..1f5565d 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+7		22 Jan 2022
+	- 26_all_enable-cet.patch
+
 6		7 Jan 2022
 	- 77_all_configure-c89.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-01-28  5:13 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-01-28  5:13 UTC (permalink / raw
  To: gentoo-commits

commit:     16ff113dbf5858609ba4b77581c10eb5430c1264
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 28 03:39:18 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 28 03:39:18 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=16ff113d

11.4.0: drop upstreamed 77_all_driver_environ_putenv_PR106624.patch

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../77_all_driver_environ_putenv_PR106624.patch    | 44 ----------------------
 11.4.0/gentoo/README.history                       |  3 ++
 2 files changed, 3 insertions(+), 44 deletions(-)

diff --git a/11.4.0/gentoo/77_all_driver_environ_putenv_PR106624.patch b/11.4.0/gentoo/77_all_driver_environ_putenv_PR106624.patch
deleted file mode 100644
index baad63a..0000000
--- a/11.4.0/gentoo/77_all_driver_environ_putenv_PR106624.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-https://bugs.gentoo.org/885501
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106624
-https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2b403297b111c990c331b5bbb6165b061ad2259b
-
-From 2b403297b111c990c331b5bbb6165b061ad2259b Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich <siarheit@google.com>
-Date: Tue, 16 Aug 2022 12:35:07 +0100
-Subject: [PATCH 1/1] driver: fix environ corruption after putenv() [PR106624]
-
-The bug appeared afte r13-2010-g1270ccda70ca09 "Factor out
-jobserver_active_p" slightly changed `putenv()` use from allocating
-to non-allocating:
-
-    -xputenv (concat ("MAKEFLAGS=", dup, NULL));
-    +xputenv (jinfo.skipped_makeflags.c_str ());
-
-`xputenv()` (and `putenv()`) don't copy strings and only store the
-pointer in the `environ` global table. As a result `environ` got
-corrupted as soon as `jinfo.skipped_makeflags` store got deallocated.
-
-This started causing bootstrap crashes in `execv()` calls:
-
-    xgcc: fatal error: cannot execute '/build/build/./prev-gcc/collect2': execv: Bad address
-
-The change restores memory allocation for `xputenv()` argument.
-
-gcc/
-
-	PR driver/106624
-	* gcc.c (driver::detect_jobserver): Allocate storage xputenv()
-	argument using xstrdup().
---- a/gcc/gcc.c
-+++ b/gcc/gcc.c
-@@ -9182,7 +9182,7 @@ driver::detect_jobserver () const
- {
-   jobserver_info jinfo;
-   if (!jinfo.is_active && !jinfo.skipped_makeflags.empty ())
--    xputenv (jinfo.skipped_makeflags.c_str ());
-+    xputenv (xstrdup (jinfo.skipped_makeflags.c_str ()));
- }
- 
- /* Determine what the exit code of the driver should be.  */
--- 
-2.31.1

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index bf891fa..5c06066 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+8		28 Jan 2022
+	- 77_all_driver_environ_putenv_PR106624.patch
+
 7		23 Jan 2022
 	- 26_all_enable-cet.patch
 	+ 77_all_driver_environ_putenv_PR106624.patch


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-04-27 23:56 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-04-27 23:56 UTC (permalink / raw
  To: gentoo-commits

commit:     b8eab6cef231c608a4857db592b347cd6f4b0cae
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 27 23:38:41 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 27 23:54:13 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b8eab6ce

11.4.0: add miscompilation patch (77_all_all_PR109585_13_rtl-alias-analysis-typo)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...l_all_PR109585_13_rtl-alias-analysis-typo.patch | 79 ++++++++++++++++++++++
 11.4.0/gentoo/README.history                       |  9 ++-
 2 files changed, 85 insertions(+), 3 deletions(-)

diff --git a/11.4.0/gentoo/77_all_all_PR109585_13_rtl-alias-analysis-typo.patch b/11.4.0/gentoo/77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
new file mode 100644
index 0000000..b7b57d6
--- /dev/null
+++ b/11.4.0/gentoo/77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
@@ -0,0 +1,79 @@
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109609
+https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=ef6051b36241bf130bf76af0b775248635dc616e
+
+From ef6051b36241bf130bf76af0b775248635dc616e Mon Sep 17 00:00:00 2001
+From: Richard Biener <rguenther@suse.de>
+Date: Mon, 24 Apr 2023 13:31:07 +0200
+Subject: [PATCH] rtl-optimization/109585 - alias analysis typo
+
+When r10-514-gc6b84edb6110dd2b4fb improved access path analysis
+it introduced a typo that triggers when there's an access to a
+trailing array in the first access path leading to false
+disambiguation.
+
+	PR rtl-optimization/109585
+	* tree-ssa-alias.c (aliasing_component_refs_p): Fix typo.
+
+	* gcc.dg/torture/pr109585.c: New testcase.
+
+(cherry picked from commit 6d4bd27a60447c7505cb4783e675e98a191a8904)
+---
+ gcc/testsuite/gcc.dg/torture/pr109585.c | 33 +++++++++++++++++++++++++
+ gcc/tree-ssa-alias.c                   |  2 +-
+ 2 files changed, 34 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.dg/torture/pr109585.c
+
+diff --git a/gcc/testsuite/gcc.dg/torture/pr109585.c b/gcc/testsuite/gcc.dg/torture/pr109585.c
+new file mode 100644
+index 00000000000..f92de7c1f2e
+--- /dev/null
++++ b/gcc/testsuite/gcc.dg/torture/pr109585.c
+@@ -0,0 +1,33 @@
++/* { dg-do run } */
++
++#include <stdlib.h>
++
++struct P {
++    long v;
++    struct P *n;
++};
++
++struct F {
++    long x;
++    struct P fam[];
++};
++
++int __attribute__((noipa))
++f(struct F *f, int i)
++{
++  struct P *p = f->fam;
++  asm("" : "+r"(f): "r"(p));
++  p->v = 0;
++  p->n = 0;
++  return f->fam->n != 0;
++}
++
++int
++main()
++{
++  struct F *m = malloc (sizeof (long) + 2 * sizeof (struct P));
++  m->fam[0].n = &m->fam[1];
++  if (f (m, 0))
++    abort ();
++  return 0;
++}
+diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
+index b1e7a2d5afc..be7b597266f 100644
+--- a/gcc/tree-ssa-alias.c
++++ b/gcc/tree-ssa-alias.c
+@@ -1326,7 +1326,7 @@ aliasing_component_refs_p (tree ref1,
+   /* If we didn't find a common base, try the other way around.  */
+   if (cmp_outer <= 0 
+       || (end_struct_ref1
+-	  && compare_type_sizes (TREE_TYPE (end_struct_ref1), type1) <= 0))
++	  && compare_type_sizes (TREE_TYPE (end_struct_ref1), type2) <= 0))
+     {
+       int res = aliasing_component_refs_walk (ref2, type2, base2,
+ 					      offset2, max_size2,
+-- 
+2.31.1

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 5c06066..a5fca96 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,11 +1,14 @@
-8		28 Jan 2022
+9		28 Apr 2023
+	+ 77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
+
+8		28 Jan 2023
 	- 77_all_driver_environ_putenv_PR106624.patch
 
-7		23 Jan 2022
+7		23 Jan 2023
 	- 26_all_enable-cet.patch
 	+ 77_all_driver_environ_putenv_PR106624.patch
 
-6		7 Jan 2022
+6		7 Jan 2023
 	- 77_all_configure-c89.patch
 
 5		17 Dec 2022


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-05-05  2:37 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-05-05  2:37 UTC (permalink / raw
  To: gentoo-commits

commit:     ab60d0a28615153ee13cbf1401bdcdf2382ae0c4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri May  5 02:37:32 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May  5 02:37:32 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=ab60d0a2

11.4.0: drop upstream 77_all_all_PR109585_13_rtl-alias-analysis-typo.patch

Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...l_all_PR109585_13_rtl-alias-analysis-typo.patch | 79 ----------------------
 11.4.0/gentoo/README.history                       |  3 +
 2 files changed, 3 insertions(+), 79 deletions(-)

diff --git a/11.4.0/gentoo/77_all_all_PR109585_13_rtl-alias-analysis-typo.patch b/11.4.0/gentoo/77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
deleted file mode 100644
index b7b57d6..0000000
--- a/11.4.0/gentoo/77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109609
-https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=ef6051b36241bf130bf76af0b775248635dc616e
-
-From ef6051b36241bf130bf76af0b775248635dc616e Mon Sep 17 00:00:00 2001
-From: Richard Biener <rguenther@suse.de>
-Date: Mon, 24 Apr 2023 13:31:07 +0200
-Subject: [PATCH] rtl-optimization/109585 - alias analysis typo
-
-When r10-514-gc6b84edb6110dd2b4fb improved access path analysis
-it introduced a typo that triggers when there's an access to a
-trailing array in the first access path leading to false
-disambiguation.
-
-	PR rtl-optimization/109585
-	* tree-ssa-alias.c (aliasing_component_refs_p): Fix typo.
-
-	* gcc.dg/torture/pr109585.c: New testcase.
-
-(cherry picked from commit 6d4bd27a60447c7505cb4783e675e98a191a8904)
----
- gcc/testsuite/gcc.dg/torture/pr109585.c | 33 +++++++++++++++++++++++++
- gcc/tree-ssa-alias.c                   |  2 +-
- 2 files changed, 34 insertions(+), 1 deletion(-)
- create mode 100644 gcc/testsuite/gcc.dg/torture/pr109585.c
-
-diff --git a/gcc/testsuite/gcc.dg/torture/pr109585.c b/gcc/testsuite/gcc.dg/torture/pr109585.c
-new file mode 100644
-index 00000000000..f92de7c1f2e
---- /dev/null
-+++ b/gcc/testsuite/gcc.dg/torture/pr109585.c
-@@ -0,0 +1,33 @@
-+/* { dg-do run } */
-+
-+#include <stdlib.h>
-+
-+struct P {
-+    long v;
-+    struct P *n;
-+};
-+
-+struct F {
-+    long x;
-+    struct P fam[];
-+};
-+
-+int __attribute__((noipa))
-+f(struct F *f, int i)
-+{
-+  struct P *p = f->fam;
-+  asm("" : "+r"(f): "r"(p));
-+  p->v = 0;
-+  p->n = 0;
-+  return f->fam->n != 0;
-+}
-+
-+int
-+main()
-+{
-+  struct F *m = malloc (sizeof (long) + 2 * sizeof (struct P));
-+  m->fam[0].n = &m->fam[1];
-+  if (f (m, 0))
-+    abort ();
-+  return 0;
-+}
-diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c
-index b1e7a2d5afc..be7b597266f 100644
---- a/gcc/tree-ssa-alias.c
-+++ b/gcc/tree-ssa-alias.c
-@@ -1326,7 +1326,7 @@ aliasing_component_refs_p (tree ref1,
-   /* If we didn't find a common base, try the other way around.  */
-   if (cmp_outer <= 0 
-       || (end_struct_ref1
--	  && compare_type_sizes (TREE_TYPE (end_struct_ref1), type1) <= 0))
-+	  && compare_type_sizes (TREE_TYPE (end_struct_ref1), type2) <= 0))
-     {
-       int res = aliasing_component_refs_walk (ref2, type2, base2,
- 					      offset2, max_size2,
--- 
-2.31.1

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index a5fca96..b578306 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+10		5 May 2023
+	- 77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
+
 9		28 Apr 2023
 	+ 77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-12-02  5:28 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-12-02  5:28 UTC (permalink / raw
  To: gentoo-commits

commit:     a0a1379a3be2a614058045a6bf24eb67d6007044
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 05:18:29 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 05:18:29 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a0a1379a

11.4.0: add 77_all_all_PR112823_13_libiberty-warning.patch

Bug: https://gcc.gnu.org/PR112823
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../77_all_all_PR112823_13_libiberty-warning.patch | 36 ++++++++++++++++++++++
 11.4.0/gentoo/README.history                       |  3 ++
 2 files changed, 39 insertions(+)

diff --git a/11.4.0/gentoo/77_all_all_PR112823_13_libiberty-warning.patch b/11.4.0/gentoo/77_all_all_PR112823_13_libiberty-warning.patch
new file mode 100644
index 0000000..26d38af
--- /dev/null
+++ b/11.4.0/gentoo/77_all_all_PR112823_13_libiberty-warning.patch
@@ -0,0 +1,36 @@
+https://gcc.gnu.org/PR112823
+https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=38757aa88735ab
+
+From 38757aa88735ab2e511bc428e2407a5a5e9fa0be Mon Sep 17 00:00:00 2001
+From: Iain Sandoe <iain@sandoe.co.uk>
+Date: Mon, 23 Aug 2021 17:34:43 +0100
+Subject: [PATCH] libiberty, Darwin: Fix a build warning.
+
+r12-3005-g220c410162ebece4f missed a cast for the set_32 call.
+Fixed thus.
+
+Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
+
+libiberty/ChangeLog:
+
+	* simple-object-mach-o.c (simple_object_mach_o_write_segment):
+	Cast the first argument to set_32 as needed.
+---
+ libiberty/simple-object-mach-o.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c
+index 72b69d19c21..a8869e7c639 100644
+--- a/libiberty/simple-object-mach-o.c
++++ b/libiberty/simple-object-mach-o.c
+@@ -1228,7 +1228,7 @@ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor,
+       /* Swap the indices, if required.  */
+ 
+       for (i = 0; i < (nsects_in * 4); ++i)
+-	set_32 (&index[i], index[i]);
++	set_32 ((unsigned char *) &index[i], index[i]);
+ 
+       sechdr_offset += sechdrsize;
+ 
+-- 
+2.39.3

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index b578306..436fcb5 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,6 @@
+11		2 Dec 2023
+	+ 77_all_all_PR112823_13_libiberty-warning.patch
+
 10		5 May 2023
 	- 77_all_all_PR109585_13_rtl-alias-analysis-typo.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-12-06 10:52 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-12-06 10:52 UTC (permalink / raw
  To: gentoo-commits

commit:     185baffd2265d79d52d9c42050ecdf9239195923
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Dec  6 10:52:41 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec  6 10:52:41 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=185baffd

11.4.0: drop now obsolete 77_all_all_PR112823_13_libiberty-warning.patch

Merged upstream.

Bug: https://gcc.gnu.org/PR112823
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../77_all_all_PR112823_13_libiberty-warning.patch | 36 ----------------------
 11.4.0/gentoo/README.history                       |  4 +++
 2 files changed, 4 insertions(+), 36 deletions(-)

diff --git a/11.4.0/gentoo/77_all_all_PR112823_13_libiberty-warning.patch b/11.4.0/gentoo/77_all_all_PR112823_13_libiberty-warning.patch
deleted file mode 100644
index 26d38af..0000000
--- a/11.4.0/gentoo/77_all_all_PR112823_13_libiberty-warning.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-https://gcc.gnu.org/PR112823
-https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=38757aa88735ab
-
-From 38757aa88735ab2e511bc428e2407a5a5e9fa0be Mon Sep 17 00:00:00 2001
-From: Iain Sandoe <iain@sandoe.co.uk>
-Date: Mon, 23 Aug 2021 17:34:43 +0100
-Subject: [PATCH] libiberty, Darwin: Fix a build warning.
-
-r12-3005-g220c410162ebece4f missed a cast for the set_32 call.
-Fixed thus.
-
-Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-
-libiberty/ChangeLog:
-
-	* simple-object-mach-o.c (simple_object_mach_o_write_segment):
-	Cast the first argument to set_32 as needed.
----
- libiberty/simple-object-mach-o.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c
-index 72b69d19c21..a8869e7c639 100644
---- a/libiberty/simple-object-mach-o.c
-+++ b/libiberty/simple-object-mach-o.c
-@@ -1228,7 +1228,7 @@ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor,
-       /* Swap the indices, if required.  */
- 
-       for (i = 0; i < (nsects_in * 4); ++i)
--	set_32 (&index[i], index[i]);
-+	set_32 ((unsigned char *) &index[i], index[i]);
- 
-       sechdr_offset += sechdrsize;
- 
--- 
-2.39.3

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index 436fcb5..c16ac1e 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,3 +1,7 @@
+12		?? ??? 2023
+
+	- 77_all_all_PR112823_13_libiberty-warning.patch
+
 11		2 Dec 2023
 	+ 77_all_all_PR112823_13_libiberty-warning.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/
@ 2023-12-09 13:49 Sam James
  0 siblings, 0 replies; 15+ messages in thread
From: Sam James @ 2023-12-09 13:49 UTC (permalink / raw
  To: gentoo-commits

commit:     f50aa864f4c7e2fd6265065baf5f838d352189da
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  9 13:35:48 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec  9 13:35:54 2023 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f50aa864

11.4.0: cut 12 patchset

Signed-off-by: Sam James <sam <AT> gentoo.org>

 11.4.0/gentoo/README.history | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/11.4.0/gentoo/README.history b/11.4.0/gentoo/README.history
index c16ac1e..8c88904 100644
--- a/11.4.0/gentoo/README.history
+++ b/11.4.0/gentoo/README.history
@@ -1,4 +1,4 @@
-12		?? ??? 2023
+12		9 Dec 2023
 
 	- 77_all_all_PR112823_13_libiberty-warning.patch
 


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-12-09 13:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-20  0:25 [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/gentoo/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2023-12-09 13:49 Sam James
2023-12-06 10:52 Sam James
2023-12-02  5:28 Sam James
2023-05-05  2:37 Sam James
2023-04-27 23:56 Sam James
2023-01-28  5:13 Sam James
2023-01-23  0:35 Sam James
2023-01-23  0:35 Sam James
2023-01-07  7:47 Sam James
2022-12-17  4:54 Sam James
2022-12-17  4:54 Sam James
2022-12-17  4:54 Sam James
2022-08-22  2:14 Sam James
2022-05-22 23:16 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox