Commit 29423a2f authored by Matthias Klose's avatar Matthias Klose

* Update to SVN 20190202 (r268474) from the gcc-7-branch.

  * Turn on profiled bootstrap on x86, ARM32, AArch64, PPC64 and s390x
    architectures for native builds.
parent 6c951679
gcc-7 (7.4.0-4) UNRELEASED; urgency=medium
* Update to SVN 20190202 (r268474) from the gcc-7-branch.
- Fix PR tree-optimization/89008, PR rtl-optimization/89115.
* Turn on profiled bootstrap on x86, ARM32, AArch64, PPC64 and s390x
architectures for native builds.
-- Matthias Klose <doko@debian.org> Sat, 02 Feb 2019 10:17:07 +0100
gcc-7 (7.4.0-3) unstable; urgency=medium
* Update to SVN 20190130 (r268403) from the gcc-7-branch.
......
# DP: updates from the 7 branch upto 20190130 (r268403).
# DP: updates from the 7 branch upto 20190202 (r268474).
last_update()
{
cat > ${dir}LAST_UPDATED <EOF
Wed Jan 30 22:14:48 CET 2019
Wed Jan 30 21:14:48 UTC 2019 (revision 268403)
Sat Feb 2 10:44:25 CET 2019
Sat Feb 2 09:44:25 UTC 2019 (revision 268474)
EOF
}
......@@ -522,7 +522,25 @@ Index: gcc/DATESTAMP
+++ b/src/gcc/DATESTAMP (.../branches/gcc-7-branch)
@@ -1 +1 @@
-20181206
+20190130
+20190202
Index: gcc/lra.c
===================================================================
--- a/src/gcc/lra.c (.../tags/gcc_7_4_0_release)
+++ b/src/gcc/lra.c (.../branches/gcc-7-branch)
@@ -1670,10 +1670,12 @@
case SCRATCH:
case CONST_DOUBLE:
- case CONST_INT:
case CONST_VECTOR:
return val;
+ case CONST_INT:
+ return val + UINTVAL (x);
+
default:
break;
}
Index: gcc/tree.h
===================================================================
--- a/src/gcc/tree.h (.../tags/gcc_7_4_0_release)
......@@ -541,7 +559,32 @@ Index: gcc/ChangeLog
===================================================================
--- a/src/gcc/ChangeLog (.../tags/gcc_7_4_0_release)
+++ b/src/gcc/ChangeLog (.../branches/gcc-7-branch)
@@ -1,3 +1,320 @@
@@ -1,3 +1,345 @@
+2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
+
+ Backport from mainline
+ 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
+
+ PR tree-optimization/89008
+ * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
+ process anything of the form X * 0.
+
+2019-01-31 Richard Biener <rguenther@suse.de>
+
+ Backport from mainline
+ 2019-01-31 Richard Biener <rguenther@suse.de>
+
+ PR rtl-optimization/89115
+ * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
+
+ 2019-01-30 Richard Biener <rguenther@suse.de>
+
+ PR rtl-optimization/89115
+ * opts.c (default_options_optimization): Reduce
+ PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
+ Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
+ to the default.
+
+2019-01-30 Kewen Lin <linkw@gcc.gnu.org>
+
+ Backport from mainline.
......@@ -862,7 +905,7 @@ Index: gcc/ChangeLog
2018-12-06 Release Manager
* GCC 7.4.0 released.
@@ -19,13 +340,13 @@
@@ -19,13 +365,13 @@
* gcc/dwarf2out.c (FUNC_SECOND_SECT_LABEL): New.
(dwarf2out_switch_text_section): Generate a local label for the second
function sub-section and apply it as the second FDE start label.
......@@ -3544,6 +3587,30 @@ Index: gcc/cp/cp-tree.h
extern tree finish_label_stmt (tree);
extern void finish_label_decl (tree);
extern cp_expr finish_parenthesized_expr (cp_expr);
Index: gcc/opts.c
===================================================================
--- a/src/gcc/opts.c (.../tags/gcc_7_4_0_release)
+++ b/src/gcc/opts.c (.../branches/gcc-7-branch)
@@ -654,9 +654,18 @@
/* For -O1 only do loop invariant motion for very small loops. */
maybe_set_param_value
(PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP,
- opt2 ? default_param_value (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP) : 1000,
+ opt2 ? default_param_value (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP)
+ : default_param_value (PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP) / 10,
opts->x_param_values, opts_set->x_param_values);
+ /* For -O1 reduce the maximum number of active local stores for RTL DSE
+ since this can consume huge amounts of memory (PR89115). */
+ maybe_set_param_value
+ (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES,
+ opt2 ? default_param_value (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES)
+ : default_param_value (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES) / 10,
+ opts->x_param_values, opts_set->x_param_values);
+
/* At -Ofast, allow store motion to introduce potential race conditions. */
maybe_set_param_value
(PARAM_ALLOW_STORE_DATA_RACES,
Index: gcc/ada/ChangeLog
===================================================================
--- a/src/gcc/ada/ChangeLog (.../tags/gcc_7_4_0_release)
......@@ -3774,6 +3841,19 @@ Index: gcc/ada/gcc-interface/trans.c
}
/* Otherwise build a regular assignment. */
Index: gcc/gimple-ssa-strength-reduction.c
===================================================================
--- a/src/gcc/gimple-ssa-strength-reduction.c (.../tags/gcc_7_4_0_release)
+++ b/src/gcc/gimple-ssa-strength-reduction.c (.../branches/gcc-7-branch)
@@ -1220,7 +1220,7 @@
c->next_interp = c2->cand_num;
c2->first_interp = c->cand_num;
}
- else
+ else if (TREE_CODE (rhs2) == INTEGER_CST && !integer_zerop (rhs2))
{
/* Record an interpretation for the multiply-immediate. */
c = create_mul_imm_cand (gs, rhs1, rhs2, speed);
Index: gcc/fortran/trans-expr.c
===================================================================
--- a/src/gcc/fortran/trans-expr.c (.../tags/gcc_7_4_0_release)
......
......@@ -318,6 +318,16 @@ ifneq ($(findstring gccdebug, $(DEB_BUILD_OPTIONS)),)
export DEB_BUILD_OPTIONS
endif
ifneq ($(trunk_build),yes)
ifeq ($(build_type),build-native)
ifeq (,$(DEB_STAGE))
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 i386 armhf arm64 ppc64el s390x))
with_bootstrap := profiled
endif
endif
endif
endif
# -------------------------------------------------------------------
# stage options
ifdef DEB_STAGE
......
......@@ -267,7 +267,7 @@ endif
ifeq ($(with_bootstrap),off)
CONFARGS += --disable-bootstrap
else ifneq ($(with_bootstrap),)
CONFARGS += --enable-bootstrap=$(with_bootstrap)
CONFARGS += --enable-bootstrap
endif
ifneq ($(with_sysroot),)
......@@ -779,40 +779,17 @@ endif
ifeq ($(with_bootstrap),off)
bootstrap_target =
else ifeq ($(with_bootstrap),profiled)
bootstrap_target = profiledbootstrap
bootstrap_target = profiledbootstrap-lean
else ifeq ($(with_bootstrap),)
bootstrap_target = bootstrap
# no profiledbootstrap on the following architectures
# - m68k: we're happy that it builds at all
no_profiled_bs_archs := alpha arm hppa m68k mips mipsel mips64 mips64el \
powerpcspe s390 sh4 sparc sparc64
ifeq (,$(filter $(DEB_TARGET_ARCH),$(no_profiled_bs_archs)))
bootstrap_target = profiledbootstrap
endif
ifneq (, $(filter $(PKGSOURCE),gcc-$(BASE_VERSION) gnat-$(BASE_VERSION) gcc-snapshot))
bootstrap_target = bootstrap
endif
ifneq (,$(DEB_STAGE))
bootstrap_target = bootstrap
endif
ifeq ($(derivative),Debian)
# disable profiled bootstrap for backports
ifneq (,$(filter $(distrelease),squeeze wheezy jessie))
bootstrap_target = bootstrap
endif
# disable profiled bootstrap on slow archs, get to testing first ...
ifneq (,$(filter $(DEB_TARGET_ARCH), arm arm64 armel armhf mips mipsel sparc))
bootstrap_target = bootstrap
endif
endif
ifeq ($(derivative),Ubuntu)
ifneq (,$(filter $(distrelease),lucid precise trusty utopic vivid wily))
bootstrap_target = bootstrap
endif
ifeq ($(with_linaro_branch),yes)
bootstrap_target = bootstrap
endif
endif
endif
DEJAGNU_TIMEOUT=300
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment