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

2018-10-27 Thread Sergei Trofimovich
commit: 1bb174b905c567350bd2b1ae38df0db010361896
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Oct 27 09:19:18 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Oct 27 09:19:18 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=1bb174b9

6.4.0: cut 1.8 patchset

+ 103_all_remove-lieee.patch
+ 104_all_libgfortran-Werror.patch
+ 105_all_libgomp-Werror.patch
+ 106_all_libitm-Werror.patch
+ 107_all_libatomic-Werror.patch
+ 108_all_libbacktrace-Werror.patch
+ 109_all_libsanitizer-libbacktrace-Werror.patch
+ 110_all_libstdcxx-no-vtv.patch

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

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

diff --git a/6.4.0/gentoo/README.history b/6.4.0/gentoo/README.history
index 34da81c..e24a896 100644
--- a/6.4.0/gentoo/README.history
+++ b/6.4.0/gentoo/README.history
@@ -1,4 +1,4 @@
-1.8TODO
+1.827 Oct 2018
+ 103_all_remove-lieee.patch
+ 104_all_libgfortran-Werror.patch
+ 105_all_libgomp-Werror.patch



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

2018-10-20 Thread Sergei Trofimovich
commit: 347e309da38a2468ecf834883b2f45c765ddd329
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Oct 20 09:39:51 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Oct 20 09:39:51 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=347e309d

6.4.0: pull in vtv RPATH patch

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

 6.4.0/gentoo/110_all_libstdcxx-no-vtv.patch | 61 +
 6.4.0/gentoo/README.history |  1 +
 2 files changed, 62 insertions(+)

diff --git a/6.4.0/gentoo/110_all_libstdcxx-no-vtv.patch 
b/6.4.0/gentoo/110_all_libstdcxx-no-vtv.patch
new file mode 100644
index 000..68508bd
--- /dev/null
+++ b/6.4.0/gentoo/110_all_libstdcxx-no-vtv.patch
@@ -0,0 +1,61 @@
+Final libstdc++.so should not contain rpath to make libvtv usable.
+It's up to final binaries to link against proper libvtv.
+
+Bug: https://bugs.gentoo.org/582524
+Bug: https://gcc.gnu.org/PR85884
+--- a/libstdc++-v3/src/Makefile.am
 b/libstdc++-v3/src/Makefile.am
+@@ -217,7 +217,6 @@ CXXLINK = \
+   $(LIBTOOL) --tag CXX \
+   $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+   --mode=link $(CXX) \
+-  $(VTV_CXXLINKFLAGS) \
+   $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
+ 
+ # Symbol versioning for shared libraries.
+--- a/libstdc++-v3/src/Makefile.in
 b/libstdc++-v3/src/Makefile.in
+@@ -511,7 +511,6 @@ CXXLINK = \
+   $(LIBTOOL) --tag CXX \
+   $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+   --mode=link $(CXX) \
+-  $(VTV_CXXLINKFLAGS) \
+   $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
+ 
+ @ENABLE_SYMVERS_TRUE@CLEANFILES = libstdc++-symbols.ver $(version_dep)
+--- a/libstdc++-v3/src/c++11/Makefile.am
 b/libstdc++-v3/src/c++11/Makefile.am
+@@ -204,5 +204,4 @@ CXXLINK = \
+   $(LIBTOOL) --tag CXX --tag disable-shared \
+   $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+   --mode=link $(CXX) \
+-  $(VTV_CXXLINKFLAGS) \
+   $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
+--- a/libstdc++-v3/src/c++11/Makefile.in
 b/libstdc++-v3/src/c++11/Makefile.in
+@@ -496,7 +496,6 @@ CXXLINK = \
+   $(LIBTOOL) --tag CXX --tag disable-shared \
+   $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+   --mode=link $(CXX) \
+-  $(VTV_CXXLINKFLAGS) \
+   $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
+ 
+ all: all-am
+--- a/libstdc++-v3/src/c++98/Makefile.am
 b/libstdc++-v3/src/c++98/Makefile.am
+@@ -273,5 +273,4 @@ CXXLINK = \
+   $(LIBTOOL) --tag CXX --tag disable-shared \
+   $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+   --mode=link $(CXX) \
+-  $(VTV_CXXLINKFLAGS) \
+   $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
+--- a/libstdc++-v3/src/c++98/Makefile.in
 b/libstdc++-v3/src/c++98/Makefile.in
+@@ -500,7 +500,6 @@ CXXLINK = \
+   $(LIBTOOL) --tag CXX --tag disable-shared \
+   $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+   --mode=link $(CXX) \
+-  $(VTV_CXXLINKFLAGS) \
+   $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
+ 
+ all: all-am

diff --git a/6.4.0/gentoo/README.history b/6.4.0/gentoo/README.history
index 9274752..34da81c 100644
--- a/6.4.0/gentoo/README.history
+++ b/6.4.0/gentoo/README.history
@@ -6,6 +6,7 @@
+ 107_all_libatomic-Werror.patch
+ 108_all_libbacktrace-Werror.patch
+ 109_all_libsanitizer-libbacktrace-Werror.patch
+   + 110_all_libstdcxx-no-vtv.patch
 
 1.723 Sep 2018
+ 101_all_x32-fix-eh-return-address.patch



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

2018-10-18 Thread Sergei Trofimovich
commit: d57df4aeea1ed512a44ab4c56543877d9ec1b04b
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Oct 18 22:12:44 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Oct 18 22:12:44 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=d57df4ae

6.4.0: drop assumed -lieee from -mieee-fp, backport removal of -Werror

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

 6.4.0/gentoo/103_all_remove-lieee.patch| 47 ++
 6.4.0/gentoo/104_all_libgfortran-Werror.patch  | 20 +
 6.4.0/gentoo/105_all_libgomp-Werror.patch  | 20 +
 6.4.0/gentoo/106_all_libitm-Werror.patch   | 19 +
 6.4.0/gentoo/107_all_libatomic-Werror.patch| 19 +
 6.4.0/gentoo/108_all_libbacktrace-Werror.patch | 17 
 .../109_all_libsanitizer-libbacktrace-Werror.patch | 17 
 6.4.0/gentoo/README.history|  9 +
 8 files changed, 168 insertions(+)

diff --git a/6.4.0/gentoo/103_all_remove-lieee.patch 
b/6.4.0/gentoo/103_all_remove-lieee.patch
new file mode 100644
index 000..390a3b0
--- /dev/null
+++ b/6.4.0/gentoo/103_all_remove-lieee.patch
@@ -0,0 +1,47 @@
+Modern glibc stopped providing ieee.a
+
+From 401a6ba8d6aa5a92acaedae24b84c59d284f446d Mon Sep 17 00:00:00 2001
+From: rguenth 
+Date: Thu, 12 Jul 2018 11:53:34 +
+Subject: [PATCH] 2018-07-12  Richard Biener  
+
+   PR target/84829
+   * config/gnu-user.h (GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC):
+   Remove -mieee-fp handling.
+
+   * gcc.target/i386/pr84829.c: New testcase.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262582 
138bc75d-0d04-0410-961f-82ee72b054a4
+---
+ gcc/ChangeLog   | 6 ++
+ gcc/config/gnu-user.h   | 2 +-
+ gcc/testsuite/ChangeLog | 5 +
+ gcc/testsuite/gcc.target/i386/pr84829.c | 7 +++
+ 4 files changed, 19 insertions(+), 1 deletion(-)
+ create mode 100644 gcc/testsuite/gcc.target/i386/pr84829.c
+
+--- a/gcc/config/gnu-user.h
 b/gcc/config/gnu-user.h
+@@ -120,7 +120,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  
If not, see
+ 
+ #define GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC \
+   "%{shared:-lc} \
+-   %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}"
++   %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
+ 
+ #define GNU_USER_TARGET_LIB_SPEC \
+   "%{pthread:-lpthread} " \
+--- /dev/null
 b/gcc/testsuite/gcc.target/i386/pr84829.c
+@@ -0,0 +1,7 @@
++/* { dg-do link } */
++/* { dg-options "-mieee-fp" } */
++
++int main()
++{
++  return 0;
++}
+-- 
+2.19.0
+

