Browse Source

Import GCC 7.4.0

Signed-off-by: Alexey Neyman <stilor@att.net>
dev-linux
Alexey Neyman 4 years ago
parent
commit
faa7849782
  1. 28
      packages/gcc/7.3.0/0020-xtensa-libgcc-literal_position.patch
  2. 98
      packages/gcc/7.3.0/0021-msp430-fix.patch
  3. 96
      packages/gcc/7.3.0/0022-xtensa-fix-PR-target-65416.patch
  4. 8
      packages/gcc/7.3.0/chksum
  5. 0
      packages/gcc/7.4.0/0000-libtool-leave-framework-alone.patch
  6. 0
      packages/gcc/7.4.0/0001-uclibc-conf.patch
  7. 6
      packages/gcc/7.4.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch
  8. 0
      packages/gcc/7.4.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch
  9. 0
      packages/gcc/7.4.0/0004-arm-softfloat-libgcc.patch
  10. 0
      packages/gcc/7.4.0/0005-cilk-wchar.patch
  11. 0
      packages/gcc/7.4.0/0006-fix-m68k-uclinux.patch
  12. 6
      packages/gcc/7.4.0/0007-libgfortran-missing-include.patch
  13. 0
      packages/gcc/7.4.0/0008-nios2-bad-multilib-default.patch
  14. 0
      packages/gcc/7.4.0/0009-libgcc-disable-split-stack-nothreads.patch
  15. 0
      packages/gcc/7.4.0/0010-bionic-ndk.patch
  16. 0
      packages/gcc/7.4.0/0011-bionic-errno.patch
  17. 14
      packages/gcc/7.4.0/0012-crystax.patch
  18. 0
      packages/gcc/7.4.0/0013-crystax.patch
  19. 4
      packages/gcc/7.4.0/0014-crystax.patch
  20. 2
      packages/gcc/7.4.0/0015-crystax.patch
  21. 0
      packages/gcc/7.4.0/0016-crystax.patch
  22. 2
      packages/gcc/7.4.0/0017-crystax.patch
  23. 0
      packages/gcc/7.4.0/0018-crystax.patch
  24. 0
      packages/gcc/7.4.0/0019-crystax.patch
  25. 0
      packages/gcc/7.4.0/0020-isl-0.20.patch
  26. 8
      packages/gcc/7.4.0/chksum
  27. 0
      packages/gcc/7.4.0/version.desc

28
packages/gcc/7.3.0/0020-xtensa-libgcc-literal_position.patch vendored

@ -1,28 +0,0 @@
libgcc: xtensa: fix build with -mtext-section-literals
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
libgcc/config/xtensa/ieee754-df.S | 1 +
libgcc/config/xtensa/ieee754-sf.S | 1 +
2 files changed, 2 insertions(+)
--- a/libgcc/config/xtensa/ieee754-sf.S
+++ b/libgcc/config/xtensa/ieee754-sf.S
@@ -55,6 +55,7 @@
#ifdef L_addsubsf3
+ .literal_position
/* Addition */
__addsf3_aux:
--- a/libgcc/config/xtensa/ieee754-df.S
+++ b/libgcc/config/xtensa/ieee754-df.S
@@ -55,6 +55,7 @@
#ifdef L_addsubdf3
+ .literal_position
/* Addition */
__adddf3_aux:

98
packages/gcc/7.3.0/0021-msp430-fix.patch vendored

