1. 15 Dec, 2014 26 commits
  2. 14 Dec, 2014 5 commits
  3. 13 Dec, 2014 9 commits
    • re PR libstdc++/64239 (regex_iterator::operator= should copy match_results::position) · bc273845
      	PR libstdc++/64239
      	* include/bits/regex.h (match_results<>::match_results,
      	match_results<>::operator=, match_results<>::position,
      	match_results<>::swap): Remove match_results::_M_in_iterator.
      	Fix ctor/assign/swap.
      	* include/bits/regex.tcc: (__regex_algo_impl<>,
      	regex_iterator<>::operator++): Set match_results::_M_begin as
      	"start position".
      	* testsuite/28_regex/iterators/regex_iterator/char/
      	string_position_01.cc: Test cases.
      
      From-SVN: r218710
      Tim Shen committed
    • Post-Urbana updates to Library Fundamentals v1. · 65545817
      	* include/experimental/any (any): Remove allocator support and update
      	feature-testing macro.
      	* include/experimental/functional: Update feature-testing macro.
      	* include/experimental/optional (optional::_M_get()): Add constexpr.
      	(optional::operator*(), optional::value()): Overload and add
      	ref-qualifiers. Update feature-testing macro.
      	* include/experimental/string_view (basic_string_view::clear): Remove
      	and update feature-testing macro.
      	* testsuite/experimental/any/cons/3.cc: Remove.
      	* testsuite/experimental/any/cons/4.cc: Remove.
      	* testsuite/experimental/any/misc/any_cast.cc: Remove allocator tests.
      	* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
      	* testsuite/experimental/string_view/capacity/1.cc: Don't test clear().
      
      From-SVN: r218709
      Jonathan Wakely committed
    • re PR target/53513 ([SH] Add support for fpchg insn and improve fenv support) · d64474d2
      gcc/testsuite/
      	PR target/53513
      	* gcc.target/sh/attr-isr-nosave_low_regs.c: Fix matching of expected
      	register push/pop sequences.
      	* gcc.target/sh/attr-isr.c: Likewise.
      	* gcc.target/sh/attr-isr-trapa.c: Likewise.
      	* gcc.target/sh/pragma-isr-nosave_low_regs.c: Likewise.
      	* gcc.target/sh/pragma-isr-trapa.c: Likewise.
      	* gcc.target/sh/pragma-isr-trapa2.c: Likewise.
      
      From-SVN: r218707
      Oleg Endo committed
    • sp-switch.c: Match zero or more underscores in alt_stack symbol. · 42948a43
      gcc/testsuite/
      	* gcc.target/sh/sp-switch.c: Match zero or more underscores in
      	alt_stack symbol.
      
      From-SVN: r218706
      Oleg Endo committed
    • re PR bootstrap/64023 (r216964 breaks bootstrap on darwin when using gcc as the… · b6a65eb6
      re PR bootstrap/64023 (r216964 breaks bootstrap on darwin when using gcc as the bootstrap compiler.)
      
      	PR bootstrap/64023
      	* Makefile.tpl (EXTRA_TARGET_FLAGS): Set STAGE1_LDFLAGS
      	to POSTSTAGE1_LDFLAGS and STAGE1_LIBS to POSTSTAGE1_LIBS.
      	Add -B to libstdc++-v3/src/.libs and libstdc++-v3/libsupc++/.libs
      	to CXX.
      	* Makefile.in: Regenerated.
      
      From-SVN: r218705
      Jakub Jelinek committed
    • re PR go/61258 (gccgo: assertion failure go-map-delete.c:37 [GoSmith]) · 9ac18f8c
      	PR go/61258
      runtime: Don't crash when deleting zero-sized key.
      
      From-SVN: r218702
      Ian Lance Taylor committed
    • re PR go/61254 (gccgo: spurious "error: slice end must be integer" [GoSmith]) · 967b254b
      	PR go/61254
      compiler: Don't move nil subexpressions into temporaries.
      
      From-SVN: r218701
      Ian Lance Taylor committed
    • testing: Add testing.MainStart function. · e846322c
      This patches in the Go 1.4 function, for convenience for
      people using the Go 1.4 go tool with mainline gccgo.
      
      From-SVN: r218700
      Ian Lance Taylor committed
    • runtime: Clear stack pointers for extra G's. · c31fc2f4
      Fix an unusual C to Go callback case.  Newly created C threads
      call into Go code, forcing the Go code to allocate new M and G
      structures.  While executing Go code, the stack is split.  The
      Go code then returns.  Returning from a Go callback is treated
      as entering a system call, so the G gcstack field is set to
      point to the Go stack.  In this case, though, we were called
      from a newly created C thread, so we drop the extra M and G
      structures.  The C thread then exits.
      
      Then a new C thread calls into Go code, reusing the previously
      created M and G.  The Go code requires a larger stack frame,
      causing the old stack segment to be unmapped and a new stack
      segment allocated.  At this point the gcstack field is
      pointing to the old stack segment.
      
      Then a garbage collection occurs.  The garbage collector sees
      that the gcstack field is not nil, so it scans it as the first
      stack segment.  Unfortunately it points to memory that was
      unmapped.  So the program crashes.
      
      The fix is simple: when handling extra G structures created
      for callbacks from new C threads, clear the gcstack field.
      
      From-SVN: r218699
      Ian Lance Taylor committed