1. 04 Dec, 2012 15 commits
  2. 03 Dec, 2012 25 commits
    • gcse.c (struct reg_use): Remove unused struct. · dca3da7a
      	* gcse.c (struct reg_use): Remove unused struct.
      	(gcse_emit_move_after): Do not create REG_EQUAL notes that reference
      	the SET_DEST of the instruction the note would be attached to.
      	* cse.c (cse_main): Add the DF_NOTE problem.
      
      From-SVN: r194108
      Steven Bosscher committed
    • standard_policies.hpp: Remove. · cef1bc58
      2012-12-03  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* include/ext/pb_ds/detail/cc_hash_table_map_/standard_policies.hpp:
      	Remove.
      	* include/ext/pb_ds/detail/gp_hash_table_map_/standard_policies.hpp:
      	Remove.
       	* include/Makefile.am (pb_headers): Remove include files.
      	* include/Makefile.in: Regenerated.
      
      From-SVN: r194107
      Benjamin Kosnik committed
    • re PR fortran/55548 (SYSTEM_CLOCK with integer(8) provides nanosecond… · a07c4054
      re PR fortran/55548 (SYSTEM_CLOCK with integer(8) provides nanosecond resolution, but only microsecond precision (without -lrt))
      
      2012-12-03  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/55548
      	* intrinsics/system_clock.c (gf_gettime_mono): Add argument 'tck',
      	which returns the clock resolution.
      	(system_clock_4): Get resolution from gf_gettime_mono, but limit to
      	1000/s.
      	(system_clock_8): Get resolution from gf_gettime_mono.
      
      2012-12-03  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/55548
      	* intrinsic.texi (SYSTEM_CLOCK): Update documentation of SYSTEM_CLOCK.
      
      From-SVN: r194105
      Janus Weil committed
    • re PR fortran/37336 ([F03] Finish derived-type finalization) · 86035eec
      2012-12-03  Tobias Burnus  <burnus@net-b.de>
                  Janus Weil  <janus@gcc.gnu.org>
      
              PR fortran/37336
              * class.c (gfc_is_finalizable): New function.
              * gfortran.h (gfc_is_finalizable): Its prototype.
              * module.c (mio_component): Read initializer for vtype's _final.
              * resolve.c (resolve_fl_derived0): Call gfc_is_finalizable.
              * trans-expr.c (gfc_vtable_final_get): New function.
              (conv_parent_component_references): Fix comment.
              (gfc_conv_variable): Fix for scalar coarray components.
              * trans-intrinsic.c (conv_intrinsic_move_alloc): For BT_CLASS,
              pass the BT_CLASS type and not the declared type to
              gfc_deallocate_scalar_with_status.
              * trans.h (gfc_vtable_final_get): New prototype.
      
      
      Co-Authored-By: Janus Weil <janus@gcc.gnu.org>
      
      From-SVN: r194104
      Tobias Burnus committed
    • sanitizer.def: Add Address Sanitizer builtins. · 0e668eaf
      	* sanitizer.def: Add Address Sanitizer builtins.
      	Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and
      	BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*.
      	* Makefile.in (asan.o): Depend on langhooks.h.
      	(tsan.o): Depend on asan.h.
      	* asan.h (initialize_sanitizer_builtins): New prototype.
      	* asan.c: Include langhooks.h.
      	(report_error_func): Use builtin_decl_implicit of corresponding
      	BUILT_IN_ASAN_REPORT_{LOAD,STORE}*.
      	(asan_init_func): Removed.
      	(initialize_sanitizer_builtins): New function.
      	(asan_finish_file): Call it.  Use builtin_decl_implicit
      	on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}.
      	(asan_instrument): Call initialize_sanitizer_builtins.
      	* builtins.def (DEF_SANITIZER_BUILTIN): Change condition to
      	(flag_asan || flag_tsan).
      	* tsan.c: Include asan.h and tsan.h.
      	(get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_*
      	to BUILT_IN_TSAN_{READ,WRITE}*.
      	(tsan_pass): Call initialize_sanitizer_builtins.
      	(tsan_gate, tsan_gate_O0): Don't check if
      	builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true.
      	(tsan_finish_file): Call initialize_sanitizer_builtins.
      	* builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type.
      
      From-SVN: r194103
      Jakub Jelinek committed
    • re PR bootstrap/55380 (All search_line_fast implementations read beyond buffer) · f41e5bd1
      	PR bootstrap/55380
      	PR other/54691
      	* files.c (read_file_guts): Allocate extra 16 bytes instead of
      	1 byte at the end of buf.  Pass size + 16 instead of size
      	to _cpp_convert_input.
      	* charset.c (_cpp_convert_input): Reallocate if there aren't
      	at least 16 bytes beyond to.len in the buffer.  Clear 16 bytes
      	at to.text + to.len.
      
      From-SVN: r194102
      Jakub Jelinek committed
    • strtod_l.c (___STRTOF_INTERNAL): Fix exponent reading. · 36402bb1
      2012-12-03  Tobias Burnus  <burnus@net-b.de>
      
              * strtod/strtod_l.c (___STRTOF_INTERNAL): Fix exponent
              reading.
      
      2012-12-03  Tobias Burnus  <burnus@net-b.de>
      
              * gfortran.dg/quad_3.f90: New.
      
      From-SVN: r194100
      Tobias Burnus committed
    • re PR middle-end/55401 (uninstrumented path in TM clones are still instrumented) · 0ed3d24e
      	PR middle-end/55401
      	* trans-mem.c (get_tm_region_blocks): Exclude uninstrumented
      	blocks from vector if requested.
      	(collect_bb2reg): Pass new argument to
      	get_tm_region_blocks.
      	(get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P
      	argument, and pass it to expand_regions.
      	(execute_tm_mark): Pass new argument to
      	get_bb_regions_instrumented.
      	(execute_tm_edges): Same.
      
      From-SVN: r194099
      Aldy Hernandez committed
    • re PR c++/54170 (Call to lambda elided) · e3692e02
      /cp
      2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/54170
      	* cvt.c (cp_convert_to_pointer): Don't discard side-effects from
      	expressions of nullptr_t.
      	* typeck.c (build_ptrmemfunc): Likewise.
      
      /testsuite
      2012-12-03  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	PR c++/54170
      	* g++.dg/cpp0x/lambda/lambda-nullptr.C: New.
      
      From-SVN: r194098
      Paolo Carlini committed
    • re PR testsuite/55452 (gfortran.dg/reassoc_4.f -O scan-tree-dump-times reassoc1) · cc1f4a30
      	PR testsuite/55452
      	* gfortran.dg/reassoc_4.f: Use --param max-completely-peeled-insns=400
      	on all targets, not just s390*.
      
      From-SVN: r194095
      Jakub Jelinek committed
    • asan.c (instrument_mem_region_access): Don't instrument if base doesn't have… · c63d3b96
      asan.c (instrument_mem_region_access): Don't instrument if base doesn't have pointer type or len integral type.
      
      	* asan.c (instrument_mem_region_access): Don't instrument
      	if base doesn't have pointer type or len integral type.
      	Add cast if len doesn't have size_t compatible type.
      	(instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD,
      	BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR,
      	BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE
      	and BUILT_IN_ATOMIC_STORE.
      
      From-SVN: r194094
      Jakub Jelinek committed
    • Fix stale use of old 'options' argument. · f15b9727
      An earlier patch had made the command line options a global variable
      _OPTIONS, but it had not renamed all the uses of the old options argument.
      
      	* testsuite-management/validate_failures.py: Fix stale
      	use of 'options'.
      
      From-SVN: r194092
      Diego Novillo committed
    • Adding missed in r194086 file. · ad25c558
      From-SVN: r194088
      Kirill Yukhin committed
    • asan.c (instrument_assignment): Instrument lhs only for gimple_store_p and rhs1… · 52f2e7e1
      asan.c (instrument_assignment): Instrument lhs only for gimple_store_p and rhs1 only for gimple_assign_load_p.
      
      	* asan.c (instrument_assignment): Instrument lhs only
      	for gimple_store_p and rhs1 only for gimple_assign_load_p.
      
      From-SVN: r194087
      Jakub Jelinek committed
    • Makefile.in: Add target mddump, build/genmddump.o. · 4a0639a2
      * Makefile.in: Add target mddump, build/genmddump.o.  Extend
      genprogrtl with mddump.
      * genmddump.c: New.
      
      From-SVN: r194086
      Michael Zolotukhin committed
    • rtl.h (print_insn_with_notes): Prototype. · 41222ddf
      	* rtl.h (print_insn_with_notes): Prototype.
      	* sched-vis.c (print_insn_with_notes): Export it.
      
      	* gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype.
      	* gimple-pretty-print.c (print_gimple_expr): Flush the buffer.
      	(pp_gimple_stmt_1): Don't do it here.
      	(gimple_dump_bb_for_graph): New function.
      	* tree-pretty-print.c (print_generic_expr): Flush the buffer here.
      	(dump_generic_node): Don't flush the buffer here.
      
      	* graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg.
      	* graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h.
      	(draw_cfg_node): Handle GIMPLE basic blocks also.
      	(print_rtl_graph_with_bb): Rename to print_graph_cfg.
      	* passes.c (finish_optimization_passes): Don't finish graph dumps here.
      	(execute_function_dump): Use print_graph_cfg. Enable dumping the CFG
      	for GIMPLE also.
      	(pass_init_dump_file): Wrap in TV_DUMP.  Set up CFG graph dumps.
      	(pass_fini_dump_file): Wrap in TV_DUMP.  Finish graph dumps.
      	(execute_one_pass): Don't set up graph dumps here.
      
      From-SVN: r194085
      Steven Bosscher committed
    • Fix PR c/55570. · a859517f
      From-SVN: r194083
      Marek Polacek committed
    • tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag in the… · ea3c6c07
      tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag in the non-always executed case.
      
      	* tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
      	in the non-always executed case.
      
      From-SVN: r194082
      Eric Botcazou committed
    • asan-dg.exp (asan_get_gtest_test_list, [...]): New procedures. · 5c31da80
      	* lib/asan-dg.exp (asan_get_gtest_test_list,
      	asan_get_gtest_expect_death_list, asan-gtest): New procedures.
      	(proc ${tool}_load): Remember [asan_get_gtest_test_list "$output"]
      	and [asan_get_gtest_expect_death_list "$output"] in global vars.
      	(asan_symbolize): Sanitize [] characters from key.
      	* g++.dg/asan/asan_test_config.h: New file.
      	* g++.dg/asan/asan_globals_test.cc: New file.
      	* g++.dg/asan/asan_test_utils.h: New file.
      	* g++.dg/asan/dejagnu-gtest.h: New file.
      	* g++.dg/asan/asan_test.cc: New file.
      	* g++.dg/asan/asan_test.C: New test.
      
      From-SVN: r194081
      Jakub Jelinek committed
    • [AARCH64] Refactor constant generation. · d9600ae5
      2012-12-03  Sofiane Naci  <sofiane.naci@arm.com>
      
      	* config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
      	Call emit_move_insn	instead of printing movi/movn/movz instructions.
      	Call gen_insv_immdi instead of printing movk instruction.
      	(aarch64_add_constant): Update prototype.
      	Generate RTL instead of printing add/sub instructions.
      	(aarch64_output_mi_thunk): Update calls to aarch64_build_constant
      	and aarch64_add_constant.
      
      From-SVN: r194080
      Sofiane Naci committed
    • pr35634.c: Use signed char. · 6ff11db2
      2012-12-03  Richard Biener  <rguenther@suse.de>
      
      	* gcc.dg/torture/pr35634.c: Use signed char.
      	* g++.dg/torture/pr35634.C: Likewise.
      
      From-SVN: r194078
      Richard Biener committed
    • re PR fortran/55475 (heap-buffer-overflow in fortran/error.c) · 021aa628
      2012-12-03  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/55475
              * scanner.c (gfc_next_char_literal): Fix setting locus
              to free_line_length for the error message.
              * error.c (show_locus): Fix potential out-of-bounds
              read.
      
      From-SVN: r194076
      Tobias Burnus committed
    • re PR fortran/37336 ([F03] Finish derived-type finalization) · 29a7d776
      2012-11-03  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/37336
              * class.c (finalizer_insert_packed_call): New static function.
              (finalize_component, generate_finalization_wrapper):
              Fix coarray handling and packing.
      
      From-SVN: r194075
      Tobias Burnus committed
    • re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3… · 9204da15
      re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
      
      	PR target/53912
      	* ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.
      
      From-SVN: r194072
      Kai Tietz committed