Commit Graph

153567 Commits

Author SHA1 Message Date
John David Anglin
2f9e7a343f re PR testsuite/81056 (FAIL: 17_intro/names.cc (test for excess errors))
PR testsuite/81056
	* testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__.

From-SVN: r251209
2017-08-20 19:00:59 +00:00
John David Anglin
1f55a00daf re PR ipa/77732 (FAIL: gcc.dg/ipa/ipcp-cstagg-7.c scan-ipa-dump-times cp "Discovered an indirect call to a known target" 3)
PR ipa/77732
	* gcc.dg/ipa/ipcp-cstagg-7.c: Xfail on 32-bit hppa.

From-SVN: r251207
2017-08-20 18:40:28 +00:00
GCC Administrator
0b66953d01 Daily bump.
From-SVN: r251204
2017-08-20 00:16:21 +00:00
Uros Bizjak
e016034b39 re PR target/81894 (Typo in x86 built-in function list)
PR target/81894
	* doc/extend.texi (x86 Built-in Functions): Correct the name of
	__builtin_ia32_lzcnt_u16.

From-SVN: r251198
2017-08-19 10:22:54 +02:00
GCC Administrator
61ad471aed Daily bump.
From-SVN: r251195
2017-08-19 00:16:24 +00:00
Jerry DeLisle
1ddec7a687 backport: re PR fortran/80164 (ICE in gfc_format_decoder at gcc/fortran/error.c:933)
2017-08-18  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	Backport from trunk
	PR fortran/80164
	* trans-stmt.c (gfc_trans_call): If no code expr, use code->loc
	as warning/error locus.

	* gfortran.dg/array_temporaries_4.f90: New test.

From-SVN: r251189
2017-08-18 21:36:50 +00:00
GCC Administrator
30a5b0f9bd Daily bump.
From-SVN: r251177
2017-08-18 00:16:29 +00:00
Uros Bizjak
7355ab54e2 backport: re PR target/81861 (ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong)
Backport from mainline
	2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>

	PR target/81861
	* config/i386/i386.c (ix86_option_override_internal): Save target
	specific options after ix86_stack_protector_guard_reg was changed.

From-SVN: r251162
2017-08-17 21:37:06 +02:00
GCC Administrator
e139883715 Daily bump.
From-SVN: r251138
2017-08-17 00:16:33 +00:00
Joseph Myers
c07643f221 * fr.po: Update.
From-SVN: r251132
2017-08-16 21:21:48 +01:00
Bill Schmidt
05d98180cc backport: re PR tree-optimization/81354 (Segmentation fault in SSA Strength Reduction using -O3)
[gcc]

2017-08-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	Backport from mainline
	2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/81354
	* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
	Insert on edges rather than explicitly creating landing pads.
	(analyze_candidates_and_replace): Commit edge inserts.


[gcc/testsuite]

2017-08-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	Backport from mainline
	2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/81354
	* g++.dg/torture/pr81354.C: New file.

From-SVN: r251120
2017-08-16 14:09:15 +00:00
GCC Administrator
2d3a77b853 Daily bump.
From-SVN: r251112
2017-08-16 00:18:35 +00:00
Joseph Myers
52caeae857 Limit SH strncmp inline expansion (PR target/78460).
GCC mainline built for sh4-linux-gnu runs out of memory building a
glibc test, which calls strncmp with very large constant size
argument, resulting in the SH inline strncmp expansion trying to
inline a fully unrolled expansion of strncmp for that size.

This patch limits that fully unrolled expansion to the case of less
than 32 bytes.  This is explicitly *not* trying to be optimal in any
way (very likely a lower threshold makes sense), just to limit enough
to avoid the out-of-memory issue in the glibc testsuite.

I have *not* run the GCC testsuite for SH.  I have verified that this
allows the glibc testsuite to build OK, with both GCC mainline and GCC
7 branch (and that the included test builds quickly with patched GCC,
runs out of memory with unpatched GCC).

	PR target/78460
	PR target/67712
gcc:
	* config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
	constant count if that count is less than 32.

gcc/testsuite:
	* gcc.c-torture/compile/string-large-1.c: New test.

From-SVN: r251109
2017-08-16 00:43:11 +01:00
Joseph Myers
17cc49fdaf Update .po files.
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, hr.po, id.po,
	ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, uk.po, vi.po, zh_CN.po,
	zh_TW.po: Update.

From-SVN: r251107
2017-08-15 21:39:11 +01:00
Jonathan Wakely
639c1cfb7d PR libstdc++/81751 don't call fflush(NULL)
Backport from mainline
2017-08-09  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/79820
	PR libstdc++/81751
	* config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
	Call fflush on the stream instead of calling sync() while _M_cfile is
	null. Restore original value of errno.
	* testsuite/ext/stdio_filebuf/char/79820.cc: New.
	* testsuite/ext/stdio_filebuf/char/81751.cc: New.