diff --git a/6.4.0/gentoo/104_all_libgfortran-Werror.patch 
b/6.4.0/gentoo/104_all_libgfortran-Werror.patch
new file mode 100644
index 000..f6c26bf
--- /dev/null
+++ b/6.4.0/gentoo/104_all_libgfortran-Werror.patch
@@ -0,0 +1,20 @@
+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/6.4.0/gentoo/105_all_libgomp-Werror.patch 
b/6.4.0/gentoo/105_all_libgomp-Werror.patch
new file mode 100644
index 000..416808a
--- /dev/null
+++ b/6.4.0/gentoo/105_all_libgomp-Werror.patch
@@ -0,0 +1,20 @@
+libgomp does not respect --disable-werror
+
+https://bugs.gentoo.org/229059
+http://gcc.gnu.org/PR38436
+--- a/libgomp/configure.ac
 b/libgomp/configure.ac
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi
+--- a/libgomp/configure
 b/libgomp/configure
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if test "x$GCC" = "xyes"; then
+-  XCFLAGS="$XCFLAGS -Wall -Werror"
++  XCFLAGS="$XCFLAGS -Wall"
+ fi

diff --git a/6.4.0/gentoo/106_all_libitm-Werror.patch 
b/6.4.0/gentoo/106_all_libitm-Werror.patch
new file mode 100644
index 000..27181e0
--- /dev/null
+++ b/6.4.0/gentoo/106_all_libitm-Werror.patch
@@ -0,0 +1,19 @@
+libitm does not respect --disable-werror
+
+https://bugs.gentoo.org/475350
+--- a/libitm/configure.ac
 b/libitm/configure.ac
+@@ -4282,4 +4282,4 @@ save_CFLAGS="$CFLAGS"
+ # Add -Wall -Werror if we are using GCC.
+ if 

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

2018-09-23 Thread Sergei Trofimovich
commit: fb536e83696f695effea766d399555f1b2a7106e
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Sep 23 20:49:53 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Sep 23 20:49:53 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=fb536e83

6.4.0: cut 1.7 release

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

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

diff --git a/6.4.0/gentoo/README.history b/6.4.0/gentoo/README.history
index 012b265..5542ec0 100644
--- a/6.4.0/gentoo/README.history
+++ b/6.4.0/gentoo/README.history
@@ -1,4 +1,4 @@
-1.7TODO
+1.723 Sep 2018
+ 101_all_x32-fix-eh-return-address.patch
+ 102_all_respect-build-cxxflags.patch
 1.618 Aug 2018



[gentoo-commits] proj/gcc-patches:master commit in: 6.4.0/gentoo/, 7.3.0/gentoo/, 8.2.0/gentoo/

2018-09-12 Thread Sergei Trofimovich
commit: 7bd9679989239cba83bb0c632bd2f0909b03d1b8
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Sep 12 23:20:12 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Sep 12 23:20:12 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=7bd96799

6/7/8 branches: add 101_all_x32-fix-eh-return-address.patch

Pick upstream fix for x32 exception handler: """
x86: Always update EH return address in word_mode

On x86, return address is always popped in word_mode.  eh_return needs
to put EH return address in word_mode on stack.
"""

Reported-by: camper
Bug: https://bugs.gentoo.org/664016
Bug: https://gcc.gnu.org/PR87014
Signed-off-by: Sergei Trofimovich  gentoo.org>

 .../gentoo/101_all_x32-fix-eh-return-address.patch | 37 ++
 6.4.0/gentoo/README.history|  2 ++
 .../gentoo/99_all_x32-fix-eh-return-address.patch  | 37 ++
 7.3.0/gentoo/README.history|  1 +
 .../gentoo/101_all_x32-fix-eh-return-address.patch | 37 ++
 8.2.0/gentoo/README.history|  2 ++
 6 files changed, 116 insertions(+)

diff --git a/6.4.0/gentoo/101_all_x32-fix-eh-return-address.patch 
b/6.4.0/gentoo/101_all_x32-fix-eh-return-address.patch
new file mode 100644
index 000..c74a087
--- /dev/null
+++ b/6.4.0/gentoo/101_all_x32-fix-eh-return-address.patch
@@ -0,0 +1,37 @@
+Bug: https://bugs.gentoo.org/664016
+
+From 2a8e2ab2e9e11b679616d80285296ac77ad0920f Mon Sep 17 00:00:00 2001
+From: hjl 
+Date: Mon, 20 Aug 2018 19:14:04 +
+Subject: [PATCH] x86: Always update EH return address in word_mode
+
+On x86, return address is always popped in word_mode.  eh_return needs
+to put EH return address in word_mode on stack.
+
+gcc/
+
+   PR target/87014
+   * config/i386/i386.md (eh_return): Always update EH return
+   address in word_mode.
+
+gcc/testsuite/
+
+   PR target/87014
+   * g++.dg/torture/pr87014.C: New file.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263672 
138bc75d-0d04-0410-961f-82ee72b054a4
+--- a/gcc/config/i386/i386.md
 b/gcc/config/i386/i386.md
