1. 13 Nov, 2016 10 commits
  2. 12 Nov, 2016 9 commits
  3. 11 Nov, 2016 14 commits
  4. 10 Nov, 2016 7 commits
    • re PR c/37998 (Unclear documentation of -fno-common) · c47c7215
      2016-11-10  Sandra Loosemore  <sandra@codesourcery.com>
      
      	PR c/37998
      
      	gcc/
      	* doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
      	terminology.  Expand to remove ambiguity.
      
      From-SVN: r242062
      Sandra Loosemore committed
    • runtime: copy signal code from Go 1.7 runtime · 980f9a0a
          
          Add a little shell script to auto-generate runtime.sigtable from the
          known signal names.
          
          Force the main package to always import the runtime package.  Otherwise
          some runtime package global variables may never be initialized.
          
          Set the syscallsp and syscallpc fields of g when entering a syscall, so
          that the runtime package knows when a g is executing a syscall.
          
          Fix runtime.funcPC to avoid dead store elimination of the interface
          value when the function is inlined.
          
          Reviewed-on: https://go-review.googlesource.com/33025
      
      From-SVN: r242060
      Ian Lance Taylor committed
    • combine: Do not call simplify from inside change_zero_ext (PR78232) · 071af74d
      When combine splits a three-insn combination into two instructions it
      can reuse i2dest for the temporary result of the first new instruction.
      However all information it has in reg_stat about that register will be
      stale.  This results in the simplify_gen_binary calls in change_zero_ext
      using out-of-date information, which makes it think one of the ANDs
      generated there always results in 0, and it doesn't get better from there.
      
      This can also happen if a splitter in the MD uses nonzero_bits (for
      example).  I tried to make the splitting code in combine save and restore
      the i2dest reg_stat info, but that causes one of the acats tests to fail.
      
      This whole reg_stat thing needs an overhaul, and/or we shouldn't reuse
      i2dest for unrelated purposes when splitting.
      
      This patch changes change_zero_ext to do the expected simplifications
      itself and not call simplify_gen_*.
      
      
      	PR rtl-optimization/78232
      	* combine.c (try_combine): Add a big comment about why reusing i2dest
      	is undesirable.
      	(change_zero_ext): Do not call simplify_gen_binary, do the
      	simplifications manually.
      
      From-SVN: r242059
      Segher Boessenkool committed
    • Fix ICE and improve errors for invalid anonymous structure declarations. · 94903212
      	PR fortran/78277
      	* gcc/fortran/decl.c (gfc_match_data_decl): Gracefully handle bad
      	anonymous structure declarations.
      
      	PR fortran/78277
      	* gcc/testsuite/gfortran.dg/dec_structure_17.f90: New test.
      
      From-SVN: r242058
      Fritz O. Reese committed
    • Fix some whitespace. · 05b8fcb4
      	gcc/fortran/
      	* decl.c (get_struct_decl, gfc_match_map, gfc_match_union): Fix
      	whitespace.
      	* interface.c (gfc_compare_union_types): Likewise.
      
      From-SVN: r242057
      Fritz O. Reese committed
    • PR c++/77337 - auto return and lambda · f065303f
      	* pt.c (tsubst_friend_function): Don't set DECL_INITIAL.
      	(instantiate_decl): It's OK to defer a constexpr function.
      	* cp-tree.h (DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION): Check
      	DECL_LANG_SPECIFIC.
      	* decl2.c (decl_defined_p): Use it.  No longer static.
      	* decl.c (redeclaration_error_message): Use decl_defined_p.
      	* constexpr.c (cxx_eval_call_expression): Set input_location around
      	call to instantiate_decl.
      
      From-SVN: r242056
      Jason Merrill committed
    • debug.cc (format_word): Delete. · 28d1bf44
      2016-11-10  François Dumont  <fdumont@gcc.gnu.org>
      
      	* src/c++11/debug.cc (format_word): Delete.
      	(print_literal): New. Replace call to print_word for literals.
      
      From-SVN: r242055
      François Dumont committed