1 |
commit: fbda64e161da0049d14583b0126fe4d7e0aec805 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 26 06:53:30 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 26 06:53:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=fbda64e1 |
7 |
|
8 |
11.0.0: cup 4 patchset |
9 |
|
10 |
One patch dropped: |
11 |
- 25_all_hppa-faster-synth_mult.patch: upstream got better fix |
12 |
|
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch | 44 ----------------------- |
16 |
11.0.0/gentoo/README.history | 3 ++ |
17 |
2 files changed, 3 insertions(+), 44 deletions(-) |
18 |
|
19 |
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 |
20 |
deleted file mode 100644 |
21 |
index e93aa40..0000000 |
22 |
--- a/11.0.0/gentoo/25_all_hppa-faster-synth_mult.patch |
23 |
+++ /dev/null |
24 |
@@ -1,44 +0,0 @@ |
25 |
-From 73a841928cc1b86f43108d2383a6242e7e61a785 Mon Sep 17 00:00:00 2001 |
26 |
-From: Sergei Trofimovich <slyfox@g.o> |
27 |
-Date: Tue, 31 Mar 2020 23:58:05 +0100 |
28 |
-Subject: [PATCH] gcc/expmed.h: increase cache size from 10^3 to 10^6 |
29 |
- |
30 |
-Without this patch is takes dev-libs/xxhash 1-2 hours |
31 |
-to compile. With this patch - TODO measurements. |
32 |
- |
33 |
-It workarounds deficiency of synth_mult() which evics |
34 |
-cache entries as it calculates optimal multiplication |
35 |
-algorithm. xxhash is especially hevyweight as it's a |
36 |
-64-bit multiplication of large prime constants. |
37 |
- |
38 |
-Bug: https://gcc.gnu.org/PR87256 |
39 |
-Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
40 |
---- |
41 |
- gcc/expmed.h | 13 ++++++++----- |
42 |
- 1 file changed, 8 insertions(+), 5 deletions(-) |
43 |
- |
44 |
---- a/gcc/expmed.h |
45 |
-+++ b/gcc/expmed.h |
46 |
-@@ -127,11 +127,14 @@ struct alg_hash_entry { |
47 |
- }; |
48 |
- |
49 |
- /* The number of cache/hash entries. */ |
50 |
--#if HOST_BITS_PER_WIDE_INT == 64 |
51 |
--#define NUM_ALG_HASH_ENTRIES 1031 |
52 |
--#else |
53 |
--#define NUM_ALG_HASH_ENTRIES 307 |
54 |
--#endif |
55 |
-+/* |
56 |
-+ * Workaround hppa2.0 synth_mult deficiency |
57 |
-+ * and allocate ~1 million slots: |
58 |
-+ * https://gcc.gnu.org/PR87256 |
59 |
-+ * That should increase RAM usage up to ~24MB |
60 |
-+ * per process. |
61 |
-+ */ |
62 |
-+#define NUM_ALG_HASH_ENTRIES 1000003 |
63 |
- |
64 |
- #define NUM_MODE_INT \ |
65 |
- (MAX_MODE_INT - MIN_MODE_INT + 1) |
66 |
--- |
67 |
-2.26.0 |
68 |
- |
69 |
|
70 |
diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history |
71 |
index 6083777..b3e6ea1 100644 |
72 |
--- a/11.0.0/gentoo/README.history |
73 |
+++ b/11.0.0/gentoo/README.history |
74 |
@@ -1,3 +1,6 @@ |
75 |
+4 26 Aug 2020 |
76 |
+ - 25_all_hppa-faster-synth_mult.patch |
77 |
+ |
78 |
3 23 Aug 2020 |
79 |
- 16_all_libgfortran-Werror.patch |