Commit Graph

153506 Commits

Author SHA1 Message Date
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
GCC Administrator
6277010eca Daily bump.
From-SVN: r250755
2017-08-01 00:16:26 +00:00
Joseph Myers
5fd0db72ef * es.po, uk.po: Update.
From-SVN: r250748
2017-07-31 16:51:07 +01:00
Andreas Krebbel
8a9a2371a7 [Committed] S/390: Support z14 as CPU name.
With IBM z14 officially announced we can add support for z14 as
preferred CPU name.  We still pass arch12 to Binutils in order to keep
older Binutils versions supported.

gcc/ChangeLog:

2017-07-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	Backport from mainline
	2017-07-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

	* config.gcc: Add z14.
	* config/s390/driver-native.c (s390_host_detect_local_cpu): Add
	CPU model numbers for z13s and z14.
	* config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
	arch12 with z14.
	* config/s390/s390-opts.h (enum processor_type): Rename
	PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
	* config/s390/s390.c (processor_table): Add field for CPU name to
	be passed to Binutils.
	(s390_asm_output_machine_for_arch): Use the new field in
	processor_table for Binutils.
	(s390_expand_builtin): Replace arch12 with z14.
	(s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
	(s390_get_sched_attrmask): Likewise.
	(s390_get_unit_mask): Likewise.
	* config/s390/s390.opt: Add z14 to processor_type enum.

From-SVN: r250740
2017-07-31 11:33:18 +00:00
Jakub Jelinek
9e4de329b1 re PR sanitizer/81604 (Ubsan type reporting can be bogus in some cases)
PR sanitizer/81604
	* ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
	change type to the element type, instead add eltype variable and
	use it where we are interested in the element type.

	* c-c++-common/ubsan/pr81604.c: New test.

From-SVN: r250729
2017-07-31 10:46:29 +02:00
GCC Administrator
6c9d51255d Daily bump.
From-SVN: r250724
2017-07-31 00:16:42 +00:00
GCC Administrator
ac02624698 Daily bump.
From-SVN: r250717
2017-07-30 00:16:30 +00:00
GCC Administrator
dfb1c7274f Daily bump.
From-SVN: r250692
2017-07-29 00:16:35 +00:00
Peter Bergner
7a4b10a14f backport: ppc-auxv.h (PPC_FEATURE2_DARN): New define.
gcc/
	Backport from mainline
	2017-07-28  Peter Bergner  <bergner@vnet.ibm.com>

	* config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
	(PPC_FEATURE2_SCV): Likewise.
	* config/rs6000/rs6000.c (cpu_supports_info): Use them.

gcc/testsuite/
	Backport from mainline
	2017-07-28  Peter Bergner  <bergner@vnet.ibm.com>

	* gcc.target/powerpc/cpu-builtin-1.c (darn, scv): Add tests.

From-SVN: r250688
2017-07-28 17:29:31 -05:00
David Edelsohn
fc626ac32f backport: dwarf2asm.c (dw2_asm_output_nstring): Encode double quote character for AIX.
Backport from mainline
2017-07-25  David Edelsohn  <dje.gcc@gmail.com>

        * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
        character for AIX.
        * dwarf2out.c (output_macinfo): Copy debug_line_section_label
        to dl_section_ref.  On AIX, append an expression to subtract
        the size of the section length to dl_section_ref.

From-SVN: r250663
2017-07-28 09:25:40 -04:00
Bin Cheng
c2ca7b74ce backport: re PR target/81414 (ICE in fma steering on AArch64/cortex-a57)
Backport from mainline r250496
	2017-07-25  Bin Cheng  <bin.cheng@arm.com>

	PR target/81414
	* config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
	instructions if no du chain is found.

	* gcc.target/aarch64/pr81414.C: New.

From-SVN: r250657
2017-07-28 11:13:45 +00:00
Sebastian Huber
3df4b03a37 [PowerPC/RTEMS] Add 64-bit support using ELFv2 ABI
Add 64-bit support for RTEMS using the ELFv2 ABI with 64-bit long
double.

gcc/
	* config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h.  Add
	rs6000/biarch64.h.
	* config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
	(ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
	(CRT_CALL_STATIC_FUNCTION): Likewise.
	(ASM_DEFAULT_SPEC): New define.
	(ASM_SPEC32): Likewise.
	(ASM_SPEC64): Likewise.
	(ASM_SPEC_COMMON): Likewise.
	(ASM_SPEC): Likewise.
	(INVALID_64BIT): Likewise.
	(LINK_OS_DEFAULT_SPEC): Likewise.
	(LINK_OS_SPEC32): Likewise.
	(LINK_OS_SPEC64): Likewise.
	(POWERPC_LINUX): Likewise.
	(PTRDIFF_TYPE): Likewise.
	(RESTORE_FP_PREFIX): Likewise.
	(RESTORE_FP_SUFFIX): Likewise.
	(SAVE_FP_PREFIX): Likewise.
	(SAVE_FP_SUFFIX): Likewise.
	(SIZE_TYPE): Likewise.
	(SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
	(TARGET_64BIT): Likewise.
	(TARGET_64BIT): Likewise.
	(TARGET_AIX): Likewise.
	(WCHAR_TYPE_SIZE): Likewise.
	(WCHAR_TYPE): Undefine.
	(TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
	(CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
	(CPP_OS_RTEMS_SPEC): Delete.
	(SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems.  Add
	asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
	link_os_spec64.
	* config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.

libgcc/
	* config/rs6000/ibm-ldouble.c: Disable if defined __rtems__.

From-SVN: r250654
2017-07-28 08:20:50 +00:00