OSDN Git Service

* ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 586ae0d..c19ae95 100644 (file)
@@ -1,3 +1,254 @@
+2009-11-17  Jan Hubicka  <jh@suse.cz>
+
+       * ipa-struct-reorg.c (update_cgraph_with_malloc_call): Fix profile
+       info.
+
+2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * toplev.c (process_options): Remove dead code.
+       * doc/invoke.texi (-frename-registers): Mention -fpeel-loops.
+
+2009-11-17  Rafael Avila de Espindola  <espindola@google.com>
+
+       * lto-symtab.c (lto_symtab_resolve_symbols): Always initialize the
+       nodes.
+
+2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       PR tree-optimization/41857
+       * tree-ssa-address.c (move_hint_to_base): Use void pointer to
+       TYPE's address space instead of pointer to TYPE.
+
+2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * reload.c (find_reloads_address): Fix typo.
+
+2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
+       registers in leaf functions if possible.
+
+2009-11-17  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       * config/m68k/m68k-devices.def: Add MCF5441x family.
+
+2009-11-17  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not access
+       removed node.
+       * cgraphunit.c (verify_cgraph_node): Verify frequencies for match.
+
+2009-11-17  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/predicates.md (x86_64_szext_general_operand): Do not
+       nest ior expressions.
+       (x86_64_szext_nonmemory_operand): Ditto.
+       (call_insn_operand): Ditto.
+
+2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
+
+       * stmt.c (expand_asm_stmt): Get locus from stmt.
+
+2009-11-16  Alexandre Oliva  <aoliva@redhat.com>
+
+       * tree-cfg.c (gimple_redirect_edge_and_branch) <case GIMPLE_ASM>:
+       Create the decl label for the new dest block on demand.  Require
+       a fallthrough edge if no asm labels were redirected.
+
+2009-11-16  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (cbranchsi4): Use nonimmediate_operand for
+       operand 1 predicate.
+       (cstoresi4): Ditto for operand 2.
+       (cbranch<mode>4): Macroize expander from cbranch{qi,hi,si,di,ti}4
+       patterns using SDWIM mode iterator.
+       (cstore<mode>4): Macroize expander from cstore{qi,hi,si,di}4 patterns
+       using SWIM mode iterator.
+       (cmpdi_1): Rename from cmpdi_1_rex64.
+       (cmp<mode>_1): Macroize expander from cmp{si,di}_1 patterns using
+       SWI48 mode iterator.
+       (*cmp<mode>_1): Macroize insn from *cmp{qi,hi,si,di}_1_insn using SWI
+       mode iterator.
+       (*cmp<mode>_ccno_1): Ditto from *cmp{qi,hi,si,di}_ccno_1.
+       (*cmp<mode>_minus_1): Ditto from *cmp{qi,hi,si,di}_minus_1.
+       (*cmpqi_ext_3_insn): Make private.
+       (*cmpqi_ext_3_insn_rex64): Make private.
+       (cmpstrnsi): Update for renamed cmpdi_1_rex64.
+       * config/i386/predicates.md (cmpsi_operand): Remove.
+
+2009-11-16  Paul Brook  <paul@codesourcery.com>
+
+       * doc/invoke.texi: Document ARM VFPv4 based FPUs.
+       * config/arm/arm.c (all_fpus): Add VFPv4 entries.
+
+2009-11-14  Jan Hubicka  <jh@suse.cz>
+
+       * cgraphbuild.c (compute_call_stmt_bb_frequency): Use proper
+       ENTRY_BLOCK_PTR.
+       * cgraph.c (cgraph_clone_edge): Avoid freq_scale 0 to completely
+       zero out all callees.
+       * cgraphunit.c (verify_cgraph_node): Verify cgraph nodes for
+       frequency and count match.
+       * ipa-inline.c (update_noncloned_frequencies): New function.
+       (cgraph_clone_inlined_nodes): Use it.
+       * tree-inline.c (copy_bb): Fix frequency scaling; output
+       diagnostic on frequency mismatches to dump file.
+       (initialize_cfun): Do not scale frequency; fix count scaling;
+       initialize entry and exit block frequencies; copy profile info.
+       (copy_cfg_body): Use frequency_scale as argument; fix count scaling.
+       (copy_body): Use frequency_scale as argument.
+       (expand_call_inline): Compute frequency scale and output diagnostic
+       to dump file.
+       (delete_unreachable_blocks_update_callgrah): Remove checking that
+       has to be done after edge redirection.
+       (tree_function_versioning): Update initialize_cfun and copy_body call.
+
+2009-11-14  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_release_function_body): Update use of
+       ipa_transforms_to_apply.
+       (cgraph_remove_node): Remove ipa_transforms_to_apply.
+       * cgraph.h (struct cgraph_node): Add ipa_transforms_to_apply.
+       * cgraphunit.c (save_inline_function_body): Clear ipa_transforms for
+       copied body.
+       (cgraph_materialize_clone): Remove original if dead.
+       * lto-streamer-in.c (lto_read_body): Remove FIXME and
+       ipa_transforms_to_apply hack.
+       * function.h (struct function): Add ipa_transforms_to_apply.
+       * ipa.c (cgraph_remove_unreachable_nodes): Handle dead clone originals.
+       * tree-inline.c (copy_bb): Update sanity check.
+       (initialize_cfun): Do not copy ipa_transforms_to_apply.
+       (expand_call_inline): remove dead clone originals.
+       (tree_function_versioning): Merge transformation queues.
+       * passes.c (add_ipa_transform_pass): Remove.
+       (execute_one_ipa_transform_pass): Update ipa_transforms_to_apply
+       tracking.
+       (execute_all_ipa_transforms): Update.
+       (execute_one_pass): Update.
+
+2009-11-14  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
+
+       PR target/21078, 21080
+       * config/avr/avr.c (avr_return_addr_rtx): New function for
+       builtin_return_address.
+       (expand_prologue): Calculate stack usage.
+       (avr_asm_function_end_prologue): Output stack size and offset label.
+       * config/avr/avr.h (RETURN_ADDR_RTX): Replace.
+       (machine_function): Add stack_usage.
+       * config/avr/avr-protos.h (avr_return_addr_rtx): New function.
+
+2009-11-14  Anatoly Sokolov  <aesok@post.ru>
+
+       * config/iq2000/iq2000.c (iq2000_function_value): Make static, add
+       new 'outgoing' argument.
+       (iq2000_libcall_value, iq2000_function_value_regno_p): New functions.
+       (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
+       * config/iq2000/iq2000.h (FUNCTION_VALUE_REGNO_P): Redefine, use
+       iq2000_function_value_regno_p.
+       (FUNCTION_VALUE, LIBCALL_VALUE): Remove.
+       * config/iq2000/iq2000-protos.h (iq2000_function_value_regno_p):
+       Declare.
+
+2009-11-14  Richard Earnshaw  <rearnsha@arm.com>
+
+       PR target/42031
+       * arm.md (adddi_sesidi_di): Place tied contraint first.
+       (adddi_zesidi_di, subdi_di_zesidi, subdi_di_sesidi): Likewise
+       (subdi_zesidi_di, subdi_sesidi_di): Likewise.
+       (mulsi3_compare0, mulsi_compare0_scratch): Likewise.
+       (mulsi3addsi, mulsi3addsi_compare0): Likewise.
+       (mulsi3addsi_compare0_scratch, smulsi3_highpart_nov6): Likewise.
+       (umulsi3_highpart_nov6, anddi_zesidi_di, anddi_sesdi_di): Likewise.
+       (anddi_notdi_di, iordi_sesidi_di, xordi_sesidi_di): Likewise.
+       (andsi_iorsi3_notsi, arm_ashldi3_1bit, arm_ashrdi3_1_bit): Likewise.
+       (arm_lshrdi3_1bit, one_cmpldi2): Likewise.
+
+2009-11-14  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/predicates.md (call_register_no_elim_operand):
+       New predicate.  Reject stack register as valid call operand
+       for 32bit targets.
+       (call_insn_operand): Use call_register_no_elim_operand.
+
+2009-11-13  Richard Henderson  <rth@redhat.com>
+
+       * function.c (stack_protect_prologue): Don't bypass expand_expr
+       for stack_protect_guard and guard_decl.
+       (stack_protect_epilogue): Likewise.
+
+2009-11-13  Jan Hubicka  <jh@suse.cz>
+
+       * ipa.c (function_and_variable_visibility): Clear COMDAT on functions
+       when to PUBLIC is set.
+
+2009-11-13  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/42029
+       * gimplify.c (gimplify_omp_atomic): Set DECL_GIMPLE_REG_P on
+       tmp_load if needed.
+
+2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/41900
+       * config/i386/i386.md (*call_pop_1, *call_1, *call_value_pop_1,
+       *call_value_1): Use "lsm" as operand 1 constraint.
+       * config/i386/predicates.md (call_insn_operand): Depend on
+       index_register_operand to avoid %esp register.
+
+2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
+
+       Revert:
+       2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/41900
+       * config/i386/i386.h (ix86_arch_indices) <X86_ARCH_CALL_ESP>: New.
+       (TARGET_CALL_ESP): New define.
+       * config/i386/i386.c (initial_ix86_tune_features): Initialize
+       X86_ARCH_CALL_ESP.
+       * config/i386/i386.md (*call_pop_1_esp, *call_1_esp,
+       *call_value_pop_1_esp, *call_value_1_esp): Rename from *call_pop_1,
+       *call_1, *call_value_pop_1 and *call_value_1.  Depend on
+       TARGET_CALL_ESP.
+       (*call_pop_1, *call_1, *call_value_pop_1, *call_value_1):
+       New patterns, use "lsm" as operand 1 constraint.
+       * config/i386/predicates.md (call_insn_operand): Depend on
+       index_register_operand for !TARGET_CALL_ESP to avoid %esp register.
+
+2009-11-13  Jason Merrill  <jason@redhat.com>
+
+       PR debug/26965
+       * dwarf2out.c (gen_variable_die): Don't worry about DECL_COMDAT.
+       Don't emit a second declaration at any scope.
+
+2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
+
+       PR rtl-optimization/41697
+       * sel-sched-ir.c (fallthru_bb_of_jump): Bail out when a block with
+       a conditional jump has a single successor.
+
+2009-11-13  Andrey Belevantsev  <abel@ispras.ru>
+
+       * sched-deps.c (init_deps): New parameter lazy_reg_last.  Don't
+       allocate reg_last when in case lazy_reg_last is true.
+       (init_deps_reg_last): New.
+       (free_deps): When max_reg is 0, this context is already freed.
+       * sched-int.h (init_deps_reg_last): Export.
+       (init_deps): Update prototype.
+       * sched-ebb.c (schedule_ebb): Update the call to init_deps.
+       * sched-rgn.c (sched_rgn_compute_dependencies): Likewise.
+       * ddg.c (build_intra_loop_deps): Likewise.
+       * sel-sched-ir.c (copy_deps_context, create_deps_context,
+       reset_deps_context, deps_init_id): Likewise.
+       (init_first_time_insn_data): Lazy allocate INSN_DEPS_CONTEXT.
+       (free_data_for_scheduled_insn): New, break down from ...
+       (free_first_time_insn_data): ... here.
+       (has_dependence_p): Allocate reg_last now, when it is needed.
+       (extend_insn_data): When maximal LUID is big enough, allocate
+       per-insn data in smaller chunks.
+       * sel-sched-ir.h (free_data_for_scheduled_insn): Export.
+       * sel-sched.c (update_seqnos_and_stage): Free INSN_DEPS_CONTEXT
+       in scheduled insn.
+
 2009-11-13  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (call_value): Fix comment.
        PR middle-end/41440
        * cfgexpand.c (expand_gimple_basic_block): Append NOP to a fallthru,
        single successor block, ending with jump created by RTL expander.
-       
+
 2009-11-11  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/41729
        mode.  Use it to convert addresses to other modes.  Accept
        ptr_mode addresses.
 
+2009-09-23  Dodji Seketeli <dodji@redhat.com>
+
+       PR debug/41065
+       * function.h (types_used_by_vars_hash): Declare new hash table.
+       (types_used_by_vars_eq, types_used_by_var_decl_insert): Declare
+       equality and hash function for the hash table.
+       (types_used_by_cur_var_decl): Declare a new global chained list.
+       (types_used_by_var_decl_insert): Declare new function.
+       * function.c (types_used_by_vars_hash): Define the hashtable ...
+       (types_used_by_vars_eq, types_used_by_vars_do_hash): ... as well as
+       its equality and hash functions.
+       (hash_types_used_by_vars_entry): New hash helper.
+       (types_used_by_cur_var_decl): Define the global chained list.
+       (used_types_insert): Update the list of types used by the global
+       variable being parsed.
+       (types_used_by_var_decl_insert): Define new function.
+       * c-common.h (record_types_used_by_current_var_decl): Declare ...
+       * c-common.c (record_types_used_by_current_var_decl): ... new
+       function.
+       * c-decl.c (finish_decl): Record the types used by the global
+       variable declaration we've just parsed.
+       * dwarf2out.c (premark_used_types): Insert a new line between
+       comment and function.
+       (premark_used_types_helper): Fix comment.
+       (premark_types_used_by_global_vars_helper,
+       premark_types_used_by_global_vars): New functions.
+       (prune_unused_types): Do not prune types used by global variables.
+
 2009-09-23  Richard Guenther  <rguenther@suse.de>
 
        * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET