Commit Graph

160300 Commits

Author SHA1 Message Date
Gerald Pfeifer
8c00b6a4e8 api.xml: www.fsf.org has moved to https.
* doc/xml/api.xml: www.fsf.org has moved to https. Also omit
	trailing slash for domain level link.
	* doc/xml/faq.xml: Ditto.
	* doc/xml/manual/appendix_free.xml (software): Ditto.
	* doc/xml/manual/intro.xml: Ditto.
	* doc/xml/manual/spine.xml: Ditto.
	* doc/xml/spine.xml: Ditto.

From-SVN: r258637
2018-03-18 23:52:00 +00:00
Gerald Pfeifer
1de51fbc6f documentation_hacking.xml: Adjust link to docbook.org.
* doc/xml/manual/documentation_hacking.xml: Adjust link to
	docbook.org.

From-SVN: r258636
2018-03-18 23:38:23 +00:00
Martin Liska
f7dbf8e564 Fix UBSAN in regrename.c (PR rtl-optimization/84635).
2018-03-18  Martin Liska  <mliska@suse.cz>

	PR rtl-optimization/84635
	* regrename.c (build_def_use): Use matches_mode only when
	matches >= 0.

From-SVN: r258634
2018-03-18 20:17:10 +00:00
Steven G. Kargl
96c8b2534d re PR fortran/77414 (ICE in create_function_arglist, at fortran/trans-decl.c:2410)
2018-03-18  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/77414
	* decl.c (get_proc_name):  Check for a subroutine re-defined in
	the contain portion of a subroutine.  Change language of existing
	error message to better describe the issue. While here fix whitespace
	issues.

2018-03-18  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/77414
	* gfortran.dg/pr77414.f90: New test.
	* gfortran.dg/internal_references_1.f90: Adjust error message.

From-SVN: r258633
2018-03-18 17:51:57 +00:00
Steven G. Kargl
81ea7c11e1 re PR fortran/65453 (ICE in build_function_decl, at fortran/trans-decl.c:2001)
2018-03-18  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/65453
	* decl.c (get_proc_name): Catch clash between a procedure statement
	and a contained subprogram

2018-03-18  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/65453
	* gfortran.dg/pr65453.f90: New test.

From-SVN: r258632
2018-03-18 16:33:55 +00:00
Richard Sandiford
928b965f29 Don't try to vectorise COND_EXPR reduction chains (PR 84913)
The testcase ICEd for both SVE and AVX512 because we were trying
to vectorise a chain of COND_EXPRs as a reduction and getting
confused by reduc_index == -1.

2018-03-18  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
	PR tree-optimization/84913
	* tree-vect-loop.c (vectorizable_reduction): Don't try to
	vectorize chains of COND_EXPRs.

gcc/testsuite/
	PR tree-optimization/84913
	* gfortran.dg/vect/pr84913.f90: New test.

From-SVN: r258631
2018-03-18 10:25:29 +00:00
Thomas Koenig
4a8298b46d re PR fortran/79929 (Bogus Warning: '__builtin_memset': specified size 4294967291 exceeds maximum object size 2147483647)
2018-03-18  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/79929
	* gfortran.dg/warn_concat.f90: New test.

From-SVN: r258630
2018-03-18 09:20:37 +00:00
Chung-Ju Wu
566f31a42e [NDS32] Fix wrong MAX_REGS_PER_ADDRESS value.
gcc/
	* config/nds32/nds32.h (MAX_REGS_PER_ADDRESS): Fix the value.

From-SVN: r258629
2018-03-18 06:44:31 +00:00
Chung-Ju Wu
08ed6d2955 [NDS32] Define LOGICAL_OP_NON_SHORT_CIRCUIT.
gcc/
	* config/nds32/nds32.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.

From-SVN: r258628
2018-03-18 06:18:18 +00:00
Chung-Ju Wu
24a711668b [NDS32] Define CLZ_DEFINED_VALUE_AT_ZERO.
gcc/
	* config/nds32/nds32.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.

From-SVN: r258627
2018-03-18 04:47:10 +00:00
GCC Administrator
369c3be428 Daily bump.
From-SVN: r258626
2018-03-18 00:16:25 +00:00
Jonathan Wakely
0fb9dc36d2 Fix new test that fails in C++98 mode
* testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
	to compile as C++98.

