[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2021-02-09 Thread Sergei Trofimovich
commit: c3fc0b5294ca9628fe7041b180f4c80d1591f82d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Tue Feb  9 22:09:58 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Tue Feb  9 22:09:58 2021 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c3fc0b52

11.0.0: drop 30_all_fno-delayed-branch.patch (fixed upstream)

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/30_all_fno-delayed-branch.patch | 40 ---
 11.0.0/gentoo/README.history  |  3 ++
 2 files changed, 3 insertions(+), 40 deletions(-)

diff --git a/11.0.0/gentoo/30_all_fno-delayed-branch.patch 
b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
deleted file mode 100644
index 879c69d..000
--- a/11.0.0/gentoo/30_all_fno-delayed-branch.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 6d0d3ae914bf19706550a539ef304c5875535ffc Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich 
-Date: Fri, 3 Jul 2020 22:50:33 +0100
-Subject: [PATCH] Disable -fdelayed-branch by default.
-
-From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570.
-delayed branches are known to generate invalid code around
-__builtin_unreachable(); and mis-compiles python.
-
-Use blunt hammer and disable delayed slots until we have better fix.
-
-Reported-by: Jeroen Roovers
-Bug: https://gcc.gnu.org/PR96015
-Bug: https://bugs.gentoo.org/729570
-Signed-off-by: Sergei Trofimovich 

- gcc/opts.c | 9 -
- 1 file changed, 8 insertions(+), 1 deletion(-)
-
 a/gcc/opts.c
-+++ b/gcc/opts.c
-@@ -458,7 +458,14 @@ static const struct default_options 
default_options_table[] =
- /* -O1 (and not -Og) optimizations.  */
- { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fbranch_count_reg, NULL, 1 },
- #if DELAY_SLOTS
--{ OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdelayed_branch, NULL, 1 },
-+/*
-+ * From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570.
-+ * delayed branches are known to generate invalid code around
-+ * __builtin_unreachable(); and mis-compiles python.
-+ *
-+ * Use blunt hammer and disable delayed slots until we have better fix.
-+ */
-+/* { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdelayed_branch, NULL, 1 }, */
- #endif
- { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdse, NULL, 1 },
- { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fif_conversion, NULL, 1 },
--- 
-2.27.0
-

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 5c5307a..91a0aed 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,3 +1,6 @@
+7  TODO
+   - 30_all_fno-delayed-branch.patch
+
 6  28 Jan 2021
- 07_all_i386_libgcc_note.GNU-stack.patch
 



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2021-01-28 Thread Sergei Trofimovich
commit: 0a78f726294b27bea27c31bb2449f2ae2d820c9f
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Jan 28 18:17:05 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Jan 28 18:17:05 2021 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=0a78f726

11.0.0: drop upstreamed 07_all_i386_libgcc_note.GNU-stack.patch

Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../gentoo/07_all_i386_libgcc_note.GNU-stack.patch | 54 --
 11.0.0/gentoo/README.history   |  3 ++
 2 files changed, 3 insertions(+), 54 deletions(-)

diff --git a/11.0.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch 
b/11.0.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch
deleted file mode 100644
index 7f74945..000
--- a/11.0.0/gentoo/07_all_i386_libgcc_note.GNU-stack.patch
+++ /dev/null
@@ -1,54 +0,0 @@
 a/libgcc/config/i386/resms64.h 2018-01-03 11:03:58.0 +0100
-+++ b/libgcc/config/i386/resms64.h 2018-05-01 12:59:48.942833419 +0200
-@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(resms64_17)
- MS2SYSV_STUB_END(resms64_18)
- 
- #endif /* __x86_64__ */
-+#if defined(__linux__) && defined(__ELF__)
-+.section .note.GNU-stack,"",%progbits
-+#endif
 a/libgcc/config/i386/resms64f.h2018-01-03 11:03:58.0 +0100
-+++ b/libgcc/config/i386/resms64f.h2018-05-01 13:00:23.422832853 +0200
-@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(resms64f_16)
- MS2SYSV_STUB_END(resms64f_17)
- 
- #endif /* __x86_64__ */
-+#if defined(__linux__) && defined(__ELF__)
-+.section .note.GNU-stack,"",%progbits
-+#endif
 a/libgcc/config/i386/resms64fx.h   2018-02-26 20:46:34.0 +0100
-+++ b/libgcc/config/i386/resms64fx.h   2018-05-01 13:06:49.682826518 +0200
-@@ -62,3 +62,6 @@ MS2SYSV_STUB_END(resms64fx_16)
- MS2SYSV_STUB_END(resms64fx_17)
- 
- #endif /* __x86_64__ */
-+#if defined(__linux__) && defined(__ELF__)
-+.section .note.GNU-stack,"",%progbits
-+#endif
 a/libgcc/config/i386/resms64x.h2018-02-26 20:46:34.0 +0100
-+++ b/libgcc/config/i386/resms64x.h2018-05-01 13:07:21.702825993 +0200
-@@ -63,3 +63,6 @@ MS2SYSV_STUB_END(resms64x_17)
- MS2SYSV_STUB_END(resms64x_18)
- 
- #endif /* __x86_64__ */
-+#if defined(__linux__) && defined(__ELF__)
-+.section .note.GNU-stack,"",%progbits
-+#endif
 a/libgcc/config/i386/savms64.h 2018-01-03 11:03:58.0 +0100
-+++ b/libgcc/config/i386/savms64.h 2018-05-01 13:07:48.952825546 +0200
-@@ -57,3 +57,6 @@ MS2SYSV_STUB_END(savms64_17)
- MS2SYSV_STUB_END(savms64_18)
- 
- #endif /* __x86_64__ */
-+#if defined(__linux__) && defined(__ELF__)
-+.section .note.GNU-stack,"",%progbits
-+#endif
 a/libgcc/config/i386/savms64f.h2018-01-03 11:03:58.0 +0100
-+++ b/libgcc/config/i386/savms64f.h2018-05-01 13:08:30.082824871 +0200
-@@ -55,3 +55,6 @@ MS2SYSV_STUB_END(savms64f_16)
- MS2SYSV_STUB_END(savms64f_17)
- 
- #endif /* __x86_64__ */
-+#if defined(__linux__) && defined(__ELF__)
-+.section .note.GNU-stack,"",%progbits
-+#endif

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 0e3f92b..5c5307a 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,3 +1,6 @@
+6  28 Jan 2021
+   - 07_all_i386_libgcc_note.GNU-stack.patch
+
 5  17 Dec 2020
U 05_all_alpha-mieee-default.patch
U 27_all_EXTRA_OPTIONS-fstack-clash-protection.patch



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-12-17 Thread Sergei Trofimovich
commit: 0b516ff700010409bc568f218ac76b3b27e54d0a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Dec 17 17:03:16 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Dec 17 17:03:16 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=0b516ff7

10.0.0: cut 5 patchset, refresh patches against master

Fixed minor conflict of removed 'Report' option keyword.

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/05_all_alpha-mieee-default.patch   | 4 ++--
 11.0.0/gentoo/27_all_EXTRA_OPTIONS-fstack-clash-protection.patch | 4 ++--
 11.0.0/gentoo/README.history | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/11.0.0/gentoo/05_all_alpha-mieee-default.patch 
b/11.0.0/gentoo/05_all_alpha-mieee-default.patch
index b266d77..cf33f14 100644
--- a/11.0.0/gentoo/05_all_alpha-mieee-default.patch
+++ b/11.0.0/gentoo/05_all_alpha-mieee-default.patch
@@ -31,8 +31,8 @@ behaving the same across arches under Linux.
  Request IEEE-conformant math library routines (OSF/1).
  
  mieee
--Target Report RejectNegative Mask(IEEE)
-+Target Report Mask(IEEE)
+-Target RejectNegative Mask(IEEE)
++Target Mask(IEEE)
  Emit IEEE-conformant code, without inexact exceptions.
  
  mieee-with-inexact

diff --git a/11.0.0/gentoo/27_all_EXTRA_OPTIONS-fstack-clash-protection.patch 
b/11.0.0/gentoo/27_all_EXTRA_OPTIONS-fstack-clash-protection.patch
index d1bb202..e836c92 100644
--- a/11.0.0/gentoo/27_all_EXTRA_OPTIONS-fstack-clash-protection.patch
+++ b/11.0.0/gentoo/27_all_EXTRA_OPTIONS-fstack-clash-protection.patch
@@ -6,8 +6,8 @@ On Hardened we add some options like -fstack-clash-protection.
  Insert stack checking code into the program.  Same as -fstack-check=specific.
  
  fstack-clash-protection
--Common Report Var(flag_stack_clash_protection) Optimization
-+Common Report Var(flag_stack_clash_protection) Optimization Init(-1)
+-Common Var(flag_stack_clash_protection) Optimization
++Common Var(flag_stack_clash_protection) Optimization Init(-1)
  Insert code to probe each page of stack space as it is allocated to protect
  from stack-clash style attacks.
  

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index a34b96d..0e3f92b 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,4 +1,5 @@
-5  TODO
+5  17 Dec 2020
+   U 05_all_alpha-mieee-default.patch
U 27_all_EXTRA_OPTIONS-fstack-clash-protection.patch
 
 4  26 Aug 2020



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-08-25 Thread Sergei Trofimovich
commit: fbda64e161da0049d14583b0126fe4d7e0aec805
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Aug 26 06:53:30 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Aug 26 06:53:30 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=fbda64e1

11.0.0: cup 4 patchset

One patch dropped:
- 25_all_hppa-faster-synth_mult.patch: upstream got better fix

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch | 44 ---
 11.0.0/gentoo/README.history  |  3 ++
 2 files changed, 3 insertions(+), 44 deletions(-)

diff --git a/11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch 
b/11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch
deleted file mode 100644
index e93aa40..000
--- a/11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From 73a841928cc1b86f43108d2383a6242e7e61a785 Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich 
-Date: Tue, 31 Mar 2020 23:58:05 +0100
-Subject: [PATCH] gcc/expmed.h: increase cache size from 10^3 to 10^6
-
-Without this patch is takes dev-libs/xxhash 1-2 hours
-to compile. With this patch - TODO measurements.
-
-It workarounds deficiency of synth_mult() which evics
-cache entries as it calculates optimal multiplication
-algorithm. xxhash is especially hevyweight as it's a
-64-bit multiplication of large prime constants.
-
-Bug: https://gcc.gnu.org/PR87256
-Signed-off-by: Sergei Trofimovich 

- gcc/expmed.h | 13 -
- 1 file changed, 8 insertions(+), 5 deletions(-)
-
 a/gcc/expmed.h
-+++ b/gcc/expmed.h
-@@ -127,11 +127,14 @@ struct alg_hash_entry {
- };
- 
- /* The number of cache/hash entries.  */
--#if HOST_BITS_PER_WIDE_INT == 64
--#define NUM_ALG_HASH_ENTRIES 1031
--#else
--#define NUM_ALG_HASH_ENTRIES 307
--#endif
-+/*
-+ * Workaround hppa2.0 synth_mult deficiency
-+ * and allocate ~1 million slots:
-+ * https://gcc.gnu.org/PR87256
-+ * That should increase RAM usage up to ~24MB
-+ * per process.
-+ */
-+#define NUM_ALG_HASH_ENTRIES 103
- 
- #define NUM_MODE_INT \
-   (MAX_MODE_INT - MIN_MODE_INT + 1)
--- 
-2.26.0
-

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 6083777..b3e6ea1 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,3 +1,6 @@
+4  26 Aug 2020
+   - 25_all_hppa-faster-synth_mult.patch
+
 3  23 Aug 2020
- 16_all_libgfortran-Werror.patch
 



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-08-23 Thread Sergei Trofimovich
commit: 14610d6e3cb5883bc156c228d8c65634727e1605
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Aug 23 09:18:02 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Aug 23 09:18:02 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=14610d6e

11.0.0: cut 3 patchset

Dropped one old patch:
- 16_all_libgfortran-Werror.patch: should not be needed

Signed-off-by: Sergei Trofimovich  gentoo.org>

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

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index f1b2f2f..6083777 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,4 +1,4 @@
-3  TODO
+3  23 Aug 2020
- 16_all_libgfortran-Werror.patch
 
 2  04 July 2020



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-07-20 Thread Sergei Trofimovich
commit: 36350040e98578b2cd6b91b192df1f0c21fa
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Mon Jul 20 22:30:09 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Mon Jul 20 22:30:09 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=36350040

11.0.0: drop 16_all_libgfortran-Werror.patch patch

Gentoo does not ship patch with poison system directories anymore.
Upstream did not accept -Werror removal. Let's drop downstream patch.

We can always reintroduce it back if needed.

Bug: https://bugs.gentoo.org/433435
Bug: http://gcc.gnu.org/PR54724
Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/16_all_libgfortran-Werror.patch | 20 
 11.0.0/gentoo/README.history  |  3 +++
 2 files changed, 3 insertions(+), 20 deletions(-)

diff --git a/11.0.0/gentoo/16_all_libgfortran-Werror.patch 
b/11.0.0/gentoo/16_all_libgfortran-Werror.patch
deleted file mode 100644
index f6c26bf..000
--- a/11.0.0/gentoo/16_all_libgfortran-Werror.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-libgfortran does not respect --disable-werror
-
-https://bugs.gentoo.org/433435
-http://gcc.gnu.org/PR54724
-
-
 a/libgfortran/configure.ac
-+++ b/libgfortran/configure.ac
-@@ -140,3 +140,3 @@ AM_PROG_CC_C_O
- if test "x$GCC" = "xyes"; then
--  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays 
-fno-underscoring"
-+  AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring"
-   ## We like to use C11 and C99 routines when available.  This makes
 a/libgfortran/configure
-+++ b/libgfortran/configure
-@@ -5764,3 +5764,3 @@ fi
- # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
- if test "x$GCC" = "xyes"; then
--  AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays 
-fno-underscoring"
-+  AM_FCFLAGS="-I . -Wall -fimplicit-none -fno-repack-arrays -fno-underscoring"

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 32b10c0..f1b2f2f 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,3 +1,6 @@
+3  TODO
+   - 16_all_libgfortran-Werror.patch
+
 2  04 July 2020
+ 29_all_plugin-objdump.patch
+ 30_all_fno-delayed-branch.patch



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-07-04 Thread Sergei Trofimovich
commit: a113f9198b33fd3198829fa060dc43e730b5ce42
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Jul  4 07:56:19 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jul  4 07:56:19 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=a113f919

10.1.0: fix Bug tag in -fno-delayed-branch not to contain trailing stop

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/30_all_fno-delayed-branch.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/11.0.0/gentoo/30_all_fno-delayed-branch.patch 
b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
index 33ff2f4..879c69d 100644
--- a/11.0.0/gentoo/30_all_fno-delayed-branch.patch
+++ b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
@@ -11,7 +11,7 @@ Use blunt hammer and disable delayed slots until we have 
better fix.
 
 Reported-by: Jeroen Roovers
 Bug: https://gcc.gnu.org/PR96015
-Bug: https://bugs.gentoo.org/729570.
+Bug: https://bugs.gentoo.org/729570
 Signed-off-by: Sergei Trofimovich 
 ---
  gcc/opts.c | 9 -



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-07-04 Thread Sergei Trofimovich
commit: 9d1b439e8c78ceaa561094657a0d42845611ab63
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Jul  4 07:37:03 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jul  4 07:37:03 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=9d1b439e

11.0.0: cut 2 patchset

Two new patches:
+ 29_all_plugin-objdump.patch: detect tool-prefixed objdump
+ 30_all_fno-delayed-branch.patch: disable -fdelayed-branch to
  to fix python mis-compilation.

Bug: https://gcc.gnu.org/PR95648
Reported-by: Jeroen Roovers
Bug: https://gcc.gnu.org/PR96015
Bug: https://bugs.gentoo.org/729570
Signed-off-by: Sergei Trofimovich  gentoo.org>

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

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index ff48ea3..32b10c0 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,4 +1,4 @@
-2  TODO
+2  04 July 2020
+ 29_all_plugin-objdump.patch
+ 30_all_fno-delayed-branch.patch
 



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-07-04 Thread Sergei Trofimovich
commit: 3a000d44d7b3d12a882c6f342ee64286050bc41e
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Jul  4 07:49:45 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Jul  4 07:49:45 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=3a000d44

11.0.0: fix Bug tag syntax in -fno-delayed-branch patch

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/30_all_fno-delayed-branch.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/11.0.0/gentoo/30_all_fno-delayed-branch.patch 
b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
index bc19974..33ff2f4 100644
--- a/11.0.0/gentoo/30_all_fno-delayed-branch.patch
+++ b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
@@ -10,7 +10,7 @@ __builtin_unreachable(); and mis-compiles python.
 Use blunt hammer and disable delayed slots until we have better fix.
 
 Reported-by: Jeroen Roovers
-Bug: From https://gcc.gnu.org/PR96015
+Bug: https://gcc.gnu.org/PR96015
 Bug: https://bugs.gentoo.org/729570.
 Signed-off-by: Sergei Trofimovich 
 ---



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-07-03 Thread Sergei Trofimovich
commit: bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Fri Jul  3 22:13:11 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Fri Jul  3 22:13:11 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=bccdc406

11.0.0: Disable -fdelayed-branch by default.

>From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570.
delayed branches are known to generate invalid code around
__builtin_unreachable(); and mis-compiles python.

Use blunt hammer and disable delayed slots until we have better fix.

Reported-by: Jeroen Roovers
Bug: From https://gcc.gnu.org/PR96015
Bug: https://bugs.gentoo.org/729570.
Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/30_all_fno-delayed-branch.patch | 40 +++
 11.0.0/gentoo/README.history  |  1 +
 2 files changed, 41 insertions(+)

diff --git a/11.0.0/gentoo/30_all_fno-delayed-branch.patch 
b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
new file mode 100644
index 000..bc19974
--- /dev/null
+++ b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
@@ -0,0 +1,40 @@
+From 6d0d3ae914bf19706550a539ef304c5875535ffc Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich 
+Date: Fri, 3 Jul 2020 22:50:33 +0100
+Subject: [PATCH] Disable -fdelayed-branch by default.
+
+From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570.
+delayed branches are known to generate invalid code around
+__builtin_unreachable(); and mis-compiles python.
+
+Use blunt hammer and disable delayed slots until we have better fix.
+
+Reported-by: Jeroen Roovers
+Bug: From https://gcc.gnu.org/PR96015
+Bug: https://bugs.gentoo.org/729570.
+Signed-off-by: Sergei Trofimovich 
+---
+ gcc/opts.c | 9 -
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+--- a/gcc/opts.c
 b/gcc/opts.c
+@@ -458,7 +458,14 @@ static const struct default_options 
default_options_table[] =
+ /* -O1 (and not -Og) optimizations.  */
+ { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fbranch_count_reg, NULL, 1 },
+ #if DELAY_SLOTS
+-{ OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdelayed_branch, NULL, 1 },
++/*
++ * From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570.
++ * delayed branches are known to generate invalid code around
++ * __builtin_unreachable(); and mis-compiles python.
++ *
++ * Use blunt hammer and disable delayed slots until we have better fix.
++ */
++/* { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdelayed_branch, NULL, 1 }, */
+ #endif
+ { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdse, NULL, 1 },
+ { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fif_conversion, NULL, 1 },
+-- 
+2.27.0
+

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 4add930..ff48ea3 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,5 +1,6 @@
 2  TODO
+ 29_all_plugin-objdump.patch
+   + 30_all_fno-delayed-branch.patch
 
 1  29 May 2020
+ 01_all_default-fortify-source.patch



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-06-11 Thread Sergei Trofimovich
commit: 97170bc55d13d87334b7d055c3382bd91b58c764
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Jun 11 22:49:35 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Jun 11 22:49:35 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=97170bc5

11.0.0: mark objdump-prefix patch as unreleased yet

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/README.history | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 40240fc..4add930 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,3 +1,6 @@
+2  TODO
+   + 29_all_plugin-objdump.patch
+
 1  29 May 2020
+ 01_all_default-fortify-source.patch
+ 02_all_default-warn-format-security.patch
@@ -27,4 +30,3 @@
+ 26_all_EXTRA_OPTIONS-z-now.patch
+ 27_all_EXTRA_OPTIONS-fstack-clash-protection.patch
+ 28_all_lto-intl-workaround-PR95194.patch
-   + 29_all_plugin-objdump.patch



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-06-11 Thread Sergei Trofimovich
commit: 9b14dd3e4c34aa6794b8e34ab9bb39462e10e8e0
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Jun 11 22:47:51 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Jun 11 22:47:51 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=9b14dd3e

11.0.0: fix tool-prefixed objdump autodetection

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/29_all_plugin-objdump.patch | 34 +++
 11.0.0/gentoo/README.history  |  1 +
 2 files changed, 35 insertions(+)

diff --git a/11.0.0/gentoo/29_all_plugin-objdump.patch 
b/11.0.0/gentoo/29_all_plugin-objdump.patch
new file mode 100644
index 000..a9c33fd
--- /dev/null
+++ b/11.0.0/gentoo/29_all_plugin-objdump.patch
@@ -0,0 +1,34 @@
+https://gcc.gnu.org/PR95648
+--- a/config/gcc-plugin.m4
 b/config/gcc-plugin.m4
+@@ -45,7 +45,7 @@ AC_DEFUN([GCC_ENABLE_PLUGINS],
+  ;;
+  *)
+if test x$build = x$host; then
+-   export_sym_check="objdump${exeext} -T"
++   export_sym_check="$ac_cv_prog_OBJDUMP -T"
+elif test x$host = x$target; then
+export_sym_check="$gcc_cv_objdump -T"
+else
+--- a/gcc/configure
 b/gcc/configure
+@@ -30386,7 +30386,7 @@ fi
+  ;;
+  *)
+if test x$build = x$host; then
+-   export_sym_check="objdump${exeext} -T"
++   export_sym_check="$ac_cv_prog_OBJDUMP -T"
+elif test x$host = x$target; then
+export_sym_check="$gcc_cv_objdump -T"
+else
+--- a/libcc1/configure
 b/libcc1/configure
