152410 Commits

Author SHA1 Message Date
Martin Sebor
6bf29a7e40 re PR c/79936 (ICE with -Walloc-size-larger-than=32767)
PR c/79936
	* Makefile.in (GTFILES): Add calls.c.
	* calls.c: Include "gt-calls.h".

From-SVN: r246144
2017-03-14 16:09:40 -06:00
Bernd Schmidt
4692943dac re PR rtl-optimization/79728 (ICE in setup_pressure_classes, at ira.c:912)
PR rtl-optimization/79728
	* regs.h (struct target_regs): New field
	x_contains_allocatable_regs_of_mode.
	(contains_allocatable_regs_of_mode): New macro.
	* reginfo.c (init_reg_sets_1): Initialize it, and change
	contains_reg_of_mode so it includes global regs as well.
	* reload.c (push_reload): Use contains_allocatable_regs_of_mode
	rather than contains_regs_of_mode.

	PR rtl-optimization/79728
	* gcc.target/i386/sse-globalreg.c: New test.

From-SVN: r246138
2017-03-14 11:50:46 -06:00
Martin Liska
6c841832df Document options that can't be combined with -fcheck-pointer-bounds.
2017-03-14  Martin Liska  <mliska@suse.cz>

	* doc/invoke.texi: Document options that can't be combined with
	-fcheck-pointer-bounds.

From-SVN: r246130
2017-03-14 15:32:23 +00:00
Martin Liska
54d5850a75 Document -Wchkp (PR middle-end/79831).
2017-03-14  Martin Liska  <mliska@suse.cz>

	PR middle-end/79831
	* doc/invoke.texi (-Wchkp): Document the option.