From-SVN: r258623
2018-03-17 13:44:16 +00:00
Chung-Ju Wu
5e6ae0ccbb [NDS32] Implment ADJUST_REG_ALLOC_ORDER for performance requirement.
gcc/
	* config/nds32/nds32-protos.h (nds32_adjust_reg_alloc_order): Declare.
	* config/nds32/nds32.c (nds32_reg_alloc_order_for_speed): New array.
	(nds32_adjust_reg_alloc_order): New function.
	* config/nds32/nds32.h (ADJUST_REG_ALLOC_ORDER): Define.

Co-Authored-By: Kito Cheng <kito.cheng@gmail.com>

From-SVN: r258621
2018-03-17 13:06:12 +00:00
Kito Cheng
5af5015907 [NDS32] Use HOST_WIDE_INT_PRINT_DEC instead of %ld or %d.
gcc/
	* config/nds32/nds32.c (nds32_asm_output_mi_thunk,
	nds32_print_operand, nds32_print_operand_address): Use
	HOST_WIDE_INT_PRINT_DEC instead.

From-SVN: r258620
2018-03-17 12:11:22 +00:00
Chung-Ju Wu
6a5a7ee306 [NDS32] Optimize nds32_register_priority.
gcc/
	* config/nds32/nds32.c (nds32_register_priority): Modify cost.

From-SVN: r258619
2018-03-17 11:51:46 +00:00
Jakub Jelinek
677956e82f re PR target/84902 (549.fotonik3d_r from SPEC2017 fails verification with -Ofast -march=native on Zen since r258518)
PR target/84902
	* config/i386/i386.c (initial_ix86_tune_features,
	initial_ix86_arch_features): Use unsigned HOST_WIDE_INT rather than
	unsigned long long.
	(set_ix86_tune_features): Change ix86_tune_mask from unsigned int
	to unsigned HOST_WIDE_INT, initialize to HOST_WIDE_INT_1U << ix86_tune
	rather than 1u << ix86_tune.  Formatting fix.
	(ix86_option_override_internal): Change ix86_arch_mask from
	unsigned int to unsigned HOST_WIDE_INT, initialize to
	HOST_WIDE_INT_1U << ix86_arch rather than 1u << ix86_arch.
	(ix86_function_specific_restore): Likewise.

From-SVN: r258618
2018-03-17 12:12:00 +01:00
GCC Administrator
a3d6f9bab7 Daily bump.
From-SVN: r258617
2018-03-17 00:16:13 +00:00
Joseph Myers
20f78869d9 * de.po: Update.
From-SVN: r258614
2018-03-16 23:50:29 +00:00
Jakub Jelinek
927fb0bc9b re PR target/84899 (ICE: in final_scan_insn_1, at final.c:3139 (error: could not split insn))
PR target/84899
	* postreload.c (reload_combine_recognize_pattern): Perform
	INTVAL addition in unsigned HOST_WIDE_INT type to avoid UB and
	truncate_int_for_mode the result for the destination's mode.

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

From-SVN: r258610
2018-03-16 22:01:16 +01:00
Jakub Jelinek
ce811fc49b re PR c/84909 (typo: conversion from %qT to to %qT)
PR c/84909
	* c-warn.c (conversion_warning): Replace "to to" with "to" in
	diagnostics.

	* hsa-gen.c (mem_type_for_type): Fix comment typo.
	* tree-vect-loop-manip.c (vect_create_cond_for_niters_checks):
	Likewise.
	* gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
	Likewise.

From-SVN: r258609
2018-03-16 21:12:27 +01:00
Jakub Jelinek
63ecb626d6 re PR c/84910 (typo: "%qs follows inline declaration ")
PR c/84910
	* c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
	diagnostics.

	* parser.c (cp_parser_lambda_introducer): Remove trailing space from
	diagnostics.
	* method.c (synthesize_method): Likewise.
	* pt.c (convert_nontype_argument): Likewise.

From-SVN: r258608
2018-03-16 21:11:40 +01:00
Steven G. Kargl
299ab1b2a1 re PR fortran/69395 (ICE on declaring array with more than 7 dimensions+codimensions)
2018-03-16  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/69395
	* decl.c (merge_array_spec): Correct the error condition.

2018-03-16  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/69395
	* gfortran.dg/pr69395.f90: Add test for max dimensions

