1. 04 Sep, 2009 15 commits
  2. 03 Sep, 2009 25 commits
    • tree-sra.c (duplicate_expr_for_different_base): Removed. · 687b5078
      2009-09-03  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-sra.c (duplicate_expr_for_different_base): Removed.
      	(create_artificial_child_access): Use build_ref_for_offset instead
      	of duplicate_expr_for_different_base.
      	(propagate_subacesses_accross_link): Likewise.
      
      From-SVN: r151394
      Martin Jambor committed
    • Fix long line · 755d55bb
      From-SVN: r151393
      Eric Botcazou committed
    • Move misplaced contrib/ChangeLog entry to config/. · 9a2e0bd1
      From-SVN: r151392
      Alexandre Oliva committed
    • mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead of INSN_P. · 006b29ab
      gcc/
      	* config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
      	of INSN_P.
      	(mips16e_collect_argument_saves): Skip debug instructions.
      	(mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
      	(mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
      	(r10k_insert_cache_barriers): Likewise.
      	(mips_reorg_process_insns): Likewise.
      
      From-SVN: r151391
      Richard Sandiford committed
    • * fi.po: Update. · 3734d8fd
      From-SVN: r151389
      Joseph Myers committed
    • re PR bootstrap/41241 (bootstrap comparison failure) · 691571d2
      2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR bootstrap/41241
      	* ira.c (update_equiv_reg): Remove check on class likely spill.
      
      From-SVN: r151388
      Vladimir Makarov committed
    • dyn_load.c (HAVE_DL_ITERATE_PHDR): Break definition from use. · 10e1bc03
      2009-09-03  Loren J. Rittle  <ljrittle@acm.org>
      
      	* dyn_load.c (HAVE_DL_ITERATE_PHDR): Break definition from use.
      	Define for FreeBSD 7.0+.
      
      From-SVN: r151387
      Loren J. Rittle committed
    • re PR target/39065 (libiberty hashtab.c:hash_pointer() needs intptr_t) · 2e3dac6f
      2009-09-03  Ozkan Sezer  <sezeroz@gmail.com>
      
      	PR target/39065
      	* configure.ac: Also check for intptr_t.
      	* config.h.in: Regenerated.
      	* configure: Regenerated.
      	* hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
      	instead of of long.
      
      From-SVN: r151386
      Ozkan Sezer committed
    • re PR debug/41236 (RTL checking failure compiling libgcc) · 7d4507cb
      	PR debug/41236
      	* dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
      	SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
      	it or SUBREG.
      
      From-SVN: r151385
      Jakub Jelinek committed
    • re PR debug/41238 (VTA: bootstrap failure, ICE in loc_cmp, at var-tracking.c:2456) · 08ab0acf
      	PR debug/41238
      	* function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
      	the stack slot if it is passed by invisible reference.
      	* var-tracking.c (vt_add_function_parameters): Handle arguments passed by
      	invisible reference.
      
      From-SVN: r151384
      Jakub Jelinek committed
    • Revert revision 151379 for linux bootstrap failure for gstdint.h · eead42e0
      From-SVN: r151382
      Kai Tietz committed
    • linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1. · 9840d30a
      gcc/
      	* config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
      	* config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
      	* config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
      	0.
      	* config/bfin/sync.md: New file.
      	* config/bfin/bfin.md: Include it.
      	(UNSPEC_ATOMIC): New.
      	(UNSPEC_ONES): Provide a unique number.
      
      	From Jie Zhang <jie.zhang@analog.com>:
      	* config/bfin/bfin.c (ret_regs): New.
      	(must_save_fp_p): Don't return true because of frame_pointer_needed.
      	(must_save_rets_p): New.
      	(n_regs_saved_by_prologue): Use must_save_rets_p instead of
      	current_function_is_leaf.
      	(do_link): Likewise.
      	(do_unlink): Likewise.
      	(expand_interrupt_handler_prologue): Use ret_regs array.
      	(expand_interrupt_handler_epilogue): Use ret_regs array and
      	pass return register to gen_return_internal.
      	(bfin_expand_epilogue): Pass return register to
      	gen_return_internal.
      	(bfin_expand_call): Explicitly clobber RETS.
      	* config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
      	* config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
      	call_insn_fdpic, call_value_insn_fdpic, call_symbol,
      	call_value_symbol, call_insn, call_value_insn): Explicitly clobber
      	RETS.
      	(return_internal): Take a reg rtx rather than the register number.
      
      gcc/testsuite/
      	* lib/target-supports.exp (check_effective_target_sync_int_long):
      	Supported on Blackfin Linux targets.
      
      From-SVN: r151381
      Bernd Schmidt committed
    • config.in (HAVE_STDINT_H): New. · be2c0fc9
      2009-09-03  Kai Tietz  <kai.tietz@onevision.com>
      
      	* config.in (HAVE_STDINT_H): New.
      	* configure.ac (GCC_HEADER_STDINT): Generated gstdint.h.
      	* configure: Regenerated.
      	* system.h (gstdint.h): Add include.
      	* Makefile.in (aclocal): Add config/stdint.m4.
      	* aclocal.m4: Regenerated.
      
      From-SVN: r151379
      Kai Tietz committed
    • tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT when comparing… · 8e094aa2
      tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT when comparing against estimated_loop_iterations_int return.
      
      2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
      	when comparing against estimated_loop_iterations_int return.
      
      From-SVN: r151378
      H.J. Lu committed
    • dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of eh_personality_libfunc. · e20c9328
      2009-09-03  Richard Guenther  <rguenther@suse.de>
      
      	* dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
      	eh_personality_libfunc.
      
      From-SVN: r151376
      Richard Guenther committed
    • tree-parloops.c (separate_decls_in_region): Add space · c9630c40
      * tree-parloops.c (separate_decls_in_region): Add space
      
      From-SVN: r151374
      Razya Ladelsky committed
    • tree-parloops.c (separate_decls_in_region): Change the condition checking if… · e7df16a5
      tree-parloops.c (separate_decls_in_region): Change the condition checking if there are reductions in the loop.
      
              * tree-parloops.c (separate_decls_in_region): Change the condition 
      	checking if there are reductions in the loop.
      
      From-SVN: r151373
      Razya Ladelsky committed
    • re PR tree-optimization/38275 (bootstrap failure when -ftree-parallelize-loops=4 is enabled) · 785aa2a7
      PR tree-optimization/38275
      	* tree-parloops.c (parallelize_loops): Replace profitability condition 
              for expected number of iterations.
              * testsuite/gcc.dg/autopar/reduc-1char.c: Increase number  
              of iterations. Adjust the logic accordingly.
              * testsuite/gcc.dg/autopar/reduc-2char.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-1.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-2.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-3.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-6.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-7.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-8.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-9.c: Ditto.
              * testsuite/gcc.dg/autopar/pr39500-1.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-1short.c: Ditto.
              * testsuite/gcc.dg/autopar/reduc-2short.c: Ditto.
              * testsuite/gcc.dg/autopar/parallelization-1.c: Ditto.
      
      From-SVN: r151372
      Razya Ladelsky committed
    • re PR fortran/41219 (libgfortran build warnings) · ee5111a4
      2009-09-03  Tobias Burnus  <burnus@net-b.de>
      
             PR fortran/41219
             * intrinsics/iso_c_binding.c (c_f_pointer_u0): Move variable
             declaration out of the loop.
      
      From-SVN: r151371
      Tobias Burnus committed
    • configure.ac (--with-build-config): New. · e12c4094
      ChangeLog:
      * configure.ac (--with-build-config): New.  Set BUILD_CONFIG.
      Default to bootstrap-debug only if compare-debug works.
      * configure: Rebuilt.
      * Makefile.tpl: Make BUILD_CONFIG configure-configurable.
      * Makefile.in: Rebuilt.
      contrib/ChangeLog:
      * bootstrap-debug-big.mk (STAGE2_CFLAGS): Drop -gtoggle.
      * bootstrap-debug-lean.mk: Update comments.
      (STAGE2_CFLAGS): Likewise.
      (do-compare): Don't override.
      gcc/ChangeLog:
      * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
      (bootstrap-debug): Explain conditions in which it becomes default.
      (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
      make it add to it.
      
      From-SVN: r151367
      Alexandre Oliva committed
    • invoke.texi (Optimize Options): Move -finline-small-functions to the -O2 list. · 95da10ea
      2009-09-03  Namhyung Kim  <namhyung@gmail.com>
      
      	* doc/invoke.texi (Optimize Options): Move
      	-finline-small-functions to the -O2 list.
      
      From-SVN: r151366
      Namhyung Kim committed
    • toplev.c (process_options): Enable var-tracking-assignments by default if var-tracking is enabled. · 73d598d5
      * toplev.c (process_options): Enable var-tracking-assignments
      by default if var-tracking is enabled.
      
      From-SVN: r151362
      Alexandre Oliva committed
    • cfgbuild.c (find_bb_boundaries): Split blocks containing a barrier. · 896aa4ea
      2009-09-02  David Daney  <ddaney@caviumnetworks.com>
      
      	* cfgbuild.c (find_bb_boundaries): Split blocks containing a
      	barrier.
      	* emit-rtl.c (prev_nonnote_insn_bb): New function.
      	* rtl.h (prev_nonnote_insn_bb): Declare it.
      
      2009-09-02  David Daney  <ddaney@caviumnetworks.com>
      
      	* gcc.c-torture/compile/builtin_unreachable-1.c: New testcase.
      
      From-SVN: r151361
      David Daney committed
    • [multiple changes] · 4537ec0c
      2009-09-01  Diego Novillo  <dnovillo@google.com>
      
      	* c-lang.c (lang_hooks): Remove const qualifier.
      
      java/ChangeLog
      
      	* lang.c (lang_hooks): Remove const qualifier.
      
      objc/ChangeLog
      
      	* objc-lang.c (lang_hooks): Remove const qualifier.
      
      objcp/ChangeLog
      
      	* objcp-lang.c (lang_hooks): Remove const qualifier.
      
      ada/ChangeLog
      
      	* gcc-interface/misc.c (lang_hooks): Remove const qualifier.
      
      fortran/ChangeLog
      
      	* f95-lang.c (lang_hooks): Remove const qualifier.
      
      cp/ChangeLog
      
      	* cp-lang.c (lang_hooks): Remove const qualifier.
      
      2009-09-01  Diego Novillo  <dnovillo@google.com>
      
      	* cgraph.c (cgraph_node_for_decl): New.
      	* cgraph.h (cgraph_node_for_decl): Declare.
      	* tree.c (host_integerp): Return 0 if T is NULL.
      
      
      2009-09-01  Diego Novillo  <dnovillo@google.com>
      
      	* tree.h (struct alias_pair): Move from varasm.c.
      	(alias_pairs): Likewise.
      	(TYPE_MAXVAL): Define.
      	(TYPE_MINVAL): Define.
      	(iterative_hash_host_wide_int): Declare.
      	(remove_unreachable_alias_pairs): Declare.
      	* tree-pass.h (pass_ipa_free_lang_data): Declare.
      	* diagnostic.c (default_diagnostic_starter): Make extern.
      	(default_diagnostic_finalizer): Make extern.
      	* diagnostic.h (default_diagnostic_starter): Declare.
      	(default_diagnostic_finalizer): Declare.
      	(default_tree_printer): Declare.
      	* toplev.c (default_tree_printer): Make extern.
      
      
      2009-09-01  Richard Guenther  <rguenther@suse.de>
      	    Diego Novillo  <dnovillo@google.com>
      
      	* cgraph.c (cgraph_add_new_function): Remove gimplification.
      	* cgraphunit.c (cgraph_expand_function): Do not emit
      	associated thunks from here.
      	(cgraph_emit_thunks): New.
      	(cgraph_optimize): Call it.
      	Return if any IPA pass finds an error.
      	* varasm.c (finish_aliases_1): Ignore errorneous aliases used
      	by thunks.
      
      
      2009-09-01  Simon Baldwin  <simonb@google.com>
      	    Rafael Espindola  <espindola@google.com>
      	    Richard Guenther  <rguenther@suse.de>
      	    Doug Kwan  <dougkwan@google.com>
      	    Diego Novillo  <dnovillo@google.com>
      
      	* tree.c: Include tree-pass.h, langhooks-def.h,
      	diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
      	(free_lang_data_in_type): New.
      	(need_assembler_name_p): New.
      	(free_lang_data_in_block): New.
      	(free_lang_data_in_decl): New.
      	(struct free_lang_data_d): New.
      	(add_tree_to_fld_list): New.
      	(find_decls_types_r): New.
      	(get_eh_types_for_runtime): New.
      	(find_decls_types_in_eh_region): New.
      	(find_decls_types_in_node): New.
      	(find_decls_types_in_var): New.
      	(free_lang_data_in_cgraph): New.
      	(free_lang_data): New.
      	(gate_free_lang_data): New.
      	(pass_ipa_free_lang_data): New.
      
      2009-09-01  Diego Novillo  <dnovillo@google.com>
      
      	* timevar.def (TV_IPA_FREE_LANG_DATA): Define.
      	* langhooks.h (struct lang_hooks): Add field free_lang_data.
      	(lang_hooks): Remove const qualifier.
      	* ipa.c (cgraph_remove_unreachable_nodes): Call
      	remove_unreachable_alias_pairs.
      	* except.c (add_type_for_runtime): Check if TYPE has
      	already been converted.
      	(lookup_type_for_runtime): Likewise.
      	(check_handled): Handle converted types.
      	* varasm.c (remove_unreachable_alias_pairs): New.
      	* gimple.c: Include demangle.h.
      	(gimple_decl_printable_name): New.
      	(gimple_fold_obj_type_ref): New.
      	* gimple.h (gimple_decl_printable_name): Declare.
      	(gimple_fold_obj_type_ref): Declare.
      	* passes.c (init_optimization_passes): Add pass
      	pass_ipa_free_lang_data.
      	* langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
      	(LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
      
      testsuite/ChangeLog
      
      2009-09-01  Diego Novillo  <dnovillo@google.com>
      
      	* gcc.dg/gomp/combined-1.c: Adjust expected pattern.
      	* g++.dg/tree-prof/inline_mismatch_args.C: Likewise.
      	* g++.dg/warn/unit-1.C: Likewise.
      	* g++.dg/ipa/iinline-1.C: Likewise.
      	* g++.dg/template/cond2.C: Adjust expected line location for the
      	error.
      	* g++.dg/template/pr35240.C: Likewise.
      
      
      cp/ChangeLog
      
      2009-09-01  Doug Kwan  <dougkwan@google.com>
      
      	* tree.c (cp_fix_function_decl_p): New.
      	(cp_free_lang_data): New.
      
      2009-09-01  Diego Novillo  <dnovillo@google.com>
      
      	* Make-lang.in (decl2.o): Add dependency on $(POINTER_SET_H).
      	* decl2.c: Include pointer-set.h.
      	(collect_candidates_for_java_method_aliases): New.
      	(cp_write_global_declarations): Call it.
      	Add local variable CANDIDATES.  If set, call
      	build_java_method_aliases.
      	(build_java_method_aliases): Add argument CANDIDATES.
      	Use it to determine if FNDECL should get a hidden alias.
      	* cp-objcp-common.h (LANG_HOOKS_FREE_LANG_DATA): Define.
      	* cp-tree.h (cp_free_lang_data): Declare.
      
      2009-09-03  Richard Guenther  <rguenther@suse.de>
      
      	* method.c (use_thunk): Use cgraph_finalize_function to hand
      	off thunks to the cgraph.
      	* semantics.c (emit_associated_thunks): Do not emit thunks
      	for really extern functions.
      
      From-SVN: r151360
      Diego Novillo committed
    • update copyright dates · e25ea117
      From-SVN: r151359
      Alan Modra committed