cross/gcc-*: upgrade to 9.2.0-r3
This commit is contained in:
parent
d3fedc4b0c
commit
1a5312bb28
6 changed files with 135 additions and 6 deletions
|
@ -29,7 +29,7 @@ pkgver=9.2.0
|
||||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||||
|
|
||||||
pkgname="gcc-aarch64"
|
pkgname="gcc-aarch64"
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Stage2 cross-compiler for aarch64"
|
pkgdesc="Stage2 cross-compiler for aarch64"
|
||||||
url="http://gcc.gnu.org"
|
url="http://gcc.gnu.org"
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
|
@ -194,6 +194,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$pkgver}/gcc-${_pkg
|
||||||
|
|
||||||
gcc-pure64-mips.patch
|
gcc-pure64-mips.patch
|
||||||
0016-invalid_tls_model.patch
|
0016-invalid_tls_model.patch
|
||||||
|
gcc10-pr91920.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
# gcc-4.8-build-args.patch
|
# gcc-4.8-build-args.patch
|
||||||
|
@ -604,4 +605,5 @@ cceeac95f47ea8664e1c16c5ebecb472b5aaa56040e943c1b97c7873b50e3a2bf972d9f743d342a2
|
||||||
a1f7750bc7b8b7d916a5dee34fcc736bd4fb249c96538b547d495794e6cfd49356aa3974506a15074b4cb58edd5d7e2868607c902dd003e8c464d5066fd4a575 libgnarl-musl.patch
|
a1f7750bc7b8b7d916a5dee34fcc736bd4fb249c96538b547d495794e6cfd49356aa3974506a15074b4cb58edd5d7e2868607c902dd003e8c464d5066fd4a575 libgnarl-musl.patch
|
||||||
f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45b58ba8764ab1eb575d4eb6d6dfc550a87a183f8b94e76181 320-libffi-gnulinux.patch
|
f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45b58ba8764ab1eb575d4eb6d6dfc550a87a183f8b94e76181 320-libffi-gnulinux.patch
|
||||||
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
|
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
|
||||||
17e0faeef742d32d57a070d983480367dd28cd28d47a8966ce327afdff3a38ea76803a833c90aff7d3a93aa66dae76c9be47b2408500913b40571af25b85aca7 0016-invalid_tls_model.patch"
|
17e0faeef742d32d57a070d983480367dd28cd28d47a8966ce327afdff3a38ea76803a833c90aff7d3a93aa66dae76c9be47b2408500913b40571af25b85aca7 0016-invalid_tls_model.patch
|
||||||
|
e9fef7677f9541848cd1df0bf3c330f06f1369bdf1d228238b7f1d03d8f2c4be07fd62be503b7bf72b6b1e2d4e404ddd957157b56b8050e3657820ade77491aa gcc10-pr91920.patch"
|
||||||
|
|
41
cross/gcc-aarch64/gcc10-pr91920.patch
Normal file
41
cross/gcc-aarch64/gcc10-pr91920.patch
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
2019-09-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR middle-end/91920
|
||||||
|
* gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
|
||||||
|
variables as shared.
|
||||||
|
|
||||||
|
* c-c++-common/gomp/pr91920.c: New test.
|
||||||
|
|
||||||
|
--- a/gcc/gimplify.c.jj 2019-09-20 12:25:46.829408105 +0200
|
||||||
|
+++ b/gcc/gimplify.c 2019-09-27 11:52:17.458446652 +0200
|
||||||
|
@@ -7132,6 +7132,8 @@ omp_default_clause (struct gimplify_omp_
|
||||||
|
kind = lang_hooks.decls.omp_predetermined_sharing (decl);
|
||||||
|
if (kind != OMP_CLAUSE_DEFAULT_UNSPECIFIED)
|
||||||
|
default_kind = kind;
|
||||||
|
+ else if (VAR_P (decl) && TREE_STATIC (decl) && DECL_IN_CONSTANT_POOL (decl))
|
||||||
|
+ default_kind = OMP_CLAUSE_DEFAULT_SHARED;
|
||||||
|
|
||||||
|
switch (default_kind)
|
||||||
|
{
|
||||||
|
--- a/gcc/testsuite/c-c++-common/gomp/pr91920.c.jj 2019-09-27 11:57:26.066813061 +0200
|
||||||
|
+++ b/gcc/testsuite/c-c++-common/gomp/pr91920.c 2019-09-27 11:57:08.931070237 +0200
|
||||||
|
@@ -0,0 +1,19 @@
|
||||||
|
+/* PR middle-end/91920 */
|
||||||
|
+
|
||||||
|
+void bar (float *);
|
||||||
|
+
|
||||||
|
+void
|
||||||
|
+foo (void)
|
||||||
|
+{
|
||||||
|
+ int i;
|
||||||
|
+ float f[3] = { 0.0f, 0.0f, 0.0f };
|
||||||
|
+#pragma omp parallel for default(none) reduction(+:f[:3])
|
||||||
|
+ for (i = 0; i < 1000; i++)
|
||||||
|
+ {
|
||||||
|
+ int j;
|
||||||
|
+ float k[3] = { 0.25f, 0.5f, 0.75f };
|
||||||
|
+ for (j = 0; j < 3; j++)
|
||||||
|
+ f[j] += k[j];
|
||||||
|
+ }
|
||||||
|
+ bar (f);
|
||||||
|
+}
|
|
@ -29,7 +29,7 @@ pkgver=9.2.0
|
||||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||||
|
|
||||||
pkgname="gcc-armhf"
|
pkgname="gcc-armhf"
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Stage2 cross-compiler for armhf"
|
pkgdesc="Stage2 cross-compiler for armhf"
|
||||||
url="http://gcc.gnu.org"
|
url="http://gcc.gnu.org"
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
|
@ -194,6 +194,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$pkgver}/gcc-${_pkg
|
||||||
|
|
||||||
gcc-pure64-mips.patch
|
gcc-pure64-mips.patch
|
||||||
0016-invalid_tls_model.patch
|
0016-invalid_tls_model.patch
|
||||||
|
gcc10-pr91920.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
# gcc-4.8-build-args.patch
|
# gcc-4.8-build-args.patch
|
||||||
|
@ -604,4 +605,5 @@ cceeac95f47ea8664e1c16c5ebecb472b5aaa56040e943c1b97c7873b50e3a2bf972d9f743d342a2
|
||||||
a1f7750bc7b8b7d916a5dee34fcc736bd4fb249c96538b547d495794e6cfd49356aa3974506a15074b4cb58edd5d7e2868607c902dd003e8c464d5066fd4a575 libgnarl-musl.patch
|
a1f7750bc7b8b7d916a5dee34fcc736bd4fb249c96538b547d495794e6cfd49356aa3974506a15074b4cb58edd5d7e2868607c902dd003e8c464d5066fd4a575 libgnarl-musl.patch
|
||||||
f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45b58ba8764ab1eb575d4eb6d6dfc550a87a183f8b94e76181 320-libffi-gnulinux.patch
|
f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45b58ba8764ab1eb575d4eb6d6dfc550a87a183f8b94e76181 320-libffi-gnulinux.patch
|
||||||
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
|
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
|
||||||
17e0faeef742d32d57a070d983480367dd28cd28d47a8966ce327afdff3a38ea76803a833c90aff7d3a93aa66dae76c9be47b2408500913b40571af25b85aca7 0016-invalid_tls_model.patch"
|
17e0faeef742d32d57a070d983480367dd28cd28d47a8966ce327afdff3a38ea76803a833c90aff7d3a93aa66dae76c9be47b2408500913b40571af25b85aca7 0016-invalid_tls_model.patch
|
||||||
|
e9fef7677f9541848cd1df0bf3c330f06f1369bdf1d228238b7f1d03d8f2c4be07fd62be503b7bf72b6b1e2d4e404ddd957157b56b8050e3657820ade77491aa gcc10-pr91920.patch"
|
||||||
|
|
41
cross/gcc-armhf/gcc10-pr91920.patch
Normal file
41
cross/gcc-armhf/gcc10-pr91920.patch
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
2019-09-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR middle-end/91920
|
||||||
|
* gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
|
||||||
|
variables as shared.
|
||||||
|
|
||||||
|
* c-c++-common/gomp/pr91920.c: New test.
|
||||||
|
|
||||||
|
--- a/gcc/gimplify.c.jj 2019-09-20 12:25:46.829408105 +0200
|
||||||
|
+++ b/gcc/gimplify.c 2019-09-27 11:52:17.458446652 +0200
|
||||||
|
@@ -7132,6 +7132,8 @@ omp_default_clause (struct gimplify_omp_
|
||||||
|
kind = lang_hooks.decls.omp_predetermined_sharing (decl);
|
||||||
|
if (kind != OMP_CLAUSE_DEFAULT_UNSPECIFIED)
|
||||||
|
default_kind = kind;
|
||||||
|
+ else if (VAR_P (decl) && TREE_STATIC (decl) && DECL_IN_CONSTANT_POOL (decl))
|
||||||
|
+ default_kind = OMP_CLAUSE_DEFAULT_SHARED;
|
||||||
|
|
||||||
|
switch (default_kind)
|
||||||
|
{
|
||||||
|
--- a/gcc/testsuite/c-c++-common/gomp/pr91920.c.jj 2019-09-27 11:57:26.066813061 +0200
|
||||||
|
+++ b/gcc/testsuite/c-c++-common/gomp/pr91920.c 2019-09-27 11:57:08.931070237 +0200
|
||||||
|
@@ -0,0 +1,19 @@
|
||||||
|
+/* PR middle-end/91920 */
|
||||||
|
+
|
||||||
|
+void bar (float *);
|
||||||
|
+
|
||||||
|
+void
|
||||||
|
+foo (void)
|
||||||
|
+{
|
||||||
|
+ int i;
|
||||||
|
+ float f[3] = { 0.0f, 0.0f, 0.0f };
|
||||||
|
+#pragma omp parallel for default(none) reduction(+:f[:3])
|
||||||
|
+ for (i = 0; i < 1000; i++)
|
||||||
|
+ {
|
||||||
|
+ int j;
|
||||||
|
+ float k[3] = { 0.25f, 0.5f, 0.75f };
|
||||||
|
+ for (j = 0; j < 3; j++)
|
||||||
|
+ f[j] += k[j];
|
||||||
|
+ }
|
||||||
|
+ bar (f);
|
||||||
|
+}
|
|
@ -29,7 +29,7 @@ pkgver=9.2.0
|
||||||
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
[ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target=""
|
||||||
|
|
||||||
pkgname="gcc-armv7"
|
pkgname="gcc-armv7"
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Stage2 cross-compiler for armv7"
|
pkgdesc="Stage2 cross-compiler for armv7"
|
||||||
url="http://gcc.gnu.org"
|
url="http://gcc.gnu.org"
|
||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
|
@ -194,6 +194,7 @@ source="https://gcc.gnu.org/pub/gcc/releases/gcc-${_pkgbase:-$pkgver}/gcc-${_pkg
|
||||||
|
|
||||||
gcc-pure64-mips.patch
|
gcc-pure64-mips.patch
|
||||||
0016-invalid_tls_model.patch
|
0016-invalid_tls_model.patch
|
||||||
|
gcc10-pr91920.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
# gcc-4.8-build-args.patch
|
# gcc-4.8-build-args.patch
|
||||||
|
@ -604,4 +605,5 @@ cceeac95f47ea8664e1c16c5ebecb472b5aaa56040e943c1b97c7873b50e3a2bf972d9f743d342a2
|
||||||
a1f7750bc7b8b7d916a5dee34fcc736bd4fb249c96538b547d495794e6cfd49356aa3974506a15074b4cb58edd5d7e2868607c902dd003e8c464d5066fd4a575 libgnarl-musl.patch
|
a1f7750bc7b8b7d916a5dee34fcc736bd4fb249c96538b547d495794e6cfd49356aa3974506a15074b4cb58edd5d7e2868607c902dd003e8c464d5066fd4a575 libgnarl-musl.patch
|
||||||
f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45b58ba8764ab1eb575d4eb6d6dfc550a87a183f8b94e76181 320-libffi-gnulinux.patch
|
f4ef08454e28c8732db69115e4998ec153399e8d229dd27f923dbdcf57b68128a65640d026cc7f45b58ba8764ab1eb575d4eb6d6dfc550a87a183f8b94e76181 320-libffi-gnulinux.patch
|
||||||
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
|
86be3338cc9c33089608bc4c5e3b7918c4e500a345c338f361b18c342119a6ed69af5495d72950de7106d760f003528b46ad14795e805f8a3331e206dcb234e3 gcc-pure64-mips.patch
|
||||||
17e0faeef742d32d57a070d983480367dd28cd28d47a8966ce327afdff3a38ea76803a833c90aff7d3a93aa66dae76c9be47b2408500913b40571af25b85aca7 0016-invalid_tls_model.patch"
|
17e0faeef742d32d57a070d983480367dd28cd28d47a8966ce327afdff3a38ea76803a833c90aff7d3a93aa66dae76c9be47b2408500913b40571af25b85aca7 0016-invalid_tls_model.patch
|
||||||
|
e9fef7677f9541848cd1df0bf3c330f06f1369bdf1d228238b7f1d03d8f2c4be07fd62be503b7bf72b6b1e2d4e404ddd957157b56b8050e3657820ade77491aa gcc10-pr91920.patch"
|
||||||
|
|
41
cross/gcc-armv7/gcc10-pr91920.patch
Normal file
41
cross/gcc-armv7/gcc10-pr91920.patch
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
2019-09-27 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR middle-end/91920
|
||||||
|
* gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
|
||||||
|
variables as shared.
|
||||||
|
|
||||||
|
* c-c++-common/gomp/pr91920.c: New test.
|
||||||
|
|
||||||
|
--- a/gcc/gimplify.c.jj 2019-09-20 12:25:46.829408105 +0200
|
||||||
|
+++ b/gcc/gimplify.c 2019-09-27 11:52:17.458446652 +0200
|
||||||
|
@@ -7132,6 +7132,8 @@ omp_default_clause (struct gimplify_omp_
|
||||||
|
kind = lang_hooks.decls.omp_predetermined_sharing (decl);
|
||||||
|
if (kind != OMP_CLAUSE_DEFAULT_UNSPECIFIED)
|
||||||
|
default_kind = kind;
|
||||||
|
+ else if (VAR_P (decl) && TREE_STATIC (decl) && DECL_IN_CONSTANT_POOL (decl))
|
||||||
|
+ default_kind = OMP_CLAUSE_DEFAULT_SHARED;
|
||||||
|
|
||||||
|
switch (default_kind)
|
||||||
|
{
|
||||||
|
--- a/gcc/testsuite/c-c++-common/gomp/pr91920.c.jj 2019-09-27 11:57:26.066813061 +0200
|
||||||
|
+++ b/gcc/testsuite/c-c++-common/gomp/pr91920.c 2019-09-27 11:57:08.931070237 +0200
|
||||||
|
@@ -0,0 +1,19 @@
|
||||||
|
+/* PR middle-end/91920 */
|
||||||
|
+
|
||||||
|
+void bar (float *);
|
||||||
|
+
|
||||||
|
+void
|
||||||
|
+foo (void)
|
||||||
|
+{
|
||||||
|
+ int i;
|
||||||
|
+ float f[3] = { 0.0f, 0.0f, 0.0f };
|
||||||
|
+#pragma omp parallel for default(none) reduction(+:f[:3])
|
||||||
|
+ for (i = 0; i < 1000; i++)
|
||||||
|
+ {
|
||||||
|
+ int j;
|
||||||
|
+ float k[3] = { 0.25f, 0.5f, 0.75f };
|
||||||
|
+ for (j = 0; j < 3; j++)
|
||||||
|
+ f[j] += k[j];
|
||||||
|
+ }
|
||||||
|
+ bar (f);
|
||||||
|
+}
|
Loading…
Reference in a new issue