+@@ -14819,7 +14819,7 @@ fi
+  ;;
+  *)
+if test x$build = x$host; then
+-   export_sym_check="objdump${exeext} -T"
++   export_sym_check="$ac_cv_prog_OBJDUMP -T"
+elif test x$host = x$target; then
+export_sym_check="$gcc_cv_objdump -T"
+else

diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history
index 6a58231..40240fc 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -27,3 +27,4 @@
+ 26_all_EXTRA_OPTIONS-z-now.patch
+ 27_all_EXTRA_OPTIONS-fstack-clash-protection.patch
+ 28_all_lto-intl-workaround-PR95194.patch
+   + 29_all_plugin-objdump.patch



[gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/

2020-05-28 Thread Sergei Trofimovich
commit: b3dddccdd48e4f3b0dc1b0398d4abbc8d5836c9a
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu May 28 23:02:17 2020 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu May 28 23:02:17 2020 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=b3dddccd

11.0.0: start new patchset for live branch

Signed-off-by: Sergei Trofimovich  gentoo.org>

 11.0.0/gentoo/01_all_default-fortify-source.patch  |  22 
 .../02_all_default-warn-format-security.patch  |  22 
 .../gentoo/03_all_default-warn-trampolines.patch   |  13 +++
 11.0.0/gentoo/04_all_nossp-on-nostdlib.patch   |  27 +
 11.0.0/gentoo/05_all_alpha-mieee-default.patch |  39 +++
 11.0.0/gentoo/06_all_ia64_note.GNU-stack.patch |  92 
 .../gentoo/07_all_i386_libgcc_note.GNU-stack.patch |  54 +
 11.0.0/gentoo/08_all_libiberty-asprintf.patch  |  18 +++
 11.0.0/gentoo/09_all_libiberty-pic.patch   |  10 ++
 11.0.0/gentoo/10_all_nopie-all-flags.patch |  18 +++
 11.0.0/gentoo/11_all_sh-drop-sysroot-suffix.patch  |  32 ++
 11.0.0/gentoo/12_all_ia64-TEXTREL.patch|  22 
 .../gentoo/13_all_disable-systemtap-switch.patch   | 122 +
 11.0.0/gentoo/14_all_m68k-textrel-on-libgcc.patch  |  93 
 11.0.0/gentoo/15_all_respect-build-cxxflags.patch  |  39 +++
 11.0.0/gentoo/16_all_libgfortran-Werror.patch  |  20 
 11.0.0/gentoo/17_all_libgomp-Werror.patch  |  20 
 11.0.0/gentoo/18_all_libitm-Werror.patch   |  19 
 11.0.0/gentoo/19_all_libatomic-Werror.patch|  19 
 11.0.0/gentoo/20_all_libbacktrace-Werror.patch |  17 +++
 11.0.0/gentoo/21_all_libsanitizer-Werror.patch |  17 +++
 11.0.0/gentoo/22_all_libstdcxx-no-vtv.patch|  61 +++
 11.0.0/gentoo/23_all_disable-riscv32-ABIs.patch|  53 +
 11.0.0/gentoo/24_all_default_ssp-buffer-size.patch |  14 +++
 11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch  |  44 
 11.0.0/gentoo/26_all_EXTRA_OPTIONS-z-now.patch |  26 +
 ...all_EXTRA_OPTIONS-fstack-clash-protection.patch |  65 +++
 .../28_all_lto-intl-workaround-PR95194.patch   |  20 
 11.0.0/gentoo/README.history   |  29 +
 29 files changed, 1047 insertions(+)

diff --git a/11.0.0/gentoo/01_all_default-fortify-source.patch 
b/11.0.0/gentoo/01_all_default-fortify-source.patch
new file mode 100644
index 000..d307474
--- /dev/null
+++ b/11.0.0/gentoo/01_all_default-fortify-source.patch
@@ -0,0 +1,22 @@
+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.c
 b/gcc/c-family/c-cppbuiltin.c
+@@ -951,6 +951,12 @@ 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)
++  /* Fortify Source enabled by default for optimization levels > 0 */
++  if (optimize)
++builtin_define_with_int_value ("_FORTIFY_SOURCE", 2);
++#endif
++
+   /* Misc.  */
+   if (flag_gnu89_inline)
+ cpp_define (pfile, "__GNUC_GNU_INLINE__");

diff --git a/11.0.0/gentoo/02_all_default-warn-format-security.patch 
b/11.0.0/gentoo/02_all_default-warn-format-security.patch
new file mode 100644
index 000..f809abd
--- /dev/null
+++ b/11.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   2016-03-23 18:51:56.0 +0100
 b/gcc/c-family/c.opt   2016-04-28 23:45:54.063351272 +0200
+@@ -459,7 +459,7 @@ C ObjC C++ ObjC++ Var(warn_format_nonlit
+ Warn about format strings that are not literals.
+ 
+ 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
+@@ -475,7 +475,7 @@ C ObjC C++ ObjC++ Var(warn_format_zero_l
+ 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.
+ 
+ Wignored-qualifiers

diff --git a/11.0.0/gentoo/03_all_default-warn-trampolines.patch 
b/11.0.0/gentoo/03_all_default-warn-trampolines.patch
ne