@ -1,98 +0,0 @@
commit dff73565df46267296c9bee0589e1f106a07a5e2
Author: law <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed Feb 14 07:21:11 2018 +0000
2018-02-14 Jozef Lawrynowicz <jozefl.gcc@gmail.com>
PR target/79242
* machmode.def: Define a complex mode for PARTIAL_INT.
* genmodes.c (complex_class): Return MODE_COMPLEX_INT for
MODE_PARTIAL_INT.
* doc/rtl.texi: Document CSPImode.
* config/msp430/msp430.c (msp430_hard_regno_nregs): Add CPSImode
handling.
(msp430_hard_regno_nregs_with_padding): Likewise.
PR target/79242
* gcc.target/msp430/pr79242.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257653 138bc75d-0d04-0410-961f-82ee72b054a4
---
gcc/config/msp430/msp430.c | 4 ++++
gcc/doc/rtl.texi | 5 +++--
gcc/genmodes.c | 1 +
gcc/machmode.def | 1 +
gcc/testsuite/gcc.target/msp430/pr79242.c | 11 +++++++++++
5 files changed, 20 insertions(+), 2 deletions(-)
--- a/gcc/config/msp430/msp430.c
+++ b/gcc/config/msp430/msp430.c
@@ -916,6 +916,8 @@
{
if (mode == PSImode && msp430x)
return 1;
+ if (mode == CPSImode && msp430x)
+ return 2;
return ((GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1)
/ UNITS_PER_WORD);
}
@@ -927,6 +929,8 @@
{
if (mode == PSImode)
return 2;
+ if (mode == CPSImode)
+ return 4;
return msp430_hard_regno_nregs (regno, mode);
}
--- a/gcc/doc/rtl.texi
+++ b/gcc/doc/rtl.texi
@@ -1291,10 +1291,11 @@
@findex CDImode
@findex CTImode
@findex COImode
-@item CQImode, CHImode, CSImode, CDImode, CTImode, COImode
+@findex CPSImode
+@item CQImode, CHImode, CSImode, CDImode, CTImode, COImode, CPSImode
These modes stand for a complex number represented as a pair of integer
values. The integer values are in @code{QImode}, @code{HImode},
-@code{SImode}, @code{DImode}, @code{TImode}, and @code{OImode},
+@code{SImode}, @code{DImode}, @code{TImode}, @code{OImode}, and @code{PSImode},
respectively.
@findex BND32mode
--- a/gcc/genmodes.c
+++ b/gcc/genmodes.c
@@ -116,6 +116,7 @@
switch (c)
{
case MODE_INT: return MODE_COMPLEX_INT;
+ case MODE_PARTIAL_INT: return MODE_COMPLEX_INT;
case MODE_FLOAT: return MODE_COMPLEX_FLOAT;
default:
error ("no complex class for class %s", mode_class_names[c]);
--- a/gcc/machmode.def
+++ b/gcc/machmode.def
@@ -243,6 +243,7 @@
/* Complex modes. */
COMPLEX_MODES (INT);
+COMPLEX_MODES (PARTIAL_INT);
COMPLEX_MODES (FLOAT);
/* Decimal floating point modes. */
--- /dev/null
+++ b/gcc/testsuite/gcc.target/msp430/pr79242.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-skip-if "" { "*-*-*" } { "-mcpu=msp430" "-msmall" } { "" } } */
+/* { dg-options "-mcpu=msp430x" } */
+
+typedef _Complex __int20 C;
+
+C
+foo (C x, C y)
+{
+ return x + y;
+}

96
packages/gcc/7.3.0/0022-xtensa-fix-PR-target-65416.patch vendored

