1. 05 Apr, 2016 20 commits
  2. 04 Apr, 2016 13 commits
  3. 03 Apr, 2016 2 commits
  4. 02 Apr, 2016 5 commits
    • PR c++/67376 - [5/6 regression] Comparison with pointer to past-the-end · abdc16c8
      PR c++/67376 - [5/6 regression] Comparison with pointer to past-the-end
              of array fails inside constant expression
      PR c++/70170 - [6 regression] bogus not a constant expression error comparing
              pointer to array to null
      PR c++/70172 - incorrect reinterpret_cast from integer to pointer error
              on invalid constexpr initialization
      PR c++/70228 - insufficient detail in diagnostics for a constexpr out of bounds
              array subscript
      
      gcc/testsuite/ChangeLog:
      2016-04-02  Martin Sebor  <msebor@redhat.com>
      
              PR c++/67376
              PR c++/70170
              PR c++/70172
              PR c++/70228
              * g++.dg/cpp0x/constexpr-array-ptr10.C: New test.
              * g++.dg/cpp0x/constexpr-array-ptr9.C: New test.
              * g++.dg/cpp0x/constexpr-nullptr-1.C: New test.
              * g++.dg/cpp0x/constexpr-array5.C: Adjust text of expected diagnostic.
              * g++.dg/cpp0x/constexpr-string.C: Same.
              * g++.dg/cpp0x/constexpr-wstring2.C: Same.
              * g++.dg/cpp0x/pr65398.C: Same.
              * g++.dg/ext/constexpr-vla1.C: Same.
              * g++.dg/ext/constexpr-vla2.C: Same.
              * g++.dg/ext/constexpr-vla3.C: Same.
              * g++.dg/ubsan/pr63956.C: Same.
      
      gcc/cp/ChangeLog:
      2016-04-02  Martin Sebor  <msebor@redhat.com>
      
              PR c++/67376
              PR c++/70170
              PR c++/70172
              PR c++/70228
              * constexpr.c (diag_array_subscript): New function.
              (cxx_eval_array_reference): Detect out of bounds array indices.
      
      gcc/ChangeLog:
      2016-04-02  Martin Sebor  <msebor@redhat.com>
      
              PR c++/67376
              * fold-const.c (maybe_nonzero_address): New function.
              (fold_comparison): Call it.  Fold equality and relational
              expressions involving null pointers.
              (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
      
      From-SVN: r234698
      Martin Sebor committed
    • decl.c (components_to_record): Restrict the previous change to fields with variable size. · 7d9979e6
      	* gcc-interface/decl.c (components_to_record): Restrict the previous
      	change to fields with variable size.
      
      From-SVN: r234696
      Eric Botcazou committed
    • re PR c++/70449 (ICE with -Wall on valid code on x86_64-linux-gnu in pp_string,… · ddd6d421
      re PR c++/70449 (ICE with -Wall on valid code on x86_64-linux-gnu in pp_string, at pretty-print.c:928)
      
      	PR c++/70449
      
      	PR c++/70344
      	* pt.c (instantiate_decl): A function isn't fully defined if
      	DECL_INITIAL is error_mark_node.
      	* constexpr.c (cxx_eval_call_expression): Likewise.
      
      From-SVN: r234695
      Jason Merrill committed
    • runtime: Use atomic load for in entersyscall. · bb727032
          
          Reportedly fixes PPC64 deadlock.
          
          From a comment by Gabriel Russell.
          
          Fixes golang/go#15051.
          
          Reviewed-on: https://go-review.googlesource.com/21450
      
      From-SVN: r234694
      Ian Lance Taylor committed
    • Add missing ChangeLog entry for PR target/70439 · 2e816b99
      From-SVN: r234693
      H.J. Lu committed