buildgcc: Update GCC, Binutils, GMP, MPFR, GDB, IASL and LLVM
- GCC gets updated from 5.2.0 to 6.3.0: gcc-6.3.0_riscv.patch is a diff between 5fcb8c4 and 173684b in riscv-gcc, and it needs gcc-6.3.0_memmodel.patch. - Binutils goes from 2.26.1 to 2.28: There is a build error for MIPS gold so I add patch for it. - GMP gets a bump from 6.1.0 to 6.1.2 - MPFR is updated from 3.1.4 to 3.1.5 - GDB is upgraded from 6.1.1 to 6.1.2 - IASL is changed from 20160831 to 20161222 - LLVM is changed from 3.8.0 to 3.9.1 Change-Id: I20fea838d798c430d8c4d2cc6b07614d967c60c5 Signed-off-by: Iru Cai <mytbk920423@gmail.com> Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/17189 Tested-by: build bot (Jenkins)
This commit is contained in:
parent
0da186c3ff
commit
03353de80b
|
@ -18,8 +18,8 @@
|
|||
|
||||
cd $(dirname $0)
|
||||
|
||||
CROSSGCC_DATE="August 31st, 2016"
|
||||
CROSSGCC_VERSION="1.43"
|
||||
CROSSGCC_DATE="March 3rd, 2017"
|
||||
CROSSGCC_VERSION="1.44"
|
||||
CROSSGCC_COMMIT=$( git describe )
|
||||
|
||||
# default settings
|
||||
|
@ -35,19 +35,19 @@ BOOTSTRAP=0
|
|||
THREADS=1
|
||||
|
||||
# GCC toolchain version numbers
|
||||
GMP_VERSION=6.1.0
|
||||
MPFR_VERSION=3.1.4
|
||||
GMP_VERSION=6.1.2
|
||||
MPFR_VERSION=3.1.5
|
||||
MPC_VERSION=1.0.3
|
||||
LIBELF_VERSION=0.8.13
|
||||
GCC_VERSION=5.3.0
|
||||
GCC_VERSION=6.3.0
|
||||
GCC_AUTOCONF_VERSION=2.69
|
||||
BINUTILS_VERSION=2.26.1
|
||||
GDB_VERSION=7.11
|
||||
IASL_VERSION=20160831
|
||||
BINUTILS_VERSION=2.28
|
||||
GDB_VERSION=7.12
|
||||
IASL_VERSION=20161222
|
||||
PYTHON_VERSION=3.5.1
|
||||
EXPAT_VERSION=2.1.1
|
||||
# CLANG version number
|
||||
CLANG_VERSION=3.8.0
|
||||
CLANG_VERSION=3.9.1
|
||||
MAKE_VERSION=4.2.1
|
||||
|
||||
# GCC toolchain archive locations
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
diff -Naur acpica-unix2-20160831/source/compiler/asloptions.c acpica-unix2-20160831a/source/compiler/asloptions.c
|
||||
--- acpica-unix2-20160831/source/compiler/asloptions.c
|
||||
+++ acpica-unix2-20160831a/source/compiler/asloptions.c
|
||||
diff -Naur acpica-unix2-20161222/source/compiler/asloptions.c acpica-unix2-20161222/source/compiler/asloptions.c
|
||||
--- acpica-unix2-20161222/source/compiler/asloptions.c
|
||||
+++ acpica-unix2-20161222/source/compiler/asloptions.c
|
||||
@@ -100,6 +100,7 @@
|
||||
if (argc < 2)
|
||||
{
|
||||
|
@ -19,9 +19,9 @@ diff -Naur acpica-unix2-20160831/source/compiler/asloptions.c acpica-unix2-20160
|
|||
printf ("Ignoring all errors, forcing AML file generation\n\n");
|
||||
@@ -711,6 +713,7 @@
|
||||
case '^':
|
||||
|
||||
|
||||
printf (ACPI_COMMON_SIGNON (ASL_COMPILER_NAME));
|
||||
+ printf ("%s\n", COREBOOT_TOOLCHAIN_VERSION);
|
||||
exit (0);
|
||||
|
||||
|
||||
case 'a':
|
|
@ -1,92 +0,0 @@
|
|||
diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c
|
||||
index 2d491f6..e221ef4 100644
|
||||
--- a/gas/config/tc-aarch64.c
|
||||
+++ b/gas/config/tc-aarch64.c
|
||||
@@ -1736,13 +1736,13 @@ s_ltorg (int ignored ATTRIBUTE_UNUSED)
|
||||
if (pool == NULL || pool->symbol == NULL || pool->next_free_entry == 0)
|
||||
continue;
|
||||
|
||||
- mapping_state (MAP_DATA);
|
||||
-
|
||||
/* Align pool as you have word accesses.
|
||||
Only make a frag if we have to. */
|
||||
if (!need_pass_2)
|
||||
frag_align (align, 0, 0);
|
||||
|
||||
+ mapping_state (MAP_DATA);
|
||||
+
|
||||
record_alignment (now_seg, align);
|
||||
|
||||
sprintf (sym_name, "$$lit_\002%x", pool->id);
|
||||
@@ -6373,11 +6373,15 @@ aarch64_init_frag (fragS * fragP, int max_chars)
|
||||
|
||||
switch (fragP->fr_type)
|
||||
{
|
||||
- case rs_align:
|
||||
case rs_align_test:
|
||||
case rs_fill:
|
||||
mapping_state_2 (MAP_DATA, max_chars);
|
||||
break;
|
||||
+ case rs_align:
|
||||
+ /* PR 20364: We can get alignment frags in code sections,
|
||||
+ so do not just assume that we should use the MAP_DATA state. */
|
||||
+ mapping_state_2 (subseg_text_p (now_seg) ? MAP_INSN : MAP_DATA, max_chars);
|
||||
+ break;
|
||||
case rs_align_code:
|
||||
mapping_state_2 (MAP_INSN, max_chars);
|
||||
break;
|
||||
diff --git a/gas/testsuite/gas/aarch64/pr20364.d b/gas/testsuite/gas/aarch64/pr20364.d
|
||||
new file mode 100644
|
||||
index 0000000..babcff1
|
||||
--- /dev/null
|
||||
+++ b/gas/testsuite/gas/aarch64/pr20364.d
|
||||
@@ -0,0 +1,13 @@
|
||||
+# Check that ".align <size>, <fill>" does not set the mapping state to DATA, causing unnecessary frag generation.
|
||||
+#name: PR20364
|
||||
+#objdump: -d
|
||||
+
|
||||
+.*: file format .*
|
||||
+
|
||||
+Disassembly of section \.vectors:
|
||||
+
|
||||
+0+000 <.*>:
|
||||
+ 0: d2800000 mov x0, #0x0 // #0
|
||||
+ 4: 94000000 bl 0 <plat_report_exception>
|
||||
+ 8: 17fffffe b 0 <bl1_exceptions>
|
||||
+
|
||||
diff --git a/gas/testsuite/gas/aarch64/pr20364.s b/gas/testsuite/gas/aarch64/pr20364.s
|
||||
new file mode 100644
|
||||
index 0000000..594ad7c
|
||||
--- /dev/null
|
||||
+++ b/gas/testsuite/gas/aarch64/pr20364.s
|
||||
@@ -0,0 +1,28 @@
|
||||
+ .macro vector_base label
|
||||
+ .section .vectors, "ax"
|
||||
+ .align 11, 0
|
||||
+ \label:
|
||||
+ .endm
|
||||
+
|
||||
+ .macro vector_entry label
|
||||
+ .section .vectors, "ax"
|
||||
+ .align 7, 0
|
||||
+ \label:
|
||||
+ .endm
|
||||
+
|
||||
+ .macro check_vector_size since
|
||||
+ .if (. - \since) > (32 * 4)
|
||||
+ .error "Vector exceeds 32 instructions"
|
||||
+ .endif
|
||||
+ .endm
|
||||
+
|
||||
+ .globl bl1_exceptions
|
||||
+
|
||||
+vector_base bl1_exceptions
|
||||
+
|
||||
+vector_entry SynchronousExceptionSP0
|
||||
+ mov x0, #0x0
|
||||
+ bl plat_report_exception
|
||||
+ b SynchronousExceptionSP0
|
||||
+ check_vector_size SynchronousExceptionSP0
|
||||
+
|
||||
--
|
||||
1.7.1
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,11 @@
|
|||
diff -urN binutils-2.27.orig/gold/configure.tgt binutils-2.27/gold/configure.tgt
|
||||
--- binutils-2.27.orig/gold/configure.tgt 2016-08-03 15:36:53.000000000 +0800
|
||||
+++ binutils-2.27/gold/configure.tgt 2016-10-29 19:28:56.140587026 +0800
|
||||
@@ -157,6 +157,7 @@
|
||||
targ_obj=mips
|
||||
targ_machine=EM_MIPS_RS3_LE
|
||||
targ_size=32
|
||||
+ targ_extra_size=64
|
||||
targ_big_endian=false
|
||||
targ_extra_big_endian=true
|
||||
;;
|
|
@ -1,6 +1,6 @@
|
|||
diff -ur binutils-2.26.1/bfd/Makefile.in binutils-2.26.1.patched/bfd/Makefile.in
|
||||
--- binutils-2.26.1/bfd/Makefile.in 2015-11-13 16:27:40.000000000 +0800
|
||||
+++ binutils-2.26.1.patched/bfd/Makefile.in 2016-04-02 11:05:43.398422394 +0800
|
||||
+++ binutils-2.27/bfd/Makefile.in 2016-04-02 11:05:43.398422394 +0800
|
||||
@@ -341,7 +341,7 @@
|
||||
ACLOCAL_AMFLAGS = -I . -I .. -I ../config
|
||||
INCDIR = $(srcdir)/../include
|
|
@ -1,24 +0,0 @@
|
|||
diff -urp gcc-5.3.0.bak/gcc/cp/cfns.h gcc-5.3.0/gcc/cp/cfns.h
|
||||
--- gcc-5.3.0.bak/gcc/cp/cfns.h 2015-01-05 13:33:28.000000000 +0100
|
||||
+++ gcc-5.3.0/gcc/cp/cfns.h 2016-12-04 01:33:47.568537831 +0100
|
||||
@@ -51,8 +51,12 @@ along with GCC; see the file COPYING3.
|
||||
__inline
|
||||
#endif
|
||||
static unsigned int hash (const char *, unsigned int);
|
||||
+static
|
||||
#ifdef __GNUC__
|
||||
__inline
|
||||
+#ifdef __GNUC_STDC_INLINE__
|
||||
+__attribute__ ((__gnu_inline__))
|
||||
+#endif
|
||||
#endif
|
||||
const char * libc_name_p (const char *, unsigned int);
|
||||
/* maximum key range = 391, duplicates = 0 */
|
||||
@@ -122,6 +126,7 @@ hash (register const char *str, register
|
||||
return hval + asso_values[(unsigned char)str[len - 1]];
|
||||
}
|
||||
|
||||
+static
|
||||
#ifdef __GNUC__
|
||||
__inline
|
||||
#ifdef __GNUC_STDC_INLINE__
|
|
@ -1,6 +1,6 @@
|
|||
diff -urN gcc-4.9.2/gcc/config/i386/t-elf64 gcc-4.9.2/gcc/config/i386/t-elf64
|
||||
--- gcc-4.9.2/gcc/config/i386/t-elf64 1969-12-31 16:00:00.000000000 -0800
|
||||
+++ gcc-5.3.0/gcc/config/i386/t-elf64 2015-06-17 11:20:08.032513005 -0700
|
||||
+++ gcc-6.1.0/gcc/config/i386/t-elf64 2015-06-17 11:20:08.032513005 -0700
|
||||
@@ -0,0 +1,38 @@
|
||||
+# Copyright (C) 2002-2014 Free Software Foundation, Inc.
|
||||
+#
|
||||
|
@ -42,7 +42,7 @@ diff -urN gcc-4.9.2/gcc/config/i386/t-elf64 gcc-4.9.2/gcc/config/i386/t-elf64
|
|||
+MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-elf-x32)
|
||||
diff -urN gcc-4.9.2/gcc/config.gcc gcc-4.9.2/gcc/config.gcc
|
||||
--- gcc-4.9.2/gcc/config.gcc 2015-06-17 11:20:57.841008182 -0700
|
||||
+++ gcc-5.3.0/gcc/config.gcc 2015-06-17 11:17:24.818890200 -0700
|
||||
+++ gcc-6.1.0/gcc/config.gcc 2015-06-17 11:17:24.818890200 -0700
|
||||
@@ -1353,6 +1353,30 @@
|
||||
;;
|
||||
x86_64-*-elf*)
|
||||
|
@ -74,8 +74,8 @@ diff -urN gcc-4.9.2/gcc/config.gcc gcc-4.9.2/gcc/config.gcc
|
|||
;;
|
||||
i[34567]86-*-rdos*)
|
||||
tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/rdos.h"
|
||||
--- gcc-5.3.0/gcc/config/i386/x86-64.h.orig 2015-08-20 17:17:34.555919593 +0200
|
||||
+++ gcc-5.3.0/gcc/config/i386/x86-64.h 2015-08-20 17:17:42.615908670 +0200
|
||||
--- gcc-6.1.0/gcc/config/i386/x86-64.h.orig 2015-08-20 17:17:34.555919593 +0200
|
||||
+++ gcc-6.1.0/gcc/config/i386/x86-64.h 2015-08-20 17:17:42.615908670 +0200
|
||||
@@ -49,7 +49,7 @@
|
||||
#define WCHAR_TYPE_SIZE 32
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
--- gcc-5.3.0/gcc/ada/gcc-interface/Make-lang.in.bak 2015-08-24 16:23:25.004493665 +0200
|
||||
+++ gcc-5.3.0/gcc/ada/gcc-interface/Make-lang.in 2015-08-24 17:53:52.496636113 +0200
|
||||
--- gcc-6.1.0/gcc/ada/gcc-interface/Make-lang.in.bak 2015-08-24 16:23:25.004493665 +0200
|
||||
+++ gcc-6.1.0/gcc/ada/gcc-interface/Make-lang.in 2015-08-24 17:53:52.496636113 +0200
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
diff -urN gcc-5.2.0.orig/libgcc/config/t-hardfp gcc-5.2.0/libgcc/config/t-hardfp
|
||||
--- gcc-5.2.0.orig/libgcc/config/t-hardfp 2015-01-05 04:33:28.000000000 -0800
|
||||
+++ gcc-5.3.0/libgcc/config/t-hardfp 2016-04-06 12:04:51.000000000 -0700
|
||||
+++ gcc-6.1.0/libgcc/config/t-hardfp 2016-04-06 12:04:51.000000000 -0700
|
||||
@@ -59,21 +59,52 @@
|
||||
|
||||
hardfp_func_list := $(filter-out $(hardfp_exclusions),$(hardfp_func_list))
|
|
@ -0,0 +1,416 @@
|
|||
commit ea36272bdc2602a690019b9612d23594571d3d2b
|
||||
Author: thopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
|
||||
Date: Mon Sep 26 17:20:39 2016 +0000
|
||||
|
||||
2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||
|
||||
gcc/
|
||||
* tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
|
||||
is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
|
||||
is_mm_seq_cst, is_mm_sync): Move to ...
|
||||
* memmodel.h: This. New file.
|
||||
* builtins.c: Include memmodel.h.
|
||||
* optabs.c: Likewise.
|
||||
* tsan.c: Likewise.
|
||||
* config/aarch64/aarch64.c: Likewise.
|
||||
* config/alpha/alpha.c: Likewise.
|
||||
* config/arm/arm.c: Likewise.
|
||||
* config/i386/i386.c: Likewise.
|
||||
* config/ia64/ia64.c: Likewise.
|
||||
* config/mips/mips.c: Likewise.
|
||||
* config/rs6000/rs6000.c: Likewise.
|
||||
* config/sparc/sparc.c: Likewise.
|
||||
* genconditions.c: Include memmodel.h in generated file.
|
||||
* genemit.c: Likewise.
|
||||
* genoutput.c: Likewise.
|
||||
* genpeep.c: Likewise.
|
||||
* genpreds.c: Likewise.
|
||||
* genrecog.c: Likewise.
|
||||
|
||||
gcc/c-family/
|
||||
* c-common.c: Include memmodel.h.
|
||||
|
||||
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240504 138bc75d-0d04-0410-961f-82ee72b054a4
|
||||
|
||||
diff --git a/gcc/builtins.c b/gcc/builtins.c
|
||||
index 93cbe15ad3c..04dcf95acd2 100644
|
||||
--- a/gcc/builtins.c
|
||||
+++ b/gcc/builtins.c
|
||||
@@ -28,6 +28,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "predict.h"
|
||||
#include "tm_p.h"
|
||||
diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
|
||||
index e9f619fd3af..2652259a312 100644
|
||||
--- a/gcc/c-family/c-common.c
|
||||
+++ b/gcc/c-family/c-common.c
|
||||
@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "function.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "c-common.h"
|
||||
#include "gimple-expr.h"
|
||||
#include "tm_p.h"
|
||||
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
|
||||
index 6078b163548..c65b826b0cc 100644
|
||||
--- a/gcc/config/aarch64/aarch64.c
|
||||
+++ b/gcc/config/aarch64/aarch64.c
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "cfghooks.h"
|
||||
#include "cfgloop.h"
|
||||
diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c
|
||||
index 6d4af04dd7d..d646879e7e8 100644
|
||||
--- a/gcc/config/alpha/alpha.c
|
||||
+++ b/gcc/config/alpha/alpha.c
|
||||
@@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "df.h"
|
||||
#include "tm_p.h"
|
||||
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
|
||||
index 619c3291c87..feb54cbc64a 100644
|
||||
--- a/gcc/config/arm/arm.c
|
||||
+++ b/gcc/config/arm/arm.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "cfghooks.h"
|
||||
#include "df.h"
|
||||
#include "tm_p.h"
|
||||
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
|
||||
index 143b905a341..01e2ad8e1b2 100644
|
||||
--- a/gcc/config/i386/i386.c
|
||||
+++ b/gcc/config/i386/i386.c
|
||||
@@ -23,6 +23,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "backend.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "cfghooks.h"
|
||||
#include "cfgloop.h"
|
||||
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
|
||||
index 5f0bf43a103..573872eb85f 100644
|
||||
--- a/gcc/config/ia64/ia64.c
|
||||
+++ b/gcc/config/ia64/ia64.c
|
||||
@@ -26,6 +26,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "cfghooks.h"
|
||||
#include "df.h"
|
||||
#include "tm_p.h"
|
||||
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
|
||||
index 88f4038224a..3586a1001e7 100644
|
||||
--- a/gcc/config/mips/mips.c
|
||||
+++ b/gcc/config/mips/mips.c
|
||||
@@ -28,6 +28,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "cfghooks.h"
|
||||
#include "df.h"
|
||||
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
|
||||
index d76f479d9e5..6897b5c260d 100644
|
||||
--- a/gcc/config/rs6000/rs6000.c
|
||||
+++ b/gcc/config/rs6000/rs6000.c
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "backend.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "cfghooks.h"
|
||||
#include "cfgloop.h"
|
||||
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
|
||||
index 5efed3dc52f..5936f96bd80 100644
|
||||
--- a/gcc/config/sparc/sparc.c
|
||||
+++ b/gcc/config/sparc/sparc.c
|
||||
@@ -27,6 +27,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "df.h"
|
||||
#include "tm_p.h"
|
||||
diff --git a/gcc/genconditions.c b/gcc/genconditions.c
|
||||
index e4f45b097cd..d8b0ebba56b 100644
|
||||
--- a/gcc/genconditions.c
|
||||
+++ b/gcc/genconditions.c
|
||||
@@ -94,6 +94,7 @@ write_header (void)
|
||||
#include \"resource.h\"\n\
|
||||
#include \"diagnostic-core.h\"\n\
|
||||
#include \"reload.h\"\n\
|
||||
+#include \"memmodel.h\"\n\
|
||||
#include \"tm-constrs.h\"\n");
|
||||
|
||||
if (saw_eh_return)
|
||||
diff --git a/gcc/genemit.c b/gcc/genemit.c
|
||||
index 33040aac36d..d5e07a97a6d 100644
|
||||
--- a/gcc/genemit.c
|
||||
+++ b/gcc/genemit.c
|
||||
@@ -792,6 +792,7 @@ from the machine description file `md'. */\n\n");
|
||||
printf ("#include \"reload.h\"\n");
|
||||
printf ("#include \"diagnostic-core.h\"\n");
|
||||
printf ("#include \"regs.h\"\n");
|
||||
+ printf ("#include \"memmodel.h\"\n");
|
||||
printf ("#include \"tm-constrs.h\"\n");
|
||||
printf ("#include \"ggc.h\"\n");
|
||||
printf ("#include \"dumpfile.h\"\n");
|
||||
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
|
||||
index f8c25ac4df0..59092580e49 100644
|
||||
--- a/gcc/genoutput.c
|
||||
+++ b/gcc/genoutput.c
|
||||
@@ -231,6 +231,7 @@ output_prologue (void)
|
||||
printf ("#include \"diagnostic-core.h\"\n");
|
||||
printf ("#include \"output.h\"\n");
|
||||
printf ("#include \"target.h\"\n");
|
||||
+ printf ("#include \"memmodel.h\"\n");
|
||||
printf ("#include \"tm-constrs.h\"\n");
|
||||
}
|
||||
|
||||
diff --git a/gcc/genpeep.c b/gcc/genpeep.c
|
||||
index 132cdced690..e1997e03e47 100644
|
||||
--- a/gcc/genpeep.c
|
||||
+++ b/gcc/genpeep.c
|
||||
@@ -373,6 +373,7 @@ from the machine description file `md'. */\n\n");
|
||||
printf ("#include \"except.h\"\n");
|
||||
printf ("#include \"diagnostic-core.h\"\n");
|
||||
printf ("#include \"flags.h\"\n");
|
||||
+ printf ("#include \"memmodel.h\"\n");
|
||||
printf ("#include \"tm-constrs.h\"\n\n");
|
||||
|
||||
printf ("extern rtx peep_operand[];\n\n");
|
||||
diff --git a/gcc/genpreds.c b/gcc/genpreds.c
|
||||
index d18ebd2ab5a..6db1b7b0301 100644
|
||||
--- a/gcc/genpreds.c
|
||||
+++ b/gcc/genpreds.c
|
||||
@@ -1580,6 +1580,7 @@ write_insn_preds_c (void)
|
||||
#include \"reload.h\"\n\
|
||||
#include \"regs.h\"\n\
|
||||
#include \"emit-rtl.h\"\n\
|
||||
+#include \"memmodel.h\"\n\
|
||||
#include \"tm-constrs.h\"\n");
|
||||
|
||||
FOR_ALL_PREDICATES (p)
|
||||
diff --git a/gcc/genrecog.c b/gcc/genrecog.c
|
||||
index 056798c82f7..77861074492 100644
|
||||
--- a/gcc/genrecog.c
|
||||
+++ b/gcc/genrecog.c
|
||||
@@ -4192,6 +4192,7 @@ write_header (void)
|
||||
#include \"diagnostic-core.h\"\n\
|
||||
#include \"reload.h\"\n\
|
||||
#include \"regs.h\"\n\
|
||||
+#include \"memmodel.h\"\n\
|
||||
#include \"tm-constrs.h\"\n\
|
||||
\n");
|
||||
|
||||
diff --git a/gcc/memmodel.h b/gcc/memmodel.h
|
||||
new file mode 100644
|
||||
index 00000000000..d53eb7bc9d9
|
||||
--- /dev/null
|
||||
+++ b/gcc/memmodel.h
|
||||
@@ -0,0 +1,86 @@
|
||||
+/* Prototypes of memory model helper functions.
|
||||
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
|
||||
+
|
||||
+This file is part of GCC.
|
||||
+
|
||||
+GCC is free software; you can redistribute it and/or modify it under
|
||||
+the terms of the GNU General Public License as published by the Free
|
||||
+Software Foundation; either version 3, or (at your option) any later
|
||||
+version.
|
||||
+
|
||||
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
+for more details.
|
||||
+
|
||||
+You should have received a copy of the GNU General Public License
|
||||
+along with GCC; see the file COPYING3. If not see
|
||||
+<http://www.gnu.org/licenses/>. */
|
||||
+
|
||||
+#ifndef GCC_MEMMODEL_H
|
||||
+#define GCC_MEMMODEL_H
|
||||
+
|
||||
+/* Return the memory model from a host integer. */
|
||||
+static inline enum memmodel
|
||||
+memmodel_from_int (unsigned HOST_WIDE_INT val)
|
||||
+{
|
||||
+ return (enum memmodel) (val & MEMMODEL_MASK);
|
||||
+}
|
||||
+
|
||||
+/* Return the base memory model from a host integer. */
|
||||
+static inline enum memmodel
|
||||
+memmodel_base (unsigned HOST_WIDE_INT val)
|
||||
+{
|
||||
+ return (enum memmodel) (val & MEMMODEL_BASE_MASK);
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is RELAXED. */
|
||||
+static inline bool
|
||||
+is_mm_relaxed (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_BASE_MASK) == MEMMODEL_RELAXED;
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is CONSUME. */
|
||||
+static inline bool
|
||||
+is_mm_consume (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_BASE_MASK) == MEMMODEL_CONSUME;
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is ACQUIRE. */
|
||||
+static inline bool
|
||||
+is_mm_acquire (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_BASE_MASK) == MEMMODEL_ACQUIRE;
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is RELEASE. */
|
||||
+static inline bool
|
||||
+is_mm_release (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_BASE_MASK) == MEMMODEL_RELEASE;
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is ACQ_REL. */
|
||||
+static inline bool
|
||||
+is_mm_acq_rel (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_BASE_MASK) == MEMMODEL_ACQ_REL;
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is SEQ_CST. */
|
||||
+static inline bool
|
||||
+is_mm_seq_cst (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_BASE_MASK) == MEMMODEL_SEQ_CST;
|
||||
+}
|
||||
+
|
||||
+/* Return TRUE if the memory model is a SYNC variant. */
|
||||
+static inline bool
|
||||
+is_mm_sync (enum memmodel model)
|
||||
+{
|
||||
+ return (model & MEMMODEL_SYNC);
|
||||
+}
|
||||
+
|
||||
+#endif /* GCC_MEMMODEL_H */
|
||||
diff --git a/gcc/optabs.c b/gcc/optabs.c
|
||||
index e41747a630f..c5e9b4f8e13 100644
|
||||
--- a/gcc/optabs.c
|
||||
+++ b/gcc/optabs.c
|
||||
@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "target.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "predict.h"
|
||||
#include "tm_p.h"
|
||||
#include "expmed.h"
|
||||
diff --git a/gcc/tree.h b/gcc/tree.h
|
||||
index 0d9ad0198fa..563e6d9e287 100644
|
||||
--- a/gcc/tree.h
|
||||
+++ b/gcc/tree.h
|
||||
@@ -4675,69 +4675,6 @@ extern void warn_deprecated_use (tree, tree);
|
||||
extern void cache_integer_cst (tree);
|
||||
extern const char *combined_fn_name (combined_fn);
|
||||
|
||||
-/* Return the memory model from a host integer. */
|
||||
-static inline enum memmodel
|
||||
-memmodel_from_int (unsigned HOST_WIDE_INT val)
|
||||
-{
|
||||
- return (enum memmodel) (val & MEMMODEL_MASK);
|
||||
-}
|
||||
-
|
||||
-/* Return the base memory model from a host integer. */
|
||||
-static inline enum memmodel
|
||||
-memmodel_base (unsigned HOST_WIDE_INT val)
|
||||
-{
|
||||
- return (enum memmodel) (val & MEMMODEL_BASE_MASK);
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is RELAXED. */
|
||||
-static inline bool
|
||||
-is_mm_relaxed (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_BASE_MASK) == MEMMODEL_RELAXED;
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is CONSUME. */
|
||||
-static inline bool
|
||||
-is_mm_consume (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_BASE_MASK) == MEMMODEL_CONSUME;
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is ACQUIRE. */
|
||||
-static inline bool
|
||||
-is_mm_acquire (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_BASE_MASK) == MEMMODEL_ACQUIRE;
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is RELEASE. */
|
||||
-static inline bool
|
||||
-is_mm_release (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_BASE_MASK) == MEMMODEL_RELEASE;
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is ACQ_REL. */
|
||||
-static inline bool
|
||||
-is_mm_acq_rel (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_BASE_MASK) == MEMMODEL_ACQ_REL;
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is SEQ_CST. */
|
||||
-static inline bool
|
||||
-is_mm_seq_cst (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_BASE_MASK) == MEMMODEL_SEQ_CST;
|
||||
-}
|
||||
-
|
||||
-/* Return TRUE if the memory model is a SYNC variant. */
|
||||
-static inline bool
|
||||
-is_mm_sync (enum memmodel model)
|
||||
-{
|
||||
- return (model & MEMMODEL_SYNC);
|
||||
-}
|
||||
-
|
||||
/* Compare and hash for any structure which begins with a canonical
|
||||
pointer. Assumes all pointers are interchangeable, which is sort
|
||||
of already assumed by gcc elsewhere IIRC. */
|
||||
diff --git a/gcc/tsan.c b/gcc/tsan.c
|
||||
index 91dbd41a0b4..cc194749665 100644
|
||||
--- a/gcc/tsan.c
|
||||
+++ b/gcc/tsan.c
|
||||
@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see
|
||||
#include "backend.h"
|
||||
#include "rtl.h"
|
||||
#include "tree.h"
|
||||
+#include "memmodel.h"
|
||||
#include "gimple.h"
|
||||
#include "tree-pass.h"
|
||||
#include "ssa.h"
|
|
@ -1,6 +1,6 @@
|
|||
diff -urN gcc-5.3.0.orig/gcc/config/nds32/nds32.md gcc-5.3.0/gcc/config/nds32/nds32.md
|
||||
--- gcc-5.3.0.orig/gcc/config/nds32/nds32.md 2015-01-15 22:45:09.000000000 -0800
|
||||
+++ gcc-5.3.0/gcc/config/nds32/nds32.md 2016-04-14 22:09:09.000000000 -0700
|
||||
diff -urN gcc-6.1.0.orig/gcc/config/nds32/nds32.md gcc-6.1.0/gcc/config/nds32/nds32.md
|
||||
--- gcc-6.1.0.orig/gcc/config/nds32/nds32.md 2015-01-15 22:45:09.000000000 -0800
|
||||
+++ gcc-6.1.0/gcc/config/nds32/nds32.md 2016-04-14 22:09:09.000000000 -0700
|
||||
@@ -2289,11 +2289,11 @@
|
||||
emit_jump_insn (gen_cbranchsi4 (test, operands[0], operands[2],
|
||||
operands[4]));
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
diff -urN gdb-7.11.orig/gdb/configure.tgt gdb-7.11/gdb/configure.tgt
|
||||
--- gdb-7.11.orig/gdb/configure.tgt 2016-02-09 19:19:39.000000000 -0800
|
||||
+++ gdb-7.11/gdb/configure.tgt 2016-04-21 17:42:32.628433139 -0700
|
||||
diff -urN gdb-7.12.orig/gdb/configure.tgt gdb-7.12/gdb/configure.tgt
|
||||
--- gdb-7.12.orig/gdb/configure.tgt 2016-02-09 19:19:39.000000000 -0800
|
||||
+++ gdb-7.12/gdb/configure.tgt 2016-04-21 17:42:32.628433139 -0700
|
||||
@@ -681,6 +681,11 @@
|
||||
i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
|
||||
obsd-tdep.o bsd-uthread.o solib-svr4.o"
|
|
@ -1,6 +1,6 @@
|
|||
diff -urN gdb-7.11.orig/gdb/Makefile.in gdb-7.11/gdb/Makefile.in
|
||||
--- gdb-7.11.orig/gdb/Makefile.in 2016-02-24 01:55:15.000000000 -0800
|
||||
+++ gdb-7.11/gdb/Makefile.in 2016-04-21 17:44:32.721472633 -0700
|
||||
diff -urN gdb-7.12.orig/gdb/Makefile.in gdb-7.12/gdb/Makefile.in
|
||||
--- gdb-7.12.orig/gdb/Makefile.in 2016-02-24 01:55:15.000000000 -0800
|
||||
+++ gdb-7.12/gdb/Makefile.in 2016-04-21 17:44:32.721472633 -0700
|
||||
@@ -1092,7 +1092,7 @@
|
||||
|
||||
TSOBS = inflow.o
|
|
@ -1,6 +1,6 @@
|
|||
diff -urN gdb-7.11.orig/gdb/python/python.c gdb-7.11/gdb/python/python.c
|
||||
--- gdb-7.11.orig/gdb/python/python.c 2016-02-09 19:19:39.000000000 -0800
|
||||
+++ gdb-7.11/gdb/python/python.c 2016-04-21 17:45:39.119833428 -0700
|
||||
diff -urN gdb-7.12.orig/gdb/python/python.c gdb-7.12/gdb/python/python.c
|
||||
--- gdb-7.12.orig/gdb/python/python.c 2016-02-09 19:19:39.000000000 -0800
|
||||
+++ gdb-7.12/gdb/python/python.c 2016-04-21 17:45:39.119833428 -0700
|
||||
@@ -1748,6 +1748,15 @@
|
||||
#endif
|
||||
#endif
|
|
@ -1 +0,0 @@
|
|||
7e7449f15a195fefd72b65b1671df18e4dccf665 tarballs/acpica-unix2-20160831.tar.gz
|
|
@ -0,0 +1 @@
|
|||
73e57d4d558c9bc831165c71adbff577b526f256 tarballs/acpica-unix2-20161222.tar.gz
|
|
@ -1 +0,0 @@
|
|||
624cd377e3a8eef3db83a56ce289a60f556b3ec2 tarballs/binutils-2.26.1.tar.bz2
|
|
@ -0,0 +1 @@
|
|||
f8b033731f6baa437d429c60e2623570f1ef9d6b tarballs/binutils-2.28.tar.bz2
|
|
@ -1 +0,0 @@
|
|||
2230ef962f2df3c13ec93f5b04b0e3cdff94b2ce tarballs/cfe-3.8.0.src.tar.xz
|
|
@ -0,0 +1 @@
|
|||
95e4be54b70f32cf98a8de36821ea5495b84add8 tarballs/cfe-3.9.1.src.tar.xz
|
|
@ -1 +0,0 @@
|
|||
a99d8b6fc5e593c4671424b327779318a1856acf tarballs/clang-tools-extra-3.8.0.src.tar.xz
|
|
@ -0,0 +1 @@
|
|||
f24e5ceb226a72e781cefde4e30f2d7be09ea305 tarballs/clang-tools-extra-3.9.1.src.tar.xz
|
|
@ -1 +0,0 @@
|
|||
480ea09e369dac6de1f3759b27fa19417b26b69e tarballs/compiler-rt-3.8.0.src.tar.xz
|
|
@ -0,0 +1 @@
|
|||
938921d076e28943f5d5b653514f2ce36a88a55e tarballs/compiler-rt-3.9.1.src.tar.xz
|
|
@ -1 +0,0 @@
|
|||
0612270b103941da08376df4d0ef4e5662a2e9eb tarballs/gcc-5.3.0.tar.bz2
|
|
@ -0,0 +1 @@
|
|||
928ab552666ee08eed645ff20ceb49d139205dea tarballs/gcc-6.3.0.tar.bz2
|
|
@ -1 +0,0 @@
|
|||
466208d771d97d3dfcf965d5c835a669cff8d847 tarballs/gdb-7.11.tar.xz
|
|
@ -0,0 +1 @@
|
|||
1a6a0f2fe04d6ac9ba85048af35610e0fc217300 tarballs/gdb-7.12.tar.xz
|
|
@ -1 +0,0 @@
|
|||
99d691607613e749aa5d7c0c2a89aeab38fec070 tarballs/gmp-6.1.0.tar.xz
|
|
@ -0,0 +1 @@
|
|||
9dc6981197a7d92f339192eea974f5eca48fcffe tarballs/gmp-6.1.2.tar.xz
|
|
@ -1 +0,0 @@
|
|||
723ac918979255706434a05f5af34b71c49c9971 tarballs/llvm-3.8.0.src.tar.xz
|
|
@ -0,0 +1 @@
|
|||
ce801cf456b8dacd565ce8df8288b4d90e7317ff tarballs/llvm-3.9.1.src.tar.xz
|
|
@ -1 +0,0 @@
|
|||
cedc0055d55b6ee4cd17e1e6119ed412520ff81a tarballs/mpfr-3.1.4.tar.xz
|
|
@ -0,0 +1 @@
|
|||
c0fab77c6da4cb710c81cc04092fb9bea11a9403 tarballs/mpfr-3.1.5.tar.xz
|
Loading…
Reference in New Issue