1. 06 Oct, 2007 2 commits
    • moveable.cc: Remove dg-require-rvalref. · f63bc637
      2007-10-05  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/23_containers/map/moveable.cc: Remove dg-require-rvalref.
      	* testsuite/23_containers/multimap/moveable.cc: Likewise.
      	* testsuite/23_containers/set/moveable.cc: Likewise. 
      	* testsuite/23_containers/multiset/moveable.cc: Likewise.
      	* testsuite/23_containers/deque/moveable.cc: Likewise. 
      	* testsuite/23_containers/list/moveable.cc: Likewise. 
      	* testsuite/23_containers/vector/moveable.cc: Likewise. 
      	* include/std/utility: Use _GLIBCXX_BEGIN_NAMESPACE.
      
      2007-10-05  Paolo Carlini  <pcarlini@suse.de>
      	    Chris Jefferson  <chris@bubblescope.net>
      
      	* include/bits/stl_iterator.h (class move_iterator,
      	make_move_iterator): Add.
      
      Co-Authored-By: Chris Jefferson <chris@bubblescope.net>
      
      From-SVN: r129048
      Paolo Carlini committed
    • Daily bump. · 02c9a7a7
      From-SVN: r129045
      GCC Administrator committed
  2. 05 Oct, 2007 11 commits
    • * gthr-single.h: Revert last change. · 3913862e
      From-SVN: r129040
      Hans-Peter Nilsson committed
    • re PR middle-end/33667 (RTL sharing with divmod) · 1a309dfb
      gcc/
       PR middle-end/33667
       * lower-subreg.c (decompose_multiword_subregs): Use
       validate_unshare_change().
      
      testsuite/
       * gcc.dg/pr33667.c: New testcase.
      
      From-SVN: r129038
      Michael Matz committed
    • ra-conflict.c: Include "sparseset.h". · b4da855a
      	* ra-conflict.c: Include "sparseset.h".
      	(conflicts): Change to HOST_WIDEST_FAST_INT.
      	(allocnos_live): Redefine variable as a sparseset.
      	(SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, GET_ALLOCNO_LIVE): Delete macros.
      	(allocno_row_words): Removed global variable.
      	(partial_bitnum, max_bitnum, adjacency_pool, adjacency): New variables.
      	(CONFLICT_BITNUM, CONFLICT_BITNUM_FAST): New defines.
      	(conflict_p, set_conflict_p, set_conflicts_p): New functions.
      	(record_one_conflict_between_regnos): Cache allocno values and reuse.
      	Use set_conflict_p.
      	(record_one_conflict): Update uses of allocnos_live to use
      	the sparseset routines.  Use set_conflicts_p.
      	(mark_reg_store): Likewise.
      	(set_reg_in_live): Likewise.
      	(global_conflicts): Update uses of allocnos_live.
      	Use the new adjacency list to visit an allocno's neighbors
      	rather than iterating over all possible allocnos.
      	Call set_conflicts_p to setup conflicts rather than adding
      	them manually.
      	* global.c: Comments updated.  
      	(CONFLICTP): Delete define.
      	(regno_compare): New function.  Add prototype.
      	(global_alloc): Sort the allocno to regno mapping according to
      	which basic blocks the regnos are referenced in.  Modify the
      	conflict bit matrix to a compressed triangular bitmatrix.
      	Only allocate the conflict bit matrix and adjacency lists if
      	we are actually going to allocate something.
      	(expand_preferences): Use conflict_p.  Update uses of allocnos_live.
      	(prune_preferences): Use the FOR_EACH_CONFLICT macro to visit an
      	allocno's neighbors rather than iterating over all possible allocnos.
      	(mirror_conflicts): Removed function.
      	(dump_conflicts): Iterate over regnos rather than allocnos so
      	that all dump output will be sorted by regno number.
      	Use the FOR_EACH_CONFLICT macro.
      	* ra.h: Comments updated.
      	(conflicts): Update prototype to HOST_WIDEST_FAST_INT.
      	(partial_bitnum, max_bitnum, adjacency, adjacency_pool): Add prototypes.
      	(ADJACENCY_VEC_LENGTH, FOR_EACH_CONFLICT): New defines.
      	(adjacency_list_d, adjacency_iterator_d): New types.
      	(add_neighbor, adjacency_iter_init, adjacency_iter_done,
      	adjacency_iter_next, regno_basic_block): New static inline functions.
      	(EXECUTE_IF_SET_IN_ALLOCNO_SET): Removed define.
      	(conflict_p): Add function prototype.
      	* sparseset.h, sparseset.c: New files.
      	* Makefile.in (OBJS-common): Add sparseset.o.
      	(sparseset.o): New rule.
      
      From-SVN: r129037
      Peter Bergner committed
    • re PR middle-end/33666 (Type verification failure with pointer to long long conversion) · 6aa12f4f
      2007-10-05  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/33666
      	* fold-const.c (fold_unary): Do not fold (long long)(int)ptr
      	to (long long)ptr.
      
      	* gcc.dg/pr33666.c: New testcase.
      
      From-SVN: r129036
      Richard Guenther committed
    • re PR inline-asm/33600 (Breakage caused by the fix to PR33552) · 1596d61e
      gcc/
       PR inline-asm/33600
       * function.c (match_asm_constraints_1): Check for input
       being used in the outputs.
      
      testsuite/
       * gcc.target/i386/pr33600.c: New testcase.
      
      From-SVN: r129035
      Michael Matz committed
    • gfortran.h (gfc_get_data_variable, [...]): Move to decl.c. · ca39e6f2
      	* gfortran.h (gfc_get_data_variable, gfc_get_data_value,
      	gfc_get_data): Move to decl.c.
      	(global_used): Rename into gfc_global_used.
      	(gfc_formalize_init_value, gfc_get_section_index,
      	gfc_assign_data_value, gfc_assign_data_value_range,
      	gfc_advance_section): Move to data.h.
      	(gfc_set_in_match_data): Remove.
      	* decl.c (gfc_get_data_variable, gfc_get_data_value,
      	gfc_get_data): Move here.
      	(gfc_set_in_match_data): Rename into set_in_match_data.
      	(gfc_match_data): Likewise.
      	(add_global_entry): Rename global_used into gfc_global_used.
      	* data.c: Include data.h.
      	* trans.h (gfc_todo_error): Remove.
      	* trans-array.c (gfc_trans_array_constructor,
      	gfc_conv_ss_startstride, gfc_conv_loop_setup): Change
      	gfc_todo_error into assertions.
      	* resolve.c (resolve_global_procedure): Rename global_used into
      	gfc_global_used.
      	* parse.c (gfc_global_used, parse_module, add_global_procedure,
      	add_global_program): Likewise.
      	* trans-intrinsic.c (gfc_walk_intrinsic_function): Rename
      	global_used into gfc_global_used.
      	* Make-lang.in: Add dependencies on fortran/data.h.
      	* data.h: New file.
      
      From-SVN: r129034
      Francois-Xavier Coudert committed
    • tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF. · b691d4b0
      2007-10-05  Richard Guenther  <rguenther@suse.de>
      
      	* tree-cfg.c (verify_gimple_expr): Accept OBJ_TYPE_REF.
      
      	* g++.dg/tree-ssa/obj-type-ref.C: New testcase.
      
      From-SVN: r129033
      Richard Guenther committed
    • re PR target/33635 (Bootstrap broken on mips-sgi-irix6.5) · 96f38a34
      gcc/
      	PR target/33635
      	* config/mips/mips.c (mips_register_move_cost): Rewrite to use
      	subset checks.  Make the cost of FPR -> FPR moves depend on
      	mips_mode_ok_for_mov_fmt_p.
      
      gcc/testsuite/
      	PR target/33635
      	* gcc.target/mips/pr33635-1.c: New test.
      
      From-SVN: r129031
      Richard Sandiford committed
    • gthr-posix.h (__gthread_cond_broadcast, [...]): Add to extend interface for… · afd82ef5
      gthr-posix.h (__gthread_cond_broadcast, [...]): Add to extend interface for POSIX conditional variables.
      
      2007-09-13  Doug Kwan  <dougkwan@google.com>
      
              * gcc/gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait,
              __gthread_cond_wait_recursive): Add to extend interface for POSIX
              conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
              support of conditional variables.
              * gcc/gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait,
              __gthread_cond_wait_recursive): Add to extend interface for POSIX
              conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify
              support of conditional variables.
              * gcc/gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait,
              __gthread_cond_wait_recursive): Add to extend interface for POSIX
              conditional variables.
              * gcc/gthr.h: Update comments to document new interface.
              * libstdc++-v3/include/ext/concurrent.h (class __mutex,
              class __recursive_mutex): Add new method gthread_mutex to access
              inner gthread mutex.
              [__GTHREAD_HAS_COND] (class __concurrence_broadcast_error,
              class __concurrence_wait_error, class __cond): Add.
              * guard.cc (recursive_push, recursive_pop): Delete.
              (init_in_progress_flag, set_init_in_progress_flag): Add to
              replace recursive_push and recursive_pop.
              (throw_recursive_init_exception): Add.
              (acquire, __cxa_guard_acquire, __cxa_guard_abort and
              __cxa_guard_release): [__GTHREAD_HAS_COND] Use a conditional
              for synchronization of static variable initialization.
              The global mutex is only held briefly when guards are
              accessed. [!__GTHREAD_HAS_COND] Fall back to the old code,
              which deadlocks.
              * testsuite/thread/guard.cc: Add new test. It deadlocks with the
              old locking code in libstdc++-v3/libsup++/guard.cc.
      
      From-SVN: r129030
      Doug Kwan committed
    • Daily bump. · 90e965bb
      From-SVN: r129028
      GCC Administrator committed
  3. 04 Oct, 2007 25 commits
  4. 03 Oct, 2007 2 commits