Commit Graph

129061 Commits

Author SHA1 Message Date
Martin Sebor 5d9a283ac6 re PR middle-end/80020 (gcc confused about aligned_alloc argument order)
PR middle-end/80020
	* builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
	* builtins.def (aligned_alloc): Use it.

	PR middle-end/80020
	* gcc.dg/attr-alloc_size-6.c: Correct aligned_alloc argument order.
	* gcc.dg/attr-alloc_size-7.c: Same.
	* gcc.dg/attr-alloc_size-9.c: Same.
	* gcc.dg/builtin-alloc-size.c: Same.
	* gcc.dg/pr80020.c: New test.

From-SVN: r246145
2017-03-14 16:16:27 -06:00
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
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
Joseph Myers a00a486562 * de.po, fr.po: Update.
From-SVN: r246106
2017-03-13 18:43:28 +00: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
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
Bernd Schmidt 8f2f638160 re PR rtl-optimization/78911 (Infinite loop at -O2/O3 optimization levels while trying to compile server.c from Wine-2.0-rc2)
PR rtl-optimization/78911
	* lra-assigns.c (must_not_spill_p): New function.
	(spill_for): Use it.

	PR rtl-optimization/78911
	* gcc.target/i386/pr78911-1.c: New test.
	* gcc.target/i386/pr78911-2.c: New test.

From-SVN: r246059
2017-03-10 21:17:13 +00:00
Jakub Jelinek c7aee4a15c re PR tree-optimization/79981 (Forwprop not working for __atomic_compare_exchange_n)
PR tree-optimization/79981
	* tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
	ATOMIC_COMPARE_EXCHANGE ifn result.
	(stmt_interesting_for_vrp, vrp_visit_stmt): Handle
	IFN_ATOMIC_COMPARE_EXCHANGE.

From-SVN: r246054
2017-03-10 20:47:44 +01:00
David Malcolm fdb1880f3d Add missing punctuation to message (PR driver/79875)
gcc/ChangeLog:
	PR driver/79875
	* opts.c (parse_sanitizer_options): Add missing question mark to
	"did you mean" message.

From-SVN: r246047
2017-03-10 19:22:35 +00:00
Bill Schmidt 61f29dee3e rs6000-builtin.def (VMULEUB_UNS): Remove orphaned built-in.
2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	* config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
	built-in.
	(VMULEUH_UNS): Likewise.
	(VMULOUB_UNS): Likewise.
	(VMULOUH_UNS): Likewise.
	* config/rs6000/rs6000.c (builtin_function_type): Remove
	references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.

From-SVN: r246046
2017-03-10 19:16:04 +00:00