Commit Graph

152156 Commits

Author SHA1 Message Date
Jakub Jelinek
3bb4311904 re PR c++/79655 (ICE on invalid c++ code in cxx_eval_store_expression in cp/constexpr.c:3464)
PR c++/79655
	* constexpr.c (cxx_eval_array_reference): Diagnose negative subscript.

	* g++.dg/cpp1y/constexpr-79655.C: New test.

From-SVN: r245636
2017-02-21 18:57:23 +01:00
Jakub Jelinek
664beaf2c1 re PR c++/79639 (ICE with -O and constexpr)
PR c++/79639
	* constexpr.c (cxx_eval_store_expression): If *valp is a PTRMEM_CST,
	call cplus_expand_constant on it first.

	* g++.dg/cpp1y/constexpr-79639.C: New test.

From-SVN: r245635
2017-02-21 18:48:57 +01:00
Jakub Jelinek
956d3e61a0 re PR target/79633 (ICE in gimple_call_arg, at gimple.h:3163)
PR target/79633
	* tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
	is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
	Use gimple_call_builtin_p.

	* gcc.target/i386/mpx/pr79633.c: New test.

From-SVN: r245634
2017-02-21 18:46:42 +01:00
Jakub Jelinek
d4cbfca47f re PR target/79570 (ICE in sel-sched-ir.c:4534 in pr69956.c)
PR target/79570
	* sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
	on temporarily removed DEBUG_INSNs.

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

From-SVN: r245633
2017-02-21 17:56:11 +01:00
Jakub Jelinek
00bc9de3fe re PR c++/79641 (ICE with const variable and attribute)
PR c++/79641
	* c-attribs.c (handle_mode_attribute): Use build_qualified_type to
	preserve quals.

	* c-c++-common/pr79641.c: New test.

From-SVN: r245632
2017-02-21 17:55:00 +01:00
Jakub Jelinek
d002d099b0 re PR middle-end/79649 (Memset pattern in named address space crashes compiler or generates wrong code)
PR tree-optimization/79649
	* tree-loop-distribution.c (classify_partition): Give up on
	non-generic address space loads/stores.

	* gcc.target/i386/pr79649.c: New test.

From-SVN: r245631
2017-02-21 17:29:37 +01:00
Aldy Hernandez
5daaf2d5d9 loop.texi (Loop manipulation): Remove nonexistent tree_ssa_loop_version from the documentation.
* doc/loop.texi (Loop manipulation): Remove nonexistent
	tree_ssa_loop_version from the documentation.
	* cfgloopmanip.c (loop_version): Document CONDITION_BB argument.

From-SVN: r245630
2017-02-21 15:37:18 +00:00
Jakub Jelinek
2f3ec56d60 re PR target/79494 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2330)
PR target/79494
	* config/i386/i386.c (ix86_expand_split_stack_prologue): Call
	make_reg_eh_region_note_nothrow_nononlocal on call_insn.
	* config/rs6000/rs6000.c: Include except.h.
	(rs6000_expand_split_stack_prologue): Call
	make_reg_eh_region_note_nothrow_nononlocal on the call insn.

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

From-SVN: r245629
2017-02-21 15:39:21 +01:00
Martin Jambor
03108bad95 [PR 79579] Avoid segfault on NULL ipa_edge_args_vector
2017-02-21  Martin Jambor  <mjambor@suse.cz>

	PR lto/79579
	* ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
	have been analyzed.

From-SVN: r245628
2017-02-21 15:01:52 +01:00
Martin Jambor
781176469e [PATCH] Properly deprecate -fipa-cp-alignment
2017-02-21  Martin Jambor  <mjambor@suse.cz>

	* common.opt (-fipa-cp-alignment): Mark as ignored and preserved
	for backward compatibility only.
	* doc/invoke.texi (Option Summary): Remove all references to
	-fipa-cp-alignment.

From-SVN: r245627
2017-02-21 14:55:32 +01:00
Matthew Fortune
549a6181ec Revert r245598
gcc/
	PR target/78660
	Revert:
	2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>

	* lra-constraints.c (curr_insn_transform): Handle
	WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.

From-SVN: r245626
2017-02-21 13:29:07 +00:00
Segher Boessenkool
e6655a5f98 Add -Wno-psabi to diagnostic-test-expressions-1.c options
Without this the test fails on 32-bit PowerPC.


