[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 257336021ebdc63cdd390487506f23d83f04ab91 Author: Sam James gentoo org> AuthorDate: Sun Apr 7 23:23:32 2024 + Commit: Sam James gentoo org> CommitDate: Sun Apr 7 23:23:32 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=25733602 14.0.0: rebase patches Signed-off-by: Sam James 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
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 4e3f1da7f6c300d2e89a00922177e6195d217e41 Author: Sam James gentoo org> AuthorDate: Mon Mar 11 12:38:16 2024 + Commit: Sam James gentoo org> CommitDate: Mon Mar 11 12:38:16 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=4e3f1da7 14.0.0: cut patchset 25 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 5 + 1 file changed, 5 insertions(+) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 66c059f..33e0319 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,8 @@ +25 11 Mar 2024 + + - 50_all_PR111632_system_cxx_headers_libcxx.patch + - 75_all_arm_PR113915-atomics.patch + 24 3 Mar 2024 + 76_all_ppc_PR112868-no-checking-many.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 66ed76361b07f18610a134dca21c6945f03c6a6b Author: Sam James gentoo org> AuthorDate: Thu Mar 7 20:41:22 2024 + Commit: Sam James gentoo org> CommitDate: Thu Mar 7 20:41:22 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=66ed7636 14.0.0: drop 50_all_PR111632_system_cxx_headers_libcxx.patch qookie reports it's broken: ``` x86_64-pc-linux-gnu-g++ -fPIC -c -DIN_GCC_FRONTEND -march=znver2 -pipe -ggdb3 -D_GLIBCXX_ASSERTIONS -O3 -fno-harden-control-flow-redundancy -DIN_GCC-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -fPIC -I. -Ijit -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/jit -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../include -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../libcpp/include -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../libcody -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../libdecnumber/bid -I../libdecnumber -I/var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../libbacktrace -o jit/jit-recording.o -MT jit/jit-recording.o -MMD -MP -MF jit/.deps/jit-recording.TPo /var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/jit/jit-recording.cc In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/basic_ios.h:37, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/ios:46, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:40, from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/sstream:40, from /var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/system.h:774, from /var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/jit/jit-recording.cc:25: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/bits/locale_facets.h:250:53: error: macro "toupper" passed 2 arguments, but takes just 1 250 | toupper(char_type *__lo, const char_type* __hi) const | ^ In file included from /var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/system.h:235: /var/tmp/portage/sys-devel/gcc-14.0./work/gcc-14.0./gcc/../include/safe-ctype.h:146:9: note: macro "toupper" defined here 146 | #define toupper(c) do_not_use_toupper_with_safe_ctype | ^~~ [...] ``` Signed-off-by: Sam James gentoo.org> ...50_all_PR111632_system_cxx_headers_libcxx.patch | 239 - 1 file changed, 239 deletions(-) diff --git a/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch b/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch deleted file mode 100644 index d44963e..000 --- a/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch +++ /dev/null @@ -1,239 +0,0 @@ -https://bugs.gentoo.org/912035 -https://inbox.sourceware.org/gcc-patches/0623e896-6b99-49ec-9144-b41bc5108...@andric.com -https://inbox.sourceware.org/gcc-patches/15d35ffe-1e97-4047-a75c-f13d25826...@andric.com -https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274038 -https://gcc.gnu.org/PR111632 - -From 025e2a1abb2d14b421cb1e4b0aaae43c87bceb71 Mon Sep 17 00:00:00 2001 -From: Dimitry Andric -Date: Tue, 30 Jan 2024 20:03:38 + -Subject: [PATCH] Include safe-ctype.h after C++ standard headers, to avoid - over-poisoning - -When building gcc's C++ sources against recent libc++, the poisoning of -the ctype macros due to including safe-ctype.h before including C++ -standard headers such as , , etc, causes many compilation -errors, similar to: - -In file included from /home/dim/src/gcc/master/gcc/gensupport.cc:23: -In file included from /home/dim/src/gcc/master/gcc/system.h:233: -In file included from /usr/include/c++/v1/vector:321: -In file included from -/usr/include/c++/v1/__format/formatter_bool.h:20: -In file included from -/usr/include/c++/v1/__format/formatter_integral.h:32: -In file included from /usr/include/c++/v1/locale:202: -/usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute -only applies to structs, variables, functions, and namespaces -546 | _LIBCPP_INLINE_VISIBILITY -| ^ -/usr/include/c++/v1/__config:813:37: note: expanded from macro -'_LIBCPP_INLINE_VISIBILITY' -813 | # define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI -| ^ -/usr/include/c++/v1/__config:792:26: note: expanded from macro -'_LIBCPP_HIDE_FROM_ABI' -792 | -__attribute__((__abi_tag__(_LIBCPP_TOSTRING( -_LIBCPP_VERSIONED_IDENTIFIER
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: a1cfe852efbba70ce855b09c38f202d05583bbb1 Author: Sam James gentoo org> AuthorDate: Thu Mar 7 20:14:27 2024 + Commit: Sam James gentoo org> CommitDate: Thu Mar 7 20:14:27 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a1cfe852 14.0.0: update 50_all_PR111632_system_cxx_headers_libcxx.patch Partly upstreamed. Signed-off-by: Sam James gentoo.org> ...50_all_PR111632_system_cxx_headers_libcxx.patch | 351 + 1 file changed, 228 insertions(+), 123 deletions(-) diff --git a/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch b/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch index af6c286..d44963e 100644 --- a/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch +++ b/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch @@ -1,134 +1,239 @@ https://bugs.gentoo.org/912035 https://inbox.sourceware.org/gcc-patches/0623e896-6b99-49ec-9144-b41bc5108...@andric.com +https://inbox.sourceware.org/gcc-patches/15d35ffe-1e97-4047-a75c-f13d25826...@andric.com https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274038 https://gcc.gnu.org/PR111632 -commit 8992952bfa95e769a554bd97581cf332987383d8 -Author: Dimitry Andric -Date: 2023-09-28T17:40:29+02:00 +From 025e2a1abb2d14b421cb1e4b0aaae43c87bceb71 Mon Sep 17 00:00:00 2001 +From: Dimitry Andric +Date: Tue, 30 Jan 2024 20:03:38 + +Subject: [PATCH] Include safe-ctype.h after C++ standard headers, to avoid + over-poisoning -Include safe-ctype.h after C++ standard headers, to avoid over-poisoning - -When building gcc's C++ sources against recent libc++, the poisoning of -the ctype macros due to including safe-ctype.h before including C++ -standard headers such as , , etc, causes many compilation -errors, similar to: - - In file included from /home/dim/src/gcc/master/gcc/gensupport.cc:23: - In file included from /home/dim/src/gcc/master/gcc/system.h:233: - In file included from /usr/include/c++/v1/vector:321: - In file included from - /usr/include/c++/v1/__format/formatter_bool.h:20: - In file included from - /usr/include/c++/v1/__format/formatter_integral.h:32: - In file included from /usr/include/c++/v1/locale:202: - /usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute - only applies to structs, variables, functions, and namespaces -546 | _LIBCPP_INLINE_VISIBILITY -| ^ - /usr/include/c++/v1/__config:813:37: note: expanded from macro - '_LIBCPP_INLINE_VISIBILITY' -813 | # define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI -| ^ - /usr/include/c++/v1/__config:792:26: note: expanded from macro - '_LIBCPP_HIDE_FROM_ABI' -792 | -__attribute__((__abi_tag__(_LIBCPP_TOSTRING( - _LIBCPP_VERSIONED_IDENTIFIER -| ^ - In file included from /home/dim/src/gcc/master/gcc/gensupport.cc:23: - In file included from /home/dim/src/gcc/master/gcc/system.h:233: - In file included from /usr/include/c++/v1/vector:321: - In file included from - /usr/include/c++/v1/__format/formatter_bool.h:20: - In file included from - /usr/include/c++/v1/__format/formatter_integral.h:32: - In file included from /usr/include/c++/v1/locale:202: - /usr/include/c++/v1/__locale:547:37: error: expected ';' at end of - declaration list -547 | char_type toupper(char_type __c) const -| ^ - /usr/include/c++/v1/__locale:553:48: error: too many arguments - provided to function-like macro invocation -553 | const char_type* toupper(char_type* __low, const -char_type* __high) const -|^ - /home/dim/src/gcc/master/gcc/../include/safe-ctype.h:146:9: note: - macro 'toupper' defined here -146 | #define toupper(c) do_not_use_toupper_with_safe_ctype -| ^ - -This is because libc++ uses different transitive includes than -libstdc++, and some of those transitive includes pull in various ctype -declarations (typically via ). - -There was already a special case for including before -safe-ctype.h, so move the rest of the C++ standard header includes to -the same location, to fix the problem. - -Signed-off-by: Dimitry Andric +When building gcc's C++ sources against recent libc++, the poisoning of +the ctype macros due to including safe-ctype.h before including C++ +standard headers such as , , etc, causes many compilation +errors, similar to: -diff --git a/gcc/system.h b/gcc/system.h -index e924152ad4c..7a516b11438 100644 a/gcc/system.h -+++ b/gcc/system.h -@@ -194,27 +194,8 @@ extern int fprintf_unlocked (FILE *, const char *, ...); - #undef fread_unlocked - #undef fwri
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 4d92f1b90d9a1f0bfc9280745bd6cfb2fd68a2e8 Author: Sam James gentoo org> AuthorDate: Wed Mar 6 17:46:52 2024 + Commit: Sam James gentoo org> CommitDate: Wed Mar 6 17:46:52 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=4d92f1b9 14.0.0: drop 75_all_arm_PR113915-atomics.patch Fixed upstream. Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_arm_PR113915-atomics.patch | 36 - 1 file changed, 36 deletions(-) diff --git a/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch b/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch deleted file mode 100644 index 82fa84a..000 --- a/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 9b1d9f15e7ecfd7d27a2bb878efb6577741eecaa Mon Sep 17 00:00:00 2001 -From: Sam James -Date: Sun, 18 Feb 2024 22:58:51 + -Subject: [PATCH] arm: fix inconsistency between atomic patterns and expected - attributes - -Apply workaround patch from Andrew Pinski at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915#c9. - -Bug: https://gcc.gnu.org/PR113915 -Bug: https://bugs.gentoo.org/924237 - gcc/config/arm/arm.cc | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc -index 1cd69268ee98..9f0d2405b905 100644 a/gcc/config/arm/arm.cc -+++ b/gcc/config/arm/arm.cc -@@ -25614,11 +25614,12 @@ arm_final_prescan_insn (rtx_insn *insn) - - case INSN: - /* Instructions using or affecting the condition codes make it -- fail. */ -+ fail or ones which cannot be predicable. */ - scanbody = PATTERN (this_insn); - if (!(GET_CODE (scanbody) == SET - || GET_CODE (scanbody) == PARALLEL) --|| get_attr_conds (this_insn) != CONDS_NOCOND) -+|| get_attr_conds (this_insn) != CONDS_NOCOND -+|| get_attr_predicable (this_insn) != PREDICABLE_YES) - fail = TRUE; - break; - --- -2.43.2 -
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: c8305c9bdf09abe3e2f89783fe62f2e4049468fa Author: Sam James gentoo org> AuthorDate: Sun Mar 3 22:55:47 2024 + Commit: Sam James gentoo org> CommitDate: Sun Mar 3 22:55:47 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c8305c9b 14.0.0: add 76_all_ppc_PR112868-no-checking-many.patch Bug: https://gcc.gnu.org/PR112868 Bug: https://gcc.gnu.org/PR113652 (sort of) Signed-off-by: Sam James gentoo.org> .../76_all_ppc_PR112868-no-checking-many.patch | 42 ++ 14.0.0/gentoo/README.history | 4 +++ 2 files changed, 46 insertions(+) diff --git a/14.0.0/gentoo/76_all_ppc_PR112868-no-checking-many.patch b/14.0.0/gentoo/76_all_ppc_PR112868-no-checking-many.patch new file mode 100644 index 000..dc9f5e5 --- /dev/null +++ b/14.0.0/gentoo/76_all_ppc_PR112868-no-checking-many.patch @@ -0,0 +1,42 @@ +https://gcc.gnu.org/PR112868 (specifically https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112868#c8) +(see also https://gcc.gnu.org/PR113652) + +--- a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h +@@ -94,12 +94,6 @@ + "%{mdejagnu-*: %
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: e54a7fbca63053b5753fd9ba543c27ef392d3084 Author: Sam James gentoo org> AuthorDate: Mon Feb 19 00:01:46 2024 + Commit: Sam James gentoo org> CommitDate: Mon Feb 19 00:01:46 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e54a7fbc 14.0.0: arm: fix inconsistency between atomic patterns and expected attributes Apply workaround patch from Andrew Pinski at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915#c9. Bug: https://gcc.gnu.org/PR113915 Bug: https://bugs.gentoo.org/924237 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_arm_PR113915-atomics.patch | 36 + 14.0.0/gentoo/README.history| 5 2 files changed, 41 insertions(+) diff --git a/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch b/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch new file mode 100644 index 000..82fa84a --- /dev/null +++ b/14.0.0/gentoo/75_all_arm_PR113915-atomics.patch @@ -0,0 +1,36 @@ +From 9b1d9f15e7ecfd7d27a2bb878efb6577741eecaa Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sun, 18 Feb 2024 22:58:51 + +Subject: [PATCH] arm: fix inconsistency between atomic patterns and expected + attributes + +Apply workaround patch from Andrew Pinski at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113915#c9. + +Bug: https://gcc.gnu.org/PR113915 +Bug: https://bugs.gentoo.org/924237 +--- + gcc/config/arm/arm.cc | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc +index 1cd69268ee98..9f0d2405b905 100644 +--- a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc +@@ -25614,11 +25614,12 @@ arm_final_prescan_insn (rtx_insn *insn) + + case INSN: + /* Instructions using or affecting the condition codes make it +- fail. */ ++ fail or ones which cannot be predicable. */ + scanbody = PATTERN (this_insn); + if (!(GET_CODE (scanbody) == SET + || GET_CODE (scanbody) == PARALLEL) +-|| get_attr_conds (this_insn) != CONDS_NOCOND) ++|| get_attr_conds (this_insn) != CONDS_NOCOND ++|| get_attr_predicable (this_insn) != PREDICABLE_YES) + fail = TRUE; + break; + +-- +2.43.2 + diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 8cfb3c2..dd7c933 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,8 @@ +23 19 Feb 2024 + + - 75_all_PR113734_middle_end_update_vector_loop_bounds.patch + + 75_all_arm_PR113915-atomics.patch + 22 13 Feb 2024 + 75_all_PR113734_middle_end_update_vector_loop_bounds.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 568b3f9940f87a775060aea789b2f438af477e9f Author: Sam James gentoo org> AuthorDate: Tue Feb 13 11:17:16 2024 + Commit: Sam James gentoo org> CommitDate: Tue Feb 13 11:17:16 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=568b3f99 14.0.0: drop upstream patch Signed-off-by: Sam James gentoo.org> ...3734_middle_end_update_vector_loop_bounds.patch | 93 -- 1 file changed, 93 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR113734_middle_end_update_vector_loop_bounds.patch b/14.0.0/gentoo/75_all_PR113734_middle_end_update_vector_loop_bounds.patch deleted file mode 100644 index dcc52df..000 --- a/14.0.0/gentoo/75_all_PR113734_middle_end_update_vector_loop_bounds.patch +++ /dev/null @@ -1,93 +0,0 @@ -https://gcc.gnu.org/PR113734 - -From 491e57451df47cda88f658601a92d6d006ae09d7 Mon Sep 17 00:00:00 2001 -From: Tamar Christina -Date: Tue, 13 Feb 2024 11:04:38 + -Subject: [PATCH] middle-end: update vector loop upper bounds when early break - vect [PR113734] - -When doing early break vectorization we should treat the final iteration as -possibly being partial. This so that when we calculate the vector loop upper -bounds we take into account that final iteration could have done some work. - -The attached testcase shows that if we don't then cunroll may unroll the loop an -if the upper bound is wrong we lose a vector iteration. - -This is similar to how we adjust the scalar loop bounds for the PEELED case. - -gcc/ChangeLog: - - PR tree-optimization/113734 - * tree-vect-loop.cc (vect_transform_loop): Treat the final iteration of - an early break loop as partial. - -gcc/testsuite/ChangeLog: - - PR tree-optimization/113734 - * gcc.dg/vect/vect-early-break_117-pr113734.c: New test. - .../vect/vect-early-break_117-pr113734.c | 37 +++ - gcc/tree-vect-loop.cc | 3 +- - 2 files changed, 39 insertions(+), 1 deletion(-) - create mode 100644 gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c - -diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c -new file mode 100644 -index ..36ae09483dfd /dev/null -+++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c -@@ -0,0 +1,37 @@ -+/* { dg-add-options vect_early_break } */ -+/* { dg-require-effective-target vect_early_break_hw } */ -+/* { dg-require-effective-target vect_int } */ -+/* { dg-additional-options "-O3" } */ -+ -+/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */ -+ -+#include "tree-vect.h" -+ -+#define N 306 -+#define NEEDLE 136 -+ -+int table[N]; -+ -+__attribute__ ((noipa)) -+int foo (int i, unsigned short parse_tables_n) -+{ -+ parse_tables_n >>= 9; -+ parse_tables_n += 11; -+ while (i < N && parse_tables_n--) -+table[i++] = 0; -+ -+ return table[NEEDLE]; -+} -+ -+int main () -+{ -+ check_vect (); -+ -+ for (int j = 0; j < N; j++) -+table[j] = -1; -+ -+ if (foo (0, 0x) != 0) -+__builtin_abort (); -+ -+ return 0; -+} -diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc -index 04f4b5b6b2fa..367077965fd9 100644 a/gcc/tree-vect-loop.cc -+++ b/gcc/tree-vect-loop.cc -@@ -12174,7 +12174,8 @@ vect_transform_loop (loop_vec_info loop_vinfo, gimple *loop_vectorized_call) - /* True if the final iteration might not handle a full vector's - worth of scalar iterations. */ - bool final_iter_may_be_partial --= LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo); -+= LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) -+ || LOOP_VINFO_EARLY_BREAKS (loop_vinfo); - /* The minimum number of iterations performed by the epilogue. This - is 1 when peeling for gaps because we always need a final scalar - iteration. */ --- -2.43.1 -
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 62e7698eec17981d7d48b5f248a100149fe41514 Author: Sam James gentoo org> AuthorDate: Tue Feb 13 11:16:25 2024 + Commit: Sam James gentoo org> CommitDate: Tue Feb 13 11:17:03 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=62e7698e 14.0.0: add 75_all_PR113734_middle_end_update_vector_loop_bounds.patch Bug: https://gcc.gnu.org/PR113734 Signed-off-by: Sam James gentoo.org> ...3734_middle_end_update_vector_loop_bounds.patch | 93 ++ 14.0.0/gentoo/README.history | 4 + 2 files changed, 97 insertions(+) diff --git a/14.0.0/gentoo/75_all_PR113734_middle_end_update_vector_loop_bounds.patch b/14.0.0/gentoo/75_all_PR113734_middle_end_update_vector_loop_bounds.patch new file mode 100644 index 000..dcc52df --- /dev/null +++ b/14.0.0/gentoo/75_all_PR113734_middle_end_update_vector_loop_bounds.patch @@ -0,0 +1,93 @@ +https://gcc.gnu.org/PR113734 + +From 491e57451df47cda88f658601a92d6d006ae09d7 Mon Sep 17 00:00:00 2001 +From: Tamar Christina +Date: Tue, 13 Feb 2024 11:04:38 + +Subject: [PATCH] middle-end: update vector loop upper bounds when early break + vect [PR113734] + +When doing early break vectorization we should treat the final iteration as +possibly being partial. This so that when we calculate the vector loop upper +bounds we take into account that final iteration could have done some work. + +The attached testcase shows that if we don't then cunroll may unroll the loop an +if the upper bound is wrong we lose a vector iteration. + +This is similar to how we adjust the scalar loop bounds for the PEELED case. + +gcc/ChangeLog: + + PR tree-optimization/113734 + * tree-vect-loop.cc (vect_transform_loop): Treat the final iteration of + an early break loop as partial. + +gcc/testsuite/ChangeLog: + + PR tree-optimization/113734 + * gcc.dg/vect/vect-early-break_117-pr113734.c: New test. +--- + .../vect/vect-early-break_117-pr113734.c | 37 +++ + gcc/tree-vect-loop.cc | 3 +- + 2 files changed, 39 insertions(+), 1 deletion(-) + create mode 100644 gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c + +diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c +new file mode 100644 +index ..36ae09483dfd +--- /dev/null b/gcc/testsuite/gcc.dg/vect/vect-early-break_117-pr113734.c +@@ -0,0 +1,37 @@ ++/* { dg-add-options vect_early_break } */ ++/* { dg-require-effective-target vect_early_break_hw } */ ++/* { dg-require-effective-target vect_int } */ ++/* { dg-additional-options "-O3" } */ ++ ++/* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */ ++ ++#include "tree-vect.h" ++ ++#define N 306 ++#define NEEDLE 136 ++ ++int table[N]; ++ ++__attribute__ ((noipa)) ++int foo (int i, unsigned short parse_tables_n) ++{ ++ parse_tables_n >>= 9; ++ parse_tables_n += 11; ++ while (i < N && parse_tables_n--) ++table[i++] = 0; ++ ++ return table[NEEDLE]; ++} ++ ++int main () ++{ ++ check_vect (); ++ ++ for (int j = 0; j < N; j++) ++table[j] = -1; ++ ++ if (foo (0, 0x) != 0) ++__builtin_abort (); ++ ++ return 0; ++} +diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +index 04f4b5b6b2fa..367077965fd9 100644 +--- a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +@@ -12174,7 +12174,8 @@ vect_transform_loop (loop_vec_info loop_vinfo, gimple *loop_vectorized_call) + /* True if the final iteration might not handle a full vector's + worth of scalar iterations. */ + bool final_iter_may_be_partial +-= LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo); ++= LOOP_VINFO_USING_PARTIAL_VECTORS_P (loop_vinfo) ++ || LOOP_VINFO_EARLY_BREAKS (loop_vinfo); + /* The minimum number of iterations performed by the epilogue. This + is 1 when peeling for gaps because we always need a final scalar + iteration. */ +-- +2.43.1 + diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index c175cb7..8cfb3c2 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +22 13 Feb 2024 + + + 75_all_PR113734_middle_end_update_vector_loop_bounds.patch + 21 12 Feb 2024 - 75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: e6628b8411533cc14470a9404cca9047df81cb0f Author: Sam James gentoo org> AuthorDate: Mon Feb 12 06:26:19 2024 + Commit: Sam James gentoo org> CommitDate: Mon Feb 12 06:26:19 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e6628b84 14.0.0: drop upstream patches Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 7 +++ 1 file changed, 7 insertions(+) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index dd2e0a0..c175cb7 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,10 @@ +21 12 Feb 2024 + + - 75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch + - 76_all_PR113750_fix-ICE-when-destination-BB-for-stores-st.patch + - 77_all_PR113808-middle-end-don-t-cache-restart_loop-in-vectorizable.patch + - 78_all_PR113776-c-boolean-conversion.patch + 20 8 Feb 2024 + 75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 29fc9edc64e0e00a0ade3065238365a4aa46ec59 Author: Sam James gentoo org> AuthorDate: Thu Feb 8 10:48:38 2024 + Commit: Sam James gentoo org> CommitDate: Thu Feb 8 10:53:06 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=29fc9edc 14.0.0: backport more vectorisation fixes & postgres const expression fix Bug: https://gcc.gnu.org/PR113808 Bug: https://gcc.gnu.org/PR113750 Bug: https://gcc.gnu.org/PR113731 Bug: https://gcc.gnu.org/PR113734 (should be same as PR113808) Bug: https://gcc.gnu.org/PR113776 Bug: https://bugs.gentoo.org/923804 Bug: https://bugs.gentoo.org/923936 Signed-off-by: Sam James gentoo.org> ...fix-ICE-when-moving-statements-to-empty-B.patch | 129 +++ ...fix-ICE-when-destination-BB-for-stores-st.patch | 250 + ...-don-t-cache-restart_loop-in-vectorizable.patch | 93 .../78_all_PR113776-c-boolean-conversion.patch | 117 ++ 14.0.0/gentoo/README.history | 7 + 5 files changed, 596 insertions(+) diff --git a/14.0.0/gentoo/75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch b/14.0.0/gentoo/75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch new file mode 100644 index 000..1146246 --- /dev/null +++ b/14.0.0/gentoo/75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch @@ -0,0 +1,129 @@ +From c22a0c0ca1a5c31d107f90efd2221eb8bc198205 Mon Sep 17 00:00:00 2001 +From: Tamar Christina +Date: Wed, 7 Feb 2024 10:58:25 + +Subject: [PATCH 1/3] middle-end: fix ICE when moving statements to empty BB + [PR113731] + +We use gsi_move_before (&stmt_gsi, &dest_gsi); to request that the new statement +be placed before any other statement. Typically this then moves the current +pointer to be after the statement we just inserted. + +However it looks like when the BB is empty, this does not happen and the CUR +pointer stays NULL. There's a comment in the source of gsi_insert_before that +explains: + +/* If CUR is NULL, we link at the end of the sequence (this case happens + +This adds a default parameter to gsi_move_before to allow us to control where +the insertion happens. + +gcc/ChangeLog: + + PR tree-optimization/113731 + * gimple-iterator.cc (gsi_move_before): Take new parameter for update + method. + * gimple-iterator.h (gsi_move_before): Default new param to + GSI_SAME_STMT. + * tree-vect-loop.cc (move_early_exit_stmts): Call gsi_move_before with + GSI_NEW_STMT. + +gcc/testsuite/ChangeLog: + + PR tree-optimization/113731 + * gcc.dg/vect/vect-early-break_111-pr113731.c: New test. + +(cherry picked from commit 8f6ed71d8fff3c3c6249651a72aee084e31ffb9e) +--- + gcc/gimple-iterator.cc| 7 +++--- + gcc/gimple-iterator.h | 3 ++- + .../vect/vect-early-break_111-pr113731.c | 22 +++ + gcc/tree-vect-loop.cc | 3 +-- + 4 files changed, 29 insertions(+), 6 deletions(-) + create mode 100644 gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c + +diff --git a/gcc/gimple-iterator.cc b/gcc/gimple-iterator.cc +index 517c53376f05..55ef3198c52b 100644 +--- a/gcc/gimple-iterator.cc b/gcc/gimple-iterator.cc +@@ -666,10 +666,11 @@ gsi_move_after (gimple_stmt_iterator *from, gimple_stmt_iterator *to) + + + /* Move the statement at FROM so it comes right before the statement +- at TO. */ ++ at TO using method M. M defaults to GSI_SAME_STMT. */ + + void +-gsi_move_before (gimple_stmt_iterator *from, gimple_stmt_iterator *to) ++gsi_move_before (gimple_stmt_iterator *from, gimple_stmt_iterator *to, ++ gsi_iterator_update m) + { + gimple *stmt = gsi_stmt (*from); + gsi_remove (from, false); +@@ -677,7 +678,7 @@ gsi_move_before (gimple_stmt_iterator *from, gimple_stmt_iterator *to) + /* For consistency with gsi_move_after, it might be better to have + GSI_NEW_STMT here; however, that breaks several places that expect + that TO does not change. */ +- gsi_insert_before (to, stmt, GSI_SAME_STMT); ++ gsi_insert_before (to, stmt, m); + } + + +diff --git a/gcc/gimple-iterator.h b/gcc/gimple-iterator.h +index 2e83a9660efc..78014a43cb93 100644 +--- a/gcc/gimple-iterator.h b/gcc/gimple-iterator.h +@@ -86,7 +86,8 @@ extern gimple_stmt_iterator gsi_for_stmt (gimple *); + extern gimple_stmt_iterator gsi_for_stmt (gimple *, gimple_seq *); + extern gphi_iterator gsi_for_phi (gphi *); + extern void gsi_move_after (gimple_stmt_iterator *, gimple_stmt_iterator *); +-extern void gsi_move_before (gimple_stmt_iterator *, gimple_stmt_iterator *); ++extern void gsi_move_before (gimple_stmt_iterator *, gimple_stmt_iterator *, ++ gsi_iterator_update = GSI_SAME_STMT); + extern void gsi_move_to_bb_end (gimple_stmt_iterator *, basic_block); + extern void gsi_insert_on_edge (edge, gimple *); + extern void gsi_insert_seq_on_edge (edge, gimple_seq); +diff
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: fe1bf105eb3e4f607a8d3b533c7b971b8a951085 Author: Sam James gentoo org> AuthorDate: Thu Feb 8 11:01:58 2024 + Commit: Sam James gentoo org> CommitDate: Thu Feb 8 11:01:58 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=fe1bf105 14.0.0: drop upstream patches Signed-off-by: Sam James gentoo.org> ...fix-ICE-when-moving-statements-to-empty-B.patch | 129 --- ...fix-ICE-when-destination-BB-for-stores-st.patch | 250 - ...-don-t-cache-restart_loop-in-vectorizable.patch | 93 .../78_all_PR113776-c-boolean-conversion.patch | 117 -- 4 files changed, 589 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch b/14.0.0/gentoo/75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch deleted file mode 100644 index 1146246..000 --- a/14.0.0/gentoo/75_all_PR113731_fix-ICE-when-moving-statements-to-empty-B.patch +++ /dev/null @@ -1,129 +0,0 @@ -From c22a0c0ca1a5c31d107f90efd2221eb8bc198205 Mon Sep 17 00:00:00 2001 -From: Tamar Christina -Date: Wed, 7 Feb 2024 10:58:25 + -Subject: [PATCH 1/3] middle-end: fix ICE when moving statements to empty BB - [PR113731] - -We use gsi_move_before (&stmt_gsi, &dest_gsi); to request that the new statement -be placed before any other statement. Typically this then moves the current -pointer to be after the statement we just inserted. - -However it looks like when the BB is empty, this does not happen and the CUR -pointer stays NULL. There's a comment in the source of gsi_insert_before that -explains: - -/* If CUR is NULL, we link at the end of the sequence (this case happens - -This adds a default parameter to gsi_move_before to allow us to control where -the insertion happens. - -gcc/ChangeLog: - - PR tree-optimization/113731 - * gimple-iterator.cc (gsi_move_before): Take new parameter for update - method. - * gimple-iterator.h (gsi_move_before): Default new param to - GSI_SAME_STMT. - * tree-vect-loop.cc (move_early_exit_stmts): Call gsi_move_before with - GSI_NEW_STMT. - -gcc/testsuite/ChangeLog: - - PR tree-optimization/113731 - * gcc.dg/vect/vect-early-break_111-pr113731.c: New test. - -(cherry picked from commit 8f6ed71d8fff3c3c6249651a72aee084e31ffb9e) - gcc/gimple-iterator.cc| 7 +++--- - gcc/gimple-iterator.h | 3 ++- - .../vect/vect-early-break_111-pr113731.c | 22 +++ - gcc/tree-vect-loop.cc | 3 +-- - 4 files changed, 29 insertions(+), 6 deletions(-) - create mode 100644 gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c - -diff --git a/gcc/gimple-iterator.cc b/gcc/gimple-iterator.cc -index 517c53376f05..55ef3198c52b 100644 a/gcc/gimple-iterator.cc -+++ b/gcc/gimple-iterator.cc -@@ -666,10 +666,11 @@ gsi_move_after (gimple_stmt_iterator *from, gimple_stmt_iterator *to) - - - /* Move the statement at FROM so it comes right before the statement -- at TO. */ -+ at TO using method M. M defaults to GSI_SAME_STMT. */ - - void --gsi_move_before (gimple_stmt_iterator *from, gimple_stmt_iterator *to) -+gsi_move_before (gimple_stmt_iterator *from, gimple_stmt_iterator *to, -+ gsi_iterator_update m) - { - gimple *stmt = gsi_stmt (*from); - gsi_remove (from, false); -@@ -677,7 +678,7 @@ gsi_move_before (gimple_stmt_iterator *from, gimple_stmt_iterator *to) - /* For consistency with gsi_move_after, it might be better to have - GSI_NEW_STMT here; however, that breaks several places that expect - that TO does not change. */ -- gsi_insert_before (to, stmt, GSI_SAME_STMT); -+ gsi_insert_before (to, stmt, m); - } - - -diff --git a/gcc/gimple-iterator.h b/gcc/gimple-iterator.h -index 2e83a9660efc..78014a43cb93 100644 a/gcc/gimple-iterator.h -+++ b/gcc/gimple-iterator.h -@@ -86,7 +86,8 @@ extern gimple_stmt_iterator gsi_for_stmt (gimple *); - extern gimple_stmt_iterator gsi_for_stmt (gimple *, gimple_seq *); - extern gphi_iterator gsi_for_phi (gphi *); - extern void gsi_move_after (gimple_stmt_iterator *, gimple_stmt_iterator *); --extern void gsi_move_before (gimple_stmt_iterator *, gimple_stmt_iterator *); -+extern void gsi_move_before (gimple_stmt_iterator *, gimple_stmt_iterator *, -+ gsi_iterator_update = GSI_SAME_STMT); - extern void gsi_move_to_bb_end (gimple_stmt_iterator *, basic_block); - extern void gsi_insert_on_edge (edge, gimple *); - extern void gsi_insert_seq_on_edge (edge, gimple_seq); -diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c -new file mode 100644 -index ..b205f470660a /dev/null -+++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c -@@ -0,0 +1,22 @@ -+/* { dg-do compile } */ -+/* { dg-add-options vect_early_break } */ -+/* { dg-require-ef
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 31395f8bba7e15cd156c631946646f7c7799540d Author: Sam James gentoo org> AuthorDate: Wed Feb 7 19:01:36 2024 + Commit: Sam James gentoo org> CommitDate: Wed Feb 7 19:01:36 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=31395f8b 14.0.0: drop upstream 76_all_PR113731-vect-crash.patch Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/76_all_PR113731-vect-crash.patch | 13 - 1 file changed, 13 deletions(-) diff --git a/14.0.0/gentoo/76_all_PR113731-vect-crash.patch b/14.0.0/gentoo/76_all_PR113731-vect-crash.patch deleted file mode 100644 index 671f11f..000 --- a/14.0.0/gentoo/76_all_PR113731-vect-crash.patch +++ /dev/null @@ -1,13 +0,0 @@ -https://gcc.gnu.org/PR113731 a/gcc/tree-vect-loop.cc -+++ b/gcc/tree-vect-loop.cc -@@ -11801,7 +11801,8 @@ move_early_exit_stmts (loop_vec_info loop_vinfo) - - gimple_stmt_iterator stmt_gsi = gsi_for_stmt (stmt); - gsi_move_before (&stmt_gsi, &dest_gsi); -- gsi_prev (&dest_gsi); -+ if (!gsi_end_p (dest_gsi)) -+ gsi_prev (&dest_gsi); - } - - /* Update all the stmts with their new reaching VUSES. */
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 4b42344808c61e309c43ca557fb2e77182d121d4 Author: Sam James gentoo org> AuthorDate: Mon Feb 5 00:01:18 2024 + Commit: Sam James gentoo org> CommitDate: Mon Feb 5 00:01:18 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=4b423448 14.0.0: cut patchset 19 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 5 + 1 file changed, 5 insertions(+) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index cb088b2..afaa988 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,8 @@ +19 5 Feb 2024 + + - 76_all_PR113467-vect-miscompile.patch + + 76_all_PR113731-vect-crash.patch + 18 30 Jan 2024 + 50_all_PR111632_system_cxx_headers_libcxx.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 3ab6b70bf9ee185da7e092e1df20753cdc35d710 Author: Sam James gentoo org> AuthorDate: Sat Feb 3 07:52:17 2024 + Commit: Sam James gentoo org> CommitDate: Sat Feb 3 07:52:17 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3ab6b70b 14.0.0: add PR113731 crash fix Bug: https://gcc.gnu.org/PR113731 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/76_all_PR113731-vect-crash.patch | 13 + 1 file changed, 13 insertions(+) diff --git a/14.0.0/gentoo/76_all_PR113731-vect-crash.patch b/14.0.0/gentoo/76_all_PR113731-vect-crash.patch new file mode 100644 index 000..671f11f --- /dev/null +++ b/14.0.0/gentoo/76_all_PR113731-vect-crash.patch @@ -0,0 +1,13 @@ +https://gcc.gnu.org/PR113731 +--- a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +@@ -11801,7 +11801,8 @@ move_early_exit_stmts (loop_vec_info loop_vinfo) + + gimple_stmt_iterator stmt_gsi = gsi_for_stmt (stmt); + gsi_move_before (&stmt_gsi, &dest_gsi); +- gsi_prev (&dest_gsi); ++ if (!gsi_end_p (dest_gsi)) ++ gsi_prev (&dest_gsi); + } + + /* Update all the stmts with their new reaching VUSES. */
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: e000e7f8aad97476d77372cc0ef8791901de1195 Author: Sam James gentoo org> AuthorDate: Sat Feb 3 00:08:49 2024 + Commit: Sam James gentoo org> CommitDate: Sat Feb 3 00:08:49 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=e000e7f8 14.0.0: drop 76_all_PR113467-vect-miscompile.patch Fixed upstream so we don't need this workaround anymore. Bug: https://gcc.gnu.org/PR113467 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch | 15 --- 1 file changed, 15 deletions(-) diff --git a/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch b/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch deleted file mode 100644 index aee5ddf..000 --- a/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch +++ /dev/null @@ -1,15 +0,0 @@ -https://gcc.gnu.org/PR113467 - -Disable early-exit peeling variants. a/gcc/tree-vect-loop.cc -+++ b/gcc/tree-vect-loop.cc -@@ -998,6 +998,9 @@ vec_init_loop_exit_info (class loop *loop) - } - } - -+ if (candidate && candidate->src != EDGE_PRED (loop->latch, 0)->src) -+return NULL; -+ - return candidate; - } -
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: a3d9af415d651d202c24b7cb235713852e406c9d Author: Sam James gentoo org> AuthorDate: Tue Jan 30 15:16:40 2024 + Commit: Sam James gentoo org> CommitDate: Tue Jan 30 15:16:40 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a3d9af41 14.0.0: cut patchset 18 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index bd9cd16..cb088b2 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -?/ ?? ??? 2024 +18 30 Jan 2024 + 50_all_PR111632_system_cxx_headers_libcxx.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 7144ab534c85495f8519e0e90f1705b8aad89472 Author: Sam James gentoo org> AuthorDate: Tue Jan 30 15:16:08 2024 + Commit: Sam James gentoo org> CommitDate: Tue Jan 30 15:16:08 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=7144ab53 14.0.0: add 50_all_PR111632_system_cxx_headers_libcxx.patch Bug: https://gcc.gnu.org/PR111632 Signed-off-by: Sam James gentoo.org> ...50_all_PR111632_system_cxx_headers_libcxx.patch | 134 + 14.0.0/gentoo/README.history | 4 + 2 files changed, 138 insertions(+) diff --git a/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch b/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch new file mode 100644 index 000..af6c286 --- /dev/null +++ b/14.0.0/gentoo/50_all_PR111632_system_cxx_headers_libcxx.patch @@ -0,0 +1,134 @@ +https://bugs.gentoo.org/912035 +https://inbox.sourceware.org/gcc-patches/0623e896-6b99-49ec-9144-b41bc5108...@andric.com +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274038 +https://gcc.gnu.org/PR111632 + +commit 8992952bfa95e769a554bd97581cf332987383d8 +Author: Dimitry Andric +Date: 2023-09-28T17:40:29+02:00 + +Include safe-ctype.h after C++ standard headers, to avoid over-poisoning + +When building gcc's C++ sources against recent libc++, the poisoning of +the ctype macros due to including safe-ctype.h before including C++ +standard headers such as , , etc, causes many compilation +errors, similar to: + + In file included from /home/dim/src/gcc/master/gcc/gensupport.cc:23: + In file included from /home/dim/src/gcc/master/gcc/system.h:233: + In file included from /usr/include/c++/v1/vector:321: + In file included from + /usr/include/c++/v1/__format/formatter_bool.h:20: + In file included from + /usr/include/c++/v1/__format/formatter_integral.h:32: + In file included from /usr/include/c++/v1/locale:202: + /usr/include/c++/v1/__locale:546:5: error: '__abi_tag__' attribute + only applies to structs, variables, functions, and namespaces +546 | _LIBCPP_INLINE_VISIBILITY +| ^ + /usr/include/c++/v1/__config:813:37: note: expanded from macro + '_LIBCPP_INLINE_VISIBILITY' +813 | # define _LIBCPP_INLINE_VISIBILITY _LIBCPP_HIDE_FROM_ABI +| ^ + /usr/include/c++/v1/__config:792:26: note: expanded from macro + '_LIBCPP_HIDE_FROM_ABI' +792 | +__attribute__((__abi_tag__(_LIBCPP_TOSTRING( + _LIBCPP_VERSIONED_IDENTIFIER +| ^ + In file included from /home/dim/src/gcc/master/gcc/gensupport.cc:23: + In file included from /home/dim/src/gcc/master/gcc/system.h:233: + In file included from /usr/include/c++/v1/vector:321: + In file included from + /usr/include/c++/v1/__format/formatter_bool.h:20: + In file included from + /usr/include/c++/v1/__format/formatter_integral.h:32: + In file included from /usr/include/c++/v1/locale:202: + /usr/include/c++/v1/__locale:547:37: error: expected ';' at end of + declaration list +547 | char_type toupper(char_type __c) const +| ^ + /usr/include/c++/v1/__locale:553:48: error: too many arguments + provided to function-like macro invocation +553 | const char_type* toupper(char_type* __low, const +char_type* __high) const +|^ + /home/dim/src/gcc/master/gcc/../include/safe-ctype.h:146:9: note: + macro 'toupper' defined here +146 | #define toupper(c) do_not_use_toupper_with_safe_ctype +| ^ + +This is because libc++ uses different transitive includes than +libstdc++, and some of those transitive includes pull in various ctype +declarations (typically via ). + +There was already a special case for including before +safe-ctype.h, so move the rest of the C++ standard header includes to +the same location, to fix the problem. + +Signed-off-by: Dimitry Andric + +diff --git a/gcc/system.h b/gcc/system.h +index e924152ad4c..7a516b11438 100644 +--- a/gcc/system.h b/gcc/system.h +@@ -194,27 +194,8 @@ extern int fprintf_unlocked (FILE *, const char *, ...); + #undef fread_unlocked + #undef fwrite_unlocked + +-/* Include before "safe-ctype.h" to avoid GCC poisoning +- the ctype macros through safe-ctype.h */ +- +-#ifdef __cplusplus +-#ifdef INCLUDE_STRING +-# include +-#endif +-#endif +- +-/* There are an extraordinary number of issues with . +- The last straw is that it varies with the locale. Use libiberty's +- replacement instead. */ +-#include "safe-ctype.h" +- +-#include +- +-#include +- +-#if !defined (errno) && defined (HAVE_DECL_ERRNO) && !HAVE_DECL_ERRNO +-extern int errno; +-#endif ++/* Inc
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: d560ef1c4e57321434d7ac686b1ba6de31e0b424 Author: Sam James gentoo org> AuthorDate: Sun Jan 28 23:01:41 2024 + Commit: Sam James gentoo org> CommitDate: Sun Jan 28 23:01:53 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d560ef1c 14.0.0: cut 17 patchset Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 3b7309d..e452982 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -17 ?? ??? 2024 +17 28 Jan 2024 - 75_all_PR113364-vect.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: ddeac849ac4c3fecdf591ab6fb075cc6c5afdbff Author: Sam James gentoo org> AuthorDate: Wed Jan 24 13:53:06 2024 + Commit: Sam James gentoo org> CommitDate: Wed Jan 24 13:53:06 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=ddeac849 14.0.0: drop 75_all_PR113364-vect.patch Fixed upstream. Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_PR113364-vect.patch | 13 - 14.0.0/gentoo/README.history | 4 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR113364-vect.patch b/14.0.0/gentoo/75_all_PR113364-vect.patch deleted file mode 100644 index 8922158..000 --- a/14.0.0/gentoo/75_all_PR113364-vect.patch +++ /dev/null @@ -1,13 +0,0 @@ -https://gcc.gnu.org/PR113364 a/gcc/tree-vect-loop.cc -+++ b/gcc/tree-vect-loop.cc -@@ -5965,7 +5965,8 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, - loop-closed PHI of the inner loop which we remember as - def for the reduction PHI generation. */ - bool double_reduc = false; -- bool main_exit_p = LOOP_VINFO_IV_EXIT (loop_vinfo) == loop_exit; -+ bool main_exit_p = LOOP_VINFO_IV_EXIT (loop_vinfo) == loop_exit -+&& !LOOP_VINFO_EARLY_BREAKS_VECT_PEELED (loop_vinfo); - stmt_vec_info rdef_info = stmt_info; - if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_double_reduction_def) - { diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 7ae98b3..3b7309d 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +17 ?? ??? 2024 + + - 75_all_PR113364-vect.patch + 16 15 Jan 2024 - 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: a1e21703f86e5d60a68a53839774535ccdb8403e Author: Sam James gentoo org> AuthorDate: Fri Jan 19 07:44:41 2024 + Commit: Sam James gentoo org> CommitDate: Fri Jan 19 07:44:41 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a1e21703 14.0.0: add 76_all_PR113467-vect-miscompile.patch Bug: https://gcc.gnu.org/PR113467 Bug: https://bugs.gentoo.org/922195 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch | 15 +++ 1 file changed, 15 insertions(+) diff --git a/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch b/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch new file mode 100644 index 000..aee5ddf --- /dev/null +++ b/14.0.0/gentoo/76_all_PR113467-vect-miscompile.patch @@ -0,0 +1,15 @@ +https://gcc.gnu.org/PR113467 + +Disable early-exit peeling variants. +--- a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +@@ -998,6 +998,9 @@ vec_init_loop_exit_info (class loop *loop) + } + } + ++ if (candidate && candidate->src != EDGE_PRED (loop->latch, 0)->src) ++return NULL; ++ + return candidate; + } +
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 4b55a8e4b87cf08d2b043fade9284d52e7af71df Author: Sam James gentoo org> AuthorDate: Mon Jan 15 00:07:42 2024 + Commit: Sam James gentoo org> CommitDate: Mon Jan 15 00:07:53 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=4b55a8e4 14.0.0: cut patchset 16 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_PR113364-vect.patch | 13 + 14.0.0/gentoo/README.history | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/14.0.0/gentoo/75_all_PR113364-vect.patch b/14.0.0/gentoo/75_all_PR113364-vect.patch new file mode 100644 index 000..8922158 --- /dev/null +++ b/14.0.0/gentoo/75_all_PR113364-vect.patch @@ -0,0 +1,13 @@ +https://gcc.gnu.org/PR113364 +--- a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +@@ -5965,7 +5965,8 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, + loop-closed PHI of the inner loop which we remember as + def for the reduction PHI generation. */ + bool double_reduc = false; +- bool main_exit_p = LOOP_VINFO_IV_EXIT (loop_vinfo) == loop_exit; ++ bool main_exit_p = LOOP_VINFO_IV_EXIT (loop_vinfo) == loop_exit ++&& !LOOP_VINFO_EARLY_BREAKS_VECT_PEELED (loop_vinfo); + stmt_vec_info rdef_info = stmt_info; + if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_double_reduction_def) + { diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 8e1b87e..7ae98b3 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -?? ?? ??? +16 15 Jan 2024 - 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch - 76_all_Revert-testsuite-un-xfail-TSVC-loops-that-check-for-.patch @@ -8,6 +8,7 @@ - 80_all_Revert_middle-end_support_vectorization_of_loops_with_mult.patch - 81_all_Revert-middle-end-prevent-LIM-from-hoising-vector-co.patch - 82_all_testsuite_Add_more_pragma_novector_to_new_tests.patch + + 75_all_PR113364-vect.patch 15 8 Jan 2024
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 31de670a01566db841c795577bbdc3f2a5d35f21 Author: Sam James gentoo org> AuthorDate: Mon Jan 8 08:10:06 2024 + Commit: Sam James gentoo org> CommitDate: Mon Jan 8 08:10:06 2024 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=31de670a 14.0.0: cut patchset 15 richi is back this week so this should be the last time we need to keep reverting these as the fixes are pending his review. Signed-off-by: Sam James gentoo.org> ...le-end-explicitly-initialize-vec_stmts-PR.patch | 6 +- ...suite-un-xfail-TSVC-loops-that-check-for-.patch | 4 +- ..._Add_Advanced_SIMD_cbranch_implementation.patch | 341 + ..._add_tests_for_early_break_vectorization.patch} | 14 +- ...64_add_implementation_for_vector_cbranch.patch} | 6 +- ...support_vectorization_of_loops_with_mult.patch} | 20 +- ...e-end-prevent-LIM-from-hoising-vector-co.patch} | 6 +- ...te_Add_more_pragma_novector_to_new_tests.patch} | 4 +- 14.0.0/gentoo/README.history | 11 + 9 files changed, 382 insertions(+), 30 deletions(-) diff --git a/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch b/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch index b113f1e..93bf96b 100644 --- a/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch +++ b/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch @@ -1,7 +1,7 @@ -From a648fe2c0121414ac82926e9f8a70b33e347b930 Mon Sep 17 00:00:00 2001 +From 0d9351ff8ab23e79edc7a468a255a7c009695f21 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 25 Dec 2023 16:57:10 + -Subject: [PATCH 1/7] Revert "middle-end: explicitly initialize vec_stmts +Subject: [PATCH 1/8] Revert "middle-end: explicitly initialize vec_stmts [PR113132]" This reverts commit fd032cce216e003d58b2394f7e61b03dee27e81a. @@ -15,7 +15,7 @@ Signed-off-by: Sam James 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc -index f51ae3e719e7..88261a3a4f57 100644 +index a06771611ac8..2bd96b56006a 100644 --- a/gcc/tree-vect-loop.cc +++ b/gcc/tree-vect-loop.cc @@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, diff --git a/14.0.0/gentoo/76_all_Revert-testsuite-un-xfail-TSVC-loops-that-check-for-.patch b/14.0.0/gentoo/76_all_Revert-testsuite-un-xfail-TSVC-loops-that-check-for-.patch index 1e4b825..d22a7ae 100644 --- a/14.0.0/gentoo/76_all_Revert-testsuite-un-xfail-TSVC-loops-that-check-for-.patch +++ b/14.0.0/gentoo/76_all_Revert-testsuite-un-xfail-TSVC-loops-that-check-for-.patch @@ -1,7 +1,7 @@ -From 846bfbdd30d437e40e10ce8bcd896f263436dfc1 Mon Sep 17 00:00:00 2001 +From 21f952dd33ae6037ff1a18cfe1c52dcc9becce19 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 25 Dec 2023 16:57:12 + -Subject: [PATCH 2/7] Revert "testsuite: un-xfail TSVC loops that check for +Subject: [PATCH 2/8] Revert "testsuite: un-xfail TSVC loops that check for exit control flow vectorization" This reverts commit a657c7e3518fcfc796f223d47385cad5e97dc9a5. diff --git a/14.0.0/gentoo/77_all_Revert_arm_Add_Advanced_SIMD_cbranch_implementation.patch b/14.0.0/gentoo/77_all_Revert_arm_Add_Advanced_SIMD_cbranch_implementation.patch new file mode 100644 index 000..e284b9d --- /dev/null +++ b/14.0.0/gentoo/77_all_Revert_arm_Add_Advanced_SIMD_cbranch_implementation.patch @@ -0,0 +1,341 @@ +From f7dfd5052edeaa7f433bc296fd3c8b9c5239edb3 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Mon, 8 Jan 2024 07:09:10 + +Subject: [PATCH 3/8] Revert "arm: Add Advanced SIMD cbranch implementation" + +This reverts commit d9dd04f9f17e36854387899eb630c64a0c8d1a17. + +Bug: https://gcc.gnu.org/PR113135 +Bug: https://gcc.gnu.org/PR113136 +Bug: https://gcc.gnu.org/PR113137 +Signed-off-by: Sam James +--- + gcc/config/arm/neon.md| 49 --- + .../gcc.dg/vect/vect-early-break_2.c | 2 +- + .../gcc.dg/vect/vect-early-break_7.c | 2 +- + .../gcc.dg/vect/vect-early-break_75.c | 2 +- + .../gcc.dg/vect/vect-early-break_77.c | 2 +- + .../gcc.dg/vect/vect-early-break_82.c | 2 +- + .../gcc.dg/vect/vect-early-break_88.c | 2 +- + .../gcc.target/arm/vect-early-break-cbranch.c | 138 -- + gcc/testsuite/lib/target-supports.exp | 7 - + 9 files changed, 6 insertions(+), 200 deletions(-) + delete mode 100644 gcc/testsuite/gcc.target/arm/vect-early-break-cbranch.c + +diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md +index bb6e28ff4e74..91ca7e804555 100644 +--- a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md +@@ -408,55 +408,6 @@ (define_insn "vec_extract" + [(set_attr "type" "neon_store1_one_lane,neon_to_gp")] + ) + +-;; Patterns comparing two vectors and conditionally jump. +-;; Avdanced SIMD lacks a vector != comparison, but this is a quite common +-;; operation.
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: ff3336c450f32a41e1907a87b2e12aedbdc2c209 Author: Sam James gentoo org> AuthorDate: Sun Dec 31 22:45:26 2023 + Commit: Sam James gentoo org> CommitDate: Sun Dec 31 23:02:35 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=ff3336c4 14.0.0: cut patchset 14 13 seems to have been a mess where I'd already done it and used it in 14.0.0_pre20231224-r1. Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index b0f3170..b3ba265 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,6 +1,10 @@ -13 ?? ??? +14 31 Dec 2023 -+ 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch + + 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch + +13 25 Dec 2023 + + N/A 12 25 Dec 2023
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 3dc22ec055dae66d6f92b138ae946f284d0a6abb Author: Sam James gentoo org> AuthorDate: Tue Dec 26 18:51:09 2023 + Commit: Sam James gentoo org> CommitDate: Tue Dec 26 18:51:31 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3dc22ec0 Revert "14.0.0: drop erroneous patch" This reverts commit 5055fa1426b3a9ebab80d799ea30b6c65ad2ac74. We need this for master/. Signed-off-by: Sam James gentoo.org> ...le-end-explicitly-initialize-vec_stmts-PR.patch | 32 ++ 14.0.0/gentoo/README.history | 5 ++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch b/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch new file mode 100644 index 000..b113f1e --- /dev/null +++ b/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch @@ -0,0 +1,32 @@ +From a648fe2c0121414ac82926e9f8a70b33e347b930 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Mon, 25 Dec 2023 16:57:10 + +Subject: [PATCH 1/7] Revert "middle-end: explicitly initialize vec_stmts + [PR113132]" + +This reverts commit fd032cce216e003d58b2394f7e61b03dee27e81a. + +Bug: https://gcc.gnu.org/PR113135 +Bug: https://gcc.gnu.org/PR113136 +Bug: https://gcc.gnu.org/PR113137 +Signed-off-by: Sam James +--- + gcc/tree-vect-loop.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +index f51ae3e719e7..88261a3a4f57 100644 +--- a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc +@@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, + exit_bb = loop_exit->dest; + exit_gsi = gsi_after_labels (exit_bb); + reduc_inputs.create (slp_node ? vec_num : ncopies); +- vec vec_stmts = vNULL; ++ vec vec_stmts; + for (unsigned i = 0; i < vec_num; i++) + { + gimple_seq stmts = NULL; +-- +2.43.0 + diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 90ab9ed..b0f3170 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,10 +1,9 @@ -13 25 Dec 2023 +13 ?? ??? - - 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch ++ 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch 12 25 Dec 2023 - + 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch + 76_all_Revert-testsuite-un-xfail-TSVC-loops-that-check-for-.patch + 77_all_Revert-testsuite-Add-tests-for-early-break-vectoriza.patch + 78_all_Revert-AArch64-Add-implementation-for-vector-cbranch.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 5055fa1426b3a9ebab80d799ea30b6c65ad2ac74 Author: Sam James gentoo org> AuthorDate: Mon Dec 25 17:09:58 2023 + Commit: Sam James gentoo org> CommitDate: Mon Dec 25 17:09:58 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=5055fa14 14.0.0: drop erroneous patch 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch reverts something which wasn't in the snapshot (but is a fix for the vect stuff). Signed-off-by: Sam James gentoo.org> ...le-end-explicitly-initialize-vec_stmts-PR.patch | 32 -- 14.0.0/gentoo/README.history | 4 +++ 2 files changed, 4 insertions(+), 32 deletions(-) diff --git a/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch b/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch deleted file mode 100644 index b113f1e..000 --- a/14.0.0/gentoo/75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch +++ /dev/null @@ -1,32 +0,0 @@ -From a648fe2c0121414ac82926e9f8a70b33e347b930 Mon Sep 17 00:00:00 2001 -From: Sam James -Date: Mon, 25 Dec 2023 16:57:10 + -Subject: [PATCH 1/7] Revert "middle-end: explicitly initialize vec_stmts - [PR113132]" - -This reverts commit fd032cce216e003d58b2394f7e61b03dee27e81a. - -Bug: https://gcc.gnu.org/PR113135 -Bug: https://gcc.gnu.org/PR113136 -Bug: https://gcc.gnu.org/PR113137 -Signed-off-by: Sam James - gcc/tree-vect-loop.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/gcc/tree-vect-loop.cc b/gcc/tree-vect-loop.cc -index f51ae3e719e7..88261a3a4f57 100644 a/gcc/tree-vect-loop.cc -+++ b/gcc/tree-vect-loop.cc -@@ -6207,7 +6207,7 @@ vect_create_epilog_for_reduction (loop_vec_info loop_vinfo, - exit_bb = loop_exit->dest; - exit_gsi = gsi_after_labels (exit_bb); - reduc_inputs.create (slp_node ? vec_num : ncopies); -- vec vec_stmts = vNULL; -+ vec vec_stmts; - for (unsigned i = 0; i < vec_num; i++) - { - gimple_seq stmts = NULL; --- -2.43.0 - diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index ad540db..90ab9ed 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +13 25 Dec 2023 + + - 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch + 12 25 Dec 2023 + 75_all_Revert-middle-end-explicitly-initialize-vec_stmts-PR.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 2250dc0cc8c46999ad1c1d79b9aeed9056459bb6 Author: Sam James gentoo org> AuthorDate: Sun Dec 17 23:59:55 2023 + Commit: Sam James gentoo org> CommitDate: Sun Dec 17 23:59:55 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=2250dc0c 14.0.0: cut 11 patchset Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index c535708..802a99a 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -11 ?? ??? 2023 +11 17 Dec 2023 - 76_all_PR112869_cxx.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 8280462977fca22bf0c859ca8427b66ac7e665ab Author: Sam James gentoo org> AuthorDate: Thu Dec 14 21:23:01 2023 + Commit: Sam James gentoo org> CommitDate: Thu Dec 14 21:23:01 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=82804629 14.0.0: drop obsolete 76_all_PR112869_cxx.patch Fixed upstream. Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/76_all_PR112869_cxx.patch | 20 14.0.0/gentoo/README.history| 4 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/14.0.0/gentoo/76_all_PR112869_cxx.patch b/14.0.0/gentoo/76_all_PR112869_cxx.patch deleted file mode 100644 index 7ec000b..000 --- a/14.0.0/gentoo/76_all_PR112869_cxx.patch +++ /dev/null @@ -1,20 +0,0 @@ -https://gcc.gnu.org/PR112869 (https://gcc.gnu.org/PR112869#c2) -https://gcc.gnu.org/PR112907 a/gcc/cp/cp-gimplify.cc -+++ b/gcc/cp/cp-gimplify.cc -@@ -1177,13 +1177,9 @@ cp_fold_immediate_r (tree *stmt_p, int *walk_subtrees, void *data_) - ? tf_error : tf_none); - const tree_code code = TREE_CODE (stmt); - -- /* No need to look into types or unevaluated operands. -- NB: This affects cp_fold_r as well. */ -+ /* No need to look into types or unevaluated operands. */ - if (TYPE_P (stmt) || unevaluated_p (code) || in_immediate_context ()) --{ -- *walk_subtrees = 0; -- return NULL_TREE; --} -+return NULL_TREE; - - tree decl = NULL_TREE; - bool call_p = false; diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 4359548..c535708 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +11 ?? ??? 2023 + + - 76_all_PR112869_cxx.patch + 10 10 Dec 2023 - 75_all_PR112572-missing-notes-update.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 6ea4cfc078ef8e37f206e79fc8940fa109237cd1 Author: Sam James gentoo org> AuthorDate: Sun Dec 10 22:42:14 2023 + Commit: Sam James gentoo org> CommitDate: Sun Dec 10 22:42:14 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6ea4cfc0 14.0.0: cut patchset 10 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index a8dc8d4..4359548 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -10 ?? ??? 2023 +10 10 Dec 2023 - 75_all_PR112572-missing-notes-update.patch + 76_all_PR112869_cxx.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: cf2708c1e396fac46e374abba252b8b7b10f3270 Author: Sam James gentoo org> AuthorDate: Thu Dec 7 18:39:36 2023 + Commit: Sam James gentoo org> CommitDate: Thu Dec 7 18:40:00 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=cf2708c1 14.0.0: add botan/openmpt ICE patch Bug: https://gcc.gnu.org/PR112869 Bug: https://gcc.gnu.org/PR112907 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/76_all_PR112869_cxx.patch | 20 14.0.0/gentoo/README.history| 1 + 2 files changed, 21 insertions(+) diff --git a/14.0.0/gentoo/76_all_PR112869_cxx.patch b/14.0.0/gentoo/76_all_PR112869_cxx.patch new file mode 100644 index 000..7ec000b --- /dev/null +++ b/14.0.0/gentoo/76_all_PR112869_cxx.patch @@ -0,0 +1,20 @@ +https://gcc.gnu.org/PR112869 (https://gcc.gnu.org/PR112869#c2) +https://gcc.gnu.org/PR112907 +--- a/gcc/cp/cp-gimplify.cc b/gcc/cp/cp-gimplify.cc +@@ -1177,13 +1177,9 @@ cp_fold_immediate_r (tree *stmt_p, int *walk_subtrees, void *data_) + ? tf_error : tf_none); + const tree_code code = TREE_CODE (stmt); + +- /* No need to look into types or unevaluated operands. +- NB: This affects cp_fold_r as well. */ ++ /* No need to look into types or unevaluated operands. */ + if (TYPE_P (stmt) || unevaluated_p (code) || in_immediate_context ()) +-{ +- *walk_subtrees = 0; +- return NULL_TREE; +-} ++return NULL_TREE; + + tree decl = NULL_TREE; + bool call_p = false; diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index dd1bec0..a8dc8d4 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,6 +1,7 @@ 10 ?? ??? 2023 - 75_all_PR112572-missing-notes-update.patch + + 76_all_PR112869_cxx.patch 9 20 Nov 2023
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 79bab9e66fc190741117eb485fe425aeb5096b0a Author: Sam James gentoo org> AuthorDate: Wed Dec 6 10:51:25 2023 + Commit: Sam James gentoo org> CommitDate: Wed Dec 6 10:52:16 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=79bab9e6 14.0.0: drop 75_all_PR112572-missing-notes-update.patch Per https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112572#c33, this shouldn't be needed anymore. Bug: https://gcc.gnu.org/PR112760 Bug: https://gcc.gnu.org/PR112572 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch | 14 -- 14.0.0/gentoo/README.history | 4 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch b/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch deleted file mode 100644 index 33d2e4f..000 --- a/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch +++ /dev/null @@ -1,14 +0,0 @@ -https://gcc.gnu.org/PR112568 -https://gcc.gnu.org/PR112572 (specifically https://gcc.gnu.org/PR112572#c18 for the patch) -https://bugs.gentoo.org/917496 -https://bugs.gentoo.org/917486 a/gcc/compare-elim.cc -+++ b/gcc/compare-elim.cc -@@ -908,6 +908,7 @@ static unsigned int - execute_compare_elim_after_reload (void) - { - df_set_flags (DF_LR_RUN_DCE); -+ df_note_add_problem (); - df_analyze (); - - gcc_checking_assert (!all_compares.exists ()); diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 9d7a939..dd1bec0 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +10 ?? ??? 2023 + + - 75_all_PR112572-missing-notes-update.patch + 9 20 Nov 2023 + 75_all_PR112572-missing-notes-update.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: de8083fe20394a4c7d05f60631b7524a26f39986 Author: Sam James gentoo org> AuthorDate: Mon Nov 20 06:52:35 2023 + Commit: Sam James gentoo org> CommitDate: Mon Nov 20 06:52:42 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=de8083fe 14.0.0: cut patchset 9 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 415eb03..9d7a939 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -9 ?? ??? 2023 +9 20 Nov 2023 + 75_all_PR112572-missing-notes-update.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: a701b1aeb797c8a449217874a9675547dc80fca3 Author: Sam James gentoo org> AuthorDate: Sun Nov 19 11:05:31 2023 + Commit: Sam James gentoo org> CommitDate: Sun Nov 19 11:05:31 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a701b1ae 75_all_PR112572-missing-notes-update.patch: add specific comment ref Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch b/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch index 74e42d3..33d2e4f 100644 --- a/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch +++ b/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch @@ -1,5 +1,5 @@ https://gcc.gnu.org/PR112568 -https://gcc.gnu.org/PR112572 +https://gcc.gnu.org/PR112572 (specifically https://gcc.gnu.org/PR112572#c18 for the patch) https://bugs.gentoo.org/917496 https://bugs.gentoo.org/917486 --- a/gcc/compare-elim.cc
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: fb2901cba5026337511402c7745b2eb317e9b35c Author: Sam James gentoo org> AuthorDate: Sun Nov 19 11:03:42 2023 + Commit: Sam James gentoo org> CommitDate: Sun Nov 19 11:03:52 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=fb2901cb 14.0.0: add 75_all_PR112572-missing-notes-update.patch Fixes LLVM, mesa, pipewire miscompilation. Bug: https://gcc.gnu.org/PR112568 Bug: https://gcc.gnu.org/PR112572 Bug: https://bugs.gentoo.org/917496 Bug: https://bugs.gentoo.org/917486 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch | 14 ++ 14.0.0/gentoo/README.history | 4 2 files changed, 18 insertions(+) diff --git a/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch b/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch new file mode 100644 index 000..74e42d3 --- /dev/null +++ b/14.0.0/gentoo/75_all_PR112572-missing-notes-update.patch @@ -0,0 +1,14 @@ +https://gcc.gnu.org/PR112568 +https://gcc.gnu.org/PR112572 +https://bugs.gentoo.org/917496 +https://bugs.gentoo.org/917486 +--- a/gcc/compare-elim.cc b/gcc/compare-elim.cc +@@ -908,6 +908,7 @@ static unsigned int + execute_compare_elim_after_reload (void) + { + df_set_flags (DF_LR_RUN_DCE); ++ df_note_add_problem (); + df_analyze (); + + gcc_checking_assert (!all_compares.exists ()); diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index bcf2394..415eb03 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +9 ?? ??? 2023 + + + 75_all_PR112572-missing-notes-update.patch + 8 05 Nov 2023 - 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 35bb529f420ff5863fdae51049e6935ab927ff3d Author: Sam James gentoo org> AuthorDate: Tue Nov 14 07:10:56 2023 + Commit: Sam James gentoo org> CommitDate: Tue Nov 14 07:11:13 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=35bb529f 14.0.0: drop 25_all_lto-intl-workaround-PR95194.patch The built-in intl/ was dropped in upstream commit fbe4e64365ec7fc68536bbf351c2fb246afaf7e6 by our very own Arsen, so this is obsolete. Bug: https://bugs.gentoo.org/723370 Bug: https://gcc.gnu.org/PR95194 Signed-off-by: Sam James gentoo.org> .../gentoo/25_all_lto-intl-workaround-PR95194.patch | 20 1 file changed, 20 deletions(-) diff --git a/14.0.0/gentoo/25_all_lto-intl-workaround-PR95194.patch b/14.0.0/gentoo/25_all_lto-intl-workaround-PR95194.patch deleted file mode 100644 index 9613216..000 --- a/14.0.0/gentoo/25_all_lto-intl-workaround-PR95194.patch +++ /dev/null @@ -1,20 +0,0 @@ -Trick libintl not to use '_INTL_REDIRECT_ASM' mode as it's -incompatible with LTO builds. - -glibc does not normally use libintl implementations and uses -it's own primitives. But musl ond others do fall back to libintl. - -Reported-by: Andrew Savchenko -Bug: https://bugs.gentoo.org/723370 -Bug: https://gcc.gnu.org/PR95194 a/intl/libgnuintl.h -+++ b/intl/libgnuintl.h -@@ -93,7 +93,7 @@ extern "C" { -If he doesn't, we choose the method. A third possible method is -_INTL_REDIRECT_ASM, supported only by GCC. */ - #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) --# if __GNUC__ >= 2 && !defined __APPLE_CC__ && (defined __STDC__ || defined __cplusplus) -+# if __GNUC__ >= 2 && !defined __APPLE_CC__ && (defined __STDC__ || defined __cplusplus) && USE_ASM_ALIASES_THAT_BREAK_LTO - # define _INTL_REDIRECT_ASM - # else - # ifdef __cplusplus
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 8474a5ef92cb94c0a6a0dfc0ca7a152fe62a9546 Author: Sam James gentoo org> AuthorDate: Sun Nov 5 22:39:45 2023 + Commit: Sam James gentoo org> CommitDate: Sun Nov 5 22:39:45 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=8474a5ef 14.0.0: cut new patchset Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 4 1 file changed, 4 insertions(+) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 4bd7684..bcf2394 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,7 @@ +8 05 Nov 2023 + + - 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch + 7 28 Oct 2023 U 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 2b02f083e67e97f8187d3ec023c3d281f49232c0 Author: Sam James gentoo org> AuthorDate: Tue Oct 31 19:56:42 2023 + Commit: Sam James gentoo org> CommitDate: Tue Oct 31 19:56:42 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=2b02f083 14.0.0: drop upstreamed 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch For the benefit of users. Signed-off-by: Sam James gentoo.org> ...genemit-Split-insn-emit.cc-into-ten-files.patch | 1405 1 file changed, 1405 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch deleted file mode 100644 index bd31760..000 --- a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch +++ /dev/null @@ -1,1405 +0,0 @@ -https://gcc.gnu.org/PR54179 -https://inbox.sourceware.org/gcc-patches/de0f7bdc-d236-4f5b-9504-d5bfb215d...@gmail.com/ - -From a3804c98c5f73c02b3732b06a15dc4a397e60dad Mon Sep 17 00:00:00 2001 -From: Robin Dapp -Date: Fri, 27 Oct 2023 21:04:25 +0200 -Subject: [PATCH] genemit: Split insn-emit.cc into ten files. - -After working with Sam off-list (thanks) I managed to get hppa to -build. Initially it looked as if hppa just had a very small number of -instruction patterns so we wouldn't generate all 10 output files. -However, the actual issue (which we will only hit with a low -pattern count) was with counting all the patterns vs only counting -the patterns that will be output. A wrong pattern count lead to -prematurely stopping to write output files. - -With that corrected, hppa "just works" until I hit linker errors -due to relocations - most likely unrelated: - -bin/ld: unwind-dw2-fde-dip_s.o(.data.rel.ro+0): cannot handle -R_PARISC_FPTR64 for __pthread_key_create@@GLIBC_2.34 - -Attached is v3 that has been bootstrapped and tested on x86 and power10, -aarch64 bootstrap was ok, testsuite is still running. A riscv build and -testsuite run was successful as well. - -Regards - Robin - ->From 248744c328440bff9cc339d2bf622852cbaac343 Mon Sep 17 00:00:00 2001 -From: Robin Dapp -Date: Thu, 12 Oct 2023 11:23:26 +0200 -Subject: [PATCH v3] genemit: Split insn-emit.cc into several partitions. - -On riscv insn-emit.cc has grown to over 1.2 mio lines of code and -compiling it takes considerable time. -Therefore, this patch adjust genemit to create several partitions -(insn-emit-1.cc to insn-emit-n.cc). The available patterns are -written to the given files in a sequential fashion. - -Similar to match.pd a configure option --with-emitinsn-partitions=num -is introduced that makes the number of partition configurable. - -gcc/ChangeLog: - - PR bootstrap/84402 - PR target/111600 - - * Makefile.in: Handle split insn-emit.cc. - * configure: Regenerate. - * configure.ac: Add --with-insnemit-partitions. - * genemit.cc (output_peephole2_scratches): Print to file instead - of stdout. - (print_code): Ditto. - (gen_rtx_scratch): Ditto. - (gen_exp): Ditto. - (gen_emit_seq): Ditto. - (emit_c_code): Ditto. - (gen_insn): Ditto. - (gen_expand): Ditto. - (gen_split): Ditto. - (output_add_clobbers): Ditto. - (output_added_clobbers_hard_reg_p): Ditto. - (print_overload_arguments): Ditto. - (print_overload_test): Ditto. - (handle_overloaded_code_for): Ditto. - (handle_overloaded_gen): Ditto. - (print_header): New function. - (handle_arg): New function. - (main): Split output into 10 files. - * gensupport.cc (count_patterns): New function. - * gensupport.h (count_patterns): Define. - * read-md.cc (md_reader::print_md_ptr_loc): Add file argument. - * read-md.h (class md_reader): Change definition. - gcc/Makefile.in | 36 ++- - gcc/configure | 24 +- - gcc/configure.ac | 13 ++ - gcc/genemit.cc| 542 +- - gcc/gensupport.cc | 55 + - gcc/gensupport.h | 1 + - gcc/read-md.cc| 4 +- - gcc/read-md.h | 2 +- - 8 files changed, 422 insertions(+), 255 deletions(-) - -diff --git a/gcc/Makefile.in b/gcc/Makefile.in -index 91d6bfbea4d0..d8bfad8de154 100644 a/gcc/Makefile.in -+++ b/gcc/Makefile.in -@@ -236,6 +236,13 @@ GIMPLE_MATCH_PD_SEQ_O = $(patsubst %, gimple-match-%.o, $(MATCH_SPLITS_SEQ)) - GENERIC_MATCH_PD_SEQ_SRC = $(patsubst %, generic-match-%.cc, $(MATCH_SPLITS_SEQ)) - GENERIC_MATCH_PD_SEQ_O = $(patsubst %, generic-match-%.o, $(MATCH_SPLITS_SEQ)) - -+# The number of splits to be made for the insn-emit files. -+NUM_INSNEMIT_SPLITS = @DEFAULT_INSNEMIT_PARTITIONS@ -+INSNEMIT_SPLITS_SEQ = $(wordlist 1,$(NUM_INSNEMIT_SPLITS),$(one_to_)) -+INSNEMIT_SEQ_SRC = $(patsubst %, insn-emit-%.cc, $(INSNEMIT_SPLITS_SEQ)) -+INSNEMIT_SEQ_TMP = $(patsubst %, tmp-emit-%.cc, $(INSNEMIT_SPLITS_SEQ)) -+INSNEMIT_SEQ_O = $(patsu
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: a8500ccbb951d8e6b395cab78c3a67be3f7c0018 Author: Sam James gentoo org> AuthorDate: Fri Oct 27 23:41:21 2023 + Commit: Sam James gentoo org> CommitDate: Fri Oct 27 23:41:21 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a8500ccb 14.0.0: update 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch Signed-off-by: Sam James gentoo.org> ...genemit-Split-insn-emit.cc-into-ten-files.patch | 154 - 14.0.0/gentoo/README.history | 4 + 2 files changed, 122 insertions(+), 36 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch index 988c0f4..bd31760 100644 --- a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch +++ b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch @@ -1,10 +1,36 @@ https://gcc.gnu.org/PR54179 https://inbox.sourceware.org/gcc-patches/de0f7bdc-d236-4f5b-9504-d5bfb215d...@gmail.com/ -From 544943ea6b4d0e9a57408ca92464e22b84ffcb12 Mon Sep 17 00:00:00 2001 +From a3804c98c5f73c02b3732b06a15dc4a397e60dad Mon Sep 17 00:00:00 2001 From: Robin Dapp -Date: Fri, 20 Oct 2023 13:27:41 +0200 -Subject: [PATCH] genemit: Split insn-emit.cc into several partitions. +Date: Fri, 27 Oct 2023 21:04:25 +0200 +Subject: [PATCH] genemit: Split insn-emit.cc into ten files. + +After working with Sam off-list (thanks) I managed to get hppa to +build. Initially it looked as if hppa just had a very small number of +instruction patterns so we wouldn't generate all 10 output files. +However, the actual issue (which we will only hit with a low +pattern count) was with counting all the patterns vs only counting +the patterns that will be output. A wrong pattern count lead to +prematurely stopping to write output files. + +With that corrected, hppa "just works" until I hit linker errors +due to relocations - most likely unrelated: + +bin/ld: unwind-dw2-fde-dip_s.o(.data.rel.ro+0): cannot handle +R_PARISC_FPTR64 for __pthread_key_create@@GLIBC_2.34 + +Attached is v3 that has been bootstrapped and tested on x86 and power10, +aarch64 bootstrap was ok, testsuite is still running. A riscv build and +testsuite run was successful as well. + +Regards + Robin + +>From 248744c328440bff9cc339d2bf622852cbaac343 Mon Sep 17 00:00:00 2001 +From: Robin Dapp +Date: Thu, 12 Oct 2023 11:23:26 +0200 +Subject: [PATCH v3] genemit: Split insn-emit.cc into several partitions. On riscv insn-emit.cc has grown to over 1.2 mio lines of code and compiling it takes considerable time. @@ -46,6 +72,19 @@ gcc/ChangeLog: * gensupport.h (count_patterns): Define. * read-md.cc (md_reader::print_md_ptr_loc): Add file argument. * read-md.h (class md_reader): Change definition. +--- + gcc/Makefile.in | 36 ++- + gcc/configure | 24 +- + gcc/configure.ac | 13 ++ + gcc/genemit.cc| 542 +- + gcc/gensupport.cc | 55 + + gcc/gensupport.h | 1 + + gcc/read-md.cc| 4 +- + gcc/read-md.h | 2 +- + 8 files changed, 422 insertions(+), 255 deletions(-) + +diff --git a/gcc/Makefile.in b/gcc/Makefile.in +index 91d6bfbea4d0..d8bfad8de154 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -236,6 +236,13 @@ GIMPLE_MATCH_PD_SEQ_O = $(patsubst %, gimple-match-%.o, $(MATCH_SPLITS_SEQ)) @@ -71,7 +110,7 @@ gcc/ChangeLog: insn-extract.o \ insn-latencytab.o \ insn-modes.o \ -@@ -1856,7 +1863,8 @@ TREECHECKING = @TREECHECKING@ +@@ -1857,7 +1864,8 @@ TREECHECKING = @TREECHECKING@ FULL_DRIVER_NAME=$(target_noncanonical)-gcc-$(version)$(exeext) MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \ @@ -81,7 +120,7 @@ gcc/ChangeLog: insn-attr.h insn-attr-common.h insn-attrtab.cc insn-dfatab.cc \ insn-latencytab.cc insn-opinit.cc insn-opinit.h insn-preds.cc insn-constants.h \ tm-preds.h tm-constrs.h checksum-options $(GIMPLE_MATCH_PD_SEQ_SRC) \ -@@ -2488,11 +2496,11 @@ $(common_out_object_file): $(common_out_file) +@@ -2489,11 +2497,11 @@ $(common_out_object_file): $(common_out_file) # and compile them. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h insn-constants.h \ @@ -98,7 +137,7 @@ gcc/ChangeLog: # Dependencies for the md file. The first time through, we just assume # the md file itself and the generated dependency file (in order to get -@@ -2515,7 +2523,7 @@ s-mddeps: $(md_file) $(MD_INCLUDES) build/genmddeps$(build_exeext) +@@ -2516,7 +2524,7 @@ s-mddeps: $(md_file) $(MD_INCLUDES) build/genmddeps$(build_exeext) simple_rtl_generated_h= insn-attr.h insn-attr-common.h insn-codes.h \ insn-config.h insn-flags.h insn-target-def.h @@ -107,7 +146,7 @@ gcc/ChangeLog: insn-extract.cc insn-output.cc \ insn-peep.cc insn-recog.cc -@@
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: aabcc9fe95c292c890038c9ba56c27cada2070bc Author: Sam James gentoo org> AuthorDate: Sun Oct 22 22:51:45 2023 + Commit: Sam James gentoo org> CommitDate: Sun Oct 22 22:51:51 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=aabcc9fe 14.0.0: rebase 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch Signed-off-by: Sam James gentoo.org> ...genemit-Split-insn-emit.cc-into-ten-files.patch | 68 +++--- 14.0.0/gentoo/README.history | 4 ++ 2 files changed, 24 insertions(+), 48 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch index 723d78a..988c0f4 100644 --- a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch +++ b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch @@ -1,3 +1,6 @@ +https://gcc.gnu.org/PR54179 +https://inbox.sourceware.org/gcc-patches/de0f7bdc-d236-4f5b-9504-d5bfb215d...@gmail.com/ + From 544943ea6b4d0e9a57408ca92464e22b84ffcb12 Mon Sep 17 00:00:00 2001 From: Robin Dapp Date: Fri, 20 Oct 2023 13:27:41 +0200 @@ -43,19 +46,6 @@ gcc/ChangeLog: * gensupport.h (count_patterns): Define. * read-md.cc (md_reader::print_md_ptr_loc): Add file argument. * read-md.h (class md_reader): Change definition. - gcc/Makefile.in | 36 +++- - gcc/configure | 24 ++- - gcc/configure.ac | 13 ++ - gcc/genemit.cc| 536 +- - gcc/gensupport.cc | 36 - gcc/gensupport.h | 1 + - gcc/read-md.cc| 4 +- - gcc/read-md.h | 2 +- - 8 files changed, 397 insertions(+), 255 deletions(-) - -diff --git a/gcc/Makefile.in b/gcc/Makefile.in -index a25a1e32fbc..dc63c67409b 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -236,6 +236,13 @@ GIMPLE_MATCH_PD_SEQ_O = $(patsubst %, gimple-match-%.o, $(MATCH_SPLITS_SEQ)) @@ -72,7 +62,7 @@ index a25a1e32fbc..dc63c67409b 100644 # These files are to have specific diagnostics suppressed, or are not to # be subject to -Werror: # flex output may yield harmless "no previous prototype" warnings -@@ -1354,7 +1361,7 @@ OBJS = \ +@@ -1356,7 +1363,7 @@ OBJS = \ insn-attrtab.o \ insn-automata.o \ insn-dfatab.o \ @@ -81,7 +71,7 @@ index a25a1e32fbc..dc63c67409b 100644 insn-extract.o \ insn-latencytab.o \ insn-modes.o \ -@@ -1854,7 +1861,8 @@ TREECHECKING = @TREECHECKING@ +@@ -1856,7 +1863,8 @@ TREECHECKING = @TREECHECKING@ FULL_DRIVER_NAME=$(target_noncanonical)-gcc-$(version)$(exeext) MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \ @@ -91,7 +81,7 @@ index a25a1e32fbc..dc63c67409b 100644 insn-attr.h insn-attr-common.h insn-attrtab.cc insn-dfatab.cc \ insn-latencytab.cc insn-opinit.cc insn-opinit.h insn-preds.cc insn-constants.h \ tm-preds.h tm-constrs.h checksum-options $(GIMPLE_MATCH_PD_SEQ_SRC) \ -@@ -2483,11 +2491,11 @@ $(common_out_object_file): $(common_out_file) +@@ -2488,11 +2496,11 @@ $(common_out_object_file): $(common_out_file) # and compile them. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h insn-constants.h \ @@ -108,7 +98,7 @@ index a25a1e32fbc..dc63c67409b 100644 # Dependencies for the md file. The first time through, we just assume # the md file itself and the generated dependency file (in order to get -@@ -2510,7 +2518,7 @@ s-mddeps: $(md_file) $(MD_INCLUDES) build/genmddeps$(build_exeext) +@@ -2515,7 +2523,7 @@ s-mddeps: $(md_file) $(MD_INCLUDES) build/genmddeps$(build_exeext) simple_rtl_generated_h= insn-attr.h insn-attr-common.h insn-codes.h \ insn-config.h insn-flags.h insn-target-def.h @@ -117,7 +107,7 @@ index a25a1e32fbc..dc63c67409b 100644 insn-extract.cc insn-output.cc \ insn-peep.cc insn-recog.cc -@@ -2539,8 +2547,20 @@ $(simple_generated_c:insn-%.cc=s-%): s-%: build/gen%$(build_exeext) +@@ -2544,8 +2552,20 @@ $(simple_generated_c:insn-%.cc=s-%): s-%: build/gen%$(build_exeext) $(SHELL) $(srcdir)/../move-if-change tmp-$*.cc insn-$*.cc $(STAMP) s-$* @@ -139,10 +129,10 @@ index a25a1e32fbc..dc63c67409b 100644 s-check : build/gencheck$(build_exeext) $(RUN_GEN) build/gencheck$(build_exeext) > tmp-check.h diff --git a/gcc/configure b/gcc/configure -index 9f5b7081992..cf35b8fac89 100755 +index c47a8c5..0e4e0e4 100755 --- a/gcc/configure +++ b/gcc/configure -@@ -842,6 +842,7 @@ enable_gcov +@@ -844,6 +844,7 @@ enable_gcov enable_shared enable_fixed_point enable_decimal_float @@ -150,7 +140,7 @@ index 9f5b7081992..cf35b8fac89 100755 DEFAULT_MATCHPD_PARTITIONS with_float with_cpu -@@ -971,6 +972,7 @@ enable_multilib +@@ -973,6 +974,7 @@ enable_multilib enable_multiarch with_stack_clash_protection_guard_size with_matchpd_partitions @@ -158
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 990901f6580beef856459bb679b3f6f69d410b85 Author: Sam James gentoo org> AuthorDate: Sat Oct 21 17:42:04 2023 + Commit: Sam James gentoo org> CommitDate: Sat Oct 21 17:42:20 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=990901f6 14.0.0: update 75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch Pull in a version from private email w/ Robin for more testing. Signed-off-by: Sam James gentoo.org> ...genemit-Split-insn-emit.cc-into-ten-files.patch | 142 +++-- 14.0.0/gentoo/README.history | 4 + 2 files changed, 24 insertions(+), 122 deletions(-) diff --git a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch index dbcea97..723d78a 100644 --- a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch +++ b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch @@ -1,111 +1,13 @@ -https://gcc.gnu.org/PR54179 -https://inbox.sourceware.org/gcc-patches/de0f7bdc-d236-4f5b-9504-d5bfb215d...@gmail.com/ - -From mboxrd@z Thu Jan 1 00:00:00 1970 -Return-Path: -Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) - by sourceware.org (Postfix) with ESMTPS id 494063858D33 - for ; Mon, 16 Oct 2023 10:17:21 + (GMT) -DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 494063858D33 -Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com -Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com -ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 494063858D33 -Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::435 -ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697451446; cv=none; - b=p7qdXp6tA02vcm8FYp8Z94RsTNBTMF12iWlVcXVLWFaSW8HGwwCYhMGYoGFaifZQRu4UKyuAB+IzEF6a/yAg4YIoSatzLygSXd8C4Y5pTzNOedtsXKySOf2H5tU0JllZhFiL0j839yK0ULkru902Fm5qYfCWOI/oclFGFv0QJhk= -ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; - t=1697451446; c=relaxed/simple; - bh=F5nvjfODgAkwvN6oz045m/y2cCq1Y5w/bjL6/Zx7/us=; - h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Irn6EDwgJ++gSjzeSooV3KQnHee12GYc2RQmTDoYZo/FSdddOhiPTfdaC7P29HmOXa4CPBOS8Yv9BTZMwm6YLK9J2wCQws5N76sMTuINsJ4seyvCF4hUO/2icjNn/K1NCpiAh/hGfqdO7ASiqbVBoFfgM7fwtCOYLKF6sIY1lyM= -ARC-Authentication-Results: i=1; server2.sourceware.org -Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32d834ec222so4107319f8f.0 -for ; Mon, 16 Oct 2023 03:17:21 -0700 (PDT) -DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; -d=gmail.com; s=20230601; t=1697451440; x=1698056240; darn=gcc.gnu.org; -h=content-transfer-encoding:in-reply-to:from:references:to - :content-language:subject:cc:user-agent:mime-version:date:message-id - :from:to:cc:subject:date:message-id:reply-to; -bh=wq5w+s2m/P53eb5oT6XaK+NiaOj7NqTTS7VH5l0hPUk=; -b=ir8fQ9LhX/rsjkKQE99tm5M/K+iNNIYZ/1cdZ5bz4WDndMrk52oidsfzruyMfSbRhB - rHSI1uSAzTr3Hp0f3ugYQInO3KFgdrvSiZ1sUhIcSA9SG7fCECczgD7GcW6OZn6F8c9u - XbFgqbWLIFtqXeKsmQs+CY2nS4KS/CRT9eoUafES8rZNYXDOe9QVbHjblx7rtXWO2HXQ - lmfzqTktf3I7JxtYpl0r0MYMcjSfcq0DOuL80NWyMDlBWOQT3IBAdyulrLAEW+jH/Z8p - xQ15SULgu0m2yiv/KGWXTkZfr7tvRGnSmmdtRRH0FCoXSf8jg/zHFTkl/j+SzlSzDwGs - c1qg== -X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; -d=1e100.net; s=20230601; t=1697451440; x=1698056240; -h=content-transfer-encoding:in-reply-to:from:references:to - :content-language:subject:cc:user-agent:mime-version:date:message-id - :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; -bh=wq5w+s2m/P53eb5oT6XaK+NiaOj7NqTTS7VH5l0hPUk=; -b=kKfXLuOWBPVcAyFOUh31XizZ+aCfxMvezPMmblFS/UpzD2W/C0uFKwEGnChfefXi2/ - +bzYReU5vtLu8pAloncEatu5L4GV1u+WdTSbW1T5xIy+5oMx++9PpyY4AE247J0yd86k - 1y7iJTKapjRfltZuFYEXFXtk+EUb6KM8JtlwJvoxl1WA5eUMF3QS7mrB/a4aM4x6i+Eg - YlOoTXYO0bLGOCdeXOLJfjDEkck1ELrHj2LtlRHyrlB9cfOgf17T6ndeeHGFfXNQHPZ9 - 6ozlhvhckpJQgI9lmwx9y62sUeq7EvLbrq6iRQm/urmU7ONjSXtvH9MhuU6vUBxvHZ7m - L7/Q== -X-Gm-Message-State: AOJu0Yx8eFwSIp03QtdxQpmlUlQqKK5PYRJxvpOd/sAQ1a6DUl745e7C - /BMIbVYdWvfmdTlOA4Fq7wwu2tV7IwY= -X-Google-Smtp-Source: AGHT+IHxbooDFrEU9aYJYA4rfQo2Hg5vBRYXtzpX5blf0iOYdzDMzsRxuyqHl6Jlfcy9/43ovuJMnQ== -X-Received: by 2002:a5d:4402:0:b0:32d:8907:2b18 with SMTP id z2-20020a5d440200b0032d89072b18mr12076090wrq.66.1697451439584; -Mon, 16 Oct 2023 03:17:19 -0700 (PDT) -Received: from [192.168.1.23] (ip-046-223-203-173.um13.pools.vodafone-ip.de. [46.223.203.173]) -by smtp.gmail.com with ESMTPSA id e10-20020a5d65ca00b0032da6f17ffdsm4983379wrw.38.2023.10.16.03.17.18 -(version=TLS1_3 cipher=TLS_AES_128
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: cfe1a42149964e54a250698e9d8dc50f4745caf9 Author: Sam James gentoo org> AuthorDate: Mon Oct 16 12:33:30 2023 + Commit: Sam James gentoo org> CommitDate: Mon Oct 16 12:40:58 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=cfe1a421 14.0.0: backport insn-emit split patches For parity with 13.x. This is a continuation of 7a6b2d23ec02e75475a6123254ccd44d73827f39 ('13.2.0: backport split match.pd changes') in a sense - see that commit for rationale for backporting. Motivated here again by more reports of OOMs with insn-match.cc. Bug: https://gcc.gnu.org/PR54179 Bug: https://gcc.gnu.org/PR84402 Bug: https://gcc.gnu.org/PR111600 Signed-off-by: Sam James gentoo.org> ...genemit-Split-insn-emit.cc-into-ten-files.patch | 1453 14.0.0/gentoo/README.history |6 + 2 files changed, 1459 insertions(+) diff --git a/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch new file mode 100644 index 000..dbcea97 --- /dev/null +++ b/14.0.0/gentoo/75_all_PR54179_genemit-Split-insn-emit.cc-into-ten-files.patch @@ -0,0 +1,1453 @@ +https://gcc.gnu.org/PR54179 +https://inbox.sourceware.org/gcc-patches/de0f7bdc-d236-4f5b-9504-d5bfb215d...@gmail.com/ + +From mboxrd@z Thu Jan 1 00:00:00 1970 +Return-Path: +Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) + by sourceware.org (Postfix) with ESMTPS id 494063858D33 + for ; Mon, 16 Oct 2023 10:17:21 + (GMT) +DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 494063858D33 +Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com +Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com +ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 494063858D33 +Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::435 +ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697451446; cv=none; + b=p7qdXp6tA02vcm8FYp8Z94RsTNBTMF12iWlVcXVLWFaSW8HGwwCYhMGYoGFaifZQRu4UKyuAB+IzEF6a/yAg4YIoSatzLygSXd8C4Y5pTzNOedtsXKySOf2H5tU0JllZhFiL0j839yK0ULkru902Fm5qYfCWOI/oclFGFv0QJhk= +ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; + t=1697451446; c=relaxed/simple; + bh=F5nvjfODgAkwvN6oz045m/y2cCq1Y5w/bjL6/Zx7/us=; + h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Irn6EDwgJ++gSjzeSooV3KQnHee12GYc2RQmTDoYZo/FSdddOhiPTfdaC7P29HmOXa4CPBOS8Yv9BTZMwm6YLK9J2wCQws5N76sMTuINsJ4seyvCF4hUO/2icjNn/K1NCpiAh/hGfqdO7ASiqbVBoFfgM7fwtCOYLKF6sIY1lyM= +ARC-Authentication-Results: i=1; server2.sourceware.org +Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32d834ec222so4107319f8f.0 +for ; Mon, 16 Oct 2023 03:17:21 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; +d=gmail.com; s=20230601; t=1697451440; x=1698056240; darn=gcc.gnu.org; +h=content-transfer-encoding:in-reply-to:from:references:to + :content-language:subject:cc:user-agent:mime-version:date:message-id + :from:to:cc:subject:date:message-id:reply-to; +bh=wq5w+s2m/P53eb5oT6XaK+NiaOj7NqTTS7VH5l0hPUk=; +b=ir8fQ9LhX/rsjkKQE99tm5M/K+iNNIYZ/1cdZ5bz4WDndMrk52oidsfzruyMfSbRhB + rHSI1uSAzTr3Hp0f3ugYQInO3KFgdrvSiZ1sUhIcSA9SG7fCECczgD7GcW6OZn6F8c9u + XbFgqbWLIFtqXeKsmQs+CY2nS4KS/CRT9eoUafES8rZNYXDOe9QVbHjblx7rtXWO2HXQ + lmfzqTktf3I7JxtYpl0r0MYMcjSfcq0DOuL80NWyMDlBWOQT3IBAdyulrLAEW+jH/Z8p + xQ15SULgu0m2yiv/KGWXTkZfr7tvRGnSmmdtRRH0FCoXSf8jg/zHFTkl/j+SzlSzDwGs + c1qg== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; +d=1e100.net; s=20230601; t=1697451440; x=1698056240; +h=content-transfer-encoding:in-reply-to:from:references:to + :content-language:subject:cc:user-agent:mime-version:date:message-id + :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; +bh=wq5w+s2m/P53eb5oT6XaK+NiaOj7NqTTS7VH5l0hPUk=; +b=kKfXLuOWBPVcAyFOUh31XizZ+aCfxMvezPMmblFS/UpzD2W/C0uFKwEGnChfefXi2/ + +bzYReU5vtLu8pAloncEatu5L4GV1u+WdTSbW1T5xIy+5oMx++9PpyY4AE247J0yd86k + 1y7iJTKapjRfltZuFYEXFXtk+EUb6KM8JtlwJvoxl1WA5eUMF3QS7mrB/a4aM4x6i+Eg + YlOoTXYO0bLGOCdeXOLJfjDEkck1ELrHj2LtlRHyrlB9cfOgf17T6ndeeHGFfXNQHPZ9 + 6ozlhvhckpJQgI9lmwx9y62sUeq7EvLbrq6iRQm/urmU7ONjSXtvH9MhuU6vUBxvHZ7m + L7/Q== +X-Gm-Message-State: AOJu0Yx8eFwSIp03QtdxQpmlUlQqKK5PYRJxvpOd/sAQ1a6DUl745e7C + /BMIbVYdWvfmdTlOA4Fq7wwu2tV7IwY= +X-Google-Smtp-Source: AGHT+IHxbooDFrEU9aYJYA4rfQo2Hg5vBRYXtzpX5blf0iOYdzDMzsRxuyqHl6Jlfcy9/43ovuJMnQ== +X-Received: by 2002:a5d:4402:0:b0:32d:8907:2b18 with SMTP id z2-20020a5d440200b0032d89072b18mr12076090wrq.66.1697451439584; +Mon, 16 Oct 2023 03:17:19 -0700 (PDT) +Received: from [192.168.1.23] (ip-046-223-203-173.um13.pools.vodaf
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 72cde8ad25618f62dbfbe941dade77351dd358d8 Author: Sam James gentoo org> AuthorDate: Mon Oct 2 13:13:32 2023 + Commit: Sam James gentoo org> CommitDate: Mon Oct 2 13:13:53 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=72cde8ad 14.0.0: rebase 26_all_enable-cet.patch Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/26_all_enable-cet.patch | 20 ++-- 14.0.0/gentoo/README.history | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/14.0.0/gentoo/26_all_enable-cet.patch b/14.0.0/gentoo/26_all_enable-cet.patch index b13abab..b9bbbf0 100644 --- a/14.0.0/gentoo/26_all_enable-cet.patch +++ b/14.0.0/gentoo/26_all_enable-cet.patch @@ -18,7 +18,7 @@ Only supported on amd64. - " %(cc1_options) %2" + " %(cc1_options) %(default_flag_cf_spec) %2" " %{!fsyntax-only:" - "%{!S:-o %g.s%V}" + "%{!S:-o %g.s}" "%{!fmodule-*:%{!fmodules-*:%{!fdump-ada-spec*:" @@ -72,7 +72,7 @@ along with GCC; see the file COPYING3. If not see " %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}" @@ -27,7 +27,7 @@ Only supported on amd64. - " %(cc1_options) %2" + " %(cc1_options) %(default_flag_cf_spec) %2" " %{!fsyntax-only:" - "%{!S:-o %g.s%V}" + "%{!S:-o %g.s}" "%{!fmodule-*:%{!fmodules-*:%{!fdump-ada-spec*:" @@ -92,7 +92,7 @@ along with GCC; see the file COPYING3. If not see " %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}" @@ -36,7 +36,7 @@ Only supported on amd64. - " %(cc1_options) %2" + " %(cc1_options) %(default_flag_cf_spec) %2" " %{!fsyntax-only:" - "%{!S:-o %g.s%V}" + "%{!S:-o %g.s}" "%{!fmodule-*:%{!fmodules-*:%{!fdump-ada-spec*:" @@ -107,7 +107,7 @@ along with GCC; see the file COPYING3. If not see " cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed" @@ -58,7 +58,7 @@ Only supported on amd64. "%{!fmodule-only:%{!fmodule-header*:%(invoke_as)}}}" --- a/gcc/gcc.cc +++ b/gcc/gcc.cc -@@ -994,6 +994,18 @@ proper position among the other output files. */ +@@ -999,6 +999,18 @@ proper position among the other output files. */ #define LINK_NOW_SPEC "" #endif @@ -77,7 +77,7 @@ Only supported on amd64. #ifdef ENABLE_DEFAULT_PIE #define PIE_SPEC "!no-pie" #define NO_FPIE1_SPEC "fno-pie" -@@ -1196,6 +1208,7 @@ static const char *cpp_spec = CPP_SPEC; +@@ -1201,6 +1213,7 @@ static const char *cpp_spec = CPP_SPEC; static const char *cc1_spec = CC1_SPEC OS_CC1_SPEC; static const char *cc1plus_spec = CC1PLUS_SPEC; static const char *link_gcc_c_sequence_spec = LINK_GCC_C_SEQUENCE_SPEC; @@ -85,7 +85,7 @@ Only supported on amd64. static const char *link_ssp_spec = LINK_SSP_SPEC; static const char *asm_spec = ASM_SPEC; static const char *asm_final_spec = ASM_FINAL_SPEC; -@@ -1254,7 +1267,7 @@ static const char *cpp_options = +@@ -1261,7 +1274,7 @@ static const char *cpp_options = "%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w}\ %{f*} %{g*:%{%:debug-level-gt(0):%{g*}\ %{!fno-working-directory:-fworking-directory}}} %{O*}\ @@ -94,7 +94,7 @@ Only supported on amd64. /* Pass -d* flags, possibly modifying -dumpdir, -dumpbase et al. -@@ -1448,9 +1461,9 @@ static const struct compiler default_compilers[] = +@@ -1455,9 +1468,9 @@ static const struct compiler default_compilers[] = %{save-temps*|traditional-cpp|no-integrated-cpp:%(trad_capable_cpp) \ %(cpp_options) -o %{save-temps*:%b.i} %{!save-temps*:%g.i} \n\ cc1 -fpreprocessed %{save-temps*:%b.i} %{!save-temps*:%g.i} \ @@ -106,8 +106,8 @@ Only supported on amd64. %{!fsyntax-only:%(invoke_as)", 0, 0, 1}, {"-", "%{!E:%e-E or -x required when input is from standard input}\ -@@ -1475,7 +1488,7 @@ static const struct compiler default_compilers[] = - %W{o*:--output-pch %*}}%V}}}", 0, 0, 0}, +@@ -1482,7 +1495,7 @@ static const struct compiler default_compilers[] = + %W{o*:--output-pch %w%*}}%{!S:%V", 0, 0, 0}, {".i", "@cpp-output", 0, 0, 0}, {"@cpp-output", - "%{!M:%{!MM:%{!E:cc1 -fpreprocessed %i %(cc1_options) %{!fsyntax-only:%(invoke_as)", 0, 0, 0}, @@ -115,7 +115,7 @@ Only supported on amd64. {".s", "@assembler", 0, 0, 0}, {"@assembler", "%{!M:%{!MM:%{!E:%{!S:as %(asm_debug) %(asm_options) %i %A ", 0, 0, 0}, -@@ -1707,6 +1720,7 @@ static struct spec_list static_specs[] = +@@ -1714,6 +1727,7 @@ static struct spec_list static_specs[] = INIT_STATIC_SPEC ("cc1_options",&cc1_options), INIT_STATIC_SPEC ("cc1plus",&cc1plus_spec), INIT_STATIC_SPEC ("link_gcc_c_sequence",&link_gcc_c_sequence_spec), diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: 6cb33e2f39e289ec4f25f845d8153053147c5c49 Author: Sam James gentoo org> AuthorDate: Sun Jun 18 22:51:10 2023 + Commit: Sam James gentoo org> CommitDate: Sun Jun 18 22:51:10 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=6cb33e2f 14.0.0: cut patchset 2 Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/README.history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 54617a7..3d72078 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,4 +1,4 @@ -2 ?? +2 18 June 2023 - 09_all_nopie-all-flags.patch 1 23 April 2023
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: f9de5c24b9a6172d48786289035eed8f947c04c1 Author: Sam James gentoo org> AuthorDate: Thu Jun 15 23:03:22 2023 + Commit: Sam James gentoo org> CommitDate: Thu Jun 15 23:03:27 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f9de5c24 14.0.0: drop 09_all_nopie-all-flags.patch Conflicts with https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=b6cb10af12cf869c1ae348c0e5cb2d364ef0abce upstream and upon review, I don't think we need this anymore at all. Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/09_all_nopie-all-flags.patch | 18 -- 14.0.0/gentoo/README.history | 3 +++ 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/14.0.0/gentoo/09_all_nopie-all-flags.patch b/14.0.0/gentoo/09_all_nopie-all-flags.patch deleted file mode 100644 index fe1cd80..000 --- a/14.0.0/gentoo/09_all_nopie-all-flags.patch +++ /dev/null @@ -1,18 +0,0 @@ -We need to pass NO_PIE_CFLAGS to ALL_* so gcc don't fail when -we compile it with older gcc and pie. - a/gcc/Makefile.in -+++ b/gcc/Makefile.in -@@ -1054,10 +1054,10 @@ ALL_CXXFLAGS = $(T_CFLAGS) $(CFLAGS-$@) - ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS) - - # This is the variable to use when using $(COMPILER). --ALL_COMPILERFLAGS = $(ALL_CXXFLAGS) -+ALL_COMPILERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) - - # This is the variable to use when using $(LINKER). --ALL_LINKERFLAGS = $(ALL_CXXFLAGS) -+ALL_LINKERFLAGS = $(NO_PIE_CFLAGS) $(ALL_CXXFLAGS) - - # Build and host support libraries. - diff --git a/14.0.0/gentoo/README.history b/14.0.0/gentoo/README.history index 6204a28..54617a7 100644 --- a/14.0.0/gentoo/README.history +++ b/14.0.0/gentoo/README.history @@ -1,3 +1,6 @@ +2 ?? +- 09_all_nopie-all-flags.patch + 1 23 April 2023 + 01_all_default-fortify-source.patch
[gentoo-commits] proj/gcc-patches:master commit in: 14.0.0/gentoo/
commit: b00cfbdaa4cc20d38bf779109ef351925e878921 Author: Sam James gentoo org> AuthorDate: Sun Apr 23 22:52:29 2023 + Commit: Sam James gentoo org> CommitDate: Sun Apr 23 22:52:29 2023 + URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b00cfbda 14.0.0: add initial patchset Clone of 13.1.0 modulo dropping M2 patch. Signed-off-by: Sam James gentoo.org> 14.0.0/gentoo/01_all_default-fortify-source.patch | 26 +++ .../02_all_default-warn-format-security.patch | 22 +++ .../gentoo/03_all_default-warn-trampolines.patch | 13 ++ 14.0.0/gentoo/04_all_nossp-on-nostdlib.patch | 27 +++ 14.0.0/gentoo/05_all_alpha-mieee-default.patch | 39 + 14.0.0/gentoo/06_all_ia64_note.GNU-stack.patch | 92 ++ 14.0.0/gentoo/07_all_libiberty-asprintf.patch | 18 ++ 14.0.0/gentoo/08_all_libiberty-pic.patch | 10 ++ 14.0.0/gentoo/09_all_nopie-all-flags.patch | 18 ++ 14.0.0/gentoo/10_all_sh-drop-sysroot-suffix.patch | 26 +++ 14.0.0/gentoo/11_all_ia64-TEXTREL.patch| 22 +++ 14.0.0/gentoo/14_all_respect-build-cxxflags.patch | 39 + .../15_all_DEF_GENTOO_GLIBCXX_ASSERTIONS.patch | 14 ++ 14.0.0/gentoo/20_all_libstdcxx-no-vtv.patch| 61 +++ 14.0.0/gentoo/22_all_default_ssp-buffer-size.patch | 14 ++ 14.0.0/gentoo/23_all_DEF_GENTOO_ZNOW-z-now.patch | 26 +++ ...ll_DEF_GENTOO_SCP-fstack-clash-protection.patch | 65 +++ .../25_all_lto-intl-workaround-PR95194.patch | 20 +++ 14.0.0/gentoo/26_all_enable-cet.patch | 193 + 14.0.0/gentoo/28_all_drop_CFLAGS_sed.patch | 35 14.0.0/gentoo/29_all_msgfmt-libstdc++-link.patch | 39 + 14.0.0/gentoo/30_all_tar_libstdc++-link.patch | 57 ++ 14.0.0/gentoo/README.history | 24 +++ 23 files changed, 900 insertions(+) diff --git a/14.0.0/gentoo/01_all_default-fortify-source.patch b/14.0.0/gentoo/01_all_default-fortify-source.patch new file mode 100644 index 000..4cdf5f6 --- /dev/null +++ b/14.0.0/gentoo/01_all_default-fortify-source.patch @@ -0,0 +1,26 @@ +Taken Debian's patch and removed docs matches: +https://salsa.debian.org/toolchain-team/gcc.git +Also see https://bugs.gentoo.org/621036 where +initially Gentoo used too complicated macro. + +# DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, +# DP: if the optimization level is > 0 +--- a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc +@@ -1510,6 +1510,16 @@ 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); + ++#if !defined(ACCEL_COMPILER) ++ #ifndef GENTOO_FORTIFY_SOURCE_LEVEL ++#define GENTOO_FORTIFY_SOURCE_LEVEL 2 ++ #endif ++ ++ /* F_S enabled by default for optimization levels > 0, except for ASAN: https://github.com/google/sanitizers/issues/247 */ ++ if (optimize && ! (flag_sanitize & SANITIZE_ADDRESS)) ++builtin_define_with_int_value ("_FORTIFY_SOURCE", GENTOO_FORTIFY_SOURCE_LEVEL); ++#endif ++ + /* Misc. */ + if (flag_gnu89_inline) + cpp_define (pfile, "__GNUC_GNU_INLINE__"); 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 new file mode 100644 index 000..9723a1c --- /dev/null +++ b/14.0.0/gentoo/02_all_default-warn-format-security.patch @@ -0,0 +1,22 @@ +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. + + Wformat-security +-C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) ++C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0) + 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++ + Warn about zero-length formats. + + Wformat= +-C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0) IntegerRange(0, 2) ++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= diff --git a/14.0.0/gentoo/03_all_default-warn-trampolines.patch b/14.0.0/gentoo/03_all_default-warn-trampolines.patch new file mode 100644 index 000..fb6d8bc --- /dev/null +++ b/14.0.0/gentoo/03_all_default-warn-trampolines.patch @@ -0,0 +1,13 @@ +Enable -Wtrampolines by default. + +--- a/gcc/common.opt b/gcc/common.opt +@@ -79