OSDN Git Service

* ipa.c (function_and_variable_visibility): Clear COMDAT on functions
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 238cd22..f2a0da5 100644 (file)
@@ -1,10 +1,88 @@
+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.
+       (sibcall_value): Ditto.
+
 2009-11-13  Eric Botcazou  <ebotcazou@adacore.com>
 
        * config/i386/linux-unwind.h (x86_frob_update_context): New function.
        (MD_FROB_UPDATE_CONTEXT): Define.
 
 2009-11-12  Eric Botcazou  <ebotcazou@adacore.com>
-            Laurent GUERBY  <laurent@guerby.net>
+           Laurent GUERBY  <laurent@guerby.net>
 
        * config/sparc/linux-unwind.h (sparc64_fallback_frame_state): Tidy.
        Do not schedule an %sp restore.  Compensate for RETURN_ADDR_OFFSET.
        Allocate a du_head structure as well as a du_chain when creating a
        new chain.  Modified other code to match new data structures.
 
-2009-11-12 Jan Hubicka  <jh@suse.cz>
+2009-11-12  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.h (varpool_node_name): Declare.
-       * cgraphunit.c (process_function_and_variable_attributes): Set force_output
-       flag on used variables.
-       * ipa.c (function_and_variable_visibility): Dump externally visible and needed
-       variables.
+       * cgraphunit.c (process_function_and_variable_attributes): Set
+       force_output flag on used variables.
+       * ipa.c (function_and_variable_visibility): Dump externally visible
+       and needed variables.
        * varpool.c (varpool_node_name): Export.
        (decide_is_variable_needed): Check COMDAT for externally visible vars;
        ignore needed flag.
 
-2009-11-12 Uros Bizjak <ubizjak@gmail.com>
+2009-11-12  Uros Bizjak  <ubizjak@gmail.com>
 
        PR middle-end/41930
        * simplify-rtx.c (simplify_replace_fn_rtx) <case 'e'>: Skip
        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
        * doc/extend.texi (Function Attributes): Mentions that plugin can
        provide their attributes.
 
-2009-11-11  Jon Beniston <jon@beniston.com>
+2009-11-11  Jon Beniston  <jon@beniston.com>
 
        * config.gcc: Add lm32 elf and uclinux targets.
        * config/lm32: New directory.
        * exec-tool.in (ORIGINAL_PLUGIN_LD_FOR_TARGET): New.
        (collect-ld): Use ORIGINAL_PLUGIN_LD_FOR_TARGET for -plugin.
 
-2009-11-08  Jonathan Gray <jsg@openbsd.org>
+2009-11-08  Jonathan Gray  <jsg@openbsd.org>
 
        * config/openbsd-stdint.h: Change to reflect what
        c_common_nodes_and_builtins expects.
        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
        * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
        to pointer to enum machine_mode.  Update all callers as needed.
 
-2009-08-21 Uros Bizjak <ubizjak@gmail.com>
+2009-08-21  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/alpha/alpha.md (exception_receiver): Emit alternative
        GP load sequence if flag_reorder_blocks_and_partition is set.