1. 05 Nov, 2018 5 commits
  2. 04 Nov, 2018 7 commits
  3. 03 Nov, 2018 2 commits
  4. 02 Nov, 2018 12 commits
    • re PR fortran/46020 (Improve error string for BIND(C) diagnostic for len>1 character return type) · 0f4f8561
      2018-11-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
          PR fortran/46020
          * decl.c (verify_bind_c_sym): Remove unnecessary space
          in error message.
      
      From-SVN: r265757
      Thomas Koenig committed
    • Move gcc.dg/compat dg-skip-if to *_main.c files · 361420ee
      	* gcc.dg/compat/pr83487-1_y.c: Move dg-skip-if ...
      	* gcc.dg/compat/pr83487-1_main.c: ... here.
      	* gcc.dg/compat/struct-by-value-10_main.c,
      	gcc.dg/compat/struct-by-value-10_x.c,
      	gcc.dg/compat/struct-by-value-11_main.c,
      	gcc.dg/compat/struct-by-value-11_x.c,
      	gcc.dg/compat/struct-by-value-12_main.c,
      	gcc.dg/compat/struct-by-value-12_x.c,
      	gcc.dg/compat/struct-by-value-13_main.c,
      	gcc.dg/compat/struct-by-value-13_x.c,
      	gcc.dg/compat/struct-by-value-14_main.c,
      	gcc.dg/compat/struct-by-value-14_x.c,
      	gcc.dg/compat/struct-by-value-15_main.c,
      	gcc.dg/compat/struct-by-value-15_x.c,
      	gcc.dg/compat/struct-by-value-17_main.c,
      	gcc.dg/compat/struct-by-value-17_x.c,
      	gcc.dg/compat/struct-by-value-18_main.c,
      	gcc.dg/compat/struct-by-value-18_x.c,
      	gcc.dg/compat/struct-by-value-2_main.c,
      	gcc.dg/compat/struct-by-value-2_x.c,
      	gcc.dg/compat/struct-by-value-22_main.c,
      	gcc.dg/compat/struct-by-value-22_x.c,
      	gcc.dg/compat/struct-by-value-3_main.c,
      	gcc.dg/compat/struct-by-value-3_x.c,
      	gcc.dg/compat/struct-by-value-4_main.c,
      	gcc.dg/compat/struct-by-value-4_x.c,
      	gcc.dg/compat/struct-by-value-5b_main.c,
      	gcc.dg/compat/struct-by-value-5b_x.c,
      	gcc.dg/compat/struct-by-value-6b_main.c,
      	gcc.dg/compat/struct-by-value-6b_x.c,
      	gcc.dg/compat/struct-by-value-6b_main.c,
      	gcc.dg/compat/struct-by-value-7b_x.c,
      	gcc.dg/compat/struct-by-value-7b_main.c,
      	gcc.dg/compat/struct-by-value-8_main.c,
      	gcc.dg/compat/struct-by-value-8_x.c,
      	gcc.dg/compat/struct-by-value-9_main.c,
      	gcc.dg/compat/struct-by-value-9_x.c,
      	gcc.dg/compat/struct-return-2_main.c,
      	gcc.dg/compat/struct-return-2_x.c: Likewise.
      
      From-SVN: r265755
      Rainer Orth committed
    • rs6000-string.c (expand_strncmp_gpr_sequence): Pay attention to… · 122d6c36
      rs6000-string.c (expand_strncmp_gpr_sequence): Pay attention to TARGET_AVOID_XFORM and BYTES_BIG_ENDIAN.
      
      2018-11-02  Aaron Sawdey  <acsawdey@linux.ibm.com>
      
      	* config/rs6000/rs6000-string.c (expand_strncmp_gpr_sequence): Pay
      	attention to TARGET_AVOID_XFORM and BYTES_BIG_ENDIAN.
      
      From-SVN: r265751
      Aaron Sawdey committed
    • Although there's no fundamental reason why shrink wrapping and speculation… · 5f7dbaa0
      Although there's no fundamental reason why shrink wrapping and speculation tracking are incompatible...
      
      Although there's no fundamental reason why shrink wrapping and
      speculation tracking are incompatible, a phase-ordering requirement
      (we need to do speculation tracking before the final basic block
      clean-up) means that the shrink wrapping pass can undo some of the
      changes the speculation tracking pass makes.  The result is that the
      tracking, while still safe is less comprehensive than we really want.
      
      So to keep things simple, and because the tracking code is quite
      expensive anyway, it seems best to just disable that pass when we are
      tracking speculative execution.
      
      	 * config/aarch64/aarch64.c (aarch64_override_options): Disable
      	 shrink-wrapping when -mtrack-speculation.
      
      From-SVN: r265747
      Richard Earnshaw committed
    • tree-ssa-coalesce.c (struct coalesce_list): Add obstack member. · 4c998ca5
      2018-11-02  Richard Biener  <rguenther@suse.de>
      
      	* tree-ssa-coalesce.c (struct coalesce_list): Add obstack member.
      	(pop_cost_one_pair): Do not free pair.
      	(pop_best_coalesce): Likewise.
      	(create_coalesce_list): Initialize obstack.
      	(delete_coalesce_list): Free obstack.
      	(find_coalesce_pair): Obstack-allocate coalesce pairs.
      	(add_cost_one_coalesce): Likewise.
      	(struct live_track): Remove bitmap pointer indirections.
      	(new_live_track): Adjust.
      	(delete_live_track): Likewise.
      	(live_track_remove_partition): Likewise.
      	(live_track_add_partition): Likewise.
      	(live_track_live_p): Likewise.
      	(live_track_process_def): Likewise.
      	(live_track_clear_base_vars): Likewise.
      
      From-SVN: r265745
      Richard Biener committed
    • [C++ PATCH] refactor duplicate_decls · 4155777d
      https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00085.html
      	gcc/cp/
      	* decl.c (duplicate_decls): Refactor checks.
      	gcc/testsuite/
      	* g++.dg/lookup/crash6.C: Adjust error
      	* g++.dg/parse/crash38.C: Likewise.
      
      From-SVN: r265744
      Nathan Sidwell committed
    • Remove SPARC HAVE_AS_REGISTER_PSEUDO_OP · 97f5962a
      	* configure.ac (gcc_cv_as_sparc_register_op): Remove.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      	* config/sparc/sparc.c (sparc_output_scratch_registers): Remove
      	HAVE_AS_REGISTER_PSEUDO_OP guard.
      	* config/sparc/sparc.h (ASM_ARCH64_SPEC): Remove
      	!HAVE_AS_REGISTER_PSEUDO_OP support.
      	(ASM_DECLARE_REGISTER_GLOBAL): Remove HAVE_AS_REGISTER_PSEUDO_OP
      	guard.
      
      From-SVN: r265743
      Rainer Orth committed
    • Fix libgphobos.spec in the wrong place with --enable-version-specific-runtime-libs · ac67752d
      libphobos/ChangeLog:
      
      2018-11-01  Iain Buclaw  <ibuclaw@gdcproject.org>
      
      	PR d/87827
      	* Makefile.in: Rebuild.
      	* configure: Rebuild.
      	* configure.ac: Properly set MULTISUBDIR.
      	* d_rules.am: Set toolexecdir and toolexeclibdir.
      	* libdruntime/Makefile.in: Rebuild.
      	* m4/druntime.m4 (DRUNTIME_INSTALL_DIRECTORIES): Add
      	--enable-version-specific-runtime-libs.
      	* src/Makefile.in: Rebuild.
      	* testsuite/Makefile.in: Rebuild.
      
      From-SVN: r265742
      Iain Buclaw committed
    • 20010904-2.c: Fix last change. · db281b40
      * gcc.c-torture/execute/20010904-2.c: Fix last change.
      * gcc.dg/Wattributes-10.c: Likewise.
      
      From-SVN: r265741
      Andreas Schwab committed
    • dwarf2out.c (build_abbrev_table): Guard lookup_external_ref call with is_type_die. · ea7e3900
      2018-11-02  Richard Biener  <rguenther@suse.de>
      
      	* dwarf2out.c (build_abbrev_table): Guard lookup_external_ref call
      	with is_type_die.
      
      From-SVN: r265740
      Richard Biener committed
    • re PR tree-optimization/87776 (Compile time hog during RPO VN) · a412de98
      2018-11-02  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/87776
      	* tree-ssa-sccvn.c (do_rpo_vn): Do not mark backedges
      	executable when iterating but running into rpo-vn-max-loop-depth
      	and not eliding the iteration.
      
      	* gcc.dg/torture/pr87776.c: New testcase.
      
      From-SVN: r265739
      Richard Biener committed
    • Daily bump. · b413c242
      From-SVN: r265738
      GCC Administrator committed
  5. 01 Nov, 2018 14 commits
    • tree.c (free_lang_data_in_decl): Free TREE_TYPE and alignment of TYPE_DECL. · bcd8b5e2
      
      	* tree.c (free_lang_data_in_decl): Free TREE_TYPE and alignment of
      	TYPE_DECL.
      
      From-SVN: r265735
      Jan Hubicka committed
    • Implement P0846R0, ADL and function templates. · 5d9a0e3b
      	* decl.c (grokfndecl): Allow FUNCTION_DECL in assert.
      	* lex.c (unqualified_fn_lookup_error): Handle TEMPLATE_ID_EXPR.
      	* parser.c (cp_parser_postfix_expression): Do ADL for a template-name.
      	(cp_parser_template_id): Give errors if parsing the template argument
      	list didn't go well.  Allow FUNCTION_DECL in assert.
      	(cp_parser_template_name): Consider a name to refer to a template if
      	it is an unqualified-id followed by a <.  Don't return the identifier
      	if the decl is a function and dependent.
      	* pt.c (tsubst_copy) <case OVERLOAD>: Remove assert.
      
      	* g++.dg/addr_builtin-1.C: Adjust dg-error.
      	* g++.dg/cpp2a/fn-template1.C: New test.
      	* g++.dg/cpp2a/fn-template10.C: New test.
      	* g++.dg/cpp2a/fn-template11.C: New test.
      	* g++.dg/cpp2a/fn-template12.C: New test.
      	* g++.dg/cpp2a/fn-template13.C: New test.
      	* g++.dg/cpp2a/fn-template14.C: New test.
      	* g++.dg/cpp2a/fn-template15.C: New test.
      	* g++.dg/cpp2a/fn-template16.C: New test.
      	* g++.dg/cpp2a/fn-template2.C: New test.
      	* g++.dg/cpp2a/fn-template3.C: New test.
      	* g++.dg/cpp2a/fn-template4.C: New test.
      	* g++.dg/cpp2a/fn-template5.C: New test.
      	* g++.dg/cpp2a/fn-template6.C: New test.
      	* g++.dg/cpp2a/fn-template7.C: New test.
      	* g++.dg/cpp2a/fn-template8.C: New test.
      	* g++.dg/cpp2a/fn-template9.C: New test.
      	* g++.dg/parse/fn-template1.C: New test.
      	* g++.dg/parse/fn-template2.C: New test.
      	* g++.dg/parse/template19.C: Adjust dg-error.
      	* g++.dg/template/pr61745.C: Add target to dg-error.
      
      From-SVN: r265734
      Marek Polacek committed
    • rs6000-protos.h (rs6000_address_for_fpconvert): Remove prototype. · 3af0c6bc
      2018-11-01  Aaron Sawdey  <acsawdey@linux.ibm.com>
      
      	* config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert): Remove
      	prototype.
      	* config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
      	Combine with rs6000_address_for_fpconvert.
      	(rs6000_address_for_fpconvert): Combine with
      	rs6000_force_indexed_or_indirect_mem.
      	(rs6000_expand_vector_init): Change function call from
      	rs6000_address_for_fpconvert to rs6000_force_indexed_or_indirect_mem.
      	* config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Change call from
      	rs6000_address_for_fpconvert to rs6000_force_indexed_or_indirect_mem.
      	(floatsi<mode>2_lfiwax_mem): Ditto.
      	(floatunssi<mode>2_lfiwzx): Ditto.
      	(floatunssi<mode>2_lfiwzx_mem): Ditto.
      	(float<QHI:mode><FP_ISA3:mode>2): Ditto.
      	(floatuns<QHI:mode><FP_ISA3:mode>2): Ditto.
      	(fix_trunc<mode>si2_stfiwx): Ditto.
      	(fixuns_trunc<mode>si2_stfiwx): Ditto.
      	(float_<mode>si2_hw): Ditto.
      	(floatuns_<mode>si2_hw): Ditto.
      	* config/rs6000/vsx.md (*vsx_extract_si): Ditto.
      	(vsx_splat_<mode>): Ditto.
      
      From-SVN: r265733
      Aaron Sawdey committed
    • re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=) · 4b53b347
      2017-11-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
          PR fortran/54613
          * gfortran.dg/findloc_1.f90: Actually commit.
          * gfortran.dg/findloc_2.f90: Actually commit.
          * gfortran.dg/findloc_3.f90: Actually commit.
          * gfortran.dg/findloc_4.f90: Actually commit.
          * gfortran.dg/findloc_5.f90: Actually commit.
          * gfortran.dg/findloc_6.f90: Actually commit.
      
      From-SVN: r265732
      Thomas Koenig committed
    • re PR fortran/87782 (runtime error: load of value 1818451807, which is not a… · 437725af
      re PR fortran/87782 (runtime error: load of value 1818451807, which is not a valid value for type 'expr_t')
      
      2018-11-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/87782
      	* frontend-passes.c (constant_string_length): If there is a
      	substring with a length which cannot be reduced to a constant,
      	return NULL.
      
      From-SVN: r265730
      Thomas Koenig committed
    • re PR fortran/40196 ([F03] [F08] Type parameter inquiry (str%len, a%kind) and… · a5fbc2f3
      re PR fortran/40196 ([F03] [F08] Type parameter inquiry (str%len, a%kind) and Complex parts (z%re, z%im))
      
      2018-11-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/40196
      	* dependency.c (are_identical_variables): Return false if the
      	inquiry refs are not the same.
      	(gfc_ref_needs_temporary_p): Break on an inquiry ref.
      	* dump_parse_tree.c (show_ref): Show the inquiry ref type.
      	* expr.c (gfc_free_ref_list): Break on an inquiry ref.
      	(gfc_copy_ref): Copy the inquiry ref types.
      	(find_inquiry_ref): New function.
      	(simplify_const_ref, simplify_ref_chain): Call it. Add new arg
      	to simplify_ref_chain.
      	(gfc_simplify_expr): Use the new arg in call to
      	simplify_ref_chain.
      	(gfc_get_full_arrayspec_from_expr, gfc_is_coarray): Break on
      	inquiry ref.
      	(gfc_traverse_expr): Return true for inquiry ref.
      	* frontend-passes.c (gfc_expr_walker): Break on inquiry ref.
      	* gfortran.h : Add enums and union member in gfc_ref to
      	implement inquiry refs.
      	* intrinsic.c : Fix white nois.
      	* match.c (gfc_match_assignment): A constant lavlue is an
      	error.
      	* module.c : Add DECL_MIO_NAME for inquiry_type and the mstring
      	for inquiry_types.
      	(mio_ref): Handle inquiry refs.
      	* primary.c (is_inquiry_ref): New function.
      	(gfc_match_varspec): Handle inquiry refs calling new function.
      	(gfc_variable_attr): Detect inquiry ref for disambiguation
      	with components.
      	(caf_variable_attr): Treat inquiry and substring refs in the
      	same way.
      	* resolve.c (find_array_spec): ditto.
      	(gfc_resolve_substring_charlen): If there is neither a charlen
      	ref not an inquiry ref, return.
      	(resolve_ref): Handle inqiry refs as appropriate.
      	(resolve_allocate_expr): Entities with an inquiry ref cannot be
      	allocated.
      	* simplify.c (simplify_bound, simplify_cobound): Punt on
      	inquiry refs.
      	* trans-array.c (get_array_ctor_var_strlen): Break on inquiry
      	ref.
      	*trans-expr.c (conv_inquiry): New function.
      	(gfc_conv_variable): Retain the last typespec to pass to
      	conv_inquiry on detecting an inquiry ref.
      
      
      2018-11-01  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/40196
      	* gfortran.dg/inquiry_part_ref_1.f08: New test.
      	* gfortran.dg/inquiry_part_ref_2.f90: New test.
      	* gfortran.dg/inquiry_part_ref_3.f90: New test.
      
      From-SVN: r265729
      Paul Thomas committed
    • 20010904-1.c: Align 2 if pdp11. · da06a0e9
      	* gcc.c-torture/execute/20010904-1.c: Align 2 if pdp11.
      	* gcc.c-torture/execute/20010904-2.c: Ditto.
      	* c-c++-common/builtin-arith-overflow-2.c: Skip if pdp11.
      	* gcc.dg/Walloc-size-larger-than-4.c: Ditto.
      	* gcc.dg/Walloc-size-larger-than-5.c: Ditto.
      	* gcc.dg/Walloc-size-larger-than-6.c: Ditto.
      	* gcc.dg/Walloc-size-larger-than-7.c: Ditto.
      	* gcc.dg/Walloca-14.c: Ditto.
      	* gcc.dg/Wlarger-than3.c: Ditto.
      	* gcc.dg/compat/pr83487-1_y.c: Ditto.
      	* gcc.dg/compat/struct-by-value-2_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-3_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-4_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-5b_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-6b_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-7b_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-8_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-9_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-10_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-11_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-12_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-13_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-14_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-15_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-16_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-17_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-18_x.c: Ditto.
      	* gcc.dg/compat/struct-by-value-22_x.c: Ditto.
      	* gcc.dg/compat/struct-return-2_x.c: Ditto.
      	* gcc.dg/falign-labels-1.c: Ditto.
      	* gcc.dg/long_branch.c: Ditto.
      	* gcc.dg/nextafter-1.c: Ditto.
      	* gcc.dg/pr35045.c: Ditto.
      	* gcc.dg/pr48616.c: Ditto.
      	* gcc.dg/pr84100.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-9.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-10.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf.c: Ditto.
      	* gcc.dg/Wattributes-10.c: Expect error if pdp11.
      	* gcc.dg/attr-alloc_size-11.c: Don't XFAIL if pdp11.
      	* gcc.dg/builtin-inf-1.c: Add pdp11 to warnings about INF.
      	* gcc.dg/builtins-1.c: Ditto.
      
      From-SVN: r265728
      Paul Koning committed
    • re PR fortran/46020 (Improve error string for BIND(C) diagnostic for len>1 character return type) · c92e96fa
      2018-11-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
          PR fortran/46020
          * gfortran.dg/bind_c_18.f90: Adjust error message.
      
      From-SVN: r265727
      Thomas Koenig committed
    • t-pdp11 (LIB2ADD): Add divmod.c. · 4310ca66
      	* config/pdp11/t-pdp11 (LIB2ADD): Add divmod.c.
      	(HOST_LIBGCC2_CFLAGS): Change to optimize for size.
      
      From-SVN: r265726
      Paul Koning committed
    • * g++.dg/cpp1z/constexpr-lambda22.C: New test, · d3db0b3b
      From-SVN: r265725
      Marek Polacek committed
    • Avoid stray [] in ia64 assembler test. · d8b3b4f4
      Noted in <https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00034.html>.
      Fix by adding extra newline in test input is analogous to many such
      newlines added in cases where argument to a newly added AC_LANG_SOURCE
      had a preprocessor directive on its last line.
      
      	* configure.ac (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Add newline
      	at end of assembler input text.
      	* configure: Regenerate.
      
      From-SVN: r265724
      Joseph Myers committed
    • cunroll-13.c: Add missing cast from literal to int32. · 14408ada
      2018-11-01  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
      
      	* gcc.dg/tree-ssa/cunroll-13.c: Add missing cast from literal to int32.
      
      From-SVN: r265723
      Jozef Lawrynowicz committed
    • tree.c (free_lang_data_in_decl): Free TREE_TYPE and alignment of TYPE_DECL. · 6d912664
      
      	* tree.c (free_lang_data_in_decl): Free TREE_TYPE and alignment of
      	TYPE_DECL.
      
      	* g++.dg/lto/pr84805_1.C: Update template.
      	* g++.dg/lto/pr84805_0.C: Update template.
      	* g++.dg/lto/pr84805_1b.C: Update template.
      	* g++.dg/lto/pr84805_0b.C: Update template.
      
      From-SVN: r265722
      Jan Hubicka committed
    • re PR tree-optimization/87826 (ubsan: gimple-ssa-store-merging.c:281) · 444cda74
      	PR tree-optimization/87826
      	* gimple-ssa-store-merging.c (do_shift_rotate): Punt if count is
      	negative or larger or equal to type's precision.
      
      	* gcc.dg/pr87826.c: New test.
      
      From-SVN: r265720
      Jakub Jelinek committed