gcc/testsuite/
	* gcc.dg/plugin/diagnostic-test-expressions-1.c: Add -Wno-psabi
	to dg-options.

From-SVN: r245625
2017-02-21 13:12:55 +01:00
Martin Liska
a156b0f10c Fix typo in -masm-dialect option values.
2017-02-21  Martin Liska  <mliska@suse.cz>

	* config/i386/i386.opt: Replace -masm-dialect with -masm.

From-SVN: r245624
2017-02-21 10:45:35 +00:00
Thomas Schwinge
3c5b4c6dd9 [PR translation/79638] "%ntid.y" confuses gcc.pot generation
gcc/
	* config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".

From-SVN: r245623
2017-02-21 11:42:07 +01:00
Kyrylo Tkachov
319633cd76 Skip gcc.dg/gimplefe-26.c on non-c99 runtime targets
* gcc.dg/gimplefe-26.c: Require c99_runtime.

From-SVN: r245622
2017-02-21 10:09:20 +00:00
Eric Botcazou
0cacdbfe93 re PR ada/67205 (eliminate No_Implicit_Dynamic_Code restriction violations)
PR ada/67205
	* config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
	(arm_function_ok_for_sibcall): Return false for an indirect call by
	descriptor if all the argument registers are used.
	(arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
	alignment of the function.

From-SVN: r245621
2017-02-21 08:42:54 +00:00
Jakub Jelinek
4cd2eefc85 re PR tree-optimization/61441 (ARM aarch64 fails to quiet signaling NaN)
PR tree-optimization/61441
	* simplify-rtx.c (simplify_const_unary_operation): For
	-fsignaling-nans and sNaN operand, return NULL_RTX rather than
	the sNaN unmodified.

From-SVN: r245620
2017-02-21 09:08:40 +01:00
Ian Lance Taylor
db03bf50fc re PR go/79642 (space instead of tab in lang.opt)
PR go/79642
	* lang.opt (-fgo-relative-import-path): Change space to tab.

From-SVN: r245619
2017-02-21 00:23:52 +00:00
GCC Administrator
39fd4d7141 Daily bump.
From-SVN: r245618
2017-02-21 00:16:13 +00:00
Joseph Myers
2102a5f150 * de.po: Update.
From-SVN: r245615
2017-02-20 22:54:30 +00:00
Joseph Myers
508e7b66b7 * de.po, fr.po, sv.po: Update.
From-SVN: r245614
2017-02-20 19:08:51 +00:00
Bernd Edlinger
2b754e4d90 Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
        (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
        instead of SYSTEM_HEADER_DIR.

From-SVN: r245613
2017-02-20 18:19:54 +00:00
Jason Merrill
0e53a276bc PR c++/78139 - destructor needed by new-expression
* call.c (build_special_member_call): Use tf_no_cleanup.

From-SVN: r245612
2017-02-20 13:18:30 -05:00
Aaron Sawdey
f05df2ac59 strncmp-2.c: Portability fixes.
2017-02-14  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

        * gcc.dg/strncmp-2.c: Portability fixes.

From-SVN: r245608
2017-02-20 11:09:40 -06:00
Kelvin Nilsen
027a9dd509 re PR target/78056 (build failure on Power7)
gcc/testsuite/ChangeLog:

2017-02-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>

	PR target/78056
	* gcc.target/powerpc/pr78056-8.c: Remove.

From-SVN: r245607
2017-02-20 16:43:03 +00:00
Gerald Pfeifer
21a9328c57 invoke.texi (use-after-scope-direct-emission-threshold): Fix typos and grammar, use active voice, and clarify.
* doc/invoke.texi (use-after-scope-direct-emission-threshold):
	Fix typos and grammar, use active voice, and clarify.

Co-Authored-By: Martin Liska <mliska@suse.cz>

From-SVN: r245606
2017-02-20 16:12:35 +00:00
Marek Polacek
85ade8d640 re PR sanitizer/79558 (ICE: Segfault in ubsan_type_descriptor, at ubsan.c:412)
PR sanitizer/79558
	* ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.

	* c-c++-common/ubsan/bounds-14.c: New test.

From-SVN: r245605
2017-02-20 15:50:23 +00:00
Marek Polacek
80480ceee9 re PR middle-end/79537 (ICE in gimplify_expr, at gimplify.c:12009)
PR middle-end/79537
	* gimplify.c (gimplify_expr): Handle unused *&&L;.

	* gcc.dg/comp-goto-4.c: New.

From-SVN: r245604
2017-02-20 15:05:53 +00:00
Paul Thomas
b93a9a15ee re PR fortran/79599 (typo in diagnostic gfc_error ("DTIO dummy argument at %L be a scalar")
2017-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79599
	* interface.c (check_dtio_arg_TKR_intent): Supply 'must'
	missing from error message.

2017-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79523
	* interface.c (gfc_find_typebound_dtio_proc): Guard test for
	flavor attribute by checking that symbol is resolved.

From-SVN: r245603
2017-02-20 14:17:42 +00:00
Jakub Jelinek
705d3b776d re PR target/79568 (ICE in extract_insn, at recog.c:2311 for pr70325.c (with -mavx512bw))
PR target/79568
	* config/i386/i386.c (ix86_expand_builtin): Handle
	OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
	ix86_builtins_isa[fcode].isa as a requirement of those
	flags and any other flag in the bitmask.
	(ix86_init_mmx_sse_builtins): Use 0 instead of
	~OPTION_MASK_ISA_64BIT as mask.
	* config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
	__builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
	__builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
	__builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.

	* gcc.target/i386/pr79568-1.c: New test.
	* gcc.target/i386/pr79568-2.c: New test.
	* gcc.target/i386/pr79568-3.c: New test.

From-SVN: r245602
2017-02-20 13:52:21 +01:00
Matthew Fortune
1b51df9442 Ensure the mode used to create split registers is suppported
gcc/
	PR target/78012
	* lra-constraints.c (split_reg): Check requested split mode
	is supported by the register.

From-SVN: r245601
2017-02-20 12:07:23 +00:00
Matthew Fortune
77850e96dd Partial revert of r243782 to restore previous behavior
gcc/
	* lra-constraints.c (simplify_operand_subreg): Remove early
	return false.

From-SVN: r245600
2017-02-20 12:07:14 +00:00
Matthew Fortune
62cdb86264 Tighten condition for converting SUBREG reloads from OP_OUT to OP_INOUT
gcc/
	PR target/78660
	* lra-constraints.c (curr_insn_transform): Tighten condition
	for converting SUBREG reloads from OP_OUT to OP_INOUT.

From-SVN: r245599
2017-02-20 12:07:06 +00:00
Matthew Fortune
222aafd7b6 Handle WORD_REGISTER_OPERATIONS when reloading (subreg (reg))
gcc/
	PR target/78660
	* lra-constraints.c (curr_insn_transform): Handle
	WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.

From-SVN: r245598
2017-02-20 12:06:56 +00:00
Paul Thomas
dc42a736c9 re PR fortran/79382 (DTIO ICE)
2017-02-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79382
	* decl.c (access_attr_decl): Test for presence of generic DTIO
	interface and emit error if not present.

2017-02-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79382
	* io/transfer.c (check_dtio_proc): New function.
	(formatted_transfer_scalar_read): Use it.
	(formatted_transfer_scalar_write): ditto.

2017-02-16  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79382
	* gfortran.dg/dtio_10.f90 : Change test of error message.
	* gfortran.dg/dtio_23.f90 : New test.
	* gfortran.dg/dtio_24.f90 : New test.

From-SVN: r245596
2017-02-20 10:52:50 +00:00
Paul Thomas
1ca6a74f89 re PR fortran/79434 ([submodules] separate module procedure breaks encapsulation)
2017-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79434
	* parse.c (check_component, parse_union): Whitespace.
	(set_syms_host_assoc): For a derived type, check if the module
	in which it was declared is one of the submodule ancestors. If
	it is, make the components public. Otherwise, reset attribute
	'host_assoc' and set 'use-assoc' so that encapsulation is
	preserved.

2017-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79434
	* gfortran.dg/submodule_25.f08 : New test.

From-SVN: r245595
2017-02-20 09:42:48 +00:00
Jason Merrill
8f712b7690 PR c++/78282 - auto template and pack expansion
* pt.c (find_parameter_packs_r): Don't walk into the type of
	templates other than template template-parameters.

From-SVN: r245594
2017-02-20 01:06:39 -05:00
Jason Merrill
bcbdfa4ce0 PR c++/79606 - ICE with this->base_member in NSDMI
* class.c (build_base_path): Check processing_template_decl.

From-SVN: r245593
2017-02-20 01:06:20 -05:00
Jason Merrill
736a933c00 PR c++/79607 - ICE with T{} initializer
* decl.c (type_dependent_init_p): Check the type of a CONSTRUCTOR.

From-SVN: r245592
2017-02-20 01:06:03 -05:00
Jason Merrill
7950124ec2 PR c++/79566 - elaborated-type-specifier in range for
* parser.c (cp_parser_simple_declaration): Fix check for type
	definition.

From-SVN: r245591
2017-02-20 01:05:54 -05:00
Jason Merrill
bea40d1191 PR c++/79400 - confusing suggestion of 'noexcept'
* parser.c (cp_parser_exception_specification_opt): Remove
	suggestion for deprecated dynamic exception-specification.

From-SVN: r245590
2017-02-20 01:05:45 -05:00
Jason Merrill
4cd159317c PR c++/79470 - partial ordering with reference parameters
* pt.c (unify) [INDIRECT_REF]: Handle pack expansions.

From-SVN: r245589
2017-02-20 01:05:38 -05:00
Jason Merrill
cfb825648d PR c++/79500 - ICE with non-template deduction guide
* pt.c (do_class_deduction): Use STRIP_TEMPLATE rather than
	DECL_TEMPLATE_RESULT.

From-SVN: r245588
2017-02-20 01:05:31 -05:00
Jason Merrill
de59c92b44 PR c++/79580 - ICE with compound literal
* parser.c (cp_parser_class_head): If we're in the middle of an
	expression, use ts_within_enclosing_non_class.

From-SVN: r245587
2017-02-20 01:05:08 -05:00
Jason Merrill
b80dfe4441 PR c++/79503 - inherited ctor taking base class
* call.c (add_function_candidate): Also check that
	DECL_INHERITED_CTOR_BASE is reference-related to the parameter type.

From-SVN: r245586
2017-02-20 01:03:45 -05:00
GCC Administrator
c9688c535e Daily bump.
From-SVN: r245585
2017-02-20 00:16:22 +00:00
Paul Thomas
63af1586ca re PR fortran/79447 ([F08] gfortran rejects valid & accepts invalid internal subprogram in a submodule)
2017-02-19  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79447
	* decl.c (gfc_set_constant_character_len): Whitespace.
	(gfc_match_end): Catch case where a procedure is contained in
	a module procedure and ensure that 'end procedure' is the
	correct termination.

2017-02-19  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79447
	* gfortran.dg/submodule_24.f08 : New test.

From-SVN: r245582
2017-02-19 19:59:20 +00:00
Andre Vehreschild
4ca4d1e95e re PR fortran/79229 (ICE in gfc_trans_assignment_1 with -fcheck=mem)
gcc/testsuite/ChangeLog:

2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>

	PR fortran/79229
	* gfortran.dg/class_allocate_24.f90: New test.


gcc/fortran/ChangeLog:

2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>

	PR fortran/79229
	* trans-expr.c (gfc_trans_assignment_1): Deref indirect refs when
	compiling with -fcheck=mem to check the pointer and not the data.

From-SVN: r245581
2017-02-19 19:43:49 +01:00
Paul Thomas
dea71ad06f re PR fortran/79402 (ICE with submodules: module procedure interface defined in parent module)
2017-02-19  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79402
	* resolve.c (fixup_unique_dummy): New function.
	(gfc_resolve_expr): Call it for dummy variables with a unique
	symtree name.

2017-02-19  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/79402
	* gfortran.dg/submodule_23.f90: New test.

From-SVN: r245580
2017-02-19 18:27:14 +00:00
Andre Vehreschild
e0396d770f re PR fortran/79335 (Conditional jump or move depends on uninitialised in value get_scalar_to_descriptor_type(tree_node*, symbol_attribute) (trans-expr.c:53))
gcc/fortran/ChangeLog:

2017-02-19  Andre Vehreschild  <vehre@gcc.gnu.org>

	PR fortran/79335
	* trans-array.c (duplicate_allocatable_coarray): Ensure attributes
	passed are properly initialized.
	(structure_alloc_comps): Same.
	* trans-expr.c (gfc_trans_structure_assign): Same.

From-SVN: r245579
2017-02-19 19:18:33 +01:00