[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2024-01-13 Thread Fabian Groffen
commit: 1469562b0aad1ca8f2a9a130df50df2ca15aa5a3
Author: Fabian Groffen  gentoo  org>
AuthorDate: Sat Jan 13 14:32:16 2024 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Sat Jan 13 14:32:16 2024 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1469562b

sys-devel/gcc-13.2.0: version bump

Compiles and works on Darwin x64-17, arm64-23.  Non-Darwin use untested.

Bug: https://bugs.gentoo.org/916291
Signed-off-by: Fabian Groffen  gentoo.org>

 sys-devel/gcc/Manifest |   4 +
 .../gcc/files/gcc-13-fix-cross-fixincludes.patch   |  19 +++
 sys-devel/gcc/gcc-13.2.0.ebuild| 153 +
 3 files changed, 176 insertions(+)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 50516e4616..6173450b30 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -6,3 +6,7 @@ DIST gcc-12.2-darwin-r0.tar.gz 131069986 BLAKE2B 
42de71c9f0802f1a43e675d3fae7341
 DIST gcc-12.2.0-musl-patches-1.tar.xz 3844 BLAKE2B 
004432806696f7d0a32366270ac45695e858abee73a255e44dc6e0a225339e4cad40aab0d51dfe9a55d5aa4b4001f5726064bb2eea3212a0874b2d27e229abd7
 SHA512 
c354edcd641a9dfaf902a0ff4c44c75065d0cf1c36bbf6c3c35c2e23bff22b8f70bcf4458a5a0ef86371e9f2fafca8a54ca822e35820ff442c9458a2819c3606
 DIST gcc-12.2.0-patches-1.tar.xz 12864 BLAKE2B 
a5ae0a85dfc1b6f0bd968f0d5262ebed14ec9cdb3249e3a4c571578c54eda0e53708ee7fe8e03e506366c7f3cf7926eced9b390d9dee948c1249298c0fabd9fb
 SHA512 
f3d793b89a2a0385d596162fb0c653d4acdf21ae418cb792c1786a01fde0391bd0719715dbf07d53636f127168f5cd99108a1dc11cf6cea889b7d82385bcc258
 DIST gcc-12.2.0.tar.xz 84645292 BLAKE2B 
715574af9ad678f9dc8cfd19c866bf910c7edfd479e7e9681337feaa9b54e5d304ddb85483816b8d89754d502405823ae2eff0d1e444538763f40be8e428d8da
 SHA512 
e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173
+DIST gcc-13.2-darwin-r0.tar.gz 137958605 BLAKE2B 
b6777b76baf2dc007c4080c0b7a6d448223747f0cf832e493e3b903b3bdb7f87a0e2e9cf41f9355769b178a72409b1e2866b3e73b1cc33ed0aba837f3a9e66c1
 SHA512 
a33177bd55d228d1df93e2a029e8af5d215ad8b2ebc84a0c90df629d6f69c5de0ed1ec9dd27bc21a62362522d83bad9a8f34407b89b13321b65f513fa2202dd2
+DIST gcc-13.2.0-musl-patches-2.tar.xz 5292 BLAKE2B 
c057d6574d03c05854edaa9f3fd40e9149662b04f3ac7a7db3eb078d73a7b535726d1bf52e5b12736dedb2f9898ad731f2e48a6421fcfbf7b90f929dee072fcb
 SHA512 
a691da0c87c443a5e9d23731f4005f27871c5b12bc9102873ffa24d374aa7b9fbd187c4f5635d23fa9ffb17e351e76173c2d3fdf40646e355c4cb314b538de69
+DIST gcc-13.2.0-patches-7.tar.xz 37064 BLAKE2B 
4a8700a8d44bfaa84926f8bfd0da4c5b0c0377f47fc0679456e909f7c9029b9cf1b72c0ba0bc505d9035d5c38e27f7e5b029727eaf2bc7aca417a6be966b2f43
 SHA512 
f440c97e6782ecb8581d41608e31a648ac426e2d870bc1d171da7794cdeff2fd0546cae0c7214e72fd3a00ead8a5c66f3f633b670b74553a2f3a40378b51f20c
+DIST gcc-13.2.0.tar.xz 87858592 BLAKE2B 
0034b29d3d6cc05821f0c4253ce077805943aff7b370729dd203bda57d89c107edd657eeddc2fb1e69ea15c7b0323b961f46516c7f4af89a3ccf7fea84701be2
 SHA512 
d99e4826a70db04504467e349e9fbaedaa5870766cda7c5cab50cdebedc4be755ebca5b789e1232a34a20be1a0b60097de9280efe47bdb71c73251e30b0862a2

diff --git a/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch 
b/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch
new file mode 100644
index 00..e4abe01a08
--- /dev/null
+++ b/sys-devel/gcc/files/gcc-13-fix-cross-fixincludes.patch
@@ -0,0 +1,19 @@
+Revert of 
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=59e4c98173a79fcaa2c33253261409f38856c384
+for now to fix cross fixincludes builds.
+
+https://bugs.gentoo.org/905118
+--- a/gcc/Makefile.in
 b/gcc/Makefile.in
+@@ -532,11 +532,7 @@ LINKER_PLUGIN_API_H = $(srcdir)/../include/plugin-api.h
+ # Default native SYSTEM_HEADER_DIR, to be overridden by targets.
+ NATIVE_SYSTEM_HEADER_DIR = @NATIVE_SYSTEM_HEADER_DIR@
+ # Default cross SYSTEM_HEADER_DIR, to be overridden by targets.
+-ifeq (@includedir@,$(prefix)/include)
+-  CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@
+-else
+-  CROSS_SYSTEM_HEADER_DIR = @includedir@
+-endif
++CROSS_SYSTEM_HEADER_DIR = @CROSS_SYSTEM_HEADER_DIR@
+ 
+ # autoconf sets SYSTEM_HEADER_DIR to one of the above.
+ # Purge it of unnecessary internal relative paths

diff --git a/sys-devel/gcc/gcc-13.2.0.ebuild b/sys-devel/gcc/gcc-13.2.0.ebuild
new file mode 100644
index 00..02fa04f772
--- /dev/null
+++ b/sys-devel/gcc/gcc-13.2.0.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+TOOLCHAIN_PATCH_DEV="sam"
+PATCH_GCC_VER="13.2.0"
+PATCH_VER="7"
+MUSL_VER="2"
+MUSL_GCC_VER="13.2.0"
+
+inherit toolchain
+
+# Don't keyword live ebuilds
+if ! tc_is_live && [[ -z ${TOOLCHAIN_USE_GIT_PATCHES} ]] ; then
+   # fails to compile on Solaris and macOS, need to check why
+   : KEYWORDS="~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos 
~x64-solaris"
+   KEYWORDS="~arm64-ma

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/4.1.0/, sys-devel/gcc/files/4.7.2/, ...

2023-08-30 Thread Fabian Groffen
commit: d9292615580292acafc18a2ae7796005f702edf7
Author: Fabian Groffen  gentoo  org>
AuthorDate: Wed Aug 30 10:29:33 2023 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Wed Aug 30 10:29:33 2023 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d9292615

sys-devel/gcc: cleanup EAPI=7 ebuilds

Signed-off-by: Fabian Groffen  gentoo.org>

 sys-devel/gcc/Manifest |  11 -
 .../gcc/files/4.0.2/gcc-4.0.2-softfloat.patch  |  84 --
 .../gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch  |  40 ---
 .../gcc-4.1.0-fast-math-i386-Os-workaround.patch   |  64 -
 sys-devel/gcc/files/4.2.2/aix-bnoerok.patch|  26 --
 .../gcc/files/4.2.2/aix-force-pthread-r1.patch |  42 ---
 sys-devel/gcc/files/4.2.2/aix-force-pthread.patch  | 275 --
 sys-devel/gcc/files/4.2.2/aix-libssp.patch |  24 --
 sys-devel/gcc/files/4.2.2/aix-lineno.patch |  29 --
 sys-devel/gcc/files/4.2.2/aix-minimal-toc.patch|  20 --
 sys-devel/gcc/files/4.2.2/aix-pr46072.patch|  25 --
 .../gcc/files/4.2.2/aix-runtimelinking-r1.patch|  46 ---
 sys-devel/gcc/files/4.2.2/aix-runtimelinking.patch | 113 
 sys-devel/gcc/files/4.2.2/aix-soname.patch | 132 -
 sys-devel/gcc/files/4.2.2/aix61-longdouble64.patch |  14 -
 sys-devel/gcc/files/4.2.2/gentoo-fixincludes.patch |  29 --
 sys-devel/gcc/files/4.2.2/interix-3.5-x86.patch|  11 -
 sys-devel/gcc/files/4.2.2/interix-x86.patch.bz2| Bin 8885 -> 0 bytes
 sys-devel/gcc/files/4.2.2/pr26189-pa.patch |  24 --
 sys-devel/gcc/files/4.2.2/pr31899.patch|  66 -
 sys-devel/gcc/files/4.2.2/prefix-search-dirs.patch |  48 
 sys-devel/gcc/files/4.2.2/ro-string.patch  | 109 ---
 sys-devel/gcc/files/4.2.2/solarisx86.patch |  15 -
 sys-devel/gcc/files/4.2.2/solarisx86_64.patch  |  89 --
 sys-devel/gcc/files/4.2.2/targettools-checks.patch | 108 ---
 .../gcc/files/4.2.2/treelang-nomakeinfo.patch  |  12 -
 .../gcc/files/4.3.2/gcc-4.3.2-softfloat.patch  |  88 --
 sys-devel/gcc/files/4.3.3/aix-force-pthread.patch  | 316 -
 .../files/4.3.3/gcc-4.3.3-redundant-linkage.patch  |  18 --
 sys-devel/gcc/files/4.3.3/prefix-search-dirs.patch |  48 
 sys-devel/gcc/files/4.3.3/solarisx86_64.patch  | 118 
 sys-devel/gcc/files/4.5.2/m68k-coldfire.patch  |  52 
 sys-devel/gcc/files/4.5.2/prefix-search-dirs.patch |  37 ---
 sys-devel/gcc/files/4.5.2/solaris-pthread.patch|  32 ---
 sys-devel/gcc/files/4.5.2/solaris-searchpath.patch |  89 --
 sys-devel/gcc/files/4.7.1/solaris-searchpath.patch |  38 ---
 .../gcc/files/4.7.2/solaris-x64-tls-gnu-as.patch   | 135 -
 sys-devel/gcc/gcc-10.2.0-r5.ebuild | 111 
 sys-devel/gcc/gcc-10.3.0-r2.ebuild | 116 
 sys-devel/gcc/gcc-11.2.0.ebuild| 118 
 sys-devel/gcc/gcc-8.3.0.ebuild |  97 ---
 sys-devel/gcc/gcc-9.2.0-r3.ebuild  |  98 ---
 42 files changed, 2967 deletions(-)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 2b4ecba53e..50516e4616 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -1,9 +1,3 @@
-DIST gcc-10.2.0-patches-6.tar.bz2 24103 BLAKE2B 
f719012f86136ad9c4ea1397548caca6e69687534599a88cc25fe0e4f83dd7fd34c07375fa6e612e2b430e078c1a59913160cce07312e94fa1ce575a33e5457b
 SHA512 
61d97dba29024c7a22806689ebf33f5cb9ce099230bcc344f2865b976c3fdfd8ebec5962eaffd0156de75eca58499ba785867bd4a4ac92c6f799ab1bee8844a1
-DIST gcc-10.2.0.tar.xz 75004144 BLAKE2B 
1d79397330354e61439283cac96a109bf78ffc726265442e6d3ec131f107589ab7349d6612836edd8c8512f7bcc1d901a65a0d5d925d28a5bf3ef5cc3f9787ee
 SHA512 
42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e
-DIST gcc-10.3.0-patches-3.tar.bz2 18935 BLAKE2B 
13eaf1e055b5b63069aed1575ed93f6bc822b5e3f2181ddfc88f4e7ff801f58997cd131b2efd79b90469b1f861db994feb2adcaecacf165442078f76e233fd9a
 SHA512 
c3d6a6f32863cc0ff7c877314ff0c00a892e473f64d16b82d46b4a77aa97c3e7a575492d27f0d423acb2621c86c9a49bca0e26e45bda9e697495444fcac85084
-DIST gcc-10.3.0.tar.xz 76692288 BLAKE2B 
ac7898f5eb8a7c5f151a526d1bb38913a68b50a65e4d010ac09fa20b6c801c671c790d780f23ccb8e4ecdfc686f4aa588082ccc9eb5c80c7b0e30788f824c1eb
 SHA512 
2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86
-DIST gcc-11.2.0-patches-1.tar.bz2 11537 BLAKE2B 
9dd791ada244c9b70b8b99f9f305a688c248134715ed1b26d406e53b114983faae6873cdc521497164388d24d5f61c199e98df146bc02f5578e877295bcf5c82
 SHA512 
6539efc60c656d0798a5896dc1b944ed69914b815102c7a1c10bdba4ef935abd326b01309f38316e121f1ed90ceb2abcaf65df6af116892daad829ac2623cefc
-DIST gcc-11.2.0.tar.xz 8024 BLAKE2B 
69b61234ac436edfea2933df68c434a2ce7aa4454ef4da573e82587e1a42dc420189e949cfdadaf4cb37fc0de967

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2023-02-19 Thread Sam James
commit: d3ca44544e61178286f5c979fed2d4f36f3332b3
Author: Yifeng Li  tomli  me>
AuthorDate: Sat Feb 18 22:42:05 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Feb 19 18:53:03 2023 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d3ca4454

sys-devel/gcc-12.1.0: patch to fix macOS 13 build.

When bootstrapping Gentoo Prefix on macOS 13.2 (Ventura) on
an Apple M1 system, it will fail at stage2 due to a GCC build
failure because GCC 12.1 is incompatible with macOS 13.

make[2]: Entering directory 
'/Users/apple/gentoo/tmp/var/tmp/portage/sys-devel/gcc-12.1.0/work/build/gcc'
/Users/apple/Gentoo/tmp/var/tmp/portage/sys-devel/gcc-12.1.0/work/build/./gcc/xgcc
 -B/Users/apple/Gentoo/tmp/var/tmp/portage/sys-devel/g
cc-12.1.0/work/build/./gcc/ -xc++ -nostdinc /dev/null -S -o /dev/null 
-fself-test=/Users/apple/Gentoo/tmp/var/tmp/portage/sys-devel/gcc-
12.1.0/work/gcc-12-branch-gcc-12.1-darwin-r0/gcc/testsuite/selftests
: error: unknown value '13.0' of '-mmacosx-version-min'

This problem can be fixed by applying the upstream patch

* Darwin: Future-proof -mmacosx-version-min
> f18cbc1ee1f4 (2021-12-18) updated various parts of gcc to not impose a
> Darwin or macOS version maximum of the current known release. [...] However,
> f18cbc1ee1f4 missed config/darwin-c.c (now .cc), which continued to impose a
> maximum of macOS 12 on the -mmacosx-version-min compiler driver argument.
https://github.com/gcc-mirror/gcc/commit/6725f186cb70d48338f69456864bf469a12ee5be.patch

However, there's another separate name collision bug in fs_path.h of
libstdc++ that will produce another error, similar to the following
(I lost the original logs, this is copied from an issue I found online).

In file included from 
/private/tmp/gccA10-20221211-4993-1miwm67/gcc-10.4.0/build/x86_64-apple-darwin22/libstdc++-v3/include/filesystem:45,
 from ../../../../../libstdc++-v3/src/c++17/fs_dir.cc:30:
/private/tmp/gccA10-20221211-4993-1miwm67/gcc-10.4.0/build/x86_64-apple-darwin22/libstdc++-v3/include/bits/fs_path.h:133:30:
 error: abstract declarator 'std::filesystem::__cxx11::__detail::' used as declaration
  133 |   struct __null_terminated { };

To fix this problem, the following upstream patch must be applied:

* libstdc++: Rename __null_terminated to avoid collision with Apple SDK
> The macOS 13 SDK (and equivalent-version iOS and other Apple OS SDKs)
> contain this definition in : "#define __null_terminated" This
> collides with the use of __null_terminated in libstdc++'s experimental
> fs_path.h.
https://github.com/gcc-mirror/gcc/commit/d1201dbf55a11d391030914985ba6b443e59baa5.patch

Fixing both problems allow successful compile of sys-devel/gcc-12.1.0 in
stage2 and stage3.

This commit fixes Gentoo bug 895332 [1].

Note that sys-devel/gcc-12.2.0 has its own bugs (Gentoo bug 895334) that
prevents bootstrapping from happening. My recommendation is fixing
sys-devel/gcc-12.1.0 for now, and masking sys-devel/gcc-12.2.0 until the
problem has been thoroughly investigated.

Closes: https://bugs.gentoo.org/895332
Signed-off-by: Yifeng Li  tomli.me>
Closes: https://github.com/gentoo/prefix/pull/17
Signed-off-by: Sam James  gentoo.org>

 ...rminated-name-collision-with-macos-13-sdk.patch | 85 ++
 ...ognize-mmacosx-version-min-13.0-and-newer.patch | 54 ++
 sys-devel/gcc/gcc-12.1.0.ebuild|  4 +
 3 files changed, 143 insertions(+)

diff --git 
a/sys-devel/gcc/files/gcc-12.1.0-avoid-null-terminated-name-collision-with-macos-13-sdk.patch
 
b/sys-devel/gcc/files/gcc-12.1.0-avoid-null-terminated-name-collision-with-macos-13-sdk.patch
new file mode 100644
index 00..1abfae345c
--- /dev/null
+++ 
b/sys-devel/gcc/files/gcc-12.1.0-avoid-null-terminated-name-collision-with-macos-13-sdk.patch
@@ -0,0 +1,85 @@
+https://bugs.gentoo.org/886491
+https://bugs.gentoo.org/895332
+https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=d1201dbf55a11d391030914985ba6b443e59baa5
+
+From d1201dbf55a11d391030914985ba6b443e59baa5 Mon Sep 17 00:00:00 2001
+From: Mark Mentovai 
+Date: Mon, 13 Jun 2022 16:40:19 +0100
+Subject: [PATCH] libstdc++: Rename __null_terminated to avoid collision with
+ Apple SDK
+
+The macOS 13 SDK (and equivalent-version iOS and other Apple OS SDKs)
+contain this definition in :
+
+863  #define __null_terminated
+
+This collides with the use of __null_terminated in libstdc++'s
+experimental fs_path.h.
+
+As libstdc++'s use of this token is entirely internal to fs_path.h, the
+simplest workaround, renaming it, is most appropriate. Here, it's
+renamed to __nul_terminated, referencing the NUL ('\0') value that is
+used to terminate the strings in the context in which this tag structure
+is used.
+
+libstdc++-v3/ChangeLog:
+
+   * include/experimental/bits/fs_path.h (__detail::__null_terminated):
+   Rename to __nul_terminated to avoid colliding with a macro in
+   Apple's SDK.
+
+Signed-off-by: Mark Mentovai 
+(cherry picked from commit

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2022-06-06 Thread Fabian Groffen
commit: e5f9d97f02ef1b61fcee819e86130b081ef2c378
Author: Fabian Groffen  gentoo  org>
AuthorDate: Mon Jun  6 16:49:11 2022 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Mon Jun  6 16:49:11 2022 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e5f9d97f

sys-devel/gcc: cleanup and add 12.1.0 for Apple M1

Cleanup old versions, no longer supported by toolchain.eclass.  For
bootstraps where no C++ compiler is available, we'll have to manually
bootstrap a compiler in stage1.

gcc-12.1.0 is "hybrid", it uses normal sources by default (tested on
x64-solaris), and uses M1-capable sources (Ian) on Darwin targets
(tested on x64-macos).

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Fabian Groffen  gentoo.org>

 sys-devel/gcc/Manifest |  35 +
 .../gcc/files/gcc-12-no-libs-for-startfile.patch   |  15 +++
 .../gcc/files/gcc-12-prefix-search-dirs.patch  |  37 ++
 sys-devel/gcc/gcc-11_pre20200206.ebuild| 108 
 ...gcc-11_pre20210226.ebuild => gcc-12.1.0.ebuild} |  66 +-
 sys-devel/gcc/gcc-4.1.2.ebuild |  68 --
 sys-devel/gcc/gcc-4.2.4-r2.ebuild  | 137 
 sys-devel/gcc/gcc-4.7.3-r1.ebuild  | 143 -
 sys-devel/gcc/gcc-4.8.5-r1.ebuild  | 106 ---
 sys-devel/gcc/gcc-4.9.4.ebuild | 103 ---
 sys-devel/gcc/gcc-5.4.0-r4.ebuild  | 105 ---
 sys-devel/gcc/gcc-7.4.0.ebuild |  92 -
 sys-devel/gcc/gcc-8.3.0.ebuild |   4 +-
 sys-devel/gcc/gcc-9.2.0-r3.ebuild  |   4 +-
 sys-devel/gcc/metadata.xml |  72 +--
 15 files changed, 128 insertions(+), 967 deletions(-)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index c2eb112112..bc6c8f741c 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -1,42 +1,15 @@
-DIST ecj-4.5.jar 1470676 BLAKE2B 
793c10ba09fd8040c0e1181204141aea16780c9c9088e07126e00da2b510af2ad6f58d876357d7e98cbb02d783a3be434469d5de1df134ccb8cc508e45028d80
 SHA512 
d4e1bf7538ace56e3d69fa91da5bbd16c272923b4de0a9d8dee23ea2b75f9f38c603de72fc4061df49285c450b63f3df211cee5270e9fffc5447445d1a9c9e4e
 DIST gcc-10.2.0-patches-6.tar.bz2 24103 BLAKE2B 
f719012f86136ad9c4ea1397548caca6e69687534599a88cc25fe0e4f83dd7fd34c07375fa6e612e2b430e078c1a59913160cce07312e94fa1ce575a33e5457b
 SHA512 
61d97dba29024c7a22806689ebf33f5cb9ce099230bcc344f2865b976c3fdfd8ebec5962eaffd0156de75eca58499ba785867bd4a4ac92c6f799ab1bee8844a1
 DIST gcc-10.2.0.tar.xz 75004144 BLAKE2B 
1d79397330354e61439283cac96a109bf78ffc726265442e6d3ec131f107589ab7349d6612836edd8c8512f7bcc1d901a65a0d5d925d28a5bf3ef5cc3f9787ee
 SHA512 
42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e
 DIST gcc-10.3.0-patches-3.tar.bz2 18935 BLAKE2B 
13eaf1e055b5b63069aed1575ed93f6bc822b5e3f2181ddfc88f4e7ff801f58997cd131b2efd79b90469b1f861db994feb2adcaecacf165442078f76e233fd9a
 SHA512 
c3d6a6f32863cc0ff7c877314ff0c00a892e473f64d16b82d46b4a77aa97c3e7a575492d27f0d423acb2621c86c9a49bca0e26e45bda9e697495444fcac85084
 DIST gcc-10.3.0.tar.xz 76692288 BLAKE2B 
ac7898f5eb8a7c5f151a526d1bb38913a68b50a65e4d010ac09fa20b6c801c671c790d780f23ccb8e4ecdfc686f4aa588082ccc9eb5c80c7b0e30788f824c1eb
 SHA512 
2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86
-DIST gcc-11.0.0-patches-6.tar.bz2 12744 BLAKE2B 
05e8d8b87cd1069bc6c03a6cbd61e5414148b7c6467e5b2ebf03af1493075280d8f1a5a123148f786724e3f813ef7fbb5f2728598ab4ab7879b4e649f592156b
 SHA512 
9e873a40eca07e471a9832ed062575063144554ca306b60a9b5f7da61fa1f148a13fd5ea933c852d105931e452de1c6ab3cd7baf4f80da17b9d81eeb36c5b3fd
 DIST gcc-11.2.0-patches-1.tar.bz2 11537 BLAKE2B 
9dd791ada244c9b70b8b99f9f305a688c248134715ed1b26d406e53b114983faae6873cdc521497164388d24d5f61c199e98df146bc02f5578e877295bcf5c82
 SHA512 
6539efc60c656d0798a5896dc1b944ed69914b815102c7a1c10bdba4ef935abd326b01309f38316e121f1ed90ceb2abcaf65df6af116892daad829ac2623cefc
 DIST gcc-11.2.0.tar.xz 8024 BLAKE2B 
69b61234ac436edfea2933df68c434a2ce7aa4454ef4da573e82587e1a42dc420189e949cfdadaf4cb37fc0de9674822210a95b77ff03aca0dbedfe67df19cc6
 SHA512 
d53a0a966230895c54f01aea38696f818817b505f1e2bfa65e508753fcd01b2aedb4a61434f41f3a2ddbbd9f41384b96153c684ded3f0fa97c82758d9de5c7cf
-DIST gcc-4.1.2-patches-1.5.tar.bz2 53576 BLAKE2B 
16dcbf8bac85c3e95a8526ffd504f298ac09fbd79d8ee9f633782ffcd177eb0de256dc8ff36d45dc40dd8582b712e2ea0cd3b2063e3205d51cc022ad7befa7cc
 SHA512 
3c7c15f740ec80aaa6f9c1ad77daeb2a2527f1719fbcc5d96d956e1fe1f24da961b1b030cf2bb631f1a0cc970f6462823e9a78441c9fd6b57f3645b04cd6a362
-DIST gcc-4.1.2-uclibc-patches-1.0.tar.bz2 20980 BLAKE2B 
cfc7dd4c7a0b1ed80c491d4ad56b05b05ff308fdbed2faa1b9f15b10c0f7834ee4ffcb0df1

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2021-09-12 Thread Sam James
commit: b758c765940eb06ad8f58ae003180cbaad4e4888
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 12 08:40:03 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 12 08:40:50 2021 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=b758c765

sys-devel/gcc: add 10.3.0

Bug: https://bugs.gentoo.org/799170
Package-Manager: Portage-3.0.21-prefix, Repoman-3.0.3
Signed-off-by: Sam James  gentoo.org>

 sys-devel/gcc/Manifest |   4 +
 .../gcc/files/gcc-10.3.0-clang-bootstrap.patch | 142 +
 sys-devel/gcc/gcc-10.3.0-r2.ebuild | 114 +
 3 files changed, 260 insertions(+)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index a36c33e58f..4ecccea056 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -1,7 +1,11 @@
 DIST ecj-4.5.jar 1470676 BLAKE2B 
793c10ba09fd8040c0e1181204141aea16780c9c9088e07126e00da2b510af2ad6f58d876357d7e98cbb02d783a3be434469d5de1df134ccb8cc508e45028d80
 SHA512 
d4e1bf7538ace56e3d69fa91da5bbd16c272923b4de0a9d8dee23ea2b75f9f38c603de72fc4061df49285c450b63f3df211cee5270e9fffc5447445d1a9c9e4e
 DIST gcc-10.2.0-patches-6.tar.bz2 24103 BLAKE2B 
f719012f86136ad9c4ea1397548caca6e69687534599a88cc25fe0e4f83dd7fd34c07375fa6e612e2b430e078c1a59913160cce07312e94fa1ce575a33e5457b
 SHA512 
61d97dba29024c7a22806689ebf33f5cb9ce099230bcc344f2865b976c3fdfd8ebec5962eaffd0156de75eca58499ba785867bd4a4ac92c6f799ab1bee8844a1
 DIST gcc-10.2.0.tar.xz 75004144 BLAKE2B 
1d79397330354e61439283cac96a109bf78ffc726265442e6d3ec131f107589ab7349d6612836edd8c8512f7bcc1d901a65a0d5d925d28a5bf3ef5cc3f9787ee
 SHA512 
42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e
+DIST gcc-10.3.0-patches-3.tar.bz2 18935 BLAKE2B 
13eaf1e055b5b63069aed1575ed93f6bc822b5e3f2181ddfc88f4e7ff801f58997cd131b2efd79b90469b1f861db994feb2adcaecacf165442078f76e233fd9a
 SHA512 
c3d6a6f32863cc0ff7c877314ff0c00a892e473f64d16b82d46b4a77aa97c3e7a575492d27f0d423acb2621c86c9a49bca0e26e45bda9e697495444fcac85084
+DIST gcc-10.3.0.tar.xz 76692288 BLAKE2B 
ac7898f5eb8a7c5f151a526d1bb38913a68b50a65e4d010ac09fa20b6c801c671c790d780f23ccb8e4ecdfc686f4aa588082ccc9eb5c80c7b0e30788f824c1eb
 SHA512 
2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86
 DIST gcc-11.0.0-patches-6.tar.bz2 12744 BLAKE2B 
05e8d8b87cd1069bc6c03a6cbd61e5414148b7c6467e5b2ebf03af1493075280d8f1a5a123148f786724e3f813ef7fbb5f2728598ab4ab7879b4e649f592156b
 SHA512 
9e873a40eca07e471a9832ed062575063144554ca306b60a9b5f7da61fa1f148a13fd5ea933c852d105931e452de1c6ab3cd7baf4f80da17b9d81eeb36c5b3fd
+DIST gcc-11.1.0-patches-1.tar.bz2 12130 BLAKE2B 
4d763b83dba7875bbbe8bbb9b6c392791ba97037d17347548604ffa7c70b32fdafcd45b0722ae40aa3aa8cbb34b9f3e3aa399d0096e35e74f75b174aad0c032e
 SHA512 
e4e363c6a81bbc423ec36b6c57801ea2a70961ee7d7d0333924c7012b2b6fd4008f53e9208b5d1f6025f9e74a95d46c121b4b8909827070b46091228688996a4
+DIST gcc-11.1.0.tar.xz 78877216 BLAKE2B 
fe617e776b0270d11adea21b5c37d889de90865c19ab82d1c37bbd5c5b9c583a98c174606c4f893ca4950a4233e2a58aae93ad6aa7ad33d4e78a31c72371c1ed
 SHA512 
fd6bba0f67ff48069d03073d1a9b5e896383b1cfc9dde008e868e60a9ec5014a837d56af0ecbf467b3fb9b37ec74a676e819a18b44393a0a3c4280175b5d7ad8
 DIST gcc-4.1.2-patches-1.5.tar.bz2 53576 BLAKE2B 
16dcbf8bac85c3e95a8526ffd504f298ac09fbd79d8ee9f633782ffcd177eb0de256dc8ff36d45dc40dd8582b712e2ea0cd3b2063e3205d51cc022ad7befa7cc
 SHA512 
3c7c15f740ec80aaa6f9c1ad77daeb2a2527f1719fbcc5d96d956e1fe1f24da961b1b030cf2bb631f1a0cc970f6462823e9a78441c9fd6b57f3645b04cd6a362
 DIST gcc-4.1.2-uclibc-patches-1.0.tar.bz2 20980 BLAKE2B 
cfc7dd4c7a0b1ed80c491d4ad56b05b05ff308fdbed2faa1b9f15b10c0f7834ee4ffcb0df1619f959f7a1a5f315305b550665c232404a8a3306e3e615539a0c8
 SHA512 
57789f4236a3085136afa83be3cef677bd813afd258d67bfdbecd2058f497cd459366d5515044c0208ab753946dc951dac6a3889752ca6dae836d837c22ce33b
 DIST gcc-4.1.2.tar.bz2 39707720 BLAKE2B 
966b6a64c118456c7fb66eb2ad0dd84b1d53ad88dcbd146f446ef097a6975f5d6a7f1bcbbc4bfcd4e48b00eeb8054728e412db3d9818cff1f195e37859a4e510
 SHA512 
b97d3b72a3b0355611d5090b2c715b7a774f0e466a89326a0226c2809d12dfafb2d7c5a7af54bd5e00c135bbb6596f535e1a484740f7f1f691e8a57e6f0425cc

diff --git a/sys-devel/gcc/files/gcc-10.3.0-clang-bootstrap.patch 
b/sys-devel/gcc/files/gcc-10.3.0-clang-bootstrap.patch
new file mode 100644
index 00..b79f421695
--- /dev/null
+++ b/sys-devel/gcc/files/gcc-10.3.0-clang-bootstrap.patch
@@ -0,0 +1,142 @@
+Noticed when looking through git logs for Darwin but wasn't
+sure until I saw it in macports as well:
+https://raw.githubusercontent.com/macports/macports-ports/master/lang/gcc10/files/patch-gcc10-i686-clang-bootstrap-fix.diff
+https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=54258e22b0846aaa6bd3265f592feb161eecda75
+
+From 54258e22b0846aaa6bd3265f592feb161eecda75 Mon Sep 17 00:00:00 2001
+From: Iain Sandoe 

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2021-09-05 Thread Fabian Groffen
commit: ccbf773bca3510785a1c6655c77f5d457ded43af
Author: Fabian Groffen  gentoo  org>
AuthorDate: Sun Sep  5 10:29:56 2021 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Sun Sep  5 10:29:56 2021 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=ccbf773b

sys-devel/gcc-10.2.0-r5: add patch for Xcode 12.5

Closes: https://bugs.gentoo.org/799170
Package-Manager: Portage-3.0.21-prefix, Repoman-3.0.3
Signed-off-by: Fabian Groffen  gentoo.org>

 sys-devel/gcc/files/gcc-10.2.0-xcode-12.5.patch | 147 
 sys-devel/gcc/gcc-10.2.0-r5.ebuild  |   3 +
 2 files changed, 150 insertions(+)

diff --git a/sys-devel/gcc/files/gcc-10.2.0-xcode-12.5.patch 
b/sys-devel/gcc/files/gcc-10.2.0-xcode-12.5.patch
new file mode 100644
index 00..f8b6b04232
--- /dev/null
+++ b/sys-devel/gcc/files/gcc-10.2.0-xcode-12.5.patch
@@ -0,0 +1,147 @@
+From 743b8dd6fd757e997eb060d70fd4ae8e04fb56cd Mon Sep 17 00:00:00 2001
+From: Iain Sandoe 
+Date: Sat, 31 Jul 2021 16:29:03 +0100
+Subject: [PATCH 1/1] Darwin, X86, config: Adjust 'as' command lines
+ [PR100340].
+
+Versions of the assembler using clang from XCode 12.5/12.5.1
+have a bug which produces different code layout between debug and
+non-debug input, leading to a compare fail for default configure
+parameters.
+
+This is a workaround fix to disable the optimisation that is
+responsible for the bug.
+
+Signed-off-by: Iain Sandoe 
+
+PR target/100340 - Bootstrap fails with Clang 12.0.5 (XCode 12.5)
+
+   PR target/100340
+
+gcc/ChangeLog:
+
+   * config.in: Regenerate.
+   * config/i386/darwin.h (EXTRA_ASM_OPTS): New
+   (ASM_SPEC): Pass options to disable branch shortening where
+   needed.
+   * configure: Regenerate.
+   * configure.ac: Detect versions of 'as' that support the
+   optimisation which has the bug.
+---
+ gcc/config.in|  7 +++
+ gcc/config/i386/darwin.h | 10 +-
+ gcc/configure| 35 +++
+ gcc/configure.ac |  9 +
+ 4 files changed, 60 insertions(+), 1 deletion(-)
+
+diff --git a/gcc/config.in b/gcc/config.in
+index 7f5b01fad76..d8a810bbc91 100644
+--- a/gcc/config.in
 b/gcc/config.in
+@@ -616,6 +616,13 @@
+ #endif
+ 
+ 
++/* Define if your Mac OS X assembler supports -mllvm -x86-pad-for-align=false.
++   */
++#ifndef USED_FOR_TARGET
++#undef HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN
++#endif
++
++
+ /* Define if your Mac OS X assembler supports the -mmacos-version-min option.
+*/
+ #ifndef USED_FOR_TARGET
+diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
+index bac32197e83..73b06e2307d 100644
+--- a/gcc/config/i386/darwin.h
 b/gcc/config/i386/darwin.h
+@@ -125,10 +125,18 @@ along with GCC; see the file COPYING3.  If not see
+   %{mfentry*:%eDarwin does not support -mfentry or associated options}" \
+   DARWIN_CC1_SPEC
+ 
++/* This is a workaround for a tool bug: see PR100340.  */
++
++#ifdef HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN
++#define EXTRA_ASM_OPTS " -mllvm -x86-pad-for-align=false"
++#else
++#define EXTRA_ASM_OPTS ""
++#endif
++
+ #undef ASM_SPEC
+ #define ASM_SPEC "-arch %(darwin_arch) \
+   " ASM_OPTIONS " -force_cpusubtype_ALL \
+-  %{static}" ASM_MMACOSX_VERSION_MIN_SPEC
++  %{static}" ASM_MMACOSX_VERSION_MIN_SPEC EXTRA_ASM_OPTS
+ 
+ #undef ENDFILE_SPEC
+ #define ENDFILE_SPEC \
+diff --git a/gcc/configure b/gcc/configure
+index 08c286764e0..a2d1003a0f5 100755
+--- a/gcc/configure
 b/gcc/configure
+@@ -27082,6 +27082,41 @@ $as_echo "$as_me: WARNING: LTO for $target requires 
binutils >= 2.20.1, but vers
+   fi
+   ;;
+ esac
++case $target_os in
++   darwin2[0-9]* | darwin19*)
++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for llvm 
assembler x86-pad-for-align option" >&5
++$as_echo_n "checking assembler for llvm assembler x86-pad-for-align option... 
" >&6; }
++if ${gcc_cv_as_mllvm_x86_pad_for_align+:} false; then :
++  $as_echo_n "(cached) " >&6
++else
++  gcc_cv_as_mllvm_x86_pad_for_align=no
++  if test x$gcc_cv_as != x; then
++$as_echo '.text' > conftest.s
++if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mllvm -x86-pad-for-align=false 
-o conftest.o conftest.s >&5'
++  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
++  (eval $ac_try) 2>&5
++  ac_status=$?
++  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
++  test $ac_status = 0; }; }
++then
++  gcc_cv_as_mllvm_x86_pad_for_align=yes
++else
++  echo "configure: failed program was" >&5
++  cat conftest.s >&5
++fi
++rm -f conftest.o conftest.s
++  fi
++fi
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 
$gcc_cv_as_mllvm_x86_pad_for_align" >&5
++$as_echo "$gcc_cv_as_mllvm_x86_pad_for_align" >&6; }
++if test $gcc_cv_as_mllvm_x86_pad_for_align = yes; then
++
++$as_echo "#define HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN 1" >>confdefs.h
++
++fi
++
++   ;;
++esac
+ 
+ { $as_echo "$as_me:${as_line

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/

2020-11-24 Thread Fabian Groffen
commit: 981437103b13af8bce24296d59a99af56a238678
Author: Fabian Groffen  gentoo  org>
AuthorDate: Tue Nov 24 12:36:46 2020 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Tue Nov 24 12:36:46 2020 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=98143710

sys-devel/gcc-10.1.0: ensure fixincludes addition is compiled

Package-Manager: Portage-3.0.10-prefix, Repoman-3.0.2
RepoMan-Options: --force
Signed-off-by: Fabian Groffen  gentoo.org>

 .../files/gcc-10.1.0-darwin-auth-fixincludes.patch | 78 ++
 1 file changed, 78 insertions(+)

diff --git a/sys-devel/gcc/files/gcc-10.1.0-darwin-auth-fixincludes.patch 
b/sys-devel/gcc/files/gcc-10.1.0-darwin-auth-fixincludes.patch
index d5e100f6c2..84d5ea3632 100644
--- a/sys-devel/gcc/files/gcc-10.1.0-darwin-auth-fixincludes.patch
+++ b/sys-devel/gcc/files/gcc-10.1.0-darwin-auth-fixincludes.patch
@@ -20,3 +20,81 @@
   *  For the AAB_darwin7_9_long_double_funcs fix (and later fixes for long 
long)
   *  to be useful, the main math.h must use <> and not "" includes.
   */
+--- a/fixincludes/fixincl.x
 b/fixincludes/fixincl.x
+@@ -2686,6 +2686,43 @@
+ 
+ /* * * * * * * * * * * * * * * * * * * * * * * * * *
+  *
++ *  Description of Darwin_Authorization fix
++ */
++tSCC zDarwin_AuthorizationName[] =
++ "darwin_authorization";
++
++/*
++ *  File name selection pattern
++ */
++tSCC zDarwin_AuthorizationList[] =
++  "Frameworks/Security.framework/Headers/Authorization.h\0";
++/*
++ *  Machine/OS name selection pattern
++ */
++tSCC* apzDarwin_AuthorizationMachs[] = {
++"*-*-darwin*",
++(const char*)NULL };
++
++/*
++ *  content selection pattern - do fix if pattern found
++ */
++tSCC zDarwin_AuthorizationSelect0[] =
++   "static const size_t kAuthorizationExternalFormLength = 32;\n";
++
++#defineDARWIN_AUTHORIZATION_TEST_CT  1
++static tTestDesc aDarwin_AuthorizationTests[] = {
++  { TT_EGREP,zDarwin_AuthorizationSelect0, (regex_t*)NULL }, };
++
++/*
++ *  Fix Command Arguments for Darwin_Authorization
++ */
++static const char* apzDarwin_AuthorizationPatch[] = {
++"format",
++"enum { kAuthorizationExternalFormLength = 32 };\n",
++(char*)NULL };
++
++/* * * * * * * * * * * * * * * * * * * * * * * * * *
++ *
+  *  Description of Darwin_9_Long_Double_Funcs_2 fix
+  */
+ tSCC zDarwin_9_Long_Double_Funcs_2Name[] =
+@@ -10476,9 +10513,9 @@
+  *
+  *  List of all fixes
+  */
+-#define REGEX_COUNT  296
++#define REGEX_COUNT  297
+ #define MACH_LIST_SIZE_LIMIT 187
+-#define FIX_COUNT258
++#define FIX_COUNT259
+ 
+ /*
+  *  Enumerate the fixes
+@@ -10547,6 +10584,7 @@
+ CTRL_QUOTES_USE_FIXIDX,
+ CXX_UNREADY_FIXIDX,
+ DARWIN_AVAILABILITYINTERNAL_FIXIDX,
++DARWIN_AUTHORIZATION_FIXIDX,
+ DARWIN_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
+ DARWIN_EXTERNC_FIXIDX,
+ DARWIN_GCC4_BREAKAGE_FIXIDX,
+@@ -11060,6 +11098,11 @@
+  DARWIN_AVAILABILITYINTERNAL_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
+  aDarwin_AvailabilityinternalTests,   
apzDarwin_AvailabilityinternalPatch, 0 },
+ 
++  {  zDarwin_AuthorizationName,zDarwin_AuthorizationList,
++ apzDarwin_AuthorizationMachs,
++ DARWIN_AUTHORIZATION_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
++ aDarwin_AuthorizationTests,   apzDarwin_AuthorizationPatch, 0 },
++
+   {  zDarwin_9_Long_Double_Funcs_2Name,zDarwin_9_Long_Double_Funcs_2List,
+  apzDarwin_9_Long_Double_Funcs_2Machs,
+  DARWIN_9_LONG_DOUBLE_FUNCS_2_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,



[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2020-06-21 Thread Fabian Groffen
commit: 80fe63aa88254de29ead73c178b4f5f388348c68
Author: Fabian Groffen  gentoo  org>
AuthorDate: Sun Jun 21 18:15:46 2020 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Sun Jun 21 18:15:46 2020 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=80fe63aa

sys-devel/gcc-10.1.0-r1: bump from gx86

Package-Manager: Portage-2.3.100-prefix, Repoman-2.3.22
RepoMan-Options: --force
Signed-off-by: Fabian Groffen  gentoo.org>

 sys-devel/gcc/Manifest  |  2 +
 sys-devel/gcc/files/gcc-configure-texinfo.patch |  4 +-
 sys-devel/gcc/gcc-10.1.0-r1.ebuild  | 95 +
 3 files changed, 99 insertions(+), 2 deletions(-)

diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 43e2fe1664..d3970689d3 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -1,4 +1,6 @@
 DIST ecj-4.5.jar 1470676 BLAKE2B 
793c10ba09fd8040c0e1181204141aea16780c9c9088e07126e00da2b510af2ad6f58d876357d7e98cbb02d783a3be434469d5de1df134ccb8cc508e45028d80
 SHA512 
d4e1bf7538ace56e3d69fa91da5bbd16c272923b4de0a9d8dee23ea2b75f9f38c603de72fc4061df49285c450b63f3df211cee5270e9fffc5447445d1a9c9e4e
+DIST gcc-10.1.0-patches-2.tar.bz2 15808 BLAKE2B 
8275c2ac3eda8e87255fefe2bb4ed2a10d790bf6085517cd26589fa6a98aa417f4578da88da91b4639d78ed9c897a07447d2048698b4e003f3adc397881c7ee5
 SHA512 
f3ef55103346a0ca40a5633a520091e93e98a3226d24a2b677f791af511460ea5bb5f6dbda6cdf706af2aeb22eb39d37cf226e012bd378c330db17246da88d09
+DIST gcc-10.1.0.tar.xz 74591240 BLAKE2B 
d64cf01beaaff7af9e7d5b1d5e6fdfb37cce5667b4455c1c9bbfd190e631f03555d63d52d31e7be5ac232256be11058f89d5bc7d0dcb01de44e90a52645ad87f
 SHA512 
0cb2a74c793face751f42bc580960b00e2bfea785872a0a2155f1f1dbfaa248f9591b67f4322db0f096f8844aca9243bc02732bda106c3b6e43b02bb67eb3096
 DIST gcc-4.1.2-patches-1.5.tar.bz2 53576 BLAKE2B 
16dcbf8bac85c3e95a8526ffd504f298ac09fbd79d8ee9f633782ffcd177eb0de256dc8ff36d45dc40dd8582b712e2ea0cd3b2063e3205d51cc022ad7befa7cc
 SHA512 
3c7c15f740ec80aaa6f9c1ad77daeb2a2527f1719fbcc5d96d956e1fe1f24da961b1b030cf2bb631f1a0cc970f6462823e9a78441c9fd6b57f3645b04cd6a362
 DIST gcc-4.1.2-uclibc-patches-1.0.tar.bz2 20980 BLAKE2B 
cfc7dd4c7a0b1ed80c491d4ad56b05b05ff308fdbed2faa1b9f15b10c0f7834ee4ffcb0df1619f959f7a1a5f315305b550665c232404a8a3306e3e615539a0c8
 SHA512 
57789f4236a3085136afa83be3cef677bd813afd258d67bfdbecd2058f497cd459366d5515044c0208ab753946dc951dac6a3889752ca6dae836d837c22ce33b
 DIST gcc-4.1.2.tar.bz2 39707720 BLAKE2B 
966b6a64c118456c7fb66eb2ad0dd84b1d53ad88dcbd146f446ef097a6975f5d6a7f1bcbbc4bfcd4e48b00eeb8054728e412db3d9818cff1f195e37859a4e510
 SHA512 
b97d3b72a3b0355611d5090b2c715b7a774f0e466a89326a0226c2809d12dfafb2d7c5a7af54bd5e00c135bbb6596f535e1a484740f7f1f691e8a57e6f0425cc

diff --git a/sys-devel/gcc/files/gcc-configure-texinfo.patch 
b/sys-devel/gcc/files/gcc-configure-texinfo.patch
index ddc098ddbd..99e90998a4 100644
--- a/sys-devel/gcc/files/gcc-configure-texinfo.patch
+++ b/sys-devel/gcc/files/gcc-configure-texinfo.patch
@@ -4,8 +4,8 @@ that it violates the cheesy version grep.
 
 http://bugs.gentoo.org/198182
 
 configure
-+++ configure
+--- a/configure
 b/configure
 @@ -3573,6 +3573,6 @@
:
  else

diff --git a/sys-devel/gcc/gcc-10.1.0-r1.ebuild 
b/sys-devel/gcc/gcc-10.1.0-r1.ebuild
new file mode 100644
index 00..e163d95646
--- /dev/null
+++ b/sys-devel/gcc/gcc-10.1.0-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+PATCH_VER="2"
+
+inherit toolchain
+
+KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris 
~sparc64-solaris ~x64-solaris ~x86-solaris"
+
+RDEPEND=""
+BDEPEND="
+   kernel_linux? ( ${CATEGORY}/binutils )
+   kernel_Darwin? ( ${CATEGORY}/binutils-apple )
+   kernel_AIX? ( ${CATEGORY}/native-cctools )"
+
+src_prepare() {
+   toolchain_src_prepare
+
+   use vanilla && return 0
+
+   if use elibc_Cygwin; then
+   sed -e 
'/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
+   -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" 
|| die
+   fi
+
+   # make sure 64-bits native targets don't screw up the linker paths
+   eapply -p0 "${FILESDIR}"/no-libs-for-startfile.patch
+   if use prefix; then
+   eapply -p0 "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
+   # try /usr/lib32 in 32bit profile on x86_64-linux (needs
+   # --enable-multilib), but this does make sense in prefix only
+   eapply -p0 "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
+   fi
+
+   # make it have correct install_names on Darwin
+   eapply -p1 "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
+
+   if [[ ${CHOST} == powerpc*-darwin* ]] ; then
+   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
+   sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
+   

[gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/, sys-devel/gcc/

2018-06-07 Thread Fabian Groffen
commit: d582c9ac245214e1e79637dd0ad22d939a70e19b
Author: Fabian Groffen  gentoo  org>
AuthorDate: Thu Jun  7 12:53:58 2018 +
Commit: Fabian Groffen  gentoo  org>
CommitDate: Thu Jun  7 12:53:58 2018 +
URL:https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d582c9ac

sys-devel/gcc: add patch to fix target on powerpc-darwin

Package-Manager: Portage-2.3.40.1-prefix, Repoman-2.3.9

 sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch | 30 ++
 sys-devel/gcc/gcc-7.3.0-r3.ebuild  |  3 +++
 2 files changed, 33 insertions(+)

diff --git a/sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch 
b/sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch
new file mode 100644
index 00..a636187f40
--- /dev/null
+++ b/sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch
@@ -0,0 +1,30 @@
+https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=257501
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84113
+
+--- branches/gcc-7-branch/gcc/config/rs6000/altivec.md 2018/02/08 18:39:43 
257500
 branches/gcc-7-branch/gcc/config/rs6000/altivec.md 2018/02/08 18:48:37 
257501
+@@ -414,7 +414,6 @@
+ (define_insn "*restore_world"
+  [(match_parallel 0 "restore_world_operation"
+   [(return)
+- (use (reg:SI LR_REGNO))
+(use (match_operand:SI 1 "call_operand" "s"))
+(clobber (match_operand:SI 2 "gpc_reg_operand" "=r"))])]
+  "TARGET_MACHO && (DEFAULT_ABI == ABI_DARWIN) && TARGET_32BIT"
+--- branches/gcc-7-branch/gcc/config/rs6000/predicates.md  2018/02/08 
18:39:43 257500
 branches/gcc-7-branch/gcc/config/rs6000/predicates.md  2018/02/08 
18:48:37 257501
+@@ -1468,13 +1468,12 @@
+   rtx elt;
+   int count = XVECLEN (op, 0);
+ 
+-  if (count != 59)
++  if (count != 58)
+ return 0;
+ 
+   index = 0;
+   if (GET_CODE (XVECEXP (op, 0, index++)) != RETURN
+   || GET_CODE (XVECEXP (op, 0, index++)) != USE
+-  || GET_CODE (XVECEXP (op, 0, index++)) != USE
+   || GET_CODE (XVECEXP (op, 0, index++)) != CLOBBER)
+ return 0;
+ 

diff --git a/sys-devel/gcc/gcc-7.3.0-r3.ebuild 
b/sys-devel/gcc/gcc-7.3.0-r3.ebuild
index 8d4055ed5e..57e53e6fca 100644
--- a/sys-devel/gcc/gcc-7.3.0-r3.ebuild
+++ b/sys-devel/gcc/gcc-7.3.0-r3.ebuild
@@ -38,6 +38,9 @@ src_prepare() {
 
# make it have correct install_names on Darwin
epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
+
+   # fix for powerpc-darwin, from upstream, fixed for 7.4
+   epatch "${FILESDIR}"/${P}-powerpc-darwin.patch
 }
 
 src_configure() {