Skip to content
Snippets Groups Projects
  1. Sep 27, 2016
    • Ian Lance Taylor's avatar
      libgo: separate mksysinfo inputs into separate Makefile targets · 14cda8a1
      Ian Lance Taylor authored
          
          This is a step toward a version of mksysinfo that generates information
          for the runtime package.  This will be used to generate the
          runtime_sysinfo.go file, which is currently directly generated by a
          Makefile target.
          
          Reviewed-on: https://go-review.googlesource.com/29683
      
      From-SVN: r240560
      14cda8a1
    • Ian Lance Taylor's avatar
      compiler: avoid call duplication during order eval. · c7ff1374
      Ian Lance Taylor authored
          
          During the compiler's order_evaluations() pass, duplicate
          call statements were being created and inserted into block
          statement lists in situations where there were calls returning
          multiple arguments. These duplicates were benign in that they
          were ignored during backend code generation, however they
          did cause duplicate calls in AST dumps. Tweak the order
          evaluation code to handle this case better and avoid inserting
          these duplicates.
          
          Fixes golang/go#17237
          
          Reviewed-on: https://go-review.googlesource.com/29857
      
      From-SVN: r240559
      c7ff1374
    • Than McIntosh's avatar
      compiler: add src information to AST dumps (part 1 of 2). · 437018ea
      Than McIntosh authored
          
          When emitting AST dumps, tag the end of selected statements with with
          source file and line number information where available. Example:
          
            tmp.76832448 = 0 // p.go:6
          
          Requires a corresponding change in gcc/go as well as this change to
          gofrontend.
          
          Reviewed-on: https://go-review.googlesource.com/29856
      
      	* go-linemap.cc (Gcc_linemap::to_string): New method.
      
      From-SVN: r240558
      437018ea
    • Jakub Jelinek's avatar
      c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for -std=c++1z. · 6e39060a
      Jakub Jelinek authored
      	* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
      	-std=c++1z.
      
      	* g++.dg/cpp1z/feat-cxx1z.C: Add __cpp_capture_star_this test.
      
      From-SVN: r240557
      6e39060a
    • Jakub Jelinek's avatar
      Implement P0018R3, C++17 lambda capture of *this by value as [=,*this] · 8ca33347
      Jakub Jelinek authored
      	Implement P0018R3, C++17 lambda capture of *this by value as [=,*this]
      	* parser.c (cp_parser_lambda_introducer): Formatting fix.  Pass
      	true instead of false as by_reference_p to add_capture for 'this'.
      	Parse '*this' simple-capture.
      	* lambda.c (build_capture_proxy): Handle '*this' capture by value.
      	(add_capture): Adjust function comment.  For id == this_identifier,
      	treat by_reference_p as capturing '*this' by reference, i.e. 'this'
      	by value, and !by_reference_p as capturing '*this' by value.
      	(add_default_capture): For implicit 'this' capture, always pass
      	by_reference_p true rather than false.
      
      	* g++.dg/cpp1z/lambda-this1.C: New test.
      	* g++.dg/cpp1z/lambda-this2.C: New test.
      
      From-SVN: r240556
      8ca33347
    • Jakub Jelinek's avatar
      re PR c++/77722 (-fsanitize=undefined doesn't give runtime error in function... · 459bcfb0
      Jakub Jelinek authored
      re PR c++/77722 (-fsanitize=undefined doesn't give runtime error in function without return value, unless at least 2 instructions)
      
      	PR c++/77722
      	* cp-gimplify.c (cp_ubsan_maybe_instrument_return): Instrument also
      	functions that have just a STATEMENT_LIST instead of BIND_EXPR, or
      	BIND_EXPR with some statement rather than STATEMENT_LIST as body.
      
      	* g++.dg/ubsan/return-4.C: New test.
      	* g++.dg/ubsan/return-5.C: New test.
      	* g++.dg/ubsan/return-6.C: New test.
      
      From-SVN: r240555
      459bcfb0
    • Jakub Jelinek's avatar
      auto-inc-dec.c (try_merge): Remove break after return. · bbfac6da
      Jakub Jelinek authored
      	* auto-inc-dec.c (try_merge): Remove break after return.
      	* cselib.c (autoinc_split): Likewise.
      	* explow.c (promote_mode): Likewise.
      	* fixed-value.c (fixed_arithmetic): Likewise.
      	* hsa.c (hsa_internal_fn::get_arity): Likewise.
      	* rtlanal.c (modified_between_p, modified_in_p): Likewise.
      	* trans-mem.c (get_attrs_for): Likewise.
      	* tree-if-conv.c (if_convertible_stmt_p): Likewise.
      	* tree-vrp.c (simplify_stmt_using_ranges): Likewise.
      	* config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
      	* config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
      	* config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
      	* config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
      	* config/cris/cris.c (cris_op_str): Likewise.
      	* config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
      	* config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
      c-family/
      	* c-ada-spec.c (print_ada_declaration): Remove break after return.
      objc/
      	* objc-act.c (continue_class): Remove break after return.
      	(objc_maybe_printable_name): Likewise.
      fortran/
      	* dependency.c (gfc_dep_compare_expr): Remove break after return.
      	* frontend-passes.c (optimize_op): Likewise.
      	* interface.c (gfc_current_interface_head): Likewise.
      	* symbol.c (check_conflict): Likewise.
      	* trans-intrinsic.c (build_fix_expr): Likewise.
      ada/
      	* terminals.c (is_gui_app): Remove break after return.
      
      From-SVN: r240554
      bbfac6da
    • Nathan Sidwell's avatar
      internal-fn.h (IFN_UNIQUE_CODES, [...]): New. · 4d58c533
      Nathan Sidwell authored
      	* internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
      	IFN_GOACC_REDUCTION_CODES): New.
      	(enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
      	ifn_goacc_reduction_kind): Use them.
      	* gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
      	of internal functions, when applicable.
      
      From-SVN: r240552
      4d58c533
    • Jiong Wang's avatar
      [Obvious] Delete one redundant word in target-supports.exp comment · 20fba714
      Jiong Wang authored
      gcc/testsuite/
      
      	* lib/target-supports.exp
      	(check_effective_target_arm_v8_2a_fp16_scalar_hw): Delete redundant word
      	in function comment.
      
      From-SVN: r240551
      20fba714
    • Jonathan Wakely's avatar
      Define feature macro and update C++17 library status · 4940de30
      Jonathan Wakely authored
      	* doc/xml/manual/status_cxx2017.xml: Update status.
      	* doc/html/*: Regenerate.
      	* include/std/functional (__cpp_lib_boyer_moore_searcher): Define.
      	* testsuite/20_util/function_objects/searchers.cc: Test feature macro.
      
      From-SVN: r240550
      4940de30
    • Jonathan Wakely's avatar
      Define 3-argument overloads of std::hypot for C++17 (P0030R1) · b658669d
      Jonathan Wakely authored
      	* doc/xml/manual/status_cxx2017.xml: Update status.
      	* include/c_global/cmath (hypot): Add three-dimensional overloads.
      	* testsuite/26_numerics/headers/cmath/hypot.cc: New.
      
      From-SVN: r240547
      b658669d
    • Maciej W. Rozycki's avatar
      MIPS/GCC/doc: Fix `d' constraint description · 0cb14750
      Maciej W. Rozycki authored
      Revert a part of the `d' constraint documentation update made with
      commit 111868 ("Use define_constraint for MIPS"),
      <https://gcc.gnu.org/ml/gcc-patches/2006-03/msg00460.html>,
      <https://gcc.gnu.org/ml/gcc-patches/2006-03/msg00541.html>, which
      inadvertently made the registers covered to be referred to as "address"
      rather than "general-purpose" registers, and then further clarify the
      set of registers allowed with MIPS16 code.
      
      	* config/mips/constraints.md (d): Fix documentation.
      	* doc/md.texi (Machine Constraints): Update accordingly.
      
      From-SVN: r240546
      0cb14750
    • Richard Biener's avatar
      Fix pch with Solaris as · 6c948ce2
      Richard Biener authored
      2016-09-27  Richard Biener  <rguenther@suse.de>
      
      	* dwarf2out.c (dwarf2out_init): Move text_section_line_info,
      	cur_line_info_table initialization ...
      	(dwarf2out_assembly_start): ... here.
      
      From-SVN: r240545
      6c948ce2
    • Matthew Wahab's avatar
      Commit files missed in revision 240541. · 5b2b17db
      Matthew Wahab authored
      From-SVN: r240542
      5b2b17db
    • Matthew Wahab's avatar
      [ARM] Fix invalid instructions generated for data movement. · 3e18d981
      Matthew Wahab authored
      gcc/
      2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
      
      	* config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
      	* config/arm/vfp.md (*arm_movhi_vfp): Likewise.
      	(*thumb2_movhi_vfp): Likewise.
      	(*arm_movhi_fp16): Remove predication operand from VMOV.F16
      	template.  Expand predicable attribute to mark VMOV.F16 as not
      	predicable.  Add "arch" attribute.
      	(*thumb2_movhi_fp16): Likewise.
      	(*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
      	(*thumb2_movsi_vfp): Add "arch" attribute.
      
      From-SVN: r240541
      3e18d981
    • David Edelsohn's avatar
      bfda9a5e
    • Marek Polacek's avatar
      c6x.h: Adjust fall through comment. · be594fbc
      Marek Polacek authored
      	* config/c6x/c6x.h: Adjust fall through comment.
      	* config/sh/sh.c (final_prescan_insn): Likewise.
      	* config/visium/visium.c (visium_expand_int_cstore): Likewise.
      	(visium_expand_fp_cstore): Likewise.
      
      From-SVN: r240539
      be594fbc
    • Marek Polacek's avatar
      ia64.c (ia64_print_operand): Adjust fall through comment. · 4c74215c
      Marek Polacek authored
      	* config/ia64/ia64.c (ia64_print_operand): Adjust fall through
      	comment.
      
      From-SVN: r240538
      4c74215c
    • Kyrylo Tkachov's avatar
      [ARM] Fix -Wimplicit-fallthrough warnings · c5cb628e
      Kyrylo Tkachov authored
      	* config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
      	expected by -Wimplicit-fallthrough.
      	(thumb1_size_rtx_costs): Likewise.
      	(thumb2_reorg): Likewise.
      	(tls_mentioned_p): Add "Fall through" comment.
      	(thumb2_reorg): Likewise.
      	* config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
      	comment form expected by -Wimplicit-fallthrough.
      
      From-SVN: r240537
      c5cb628e
    • Martin Liska's avatar
      re PR gcov-profile/46266 (gcov generates data for non-existing file <built-in>) · bebe0086
      Martin Liska authored
      Fix PR gcov-profile/46266
      
      	PR gcov-profile/46266
      	* lib/gcov.exp: Verify that <built-in>.gcov file is not
      	considered.
      	* input.h (RESERVED_LOCATION_P): New macro.
      	* profile.c (branch_prob): Use RESERVED_LOCATION_P and
      	instread of comparison with UNKNOWN_LOCATION.
      
      From-SVN: r240536
      bebe0086
    • Olivier Hainque's avatar
      MAINTAINERS (VxWorks ports): Add self. · b51fe6a9
      Olivier Hainque authored
      2016-09-27  Olivier Hainque  <hainque@adacore.com>
      
      	* MAINTAINERS (VxWorks ports): Add self.
      	(Write After Approval): Update self email address.
      
      From-SVN: r240535
      b51fe6a9
    • Richard Biener's avatar
      re PR tree-optimization/77745 (Inconsistent application of aliasing rules) · 59896334
      Richard Biener authored
      2016-09-27  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/77745
      	* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
      	When removing redundant stores make sure to check compatibility
      	of the TBAA state for downstream accesses.
      	* tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
      	value-numbering virtual operands for store matches.
      
      	* g++.dg/torture/pr77745.C: New testcase.
      
      From-SVN: r240534
      59896334
    • Oleg Endo's avatar
      re PR target/51244 ([SH] Inefficient conditional branch and code around T bit) · 4e7e89e8
      Oleg Endo authored
      gcc/
      	PR target/51244
      	* config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
      	movrt patterns.  Match them before anything else in the SET case.
      
      From-SVN: r240533
      4e7e89e8
    • Richard Biener's avatar
      re PR target/77478 (Incorrect code generated with -O3, m32, -msse2 and -ffast-math) · f0d355dc
      Richard Biener authored
      2016-09-27  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/77478
      	* gcc.dg/torture/pr77478.c: New testcase.
      
      From-SVN: r240530
      f0d355dc
    • Martin Liska's avatar
      gcov: dump in a static dtor instead of in an atexit handler · 8c9434c2
      Martin Liska authored
      	PR gcov-profile/7970
      	PR gcov-profile/16855
      	PR gcov-profile/44779
      	* g++.dg/gcov/pr16855.C: New test.
      	* coverage.c (build_gcov_exit_decl): New function.
      	(coverage_obj_init): Call the function and generate __gcov_exit
      	destructor.
      	* doc/gcov.texi: Document when __gcov_exit function is called.
      	* libgcov-driver.c (__gcov_init): Do not register a atexit
      	handler.
      	(__gcov_exit): Rename from gcov_exit.
      	* libgcov.h (__gcov_exit): Declare.
      
      From-SVN: r240529
      8c9434c2
    • Senthil Kumar Selvaraj's avatar
      Fix bogus test failure for avr · 511d092e
      Senthil Kumar Selvaraj authored
      The test has a bunch of hardcoded integer literals that would fit only in a 
      32 bits+ int, causing overflow warnings for a 16 bit int target like avr.
      
      gcc/testsuite/ChangeLog
      
      2016-09-27  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
      
      	* gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Require int32plus.
      
      From-SVN: r240528
      511d092e
    • Marek Polacek's avatar
      re PR bootstrap/77751 (cc1plus: error: unrecognized command line option... · 9cdb2ca4
      Marek Polacek authored
      re PR bootstrap/77751 (cc1plus: error: unrecognized command line option "-Wno-implicit-fallthrough" for insn-emit.o)
      
      	PR bootstrap/77751
      	* Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
      	insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
      	-Wno-error instead of -Wno-implicit-fallthrough.
      
      From-SVN: r240526
      9cdb2ca4
    • Martin Liska's avatar
      Remove __gcov_merge_delta (PR bootstrap/77749) · 56b653f1
      Martin Liska authored
      	PR bootstrap/77749
      	* gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
      	PR bootstrap/77749
      	* Makefile.in: Remove _gcov_merge_delta.
      	* libgcov-merge.c (void __gcov_merge_delta): Remove.
      	* libgcov-util.c (__gcov_delta_counter_op): Remove.
      	* libgcov.h: Remove declaration of __gcov_merge_delta.
      
      From-SVN: r240524
      56b653f1
    • Jakub Jelinek's avatar
      combine.c (simplify_comparison): Add canonical FALLTHROUGH comments. · 6a245c05
      Jakub Jelinek authored
      	* combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
      	* config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
      	comments.  Remove break after return.
      	(ix86_fp_compare_code_to_integer, has_dispatch,
      	ix86_simd_clone_usable): Remove break after return.
      
      From-SVN: r240523
      6a245c05
    • Jakub Jelinek's avatar
      re PR fortran/77666 (ICE in gfc_omp_clause_default_ctor, at fortran/trans-openmp.c:471) · f2e0c4e1
      Jakub Jelinek authored
      	PR fortran/77666
      	* trans-openmp.c (gfc_omp_private_outer_ref): Return true even for
      	references to allocatable arrays.
      
      	* gfortran.dg/gomp/pr77666.f90: New test.
      
      From-SVN: r240522
      f2e0c4e1
    • Bernd Edlinger's avatar
      re PR rtl-optimization/77714 (Wrong code generation for gcc.c-torture/execute/pr51447.c) · 0fbac2d1
      Bernd Edlinger authored
      2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
      
              PR rlt-optimization/77714
              * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
              REG_EQUAL note.
      
      From-SVN: r240518
      0fbac2d1
    • Kugan Vivekanandarajah's avatar
      Fix ipa-vrp convert value_range · 3a4228ba
      Kugan Vivekanandarajah authored
      gcc/ChangeLog:
      
      2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR ipa/77677
      	* ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
      	extract_range_from_unary_expr to convert value_range.
      	* tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
      	(extract_range_from_unary_expr): This.
      	* tree-vrp.h (extract_range_from_unary_expr): Declare.
      
      gcc/testsuite/ChangeLog:
      
      2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR ipa/77677
      	* gcc.dg/torture/pr77677-2.c: New test.
      
      From-SVN: r240517
      3a4228ba
    • Segher Boessenkool's avatar
      rs6000: Disparage CTR and LR in movcc_internal1 · 963da599
      Segher Boessenkool authored
      LRA likes to use CTR and LR to store CCmode values.  Not such a good
      idea.  All other similar patterns disparage using CTR and LR; do so
      here, too.
      
      
      	* config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
      
      From-SVN: r240515
      963da599
    • GCC Administrator's avatar
      Daily bump. · 0c7d89ee
      GCC Administrator authored
      From-SVN: r240514
      0c7d89ee
  2. Sep 26, 2016
    • Ville Voutilainen's avatar
      re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for... · 71ade764
      Ville Voutilainen authored
      re PR libstdc++/77727 (Unwrapping std::optional constructor is not working for non-transferable object)
      
          PR libstdc++/77727
          * include/std/optional (optional(const optional<_Up>&)):
          Default-initialize the base and use emplace.
          (optional(optional<_Up>&&)): Likewise.
          * testsuite/20_util/optional/cons/77727.cc: New.
      
      From-SVN: r240511
      71ade764
    • François Dumont's avatar
      2016-09-26 François Dumont <fdumont@gcc.gnu.org> · f2fe9e0a
      François Dumont authored
      	* include/debug/safe_base.h
      	(_Safe_iterator_base::_M_detach_single): Make public.
      
      From-SVN: r240510
      f2fe9e0a
    • Rainer Orth's avatar
      Fix fallthrough comments for Ada, Solaris/x86, SPARC · fbedd170
      Rainer Orth authored
      	gcc:
      	* config/i386/i386.c (ix86_print_operand)
      	[HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
      	* config/sparc/sparc.c (check_pic): Add fallthrough comment.
      	(epilogue_renumber): Likewise.
      
      	gcc/ada:
      	* gcc-interface/decl.c: Fix fall through comment formatting.
      	* gcc-interface/misc.c: Likewise.
      	* gcc-interface/trans.c: Likewise.
      	* gcc-interface/utils.c: Likewise.
      	* gcc-interface/utils2.c: Likewise.
      
      From-SVN: r240509
      fbedd170
    • Steven G. Kargl's avatar
      re PR fortran/77420 (gfortran and equivalence produces internal compiler error) · a184e37f
      Steven G. Kargl authored
      2016-09-26  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/77420
      	* trans-common.c:  Handle array elements in equivalence when
      	the lower and upper bounds of array spec are NULL.
       
      2016-09-26  Steven G. Kargl  <kargl@gcc.gnu.org>
      
      	PR fortran/77420
      	* gfortran.dg/pr77420_1.f90: New test.
      	* gfortran.dg/pr77420_2.f90: Ditto.
      	* gfortran.dg/pr77420_3.f90: New test. Requires ...
      	* gfortran.dg/pr77420_4.f90: this file.
      
      From-SVN: r240506
      a184e37f
    • Kugan Vivekanandarajah's avatar
      re PR tree-optimization/77719 (ICE in pp_string, at pretty-print.c:955) · 8be59d19
      Kugan Vivekanandarajah authored
      Fix PR77719
      gcc/testsuite/ChangeLog:
      
      2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR middle-end/77719
      	* gfortran.dg/pr77719.f90: New test.
      
      gcc/ChangeLog:
      
      2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
      
      	PR middle-end/77719
      	* tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs to get lhs
      	instead of gimple_assign_lhs as stmt can be builtins too.
      
      From-SVN: r240505
      8be59d19
    • Thomas Preud'homme's avatar
      tree.h (memmodel_from_int, [...]): Move to ... · e73cf9a2
      Thomas Preud'homme authored
      2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
          is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
          is_mm_seq_cst, is_mm_sync): Move to ...
          * memmodel.h: This.  New file.
          * builtins.c: Include memmodel.h.
          * optabs.c: Likewise.
          * tsan.c: Likewise.
          * config/aarch64/aarch64.c: Likewise.
          * config/alpha/alpha.c: Likewise.
          * config/arm/arm.c: Likewise.
          * config/i386/i386.c: Likewise.
          * config/ia64/ia64.c: Likewise.
          * config/mips/mips.c: Likewise.
          * config/rs6000/rs6000.c: Likewise.
          * config/sparc/sparc.c: Likewise.
          * genconditions.c: Include memmodel.h in generated file.
          * genemit.c: Likewise.
          * genoutput.c: Likewise.
          * genpeep.c: Likewise.
          * genpreds.c: Likewise.
          * genrecog.c: Likewise.
      
          gcc/c-family/
          * c-common.c: Include memmodel.h.
      
      From-SVN: r240504
      e73cf9a2
Loading