+@@ -13612,7 +13612,10 @@
+  stack address we wish to restore.  */
+   tmp = gen_rtx_PLUS (Pmode, arg_pointer_rtx, sa);
+   tmp = plus_constant (Pmode, tmp, -UNITS_PER_WORD);
+-  tmp = gen_rtx_MEM (Pmode, tmp);
++  /* Return address is always in word_mode.  */
++  tmp = gen_rtx_MEM (word_mode, tmp);
++  if (GET_MODE (ra) != word_mode)
++ra = convert_to_mode (word_mode, ra, 1);
+   emit_move_insn (tmp, ra);
+ 
+   emit_jump_insn (gen_eh_return_internal ());

diff --git a/6.4.0/gentoo/README.history b/6.4.0/gentoo/README.history
index 2c676a4..2294b26 100644
--- a/6.4.0/gentoo/README.history
+++ b/6.4.0/gentoo/README.history
@@ -1,3 +1,5 @@
+1.7TODO
+   + 101_all_x32-fix-eh-return-address.patch
 1.618 Aug 2018
+ 100_all_isl-include.patch
 1.517 Aug 2018

diff --git a/7.3.0/gentoo/99_all_x32-fix-eh-return-address.patch 
b/7.3.0/gentoo/99_all_x32-fix-eh-return-address.patch
new file mode 100644
index 000..c74a087
--- /dev/null
+++ b/7.3.0/gentoo/99_all_x32-fix-eh-return-address.patch
@@ -0,0 +1,37 @@
+Bug: https://bugs.gentoo.org/664016
+
+From 2a8e2ab2e9e11b679616d80285296ac77ad0920f Mon Sep 17 00:00:00 2001
+From: hjl 
+Date: Mon, 20 Aug 2018 19:14:04 +
+Subject: [PATCH] x86: Always update EH return address in word_mode
+
+On x86, return address is always popped in word_mode.  eh_return needs
+to put EH return address in word_mode on stack.
+
+gcc/
+
+   PR target/87014
+   * config/i386/i386.md (eh_return): Always update EH return
+   address in word_mode.
+
+gcc/testsuite/
+
+   PR target/87014
+   * g++.dg/torture/pr87014.C: New file.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263672 
138bc75d-0d04-0410-961f-82ee72b054a4
+--- a/gcc/config/i386/i386.md
 b/gcc/config/i386/i386.md
+@@ -13612,7 +13612,10 @@
+  stack address we wish to restore.  */
+   tmp = gen_rtx_PLUS (Pmode, arg_pointer_rtx, sa);
+   tmp = plus_constant (Pmode, tmp, -UNITS_PER_WORD);
+-  tmp = gen_rtx_MEM (Pmode, tmp);
++  /* Return address is always in word_mode.  */
++  tmp = gen_rtx_MEM (word_mode, tmp);
++  if (GET_MODE (ra) != word_mode)
++ra = convert_to_mode (word_mode, ra, 1);
+   emit_move_insn (tmp, ra);
+ 
+   emit_jump_insn (gen_eh_return_internal ());

diff --git a/7.3.0/gentoo/README.history b/7.3.0/gentoo/README.history
index 9eb4c76..7070e8f 100644
--- a/7.3.0/gentoo/README.history
+++ b/7.3.0/gentoo/README.history
@@ -1,5 +1,6 @@
 1.6TODO
+ 98_all_msp430-partial-int.patch
+   + 99_all_x32-fix-eh-return-address.patch
 1.618 Aug 2018
+ 97_all_isl-include.patch
 1.517 Aug 2018

diff --git a/8.2.0/gentoo/101_all_x32-fix-eh-return-address.patch 
b/8.2.0/gentoo/101_all_x32-fix-eh-return-address.patch
new file mode 100644
index 

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