From-SVN: r258607
2018-03-16 19:20:15 +00:00
Ian Lance Taylor
534d990b35 libgo: add runtime/pprof/internal/profile.gox to noinst_DATA
Also add noinst_DATA to CHECK_DEPS; it's not needed in practice since
    `make` will build noinst_DATA, but it's logically required and will
    make a difference if any of the noinst_DATA sources change between
    `make` and `make check`.
    
    Tony Reix figured out why omitting packages from noinst_DATA didn't
    seem to matter: because if gccgo can't find foo.gox, it will fall back
    to reading the export data in foo.o, and foo.o will exist because
    these packages go into libgo.a.
    
    Reviewed-on: https://go-review.googlesource.com/101077

From-SVN: r258606
2018-03-16 19:01:40 +00:00
Jason Merrill
83484be8b8 PR c++/84720 - ICE with rvalue ref non-type argument.
* pt.c (invalid_nontype_parm_type_p): Prohibit rvalue reference.
	(convert_nontype_argument): Revert earlier change.

From-SVN: r258605
2018-03-16 14:56:06 -04:00
Jason Merrill
80fdaad1c7 PR c++/80227 - SFINAE and negative array size.
* decl.c (compute_array_index_type): Use
	build_converted_constant_expr and valid_constant_size_p.

From-SVN: r258604
2018-03-16 14:56:01 -04:00
Jason Merrill
929a012293 PR c++/84906 - silent wrong code with ambiguous conversion.
* call.c (build_user_type_conversion_1): Set need_temporary_p on
	ambiguous conversion.
	(convert_like_real): Check it.

From-SVN: r258603
2018-03-16 14:55:54 -04:00
Vladimir Makarov
7293e3f58e re PR target/84876 (ICE on invalid code in lra_assign at gcc/lra-assigns.c:1601 since r258504)
2018-03-16  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/84876
	* lra-assigns.c (lra_split_hard_reg_for): Don't use
	regno_allocno_class_array and sorted_pseudos.
	* lra-constraints.c (spill_hard_reg_in_range): Ignore hard regs in
	insns where regno is used.

2018-03-16  Vladimir Makarov  <vmakarov@redhat.com>

	PR target/84876
	* gcc.target/i386/pr84876.c: New test.

From-SVN: r258602
2018-03-16 18:48:26 +00:00
Joseph Myers
c011faee33 * uk.po: Update.
From-SVN: r258601
2018-03-16 17:34:56 +00:00
Joseph Myers
95ee47bd2f * de.po: Update.
From-SVN: r258599
2018-03-16 16:58:25 +00:00
Martin Liska
d5aabfc9a6 Redirect reference in the symbol table (PR ipa/84833).
2018-03-16  Martin Liska  <mliska@suse.cz>

	PR ipa/84833
	* multiple_target.c (create_dispatcher_calls): Redirect
	reference in the symbol table.
2018-03-16  Martin Liska  <mliska@suse.cz>

	PR ipa/84833
	* gcc.target/i386/mvc11.c: New test.

From-SVN: r258596
2018-03-16 14:53:45 +00:00
Martin Liska
a9a9804984 Properly redirect alias for MVC (PR ipa/84722).
2018-03-16  Martin Liska  <mliska@suse.cz>

	PR ipa/84722
	* multiple_target.c (create_dispatcher_calls): Redirect also
	an alias.
2018-03-16  Martin Liska  <mliska@suse.cz>

	PR ipa/84722
	* gcc.target/i386/mvc10.c: New test.

From-SVN: r258595
2018-03-16 14:53:24 +00:00
Jason Merrill
a81495699e PR c++/83937 - wrong C++17 handling of init-list ctor argument.
* call.c (build_special_member_call): Don't convert an init-list
	argument directly to the class type.

From-SVN: r258594
2018-03-16 10:35:47 -04:00
Jakub Jelinek
570f86f94e re PR c++/79937 (ICE in replace_placeholders_r)
PR c++/79937
	PR c++/82410
	* tree.h (TARGET_EXPR_NO_ELIDE): Define.
	* gimplify.c (gimplify_modify_expr_rhs): Don't elide TARGET_EXPRs with
	TARGET_EXPR_NO_ELIDE flag set unless *expr_p is INIT_EXPR.

	* cp-tree.h (CONSTRUCTOR_PLACEHOLDER_BOUNDARY): Define.
	(find_placeholder): Declare.
	* tree.c (struct replace_placeholders_t): Add exp member.
	(replace_placeholders_r): Don't walk into ctors with
	CONSTRUCTOR_PLACEHOLDER_BOUNDARY flag set, unless they are equal to
	d->exp.  Replace PLACEHOLDER_EXPR with unshare_expr (x) rather than x.
	(replace_placeholders): Initialize data.exp.
	(find_placeholders_r, find_placeholders): New functions.
	* typeck2.c (process_init_constructor_record,
	process_init_constructor_union): Set CONSTRUCTOR_PLACEHOLDER_BOUNDARY
	if adding NSDMI on which find_placeholder returns true.
	* call.c (build_over_call): Don't call replace_placeholders here.
	* cp-gimplify.c (cp_genericize_r): Set TARGET_EXPR_NO_ELIDE on
	TARGET_EXPRs with CONSTRUCTOR_PLACEHOLDER_BOUNDARY set on
	TARGET_EXPR_INITIAL.
	(cp_fold): Copy over CONSTRUCTOR_PLACEHOLDER_BOUNDARY bit to new
	ctor.

	* g++.dg/cpp1y/pr79937-1.C: New test.
	* g++.dg/cpp1y/pr79937-2.C: New test.
	* g++.dg/cpp1y/pr79937-3.C: New test.
	* g++.dg/cpp1y/pr79937-4.C: New test.
	* g++.dg/cpp1y/pr82410.C: New test.

From-SVN: r258593
2018-03-16 13:46:12 +01:00
Jason Merrill
aafdbe06af PR c++/83911 - ICE with multiversioned constructor.
* cp-gimplify.c (cp_genericize_r): Replace versioned function with
	dispatchere here.
	* call.c (build_over_call): Not here.
	PR c++/83911 - ICE with multiversioned constructor.

From-SVN: r258592
2018-03-16 08:38:42 -04:00
Richard Biener
a1295eec4e re PR c/84873 (ICE: verify_ssa failed (error: definition in block 3 does not dominate use in block 4))
2018-03-16  Richard Biener  <rguenther@suse.de>

	PR c/84873
	* c-gimplify.c (c_gimplify_expr): Revert previous change.  Instead
	unshare the possibly folded expression.

From-SVN: r258591
2018-03-16 12:04:29 +00:00
Tom de Vries
15f0c25f4e [testsuite] Require vect_int_mult in pr84512.c
2018-03-16  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/tree-ssa/pr84512.c: Require effective target vect_int_mult.

From-SVN: r258590
2018-03-16 11:38:57 +00:00
Tom de Vries
b82664df2b [testsuite] Require label_values in builtin-unreachable-6.c
2018-03-16  Tom de Vries  <tom@codesourcery.com>

	* gcc.dg/builtin-unreachable-6.c: Require effective target label_values.

From-SVN: r258589
2018-03-16 11:38:45 +00:00
Jakub Jelinek
f664274af9 re PR c++/84874 (internal compiler error: in reshape_init_class, at cp/decl.c:5800)
PR c++/84874
	* g++.dg/cpp2a/desig8.C: New test.

From-SVN: r258588
2018-03-16 09:44:56 +01:00
Julia Koval
057f9d20f1 Fix documentation for CLWB ISA.
gcc/
	* doc/invoke.texi (Skylake Server): Add CLWB.
	Cannonlake): Remove CLWB.

From-SVN: r258587
2018-03-16 09:11:27 +01:00
Jakub Jelinek
7b9be7003d re PR tree-optimization/84841 (ICE: tree check: expected ssa_name, have real_cst in rewrite_expr_tree_parallel, at tree-ssa-reassoc.c:4624)
PR tree-optimization/84841
	* tree-ssa-reassoc.c (INTEGER_CONST_TYPE): Change to 1 << 4 from
	1 << 3.
	(FLOAT_ONE_CONST_TYPE): Define.
	(constant_type): Return FLOAT_ONE_CONST_TYPE for -1.0 and 1.0.
	(sort_by_operand_rank): Put entries with higher constant_type last
	rather than first to match comments.

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

From-SVN: r258586
2018-03-16 09:06:41 +01:00
Jakub Jelinek
828fd2fbe8 re PR c++/84874 (internal compiler error: in reshape_init_class, at cp/decl.c:5800)
PR c++/84874
	* decl.c (reshape_init_class): Don't assert d->cur->index == field
	if d->cur->index is a FIELD_DECL, instead set field to d->cur->index.

	* g++.dg/cpp2a/desig7.C: New test.

