Skip to content
Snippets Groups Projects
  1. Apr 18, 2017
    • Jakub Jelinek's avatar
      re PR tree-optimization/80443 (ICE on valid code at -O2 on x86_64-linux-gnu:... · 0155ed56
      Jakub Jelinek authored
      re PR tree-optimization/80443 (ICE on valid code at -O2 on x86_64-linux-gnu: in set_value_range, at tree-vrp.c:367)
      
      	PR tree-optimization/80443
      	* tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
      	instead of adding 1, subtract -1 and similarly instead of subtracting
      	1 add -1.
      
      	* gcc.c-torture/compile/pr80443.c: New test.
      
      From-SVN: r246981
      0155ed56
    • Richard Sandiford's avatar
      re PR rtl-optimization/80357 (ICE in model_update_limit_points_in_group, at... · f380f608
      Richard Sandiford authored
      re PR rtl-optimization/80357 (ICE in model_update_limit_points_in_group, at haifa-sched.c:1982 on powerpc64le-linux-gnu)
      
      gcc/
      	PR rtl-optimization/80357
      	* haifa-sched.c (tmp_bitmap): New variable.
      	(model_recompute): Handle duplicate use records.
      	(alloc_global_sched_pressure_data): Initialize tmp_bitmap.
      	(free_global_sched_pressure_data): Free it.
      
      gcc/testsuite/
      	PR rtl-optimization/80357
      	* gcc.c-torture/compile/pr80357.c: New test.
      
      From-SVN: r246980
      f380f608
    • Bernd Edlinger's avatar
      revert: Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe. · 7754ee35
      Bernd Edlinger authored
      2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              Revert:
              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: r246979
      7754ee35
    • Jeff Law's avatar
      re PR middle-end/80422 (ICE on valid code at -O3 in 32-bit mode on... · dd68669b
      Jeff Law authored
      re PR middle-end/80422 (ICE on valid code at -O3 in 32-bit mode on x86_64-linux-gnu: in operator[], at vec.h:732)
      
      	PR middle-end/80422
      	* cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
      	predecessors after walking up the insn chain.
      
      	PR middle-end/80422
      	* gcc.c-torture/compile/pr80422.c: New test.
      
      From-SVN: r246975
      dd68669b
    • Jakub Jelinek's avatar
      re PR debug/80263 (gcc's internal type "sizetype" leaks out as base type name in the DWARF info) · 1cda61fc
      Jakub Jelinek authored
      	PR debug/80263
      	* dwarf2out.c (modified_type_die): Try harder not to emit internal
      	sizetype type into debug info.
      
      	* gcc.dg/debug/dwarf2/pr80263.c: New test.
      
      From-SVN: r246973
      1cda61fc
    • Michael Meissner's avatar
      re PR target/80099 (ICE in rs6000_expand_vector_extract, at config/rs6000/rs6000.c:7450) · 19970253
      Michael Meissner authored
      [gcc]
      2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/80099
      	* config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
      	unneeded test for TARGET_UPPER_REGS_SF.
      	* config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
      
      [gcc/testsuite]
      2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/80099
      	* gcc.target/powerpc/pr80099-1.c: New test.
      	* gcc.target/powerpc/pr80099-2.c: Likewise.
      	* gcc.target/powerpc/pr80099-3.c: Likewise.
      	* gcc.target/powerpc/pr80099-4.c: Likewise.
      	* gcc.target/powerpc/pr80099-5.c: Likewise.
      
      From-SVN: r246972
      19970253
    • Jakub Jelinek's avatar
      re PR sanitizer/80444 (-fcompare-debug failures with -fsanitize-coverage=trace-pc) · 3b5fb3cb
      Jakub Jelinek authored
      	PR sanitizer/80444
      	* sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
      	instead of gsi_after_labels.
      
      	* gcc.dg/sancov/pr80444.c: New test.
      
      From-SVN: r246971
      3b5fb3cb
    • Jeff Law's avatar
      regcprop.c (maybe_mode_change): Avoid creating copies of the stack pointer. · d1446456
      Jeff Law authored
      	* regcprop.c (maybe_mode_change): Avoid creating copies of the
      	stack pointer.
      
      	Revert:
      	2017-04-13  Jeff Law  <law@redhat.com>
      	* config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
      	in operands[1] if it is a MEM and TARGET_MIPS16 is active.
      
      From-SVN: r246970
      d1446456
    • Georg-Johann Lay's avatar
      Typo. · 8c468e1d
      Georg-Johann Lay authored
      From-SVN: r246969
      8c468e1d
    • Georg-Johann Lay's avatar
      re PR c++/79435 (ICE on invalid C++ code (with member access into an... · dddc273f
      Georg-Johann Lay authored
      re PR c++/79435 (ICE on invalid C++ code (with member access into an incomplete type) on x86_64-linux-gnu: Segmentation fault)
      
      gcc/
      	PR target/79435
      	* config/avr/avr.c (intl.h): Include it.
      	(avr_pgm_check_var_decl) [reason]: Wrap	diagnostic snippets into _().
      
      From-SVN: r246966
      dddc273f
    • Jakub Jelinek's avatar
      re PR middle-end/79788 (ICE in expand_expr_real_2, at expr.c:9557) · 8487c9a5
      Jakub Jelinek authored
      	PR middle-end/79788
      	PR middle-end/80375
      	* c-common.c (c_common_type_for_mode): Don't handle
      	widest_*_literal_type_node here.
      	c_common_signed_or_unsigned_type): Likewise.
      	(c_common_nodes_and_builtins): Set widest_*_literal_type_node
      	to *intTI_type_node or *intDI_type_node depending on whether
      	TImode is supported by the target or not.
      
      	* gcc.dg/pr79788-1.c: New test.
      	* gcc.dg/pr79788-2.c: New test.
      
      From-SVN: r246965
      8487c9a5
    • Jonathan Wakely's avatar
      Fix incorrect results from std::boyer_moore_searcher · 38d68cf0
      Jonathan Wakely authored
      	* include/std/functional (default_searcher, __boyer_moore_array_base)
      	(__is_std_equal_to, __boyer_moore_base_t, boyer_moore_searcher)
      	(boyer_moore_horspool_searcher): Remove redundant namespace
      	qualification.
      	(default_searcher::operator()): Construct return value early and
      	advance second member in-place.
      	(boyer_moore_horspool_searcher::operator()): Increment random access
      	iterator directly instead of using std::next.
      	(boyer_moore_searcher::operator()): Fix return value.
      	* testsuite/20_util/function_objects/searchers.cc: Check both parts
      	of return values.
      
      From-SVN: r246964
      38d68cf0
    • Marek Polacek's avatar
      PR c++/80241 - ICE with alignas pack expansion. · d6e3e8a5
      Marek Polacek authored
      	* error.c (dump_expr): Handle TREE_LIST.
      	* parser.c (cp_parser_std_attribute_list): Return error_mark if
      	make_pack_expansion returns an error.
      
      	* g++.dg/cpp0x/alignas11.C: New test.
      
      From-SVN: r246963
      d6e3e8a5
    • Marek Polacek's avatar
      PR c++/80244 - ICE with attribute in template alias. · be7c73ae
      Marek Polacek authored
      	* tree.c (strip_typedefs): Handle UNDERLYING_TYPE.
      
      	* g++.dg/cpp0x/alias-decl-59.C: New test.
      
      From-SVN: r246962
      be7c73ae
    • Martin Liska's avatar
      Validate that destination gcov file does not exist for gcov-tool (PR gcov-profile/78783). · 63971184
      Martin Liska authored
      2017-04-18  Martin Liska  <mliska@suse.cz>
      
      	PR gcov-profile/78783
      	* libgcov-driver.c (gcov_get_filename): New function.
      2017-04-18  Martin Liska  <mliska@suse.cz>
      
      	PR gcov-profile/78783
      	* gcov-tool.c (gcov_output_files): Validate that destination
      	file is either removed by the tool or by a user.
      
      From-SVN: r246961
      63971184
    • GCC Administrator's avatar
      Daily bump. · 4c6a5d87
      GCC Administrator authored
      From-SVN: r246960
      4c6a5d87
  2. Apr 17, 2017
  3. Apr 16, 2017
    • Tom de Vries's avatar
      Remove braces around line number in dejagnu directive · afeaeb70
      Tom de Vries authored
      2017-04-16  Tom de Vries  <tom@codesourcery.com>
      
      	* g++.dg/parse/error11.C: Remove braces around line number in dejagnu
      	  directive.
      	* g++.dg/parse/error3.C: Same.
      	* g++.old-deja/g++.pt/niklas01a.C: Same.
      	* gcc.dg/990506-0.c: Same.
      	* gcc.dg/cpp/19990413-1.c: Same.
      	* gcc.dg/cpp/pragma-1.c: Same.
      	* gcc.dg/cpp/pragma-2.c: Same.
      	* gcc.dg/m-un-2.c: Same.
      	* objc.dg/private-1.m: Same.
      
      From-SVN: r246945
      afeaeb70
    • GCC Administrator's avatar
      Daily bump. · 974c3b54
      GCC Administrator authored
      From-SVN: r246944
      974c3b54
  4. Apr 15, 2017
    • Uros Bizjak's avatar
      pr54669.c: Fix dg-do directive. · 604f37cd
      Uros Bizjak authored
      	* gcc.dg/pr54669.c: Fix dg-do directive.
      	* gcc.dg/pr78582.c: Ditto.
      	* gcc.dg/pr80020.c: Ditto.
      	* gcc.dg/torture/pr57993-2.cpp: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-3.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-4.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-5.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-6.c: Ditto.
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Ditto.
      	* gcc.dg/tree-ssa/pr79327-2.c: Ditto.
      	* gcc.dg/tree-ssa/pr79352.c: Ditto.
      	* gcc.dg/tree-ssa/pr79376.c: Ditto.
      	* gcc.dg/tree-ssa/pr79691.c: Ditto.
      
      From-SVN: r246941
      604f37cd
    • Dominique d'Humieres's avatar
      deferred_character_3.f90: Fix dg directive. · 35cfdb17
      Dominique d'Humieres authored
      2017-04-15  Dominique d'Humieres  <dominiq@lps.ens.fr>
      
      	* gfortran.dg/deferred_character_3.f90: Fix dg directive.
      	* gfortran.dg/generic_29.f90: Likewise.
      	* gfortran.dg/goacc/multi-clause.f90: Likewise.
      	* gfortran.dg/pr41922.f90: Likewise.
      	* gfortran.dg/pr70006.f90: Likewise.
      
      From-SVN: r246940
      35cfdb17
    • Segher Boessenkool's avatar
      rs6000: Testcase 20050830-1.c no longer fails (PR66612) · f378be38
      Segher Boessenkool authored
      Bin's commit r246810, for PR80153, fixes 20050830-1.c for -m64 (it
      already passed for -m32).  So, this patch removes the remaining xfail.
      
      
      gcc/testsuite/
      	PR tree-optimization/66612
      	* gcc.target/powerpc/20050830-1.c: Remove xfail.
      
      From-SVN: r246939
      f378be38
    • Alexandre Oliva's avatar
      [libcp1] handle anon aggregates linkage-named by typedefs · e072b0c4
      Alexandre Oliva authored
      Arrange for the first typedef to an anonymous type in the same context
      to be used as the linkage name for the type.
      
      for  gcc/cp/ChangeLog
      
      	* decl.c (name_unnamed_type): Split out of...
      	(grokdeclarator): ... this.
      	* decl.h (name_unnamed_type): Declare.
      
      for  libcc1/ChangeLog
      
      	* libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
      
      From-SVN: r246938
      e072b0c4
    • GCC Administrator's avatar
      Daily bump. · 51477ac2
      GCC Administrator authored
      From-SVN: r246937
      51477ac2
  5. Apr 14, 2017
    • Janus Weil's avatar
      re PR fortran/80361 ([OOP] bogus recursive call to nonrecursive procedure with -fcheck=recursion) · 43076492
      Janus Weil authored
      2017-04-14  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/80361
      	* class.c (generate_finalization_wrapper): Give the finalization wrapper
      	the recursive attribute.
      
      2017-04-14  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/80361
      	* gfortran.dg/class_62.f90: New test case.
      
      From-SVN: r246934
      43076492
    • Andrew Burgess's avatar
      arc: Fix for loop end detection · dd3d6a42
      Andrew Burgess authored
      
      We use a negative ID number to link together the doloop_begin and
      doloop_end instructions.  This negative ID number is setup within
      doloop_begin, at this point the ID is stored into the loop end
      instruction (doloop_end_i) and placed into the doloop_begin_i
      instruction.
      
      In arc.c (arc_reorg) we extract the ID from the doloop_end_i
      instruction in order to find the matching doloop_begin_i instruction,
      though the ID is only used in some cases.
      
      Currently in arc_reorg when we extract the ID we negate it.  This
      negation is invalid.  The ID stored in both doloop_end_i and
      doloop_begin_i is already negative, the negation in arc_reorg means
      that if we need to use the ID to find the doloop_begin_i then we will
      never find it (as the IDs will never match).
      
      This commit removes the unneeded negation, moves the extraction of the
      ID into a more appropriately scoped block and adds a new test for this
      issue.
      
      gcc/ChangeLog:
      
      	* config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
      	block, and do not negate it, the stored id is already negative.
      
      gcc/testsuite/ChangeLog:
      
      	* gcc.target/arc/loop-1.c: New file.
      
      
      Co-Authored-By: default avatarGuy Benyei <guybe@mellanox.com>
      
      From-SVN: r246933
      dd3d6a42
    • Andrew Burgess's avatar
      arc: Use @pcl assembler syntax instead of invalid expressions · 8c1d6b64
      Andrew Burgess authored
      The old ARC assembler would accept expressions like 'LABEL-(.&-4)'
      which would calculate the offset from the PCL to LABEL.  The new ARC
      assembler does not accept these expressions, instead there's an @pcl
      synax, used like LABEL@pcl which gives the offset from PCL to LABEL.
      
      Most of the use of the old expression syntax have been removed,
      however, this one got missed.
      
      gcc/ChangeLog:
      
      	* config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
      
      From-SVN: r246932
      8c1d6b64
    • Michael Meissner's avatar
      re PR target/80098 (ICE in curr_insn_transform, at lra-constraints.c:3816 on ppc64le) · 31a07c81
      Michael Meissner authored
      [gcc]
      2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/80098
      	* config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
      	masks of options that should be turned off if the VSX vector
      	options are turned off.
      	(OTHER_P8_VECTOR_MASKS): Likewise.
      	(OTHER_VSX_VECTOR_MASKS): Likewise.
      	* config/rs6000/rs6000.c (rs6000_option_override_internal): Call
      	rs6000_disable_incompatible_switches to validate no type switches
      	like -mvsx.
      	(rs6000_incompatible_switch): New function to disallow turning on
      	other vector options if -mno-vsx, -mno-power8-vector, or
      	-mno-power9-vector are specified.
      
      [gcc/testsuite]
      2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/80098
      	* gcc.target/powerpc/pr80098-1.c: New test.
      	* gcc.target/powerpc/pr80098-2.c: Likewise.
      	* gcc.target/powerpc/pr80098-3.c: Likewise.
      	* gcc.target/powerpc/pr80098-4.c: Likewise.
      
      From-SVN: r246930
      31a07c81
    • Claudiu Zissulescu's avatar
      [ARC] Use long jumps for CRT calls · 19b250c4
      Claudiu Zissulescu authored
      gcc/
      2017-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
      
      	* config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
      
      From-SVN: r246927
      19b250c4
    • Claudiu Zissulescu's avatar
      [ARC] DWARF emitting cleanup. · 213c9bf1
      Claudiu Zissulescu authored
      The use of CFA_FRAME_BASE_OFFSET and ARG_POINTER_CFA_OFFSET macros
      leads to wrong offset calculation for DW_OP_fbreg constructions.
      Remove them.
      
      gcc/
      2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
      
      	* config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
      	* config/arc/arc.c (arc_decl_pretend_args): Likewise.
      	* config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
      	(ARG_POINTER_CFA_OFFSET): Likewise.
      
      From-SVN: r246926
      213c9bf1
    • Claudiu Zissulescu's avatar
      [ARC] Update mode_dependent_address_p hook. · 1fccdd40
      Claudiu Zissulescu authored
      Update arc_mode_dependent_address_p to avoid emitting subreg(mem (reg
      ..)) when expanding by relaxing the conditions.
      
      gcc/
      2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
      
      	* config/arc/arc.c (arc_mode_dependent_address_p): Relax
      	conditions to take advantage of various optimizations.
      
      From-SVN: r246925
      1fccdd40
    • Jeff Law's avatar
      mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if... · 1f33abd7
      Jeff Law authored
      mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if it is a MEM and TARGET_MIPS16 is active.
      
      	* config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
      	in operands[1] if it is a MEM and TARGET_MIPS16 is active.
      	(zero_extendsidi2_dext): Likewise.
      
      From-SVN: r246924
      1f33abd7
    • GCC Administrator's avatar
      Daily bump. · 67630cef
      GCC Administrator authored
      From-SVN: r246923
      67630cef
  6. Apr 13, 2017
Loading