@ -1,96 +0,0 @@
From 213fda1983bc80fbcc738ecd841a60a078f52111 Mon Sep 17 00:00:00 2001
From: jcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue, 19 Jun 2018 18:26:07 +0000
Subject: [PATCH] xtensa: fix PR target/65416
The issue is caused by reordering of stack pointer update after stack
space allocation with instructions that write to the allocated stack
space. In windowed ABI register spill area for the previous call frame
is located just below the stack pointer and may be reloaded back into
the register file on movsp.
Implement allocate_stack pattern for windowed ABI configuration and
insert an instruction that prevents reordering of frame memory access
and stack pointer update.
gcc/
2018-06-19 Max Filippov <jcmvbkbc@gmail.com>
* config/xtensa/xtensa.md (UNSPEC_FRAME_BLOCKAGE): New unspec
constant.
(allocate_stack, frame_blockage, *frame_blockage): New patterns.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261755 138bc75d-0d04-0410-961f-82ee72b054a4
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
---
gcc/config/xtensa/xtensa.md | 46 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
--- a/gcc/config/xtensa/xtensa.md
+++ b/gcc/config/xtensa/xtensa.md
@@ -38,6 +38,7 @@
(UNSPEC_MEMW 11)
(UNSPEC_LSETUP_START 12)
(UNSPEC_LSETUP_END 13)
+ (UNSPEC_FRAME_BLOCKAGE 14)
(UNSPECV_SET_FP 1)
(UNSPECV_ENTRY 2)
@@ -1676,6 +1677,32 @@
;; Miscellaneous instructions.
+;; In windowed ABI stack pointer adjustment must happen before any access
+;; to the space allocated on stack is allowed, otherwise register spill
+;; area may be clobbered. That's what frame blockage is supposed to enforce.
+
+(define_expand "allocate_stack"
+ [(set (match_operand 0 "nonimmed_operand")
+ (minus (reg A1_REG) (match_operand 1 "add_operand")))
+ (set (reg A1_REG)
+ (minus (reg A1_REG) (match_dup 1)))]
+ "TARGET_WINDOWED_ABI"
+{
+ if (CONST_INT_P (operands[1]))
+ {
+ rtx neg_op0 = GEN_INT (-INTVAL (operands[1]));
+ emit_insn (gen_addsi3 (stack_pointer_rtx, stack_pointer_rtx, neg_op0));
+ }
+ else
+ {
+ emit_insn (gen_subsi3 (stack_pointer_rtx, stack_pointer_rtx,
+ operands[1]));
+ }
+ emit_move_insn (operands[0], virtual_stack_dynamic_rtx);
+ emit_insn (gen_frame_blockage ());
+ DONE;
+})
+
(define_expand "prologue"
[(const_int 0)]
""
@@ -1767,6 +1794,25 @@
[(set_attr "length" "0")
(set_attr "type" "nop")])
+;; Do not schedule instructions accessing memory before this point.
+
+(define_expand "frame_blockage"
+ [(set (match_dup 0)
+ (unspec:BLK [(match_dup 1)] UNSPEC_FRAME_BLOCKAGE))]
+ ""
+{
+ operands[0] = gen_rtx_MEM (BLKmode, gen_rtx_SCRATCH (Pmode));
+ MEM_VOLATILE_P (operands[0]) = 1;
+ operands[1] = stack_pointer_rtx;
+})
+
+(define_insn "*frame_blockage"
+ [(set (match_operand:BLK 0 "" "")
+ (unspec:BLK [(match_operand:SI 1 "" "")] UNSPEC_FRAME_BLOCKAGE))]
+ ""
+ ""
+ [(set_attr "length" "0")])
+
(define_insn "trap"
[(trap_if (const_int 1) (const_int 0))]
""

8
packages/gcc/7.3.0/chksum vendored

@ -1,8 +0,0 @@
md5 gcc-7.3.0.tar.xz be2da21680f27624f3a87055c4ba5af2
sha1 gcc-7.3.0.tar.xz 9689b9cae7b2886fdaa08449a26701f095c04e48
sha256 gcc-7.3.0.tar.xz 832ca6ae04636adbb430e865a1451adf6979ab44ca1c8374f61fba65645ce15c
sha512 gcc-7.3.0.tar.xz ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4
md5 gcc-7.3.0.tar.gz 747d5010b7c6938b480bc6e4d7c4be9a
sha1 gcc-7.3.0.tar.gz 8f11c52db81c30a1780c590bb7ab9a6e326ccea4
sha256 gcc-7.3.0.tar.gz fa06e455ca198ddc11ea4ddf2a394cf7cfb66aa7e0ab98cc1184189f1d405870
sha512 gcc-7.3.0.tar.gz 4e203f4ea5e8713e7b0e3d2a269f7a54f6d1074d572b93d39ed6961c82b3c310f389d7f78494f58309b7436d1e0744eba06c22a24747000dfd84e2b4376cbf73

0
packages/gcc/7.3.0/0000-libtool-leave-framework-alone.patch → packages/gcc/7.4.0/0000-libtool-leave-framework-alone.patch vendored

0
packages/gcc/7.3.0/0001-uclibc-conf.patch → packages/gcc/7.4.0/0001-uclibc-conf.patch vendored

6
packages/gcc/7.3.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch → packages/gcc/7.4.0/0002-gcc-plugin-Win-Dont-need-undefined-extern-var-refs-nor-fpic.patch vendored

@ -53,7 +53,7 @@
if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
--- a/gcc/configure
+++ b/gcc/configure
@@ -29510,6 +29510,9 @@
@@ -29520,6 +29520,9 @@
pluginlibs=
@ -63,7 +63,7 @@
case "${host}" in
*-*-darwin*)
if test x$build = x$host; then
@@ -29520,6 +29523,11 @@
@@ -29530,6 +29533,11 @@
export_sym_check=
fi
;;
@ -75,7 +75,7 @@
*)
if test x$build = x$host; then
export_sym_check="objdump${exeext} -T"
@@ -29632,23 +29640,23 @@
@@ -29642,23 +29650,23 @@
case "${host}" in
*-*-darwin*)
CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`

0
packages/gcc/7.3.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch → packages/gcc/7.4.0/0003-gcc-plugin-POSIX-include-sys-select-h.patch vendored

0
packages/gcc/7.3.0/0004-arm-softfloat-libgcc.patch → packages/gcc/7.4.0/0004-arm-softfloat-libgcc.patch vendored

0
packages/gcc/7.3.0/0005-cilk-wchar.patch → packages/gcc/7.4.0/0005-cilk-wchar.patch vendored

0
packages/gcc/7.3.0/0006-fix-m68k-uclinux.patch → packages/gcc/7.4.0/0006-fix-m68k-uclinux.patch vendored

6
packages/gcc/7.3.0/0007-libgfortran-missing-include.patch → packages/gcc/7.4.0/0007-libgfortran-missing-include.patch vendored

@ -9,6 +9,6 @@
#include "unix.h"
#include <limits.h>
+#include <stdlib.h>
typedef enum
{ CLOSE_DELETE, CLOSE_KEEP, CLOSE_UNSPECIFIED }
#if !HAVE_UNLINK_OPEN_FILE
#include <string.h>
#endif

0
packages/gcc/7.3.0/0008-nios2-bad-multilib-default.patch → packages/gcc/7.4.0/0008-nios2-bad-multilib-default.patch vendored

0
packages/gcc/7.3.0/0009-libgcc-disable-split-stack-nothreads.patch → packages/gcc/7.4.0/0009-libgcc-disable-split-stack-nothreads.patch vendored

0
packages/gcc/7.3.0/0010-bionic-ndk.patch → packages/gcc/7.4.0/0010-bionic-ndk.patch vendored

0
packages/gcc/7.3.0/0011-bionic-errno.patch → packages/gcc/7.4.0/0011-bionic-errno.patch vendored

14
packages/gcc/7.3.0/0012-crystax.patch → packages/gcc/7.4.0/0012-crystax.patch vendored

@ -52,7 +52,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
esac
aarch64_multilibs="${with_multilib_list}"
if test "$aarch64_multilibs" = "default"; then
@@ -2092,6 +2096,17 @@
@@ -2094,6 +2098,17 @@
tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/linux.h mips/linux-common.h"
extra_options="${extra_options} linux-android.opt"
case ${target} in
@ -152,7 +152,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#define MUSL_DYNAMIC_LINKER "/lib/ld-musl-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
--- a/gcc/config/arm/arm.h
+++ b/gcc/config/arm/arm.h
@@ -1876,10 +1876,11 @@
@@ -1879,10 +1879,11 @@
#define CASE_VECTOR_PC_RELATIVE (TARGET_THUMB2 \
|| (TARGET_THUMB1 \
@ -167,7 +167,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
: min >= -256 && max < 256 \
--- a/gcc/config/arm/arm.md
+++ b/gcc/config/arm/arm.md
@@ -8668,7 +8668,7 @@
@@ -8665,7 +8665,7 @@
(match_operand:SI 2 "const_int_operand" "") ; total range
(match_operand:SI 3 "" "") ; table label
(match_operand:SI 4 "" "")] ; Out of range label
@ -253,8 +253,8 @@ Date: Wed Jul 29 11:28:29 2015 +0300
+
#undef ASM_SPEC
#define ASM_SPEC \
- "--32 %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}"
+ "--32 %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}} " \
- "--32 %{msse2avx:%{!mavx:-msse2avx}}"
+ "--32 %{msse2avx:%{!mavx:-msse2avx}} " \
+ LINUX_OR_ANDROID_CC ("", ANDROID_ASM_SPEC)
#undef SUBTARGET_EXTRA_SPECS
@ -445,7 +445,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
#if ((defined(_LIBOBJC) || defined(_LIBOBJC_WEAK)) \
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -78536,6 +78536,12 @@
@@ -78577,6 +78577,12 @@
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;
@ -458,7 +458,7 @@ Date: Wed Jul 29 11:28:29 2015 +0300
int
main ()
{
@@ -78594,6 +78600,12 @@
@@ -78635,6 +78641,12 @@
/* end confdefs.h. */
#include <sys/syscall.h>
int lk;

0
packages/gcc/7.3.0/0013-crystax.patch → packages/gcc/7.4.0/0013-crystax.patch vendored

4
packages/gcc/7.3.0/0014-crystax.patch → packages/gcc/7.4.0/0014-crystax.patch vendored

@ -145,7 +145,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
--enable-linker-build-id
compiler will always pass --build-id to linker
--enable-default-ssp enable Stack Smashing Protection as default
@@ -28082,6 +28086,38 @@
@@ -28092,6 +28096,38 @@
$as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
@ -186,7 +186,7 @@ Date: Mon Apr 14 15:59:47 2014 -0700
$as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4986,6 +4986,35 @@
@@ -4994,6 +4994,35 @@
if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
AC_DEFINE(HAVE_LD_EH_FRAME_HDR, 1,
[Define if your linker supports .eh_frame_hdr.])

2
packages/gcc/7.3.0/0015-crystax.patch → packages/gcc/7.4.0/0015-crystax.patch vendored

@ -12,7 +12,7 @@ Date: Thu Aug 20 19:11:07 2015 +0300
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -16113,6 +16113,7 @@
@@ -16116,6 +16116,7 @@
else if (!SYMBOL_REF_FAR_ADDR_P (op0)
&& (SYMBOL_REF_LOCAL_P (op0)
|| (HAVE_LD_PIE_COPYRELOC

0
packages/gcc/7.3.0/0016-crystax.patch → packages/gcc/7.4.0/0016-crystax.patch vendored

2
packages/gcc/7.3.0/0017-crystax.patch → packages/gcc/7.4.0/0017-crystax.patch vendored

@ -15,7 +15,7 @@ Date: Mon Apr 14 21:05:51 2014 -0700
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -22292,9 +22292,13 @@
@@ -22312,9 +22312,13 @@
memsize = MEM_SIZE (x);
/* Only certain alignment specifiers are supported by the hardware. */

0
packages/gcc/7.3.0/0018-crystax.patch → packages/gcc/7.4.0/0018-crystax.patch vendored

0
packages/gcc/7.3.0/0019-crystax.patch → packages/gcc/7.4.0/0019-crystax.patch vendored

0
packages/gcc/7.3.0/0023-isl-0.20.patch → packages/gcc/7.4.0/0020-isl-0.20.patch vendored

8
packages/gcc/7.4.0/chksum vendored

@ -0,0 +1,8 @@
md5 gcc-7.4.0.tar.xz 6e9d754638ff03d2e9b2aff55aed82b4
sha1 gcc-7.4.0.tar.xz bf09553cfa08ae6e29dfbbd541e5c69c3cbc6c66
sha256 gcc-7.4.0.tar.xz eddde28d04f334aec1604456e536416549e9b1aa137fc69204e65eb0c009fe51
sha512 gcc-7.4.0.tar.xz 8864d8e4b97c2e1a4f17422f6e68120172ebefeab97b1757734f7185ca68a6b9a89011c6833c03fa454c17b0ac35b15e1d284881e6971035948ac6100f3aa45e
md5 gcc-7.4.0.tar.gz 2f1f2df93e2777299b366070cd1b0ced
sha1 gcc-7.4.0.tar.gz ebbaf0be68a22d30cd74cab67d38a056a3b86e5a
sha256 gcc-7.4.0.tar.gz cb8df68237b0bea3307217697ad749a0a0565584da259e8a944ef6cfc4dc4d3d
sha512 gcc-7.4.0.tar.gz 6824b5c8fdb3151d8dd517911d3d975f7808525f52db32b5c25e9354b562792d6d2f1e8cc5aa019ff250df65b4f29b43f65ab6d769a070fd0015b13a3a9d6bf9

0
packages/gcc/7.3.0/version.desc → packages/gcc/7.4.0/version.desc vendored

Loading…
Cancel
Save