From-SVN: r258585
2018-03-16 09:05:06 +01:00
Mark Doffman
9f3599c044 03-16-2018 Mark Doffman <mark.doffman@codethink.co.uk>
Jim MacArthur  <jim.macarthur@codethink.co.uk>

	* gfortran.dg/automatic_1.f90: New test.
	* gfortran.dg/automatic_repeat.f90: New test
	* gfortran.dg/automatic_save.f90: New test.
	* gfortran.dg/vax_structure.f90: New test.

From-SVN: r258584
2018-03-15 23:07:39 -06:00
Steven G. Kargl
64300da748 re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
2018-03-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/78741
	* decl.c (get_proc_name):  Check for clash of entry name with
	subroutine name.

2018-03-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/78741
	* gfortran.dg/pr78741.f90: New test.

From-SVN: r258581
2018-03-16 02:56:34 +00:00
Steven G. Kargl
93d1ab50c5 re PR fortran/69395 (ICE on declaring array with more than 7 dimensions+codimensions)
2018-03-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/69395
	* decl.c (merge_array_spec): Limit the merging to maximum allowed
	dimensions, and issue error message if limit is exceeded.

2018-03-15  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/69395
	* gfortran.dg/pr69395.f90: New test.

From-SVN: r258580
2018-03-16 02:43:02 +00:00
GCC Administrator
39f5f2ed51 Daily bump.
From-SVN: r258579
2018-03-16 00:16:13 +00:00
Sandra Loosemore
9422357988 nios2.md (movsi_internal): Fix thinko in split predicate.
2018-03-15  Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* config/nios2/nios2.md (movsi_internal): Fix thinko in 
	split predicate.

From-SVN: r258575
2018-03-15 18:33:34 -04:00
Jakub Jelinek
ffc8b52f9a re PR c++/79085 (ICE with placement new to unaligned location)
PR c++/79085
	* calls.c (expand_call): For TREE_ADDRESSABLE rettype ignore alignment
	check and use address of target always.

	* g++.dg/opt/pr79085.C: New test.

From-SVN: r258574
2018-03-15 22:09:24 +01:00
Jakub Jelinek
724ad4a31b re PR libfortran/84880 (libgfortran fail to build on aarch64/arm 32bit cross toolchain)
PR libgfortran/84880
	* intrinsics/kill.c (kill): Rename to...
	(PREFIX (kill)): ... this.  Use export_proto_np instead of export_proto.

From-SVN: r258571
2018-03-15 19:04:59 +01:00
H.J. Lu
23f95cb77a i386: Don't generate alias for function return thunk
Function return thunks shouldn't be aliased to indirect branch thunks
since indirect branch thunks are placed in COMDAT section and a COMDAT
section with indirect branch may not have function return thunk.  This
patch generates function return thunks directly.

gcc/

	PR target/84574
	* config/i386/i386.c (indirect_thunk_needed): Update comments.
	(indirect_thunk_bnd_needed): Likewise.
	(indirect_thunks_used): Likewise.
	(indirect_thunks_bnd_used): Likewise.
	(indirect_return_needed): New.
	(indirect_return_bnd_needed): Likewise.
	(output_indirect_thunk_function): Add a bool argument for
	function return.
	(output_indirect_thunk_function): Don't generate alias for
	function return thunk.
	(ix86_code_end): Call output_indirect_thunk_function to generate
	function return thunks.
	(ix86_output_function_return): Set indirect_return_bnd_needed
	and indirect_return_needed instead of indirect_thunk_bnd_needed
	and indirect_thunk_needed.

gcc/testsuite/

	PR target/84574
	* gcc.target/i386/ret-thunk-9.c: Expect __x86_return_thunk
	label instead of __x86_indirect_thunk label.

From-SVN: r258569
2018-03-15 10:54:40 -07:00
Jakub Jelinek
4a5a49b034 re PR c++/84222 ([[deprecated]] class complains about internal class usage)
PR c++/84222
	* cp-tree.h (cp_warn_deprecated_use): Declare.
	* tree.c (cp_warn_deprecated_use): New function.
	* typeck2.c (build_functional_cast): Use it.
	* decl.c (grokparms): Likewise.
	(grokdeclarator): Likewise.  Temporarily push nested class scope
	around grokparms call for out of class member definitions.

	* g++.dg/warn/deprecated.C (T::member3): Change dg-warning to dg-bogus.
	* g++.dg/warn/deprecated-6.C (T::member3): Likewise.
	* g++.dg/warn/deprecated-13.C: New test.

From-SVN: r258568
2018-03-15 18:45:01 +01:00