From-SVN: r251090
2017-08-14 13:14:09 +01:00
Jonathan Wakely
3cb1586fa2 PR libstdc++/53984 handle exceptions in basic_istream::sentry
Backport from mainline
2017-07-25  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/53984
	* include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
	* include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
	during construction.
	* include/std/istream: Adjust comments for formatted input functions
	and unformatted input functions.
	* testsuite/27_io/basic_fstream/53984.cc: New.
	* testsuite/27_io/basic_istream/sentry/char/53984.cc: New.

From-SVN: r251089
2017-08-14 13:14:01 +01:00
Richard Biener
fec6fbfa4c BASE-VER: Set to 7.2.1.
2017-08-14  Richard Biener  <rguenther@suse.de>

        * BASE-VER: Set to 7.2.1.

From-SVN: r251084
2017-08-14 08:11:28 +00:00
Richard Biener
7c645777da BASE-VER: Set to 7.2.1.
2017-08-14  Richard Biener  <rguenther@suse.de>

        * BASE-VER: Set to 7.2.1.

From-SVN: r251083
2017-08-14 08:04:56 +00:00
Richard Biener
586a0829dc Update ChangeLog and version files for release
From-SVN: r251081
2017-08-14 07:59:11 +00:00
GCC Administrator
254d33e711 Daily bump.
From-SVN: r251079
2017-08-14 00:17:14 +00:00
GCC Administrator
001d260c9f Daily bump.
From-SVN: r251071
2017-08-13 00:16:52 +00:00
GCC Administrator
ae84d10bd5 Daily bump.
From-SVN: r251063
2017-08-12 00:16:21 +00:00
GCC Administrator
9da4bcd1e2 Daily bump.
From-SVN: r251044
2017-08-11 00:17:16 +00:00
GCC Administrator
df62872c56 Daily bump.
From-SVN: r251016
2017-08-10 00:16:14 +00:00
Jason Merrill
5b6f97c9a7 Revert "PR c++/81525 - wrong constant value with generic lambda"
From-SVN: r251002
2017-08-09 16:18:59 -04:00
Jason Merrill
c02c8b11e1 PR c++/81525 - wrong constant value with generic lambda
* pt.c (tsubst_decl) [VAR_DECL]: Avoid clobbering auto.
	(tsubst_copy) [VAR_DECL]: Handle auto.

From-SVN: r251001
2017-08-09 16:17:55 -04:00
Leonid Koppel
abe0604c18 PR c++/67054 - Inherited ctor with non-default-constructible members
* method.c (walk_field_subobs) Consider member initializers (NSDMIs)
	when deducing an inheriting constructor.

From-SVN: r251000
2017-08-09 16:17:47 -04:00
GCC Administrator
adc61e57b3 Daily bump.
From-SVN: r250982
2017-08-09 00:16:23 +00:00
Richard Biener
783f5cb4ca re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused by r250815)
2017-08-08  Richard Biener  <rguenther@suse.de>

	PR middle-end/81766
	* function.c (thread_prologue_and_epilogue_insns): Restore
	behavior of always calling find_many_sub_basic_blocks on
	the inserted prologue.

	* gcc.target/i386/pr81766.c: New testcase.

From-SVN: r250958
2017-08-08 13:21:12 +00:00
GCC Administrator
77ed870464 Daily bump.
From-SVN: r250939
2017-08-08 00:16:14 +00:00
Joseph Myers
73e760fb78 * es.po: Update.
From-SVN: r250922
2017-08-07 16:56:22 +01:00
GCC Administrator
a00058a94f Daily bump.
From-SVN: r250907
2017-08-07 00:16:31 +00:00
GCC Administrator
e6977a24a2 Daily bump.
From-SVN: r250893
2017-08-06 00:16:48 +00:00
GCC Administrator
f395ad73e5 Daily bump.
From-SVN: r250888
2017-08-05 00:16:20 +00:00
Joseph Myers
72a4220056 * gcc.pot: Regenerate.
From-SVN: r250884
2017-08-04 23:18:39 +01:00
Ian Lance Taylor
b197d7f140 re PR go/81617 (mksigtab.sh fails to resolve NSIG with glibc 2.26)
PR go/81617
    libgo: change mksigtab to recognize glibc 2.26 NSIG expression
    
    Fixes golang/go#21147
    Fixes GCC PR 81617
    
    Reviewed-on: https://go-review.googlesource.com/52611

From-SVN: r250872
2017-08-04 12:29:55 +00:00
GCC Administrator
f188e7aca3 Daily bump.
From-SVN: r250863
2017-08-04 00:16:20 +00:00
GCC Administrator
4dd8a3d659 Daily bump.
From-SVN: r250840
2017-08-03 00:16:15 +00:00
Ian Lance Taylor
83a6ca99c3 compiler: only finalize embedded fields before finalizing methods
When finalizing the methods of a named struct type, we used to
    finalize all the field types first.  That can fail if the field types
    refer indirectly to the named type.  Change it to just finalize the
    embedded field types first, and the rest of the fields later.
    
    Fixes golang/go#21253
    
    Reviewed-on: https://go-review.googlesource.com/52570