From-SVN: r246129
2017-03-14 15:31:53 +00:00
Jonathan Wakely
4f83482f46 PR libstdc++/79162 disambiguate assignment from string_view
PR libstdc++/79162
	* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
	(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
	with a constrained template.
	[!_GLIBCXX_USE_CXX11_ABI]
	(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
	* testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
	* testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.

From-SVN: r246128
2017-03-14 14:51:19 +00:00
Nathan Sidwell
9b74f93310 PR c++/79393 DR 1658 workaround
PR c++/79393 DR 1658 workaround
	* method.c (synthesized_method_base_walk): Inihibit abstract class
	virtual base access check here.
	(synthesized_method_walk): Not here.

From-SVN: r246126
2017-03-14 14:41:53 +00:00
Martin Liska
9275950866 Install gcov-dump.
2017-03-14  Martin Liska  <mliska@suse.cz>

	* Makefile.in: Install gcov-dump.

From-SVN: r246125
2017-03-14 14:25:09 +00:00
Martin Liska
f7486ecb3c Do not ICE on an invalid input for MV.
2017-03-14  Martin Liska  <mliska@suse.cz>

	* multiple_target.c (expand_target_clones): Bail out for
	an invalid attribute.

From-SVN: r246124
2017-03-14 14:24:49 +00:00
Richard Biener
34e8234204 alias.c (struct alias_set_entry): Pack properly.
2017-03-14  Richard Biener  <rguenther@suse.de>

	* alias.c (struct alias_set_entry): Pack properly.
	* cfgloop.h (struct loop): Likewise.
	* cse.c (struct set): Likewise.
	* ipa-utils.c (struct searchc_env): Likewise.
	* loop-invariant.c (struct invariant): Likewise.
	* lra-remat.c (struct cand): Likewise.
	* recog.c (struct change_t): Likewise.
	* rtl.h (struct address_info): Likewise.
	* symbol-summary.h (function_summary): Likewise.
	* tree-loop-distribution.c (struct partition): Likewise.
	* tree-object-size.c (struct object_size_info): Likewise.
	* tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
	* tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
	* tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
	* tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
	* tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
	* tree-vectorizer.h (struct _loop_vec_info): Likewise.
	(struct _stmt_vec_info): Likewise.

From-SVN: r246121
2017-03-14 12:47:42 +00:00
Martin Liska
546eb36c7e Verify that target can create a dispatcher call (PR target/79892).
2017-03-14  Martin Liska  <mliska@suse.cz>

	PR target/79892
	* multiple_target.c (create_dispatcher_calls): Check that
	a target can create a function dispatcher.

From-SVN: r246120
2017-03-14 12:05:29 +00:00
Martin Liska
861d9d5e6a Fix multiple target clones nodes (PR lto/66295).
2017-03-14  Martin Liska  <mliska@suse.cz>

	PR lto/66295
	* multiple_target.c (expand_target_clones): Drop local.local
	flag for default implementation.
2017-03-14  Martin Liska  <mliska@suse.cz>

	PR lto/66295
	* gcc.dg/tree-prof/pr66295.c: New test.

From-SVN: r246119
2017-03-14 11:59:59 +00:00
James Cowgill
e3e8f22f78 s-osinte-linux.ads (struct_sigaction): Use correct type for sa_flags.
2017-03-14  James Cowgill  <James.Cowgill@imgtec.com>

        * s-osinte-linux.ads (struct_sigaction): Use correct type for sa_flags.

From-SVN: r246118
2017-03-14 09:26:17 +00:00
Richard Biener
778dd3b627 re PR tree-optimization/80030 (valgrind error in vect_get_slp_defs at tree-vect-slp.c:3360)
2017-03-14  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/80030
	* tree-vect-stmts.c (vectorizable_store): Plug memleak.

From-SVN: r246117
2017-03-14 08:02:34 +00:00
Kito Cheng
cccfcff414 Use gcc_fallthrough() instead of __attribute__((fallthrough)
Without this my build breaks on older compilers like GCC-5.4.

gcc/ChangeLog:

2017-03-13  Kito Cheng  <kito.cheng@gmail.com>

       * config/riscv/riscv.c (riscv_emit_float_compare>: Use
       gcc_fallthrough() instead of __attribute__((fallthrough));

From-SVN: r246116
2017-03-14 03:51:24 +00:00
GCC Administrator
a7af75b2fa Daily bump.
From-SVN: r246115
2017-03-14 00:16:18 +00:00
Joseph Myers
7f20430c91 * es.po: Update.
From-SVN: r246112
2017-03-13 23:07:17 +00:00
Gerald Pfeifer
344a2b50b2 gcc.texi: Remove "up" link to (DIR).
* doc/gcc.texi: Remove "up" link to (DIR).
	* doc/gccint.texi: Ditto.

From-SVN: r246111
2017-03-13 22:27:59 +00:00
Gerald Pfeifer
6abe316eb9 install.texi (Specific): Remove reference to binutils 2.13.
* doc/install.texi (Specific) <avr>: Remove reference to
	binutils 2.13.

From-SVN: r246110
2017-03-13 21:56:43 +00:00
Ville Voutilainen
648c989484 re PR libstdc++/80034 (unqualified calls to std::distance in std::list::sort)
PR libstdc++/80034
* include/bits/list.tcc (merge(list&&)): Use const for the size_t
in the catch-block.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/80034.cc: New.

From-SVN: r246107
2017-03-13 21:41:50 +02:00
Joseph Myers
a00a486562 * de.po, fr.po: Update.
From-SVN: r246106
2017-03-13 18:43:28 +00:00
Mark Wielaard
9905ca975c libiberty: Initialize d_printing in all cplus_demangle_fill_* functions.
While integrating the d_printing recursion guard change into gdb I
noticed we forgot to initialize the demangle_component d_printing
field in cplus_demangle_fill_{name,extended_operator,ctor,dtor}.
As is done in cplus_demangle_fill_{component,builtin_type,operator}.
It happened to work because in gcc all demangle_components were
allocated through d_make_empty. But gdb has its own allocation
mechanism (as might other users).

libiberty/ChangeLog:

       * cp-demangle.c (cplus_demangle_fill_name): Initialize
       demangle_component d_printing.
       (cplus_demangle_fill_extended_operator): Likewise.
       (cplus_demangle_fill_ctor): Likewise.
       (cplus_demangle_fill_dtor): Likewise.

From-SVN: r246105
2017-03-13 18:26:47 +00:00
Ville Voutilainen
fd231ad75a Implement LWG 2806, Base class of bad_optional_access.
* include/std/optional (bad_optional_access):
Derive from std::exception.
(bad_optional_access::bad_optional_access): Adjust.
(bad_optional_access::what): New.
(__throw_bad_optional_access(const char*)):
Remove the parameter and adjust calls.
* testsuite/20_util/optional/cons/value_neg.cc: Adjust.
* testsuite/20_util/optional/typedefs.cc: Likewise.

From-SVN: r246103
2017-03-13 20:03:30 +02:00
Jeff Law
dce15db61b riscv.c (riscv_emit_float_compare): Use fallthru attribute rather than comments.
* config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
        attribute rather than comments.

From-SVN: r246101
2017-03-13 11:49:40 -06:00
Jeff Law
097de8ffcb pdp11.md (movmemhi): Adjust operand numbers to match_scratch operand is highest.
* config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
	match_scratch operand is highest.

From-SVN: r246100
2017-03-13 11:43:19 -06:00
Martin Liska
a48018b5dc Do not warn -Wsuggest-attribute=noreturn for main.chkp (PR middle-end/78339).
2017-03-13  Martin Liska  <mliska@suse.cz>

	PR middle-end/78339
	* ipa-pure-const.c (warn_function_noreturn): If the declarations
	is a CHKP clone, use original declaration.
2017-03-13  Martin Liska  <mliska@suse.cz>

	PR middle-end/78339
	* gcc.target/i386/mpx/pr78339.c: New test.

From-SVN: r246098
2017-03-13 15:30:17 +00:00
Claudiu Zissulescu
0e5172ebf2 [ARC] Code size modifications.
gcc/
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.c (arc_init): Use multiplier whenever we have it.
	(arc_conditional_register_usage): Use a different allocation order
	when optimizing for size.
	* common/config/arc/arc-common.c (arc_option_optimization_table):
	Section anchors default on when optimizing for size.

From-SVN: r246091
2017-03-13 13:56:22 +01:00
Claudiu Zissulescu
8c56cc5a88 [ARC] Fix tst_bitfield_tst pattern.
gcc/
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.md (*tst_bitfield_tst): Fix pattern.

gcc/testsuite
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* testsuite/gcc.target/arc/bitfield.c: New file.

From-SVN: r246090
2017-03-13 13:56:11 +01:00
Claudiu Zissulescu
fa9c1b3c07 [ARC] Add code density instructions.
gcc/
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.c (arc_output_addsi): Emit code density adds.
	* config/arc/arc.md (cpu_facility): Add cd variant.
	(*movqi_insn): Add code density variant.
	(*movhi_insn): Likewise.
	(*movqi_insn): Likewise.
	(*addsi3_mixed): Likewise.
	(subsi3_insn): Likewise.

From-SVN: r246089
2017-03-13 13:56:00 +01:00
Claudiu Zissulescu
27ffcc3602 [ARC] Fix conditional move contstraint
Move pattern (movsi_insn) allows predicated instructions to be
instructions which can hold all registers.  However, the conditional
variant doesn't.  This patch fixes this problem.

2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.md (movsi_cond_exec): Update constraint.

From-SVN: r246088
2017-03-13 13:55:50 +01:00
Claudiu Zissulescu
14555394f4 [ARC] Handle complex PIC move patterns.
fwprop step is placing in the REG_EQUIV notes constant pic unspecs
expressions.  Then, loop may use these notes for optimizations
rezulting in complex patterns that are not supported by the current
implementation.

The patch adds handling of complex PIC addresses having MINUS or UNARY
operations.

gcc/
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
	expressions with MINUS and UNARY ops.

gcc/testsuite
2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>

	* gcc.target/arc/pr9001090948.c: New file.

From-SVN: r246087
2017-03-13 13:55:38 +01:00
Nathan Sidwell
16e93e4b0b PR c++/79393 DR 1658 workaround
PR c++/79393 DR 1658 workaround
	* method.c (synthesized_method_walk): Check vbases of abstract
	classes for dtor walk.

From-SVN: r246085
2017-03-13 11:58:15 +00:00
Kyrylo Tkachov
b8c3660369 [ARM] PR target/79911: Invalid vec_select arguments
PR target/79911
	* config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
	Rename to...
	(vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
	between vec_select and vector argument.
	(vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
	(vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
	(vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
	(vec_sel_widen_usum_lo<mode><V_half>3): ... This.
	(vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
	(vec_sel_widen_usum_hi<mode><V_half>3): ... This.

From-SVN: r246084
2017-03-13 10:58:48 +00:00
Richard Biener
91cd87db7e re PR other/79991 (typo in params.def, PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT)
2017-03-13  Richard Biener  <rguenther@suse.de>

	PR other/79991
	* params.def (vect-max-peeling-for-alignment): Fix typo.

From-SVN: r246083
2017-03-13 09:13:14 +00:00
GCC Administrator
b510747862 Daily bump.
From-SVN: r246082
2017-03-13 00:16:18 +00:00
Gerald Pfeifer
9c88861276 install.texi (Specific): Remove description of issue that only occurred with binutils below 2.18.
* doc/install.texi (Specific) <mips-*-*>: Remove description of 
	issue that only occurred with binutils below 2.18.

From-SVN: r246079
2017-03-12 17:31:00 +00:00
Gerald Pfeifer
665accdffa install.texi (Specific): No longer refer to binutils 2.11/2.12 minimum.
* doc/install.texi (Specific) <cris-axis-elf>: No longer
	refer to binutils 2.11/2.12 minimum.

From-SVN: r246078
2017-03-12 13:47:03 +00:00
Gerald Pfeifer
983bd86ddb install.texi (Specific): Remove link to ftp.kernel.org and simplify binutils requirement.
* doc/install.texi (Specific) <powerpc-*-*>: Remove link to
	ftp.kernel.org and simplify binutils requirement.

From-SVN: r246077
2017-03-12 11:06:59 +00:00
Ville Voutilainen
06272afbd3 Implement LWG 2934, optional<const T> doesn't compare with T.
* include/std/optional
(operator==(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
(operator!=(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
(operator<(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
(operator>(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
(operator<=(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
(operator>=(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
(operator==(const optional<_Tp>&, const _Tp&)):
Turn into operator==(const optional<_Tp>&, const _Up&).
(operator==(const _Tp&, const optional<_Tp>&)):
Turn into operator==(const _Up&, const optional<_Tp>&).
(operator!=(const optional<_Tp>&, const _Tp&)):
Turn into operator!=(const optional<_Tp>&, const _Up&).
(operator!=(const _Tp&, const optional<_Tp>&)):
Turn into operator!=(const _Up&, const optional<_Tp>&).
(operator<(const optional<_Tp>&, const _Tp&)):
Turn into operator<(const optional<_Tp>&, const _Up&).
(operator<(const _Tp&, const optional<_Tp>&)):
Turn into operator<(const _Up&, const optional<_Tp>&).
(operator>(const optional<_Tp>&, const _Tp&)):
Turn into operator>(const optional<_Tp>&, const _Up&).
(operator>(const _Tp&, const optional<_Tp>&)):
Turn into operator>(const _Up&, const optional<_Tp>&).
(operator<=(const optional<_Tp>&, const _Tp&)):
Turn into operator<=(const optional<_Tp>&, const _Up&).
(operator<=(const _Tp&, const optional<_Tp>&)):
Turn into operator<=(const _Up&, const optional<_Tp>&).
(operator>=(const optional<_Tp>&, const _Tp&)):
Turn into operator>=(const optional<_Tp>&, const _Up&).
(operator>=(const _Tp&, const optional<_Tp>&)):
Turn into operator>=(const _Up&, const optional<_Tp>&).
* testsuite/20_util/optional/relops/7.cc: New.

From-SVN: r246076
2017-03-12 12:32:31 +02:00
GCC Administrator
dc5551339d Daily bump.
From-SVN: r246075
2017-03-12 00:16:22 +00:00
Segher Boessenkool
3079b92e34 rs6000, testsuite: Correct the broken_cplxf_arg test
check_effective_target_broken_cplxf_arg is buggy.  It actually tests
if passing complex float works, not if it fails.  Also, it only runs
the test for target powerpc64-linux, but we are biarch, so it should
be powerpc*-linux.

This also changes the early-out conditions to be separate, because
the big combined condition was hard to follow.

This fixes the libstdc++ tests:

Running target unix/-m64
XPASS: 26_numerics/complex/13450.cc execution test
XPASS: 26_numerics/complex/pow.cc execution test
XPASS: 26_numerics/complex/value_operations/1.cc execution test

which were the last failing libstdc++ tests on BE.


gcc/testsuite/
	* lib/target-supports.exp (check_effective_target_broken_cplxf_arg):
	Fix test.  Make early-out condition return early.  Correct comments.

From-SVN: r246072
2017-03-12 01:04:02 +01:00
Gerald Pfeifer
376d267501 invoke.texi (Warning Options): Fix spelling of link-time optimization.
* doc/invoke.texi (Warning Options): Fix spelling of link-time
	optimization.
	(Optimize Options): Ditto.  Also remove redundancy.

From-SVN: r246071
2017-03-11 22:00:35 +00:00
Jerry DeLisle
c08de9db47 re PR fortran/78854 ([F03] DTIO namelist output not working on internal unit)
2017-03-11  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/78854
	* io/list_read.c (nml_get_obj_data): Stash internal unit for
	later use by child procedures.
	* io/write.c (nml_write_obj): Likewise.
	* io/tranfer.c (data_transfer_init): Minor whitespace.
	* io/unit.c (set_internal_uit): Look for the stashed internal
	unit and use it if found.

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

From-SVN: r246070
2017-03-11 14:49:57 +00:00
Marek Polacek
85059a38cb * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting.
From-SVN: r246069
2017-03-11 10:26:35 +00:00
David Malcolm
2f6f187a86 Simplify uses of "%<%s%>" to "%qs" (PR translation/79848)
gcc/c-family/ChangeLog:
	PR translation/79848
	* c-format.c (check_format_string): Simplify uses of "%<%s%>" to
	"%qs".

gcc/c/ChangeLog:
	PR translation/79848
	* c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
	"%qs".
	* c-parser.c (c_parser_oacc_shape_clause): Likewise.

gcc/cp/ChangeLog:
	PR translation/79848
	* decl.c (grokfndecl): Simplify uses of "%<%s%>" to "%qs".

gcc/ChangeLog:
	PR translation/79848
	* ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
	"%qs".
	* ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
	to G_ to avoid double translation.

From-SVN: r246068
2017-03-11 01:57:11 +00:00
David Malcolm
90aaff2cde Remove trailing period from various diagnostic messages (PR translation/79923)
gcc/ChangeLog:
	PR translation/79923
	* auto-profile.c (get_combined_location): Convert leading
	character of diagnostics to lower case and remove trailing period.
	(read_profile): Likewise for various diagnostics.
	* config/arm/arm.c (arm_option_override): Remove trailing period
	from various diagnostics.
	* config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
	(msp430_expand_delay_cycles): Likewise.

From-SVN: r246067
2017-03-11 01:43:48 +00:00
David Malcolm
fb241da254 aarch64.c: tweaks to quoting in error messages (PR target/79925)
gcc/ChangeLog:
	PR target/79925
	* config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
	full command-line argument, rather than just "str".
	(aarch64_validate_march): Likewise.
	(aarch64_validate_mtune): Likewise.

From-SVN: r246066
2017-03-11 01:40:04 +00:00
Martin Sebor
1d0cf89ab4 Fix up a couple of old ChangeLog entries.
From-SVN: r246065
2017-03-10 17:37:40 -07:00
Martin Sebor
66b2754523 As discussed in https://gcc.gnu.org/ml/gcc-patches/2017-02/msg00942.html
gcc/testsuite/ChangeLog:
	* gcc.dg/tree-ssa/builtin-sprintf-warn-3.c: Add a test case.

From-SVN: r246064
2017-03-10 17:33:45 -07:00
Joseph Myers
5e12b9b500 * de.po, sv.po: Update.
From-SVN: r246063
2017-03-11 00:33:30 +00:00
GCC Administrator
98cfb02432 Daily bump.
From-SVN: r246062
2017-03-11 00:16:18 +00:00