2018-08-18 Thread Sergei Trofimovich
commit: 65e2fb65809b6d4e5267779e327707190b693742
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sat Aug 18 19:56:09 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sat Aug 18 19:56:09 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=65e2fb65

6.4.0: fix building against isl-0.20 (PR86724)

Bug: https://bugs.gentoo.org/662500
Bug: https://gcc.gnu.org/PR86724
Signed-off-by: Sergei Trofimovich  gentoo.org>

 6.4.0/gentoo/100_all_isl-include.patch | 35 ++
 6.4.0/gentoo/README.history|  2 ++
 2 files changed, 37 insertions(+)

diff --git a/6.4.0/gentoo/100_all_isl-include.patch 
b/6.4.0/gentoo/100_all_isl-include.patch
new file mode 100644
index 000..bb3bcee
--- /dev/null
+++ b/6.4.0/gentoo/100_all_isl-include.patch
@@ -0,0 +1,35 @@
+https://bugs.gentoo.org/662500
+https://gcc.gnu.org/PR86724
+
+From d6470854446446a4e8b3b958a00e5013ed86ae7f Mon Sep 17 00:00:00 2001
+From: rguenth 
+Date: Wed, 1 Aug 2018 07:21:08 +
+Subject: [PATCH] 2018-08-01  Richard Biener  
+
+   PR bootstrap/86724
+   * graphite.h: Include isl/id.h and isl/space.h to allow build
+   with ISL 0.20.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263193 
138bc75d-0d04-0410-961f-82ee72b054a4
+---
+ gcc/ChangeLog  | 6 ++
+ gcc/graphite.h | 2 ++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/gcc/graphite.h b/gcc/graphite.h
+index 4e0e58c60ab..be0a22b3894 100644
+--- a/gcc/graphite.h
 b/gcc/graphite.h
+@@ -37,6 +37,8 @@ along with GCC; see the file COPYING3.  If not see
+ #include 
+ #include 
+ #include 
++#include 
++#include 
+ 
+ typedef struct poly_dr *poly_dr_p;
+ 
+-- 
+2.18.0
+

diff --git a/6.4.0/gentoo/README.history b/6.4.0/gentoo/README.history
index 59664ff..2c676a4 100644
--- a/6.4.0/gentoo/README.history
+++ b/6.4.0/gentoo/README.history
@@ -1,3 +1,5 @@
+1.618 Aug 2018
+   + 100_all_isl-include.patch
 1.517 Aug 2018
+ 98_all_libsanitizer-avoidustat.h-glibc-2.28-part-1.patch
+ 99_all_libsanitizer-avoidustat.h-glibc-2.28-part-2.patch



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

2018-08-16 Thread Sergei Trofimovich
commit: 5d31e692ab70e1e45c767c3f40045922bda2a85d
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Thu Aug 16 23:13:22 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Thu Aug 16 23:13:22 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=5d31e692

6.4.0: cut 1.5 patchset

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

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

diff --git a/6.4.0/gentoo/README.history b/6.4.0/gentoo/README.history
index d72dc88..59664ff 100644
--- a/6.4.0/gentoo/README.history
+++ b/6.4.0/gentoo/README.history
@@ -1,4 +1,4 @@
-1.5TODO
+1.517 Aug 2018
+ 98_all_libsanitizer-avoidustat.h-glibc-2.28-part-1.patch
+ 99_all_libsanitizer-avoidustat.h-glibc-2.28-part-2.patch
 1.403 Maj 2018



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

2018-08-15 Thread Sergei Trofimovich
commit: 5cb03e85d374381c390032b0b737c8d408f5cdfd
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Wed Aug 15 21:56:42 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Aug 15 21:56:42 2018 +
URL:https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=5cb03e85

6.4.0: fix building against glibc-2.28 (ustat.h)

All patches are taken as-is from gcc-7-branch.

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

 ...bsanitizer-avoidustat.h-glibc-2.28-part-1.patch | 67 ++
 ...bsanitizer-avoidustat.h-glibc-2.28-part-2.patch | 32 +++
 6.4.0/gentoo/README.history|  3 +
 3 files changed, 102 insertions(+)

diff --git 
a/6.4.0/gentoo/98_all_libsanitizer-avoidustat.h-glibc-2.28-part-1.patch 
b/6.4.0/gentoo/98_all_libsanitizer-avoidustat.h-glibc-2.28-part-1.patch
new file mode 100644
index 000..a2da9b1
--- /dev/null
+++ b/6.4.0/gentoo/98_all_libsanitizer-avoidustat.h-glibc-2.28-part-1.patch
@@ -0,0 +1,67 @@
+From 61f38c64c01a15560026115a157b7021ec67bd3b Mon Sep 17 00:00:00 2001
+From: hjl 
+Date: Thu, 24 May 2018 20:21:54 +
+Subject: [PATCH] libsanitizer: Use pre-computed size of struct ustat for Linux
+
+Cherry-pick compiler-rt revision 333213:
+
+ has been removed from glibc 2.28 by:
+
+commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
+Author: Adhemerval Zanella 
+Date:   Sun Mar 18 11:28:59 2018 +0800
+
+Deprecate ustat syscall interface
+
+This patch uses pre-computed size of struct ustat for Linux.
+
+   PR sanitizer/85835
+   * sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
+   include  for Linux.
+   (SIZEOF_STRUCT_USTAT): New.
+   (struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.
+
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@260688 
138bc75d-0d04-0410-961f-82ee72b054a4
+---
+ libsanitizer/ChangeLog|  8 
+ .../sanitizer_platform_limits_posix.cc| 15 +--
+ 2 files changed, 21 insertions(+), 2 deletions(-)
+
+diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc 
b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
+index 31a5e697eae..8017afd21c5 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
 b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
+@@ -154,7 +154,6 @@ typedef struct user_fpregs elf_fpregset_t;
+ # include 
+ #endif
+ #include 
+-#include 
+ #include 
+ #include 
+ #include 
+@@ -247,7 +246,19 @@ namespace __sanitizer {
+ #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
+ 
+ #if SANITIZER_LINUX && !SANITIZER_ANDROID
+-  unsigned struct_ustat_sz = sizeof(struct ustat);
++  // Use pre-computed size of struct ustat to avoid  which
++  // has been removed from glibc 2.28.
++#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \
++  || defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \
++  || defined(__x86_64__)
++#define SIZEOF_STRUCT_USTAT 32
++#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
++  || defined(__powerpc__) || defined(__s390__)
++#define SIZEOF_STRUCT_USTAT 20
++#else
++#error Unknown size of struct ustat
++#endif
++  unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT;
+   unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
+   unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
+ #endif // SANITIZER_LINUX && !SANITIZER_ANDROID
+-- 
+2.18.0
+

diff --git 
a/6.4.0/gentoo/99_all_libsanitizer-avoidustat.h-glibc-2.28-part-2.patch 
b/6.4.0/gentoo/99_all_libsanitizer-avoidustat.h-glibc-2.28-part-2.patch
new file mode 100644
index 000..e9b5c8f
--- /dev/null
+++ b/6.4.0/gentoo/99_all_libsanitizer-avoidustat.h-glibc-2.28-part-2.patch
@@ -0,0 +1,32 @@
+From 6a7c93905151724f7169612d64a5c8ce45dff9fb Mon Sep 17 00:00:00 2001
+From: doko 
+Date: Thu, 31 May 2018 09:59:35 +
+Subject: [PATCH] 2018-05-31  Matthias Klose  
+
+PR sanitizer/86012
+* sanitizer_common/sanitizer_platform_limits_posix.cc: Define
+SIZEOF_STRUCT_USTAT for 32bit sparc.
+
+
+git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@260992 
138bc75d-0d04-0410-961f-82ee72b054a4
+---
+ libsanitizer/ChangeLog  | 6 ++
+ .../sanitizer_common/sanitizer_platform_limits_posix.cc | 2 +-
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc 
b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
+index 8017afd21c5..97eae3fc7bc 100644
+--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
 b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
+@@ -253,7 +253,7 @@ namespace __sanitizer {
+   || defined(__x86_64__)
+ #define SIZEOF_STRUCT_USTAT 32
+ #elif defined(__arm__) || defined(__i386__) || defined(__mips__) \
+-  || defined(__powerpc__) || defined(__s390__)
++  ||