From-SVN: r250833
2017-08-02 16:27:42 +00:00
Uros Bizjak
14098669c6 funcspec-56.inc (no_3dnowa): Properly test "no-3dnowa" target attribute.
* gcc.target/i386/funcspec-56.inc (no_3dnowa): Properly
	test "no-3dnowa" target attribute.

From-SVN: r250827
2017-08-02 15:02:50 +02:00
Jakub Jelinek
308c5a6534 re PR tree-optimization/81655 (new test case gcc.dg/tree-ssa/pr81588.c fails on powerpc64)
PR tree-optimization/81655
	PR tree-optimization/81588
	* gcc.dg/tree-ssa/pr81588.c: Use -mbranch-cost=2 where possible,
	don't run the test on branch-cost=1 targets.

From-SVN: r250819
2017-08-02 12:27:24 +02:00
Jakub Jelinek
b396c65489 re PR middle-end/79499 (ICE in rtl_verify_bb_insns, at cfgrtl.c:2661)
PR middle-end/79499
	* function.c (thread_prologue_and_epilogue_insns): Determine blocks
	for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
	of first NONDEBUG_INSN_P in each of the split_prologue_seq and
	prologue_seq sequences - if any.

	* gcc.dg/pr79499.c: New test.

From-SVN: r250815
2017-08-02 09:26:46 +02:00
GCC Administrator
31aa0bad3e Daily bump.
From-SVN: r250809
2017-08-02 00:16:16 +00:00
Joseph Myers
df88d34b9c * fr.po: Update.
From-SVN: r250806
2017-08-02 00:44:37 +01:00
Uros Bizjak
5ed13b67d0 re PR target/81641 (Assemble failure with named address spaces and -masm=intel)
PR target/81641
	* config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
	print "ds:" only for immediates in generic address space.

testsuite/ChangeLog:

	PR target/81641
	* gcc.target/i386/pr81641.c: New test.

From-SVN: r250801
2017-08-02 00:06:11 +02:00
Jakub Jelinek
c49cb08753 re PR target/81622 (ICE on invalid altivec code with ppc64{,le})
PR target/81622
	* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
	__builtin_vec_cmpne verify both arguments are compatible vectors
	before looking at TYPE_MODE on the element type.  For __builtin_vec_ld
	verify arg1_type is a pointer or array type.  For __builtin_vec_st,
	move computation of aligned to after checking the argument types.
	Formatting fixes.

	* gcc.target/powerpc/pr81622.c: New test.

From-SVN: r250787
2017-08-01 18:44:17 +02:00
Martin Liska
d124e3d61c Fix segfault in gcov.c (PR gcov-profile/81561).
2017-08-01  Martin Liska  <mliska@suse.cz>

	Backport from mainline
	2017-07-26  Martin Liska  <mliska@suse.cz>

	PR gcov-profile/81561
	* gcov.c (unblock): Make unblocking safe as we need to preserve
	index correspondence of blocks and block_lists.

From-SVN: r250782
2017-08-01 14:49:54 +00:00
Richard Biener
d90e0fb9ae re PR tree-optimization/71752 (ICE in compute_live_loop_exits, at tree-ssa-loop-manip.c:229 w/ -O1 -ftree-vectorize)
2017-08-01  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/71752
	PR tree-optimization/81633
	* tree-vect-slp.c (vect_get_slp_defs): Handle null operands
	in the original suggested way.

	* gcc.dg/vect/pr81633.c: New testcase.

From-SVN: r250779
2017-08-01 13:58:13 +00:00
Richard Sandiford
2d55c24f77 Backport fix for PR 80769
2017-08-01  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	PR tree-optimization/80769
	* tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
	for malloc and calloc.  Document the new invariant that all related
	strinfos have delayed lengths or none do.
	(get_next_strinfo): New function.
	(verify_related_strinfos): Move earlier in file.
	(set_endptr_and_length): New function, split out from...
	(get_string_length): ...here.  Also set the lengths of related
	strinfos.

gcc/testsuite/
	PR tree-optimization/80769
	* gcc.dg/strlenopt-31.c: New test.
	* gcc.dg/strlenopt-31g.c: Likewise.

From-SVN: r250772
2017-08-01 12:22:03 +00:00
Jakub Jelinek
fb700fcbf0 re PR tree-optimization/81588 (Wrong code at -O2)
PR tree-optimization/81588
	* tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
	ranges[i].in_p, invert comparison code ccode.  For >/>=,
	swap rhs1 and rhs2 and comparison code unconditionally,
	for </<= don't do that.  Don't swap rhs1/rhs2 again if
	ranges[i].in_p, instead invert comparison code ccode if
	opcode or oe->rank is BIT_IOR_EXPR.

	* gcc.dg/tree-ssa/pr81588.c: New test.
	* gcc.dg/pr81588.c: New test.
	* gcc.c-torture/execute/pr81588.c: New test.

From-SVN: r250761
2017-08-01 10:43:45 +02:00