OSDN Git Service

* config/alpha/linux.h (OPTION_GLIBC): Define differently if
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 7f2a5ae..c12643f 100644 (file)
@@ -1,3 +1,188 @@
+2010-12-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/alpha/linux.h (OPTION_GLIBC): Define differently if
+       SINGLE_LIBC.
+       * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC):
+       Define differently if SINGLE_LIBC.
+       * config/rs6000/linux.h (OPTION_GLIBC): Define differently if
+       SINGLE_LIBC.
+       * config/rs6000/linux64.h (OPTION_GLIBC): Define differently if
+       SINGLE_LIBC.
+       * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
+       *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define
+       SINGLE_LIBC instead of OPTION_GLIBC.
+       (*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC.
+       (bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define
+       DEFAULT_LIBC or use linux.opt.
+
+2010-12-20  Richard Henderson  <rth@redhat.com>
+
+       * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Generate
+       UNSPEC patterns by hand, with the proper mode; use gen_const_mem.
+       * config/mn10300/mn10300.md (call, call_value): Generate UNSPEC_PLT
+       by hand, with the proper mode.
+       (symGOT2reg, symGOT2reg_i, symGOTOFF2reg): Remove.
+       (symGOTOFF2reg_i, sym2PIC, sym2PLT): Remove.
+
+2010-12-20  Sanjin Liu <scliu@faraday-tech.com>
+       Mingfeng Wu  <mingfeng@faraday-tech.com>
+
+       * config/arm/arm-cores.def: Add Faraday CPU support -
+       fa526/fa626/fa606te/fa626te/fmp626/fa726te.
+       * config/arm/arm-tune.md: Regenerate.
+       * config/arm/arm.c (arm_fa726te_tune): New tune_params for fa726te
+       (fa726te_sched_adjust_cost): New cost function for fa726te.
+       (arm_issue_rate): Add fa726te.
+       * config/arm/arm.md (generic_sched): Add Faraday cores to generic_sched
+       and include machine description files.
+       * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Add fa526 and fa626.
+       * config/arm/t-arm (MD_INCLUDES): Include machine description files for
+       Faraday cores.
+       * config/arm/t-arm-elf: Add multilib option for Faraday cores.
+       * config/arm/t-linux-eabi: Add multilib option for Faraday cores except
+       fa526 and fa626.
+       * doc/invoke.texi: Document -mcpu for Faraday cores.
+       * config/arm/fa526.md: New file.
+       * config/arm/fa606te.md: New file.
+       * config/arm/fa626te.md: New file.
+       * config/arm/fmp626.md: New file.
+       * config/arm/fa726te.md: New file.
+
+2010-12-20  Yvan Roux  <yvan.roux@st.com>
+
+       * config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
+       condition on IT instruction for early termination.
+
+2010-12-20  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
+       (DBX_REGISTER_NUMBER): Define.
+       * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define.
+       * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define.
+       * config/rs6000/sysv4.h (SIZE_TYPE): Define.
+       (ASM_SPEC): Define without using SVR4_ASM_SPEC.
+       (DBX_REGISTER_NUMBER): Undefine.
+       * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
+       powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*,
+       powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*,
+       powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*,
+       powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
+       powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*,
+       powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h.
+
+2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
+           Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/46916
+       * opts.c (finish_options): Enable -freorder-functions
+       when -freorder-blocks-and-partition is active.
+       
+2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
+
+       PR c++/46904
+       PR middle-end/46916
+       PR target/46950
+       * config/darwin.c (generating_for_darwin_version): New var.
+       (darwin_text_section): Remove.
+       (darwin_rodata_section): Do not check function section here.
+       (darwin_emit_unwind_label): Do not emit for Darwin >= 9.
+       Emit distinct labels for successive calls for the same decl.
+       (darwin_override_options): Set generating_for_darwin_version.
+       Add FIXME and disable -freorder-blocks-and-partition.
+       Suppress automatic asynchronous unwind tables for m32.
+       Switch off -freorder-blocks-and-partition when unwind tables
+       will be generated.  Update to use generating_for_darwin_version.
+       (darwin_function_section): Check for cases that need to be placed
+       in coalesced sections.
+       * config/darwin-sections.def: Define hot, cold, startup and exit sections
+       for both coalesced and regular code.
+       * config/darwin.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Delete.
+       * config/darwin10.h (TARGET_ASM_EMIT_UNWIND_LABEL): Delete.
+       
+2010-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * doc/cppopts.texi: Use @var when appropriate.
+       * doc/extend.texi (Structure-Packing Pragmas): Likewise.
+       * doc/gimple.texi (Logical Operators)
+       (Adding a new GIMPLE statement code): Likewise.
+       * doc/invoke.texi (Target Options, Precompiled Headers):
+       Likewise.
+       * doc/plugins.texi (Plugins): Likewise.
+
+       * doc/install.texi (Configuration, Building, Testing, Specific):
+       Remove leading whitespace from examples.
+
+2010-12-19  Andi Kleen  <ak@linux.intel.com>
+
+       PR lto/46905
+       * collect2.c (main): Handle -fno-lto.
+       * opts.c (common_handle_option): Handle -fno-lto.
+
+2010-12-19  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/46729
+       * config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
+       (PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
+       * config/sparc/sparc.c (pic_helper_needed): Delete.
+       (global_offset_table): Likewise.
+       (pic_helper_symbol): Rename to...
+       (got_helper_rtx): ...this.
+       (global_offset_table_rtx): New global variable.
+       (sparc_got_symbol): Likewise.
+       (sparc_got): New static function.
+       (check_pic): Use local variable and call sparc_got.
+       (sparc_tls_symbol): Initialize to NULL_RTX.
+       (sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
+       and 32-bit ABI and copy the GOT symbol to a new register otherwise.
+       (get_pc_thunk_name): Rename local variable.
+       (gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
+       (load_pic_register): Rename to...
+       (load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
+       (sparc_expand_prologue): Do not test flag_pic.
+       (sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
+       (sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
+       Rename local variable and do not call get_pc_thunk_name again.
+       * config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
+
+2010-12-19  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       PR middle-end/46674
+       PR middle-end/46221
+       * varasm.c (symbol_alias_set_t): New typedef for derived pointer_set
+       wrapper class.
+       (symbol_alias_set_create): New wrapper function.
+       (symbol_alias_set_destroy): Likewise.
+       (symbol_alias_set_contains): Likewise.
+       (symbol_alias_set_insert): Likewise.
+       (compute_visible_aliases): Use the above and return symbol_alias_set_t,
+       not a pointer_set.
+       (remove_unreachable_alias_pairs): Adjust likewise to match.
+       (finish_aliases_1): Likewise.
+
+2010-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
+       index range case. Change to SF/DFmode tests to avoid capturing HFmode.
+       (thumb2_legitimate_index_p): Same.
+
+2010-12-18  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/46969
+       * tree-parloops.c (struct reduction_info): Add reduc_version.
+       (reduction_info_hash): Return reduc_version field.
+       (reduction_phi): Set reduc_version to gimple_uid (phi).
+       (build_new_reduction): Set reduc_version to SSA_NAME_VERSION of
+       phi result.
+       (set_reduc_phi_uids): New function.
+       (gather_scalar_reductions): Call it at the end through htab_traverse.
+
+2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
+
+       * c-parser.c (c_parser_objc_try_catch_finally_statement): Call
+       objc_maybe_warn_exceptions.
+       (c_parser_objc_synchronized_statement): Call
+       objc_maybe_warn_exceptions.
+       
 2010-12-18  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/46985
 2010-12-17  Dodji Seketeli  <dodji@redhat.com>
 
        * dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
-       info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
-       that underlying type instead.
+       info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
+       that underlying type instead.
 
 2010-12-16  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/44563 
-       * ipa-inline.c: Update doplevel comment. 
-       (cgraph_estimate_size_after_inlining): Remove times attribute. 
-       (cgraph_mark_inline_edge): Update. 
-       (cgraph_mark_inline): Remove. 
-       (cgraph_estimate_growth): Update. 
-       (cgraph_check_inline_limits): Remove one only argument. 
-       (cgraph_edge_badness): Update. 
-       (cgraph_decide_recursive_inlining): Update. 
-       (cgraph_decide_inlining_of_small_function): Fix handling of tree_can_inline_p 
-       and call_stmt_cannot_inline_p. 
-       (cgraph_flatten): Likewise. 
-       (cgraph_decide_inlining): Update. 
-       (cgraph_decide_inlining_incrementally): Fix handling of call_stmt_cannot_inline_p. 
+       * ipa-inline.c: Update doplevel comment.
+       (cgraph_estimate_size_after_inlining): Remove times attribute.
+       (cgraph_mark_inline_edge): Update.
+       (cgraph_mark_inline): Remove.
+       (cgraph_estimate_growth): Update.
+       (cgraph_check_inline_limits): Remove one only argument.
+       (cgraph_edge_badness): Update.
+       (cgraph_decide_recursive_inlining): Update.
+       (cgraph_decide_inlining_of_small_function): Fix handling of
+       tree_can_inline_p  and call_stmt_cannot_inline_p.
+       (cgraph_flatten): Likewise.
+       (cgraph_decide_inlining): Update.
+       (cgraph_decide_inlining_incrementally): Fix handling of
+       call_stmt_cannot_inline_p.
 
 2010-12-16  Joseph Myers  <joseph@codesourcery.com>
 
 
 2010-12-14  Jan Hubicka  <jh@suse.cz>
 
-       * tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I
-       and GLOBAL_sub_D.
+       * tree.c (get_file_function_name): Avoid using random seed on
+       GLOBAL_sub_I and GLOBAL_sub_D.
 
 2010-12-15  Martin Jambor  <mjambor@suse.cz>
 
 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR tree-optimization/46928
-       * tree-data-ref.c (analyze_overlapping_iterations): Handle "A[p] == A[p]"
+       * tree-data-ref.c (analyze_overlapping_iterations): Handle A[p] == A[p]
        in data dependence analysis with p a parameter of the loop.
 
 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
 2010-12-14  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/46667
-       * varasm.c (assemble_start_function): Do not call resolve_unique_section.
+       * varasm.c (assemble_start_function): Do not call
+       resolve_unique_section.
        * cfgexpand.c (gimple_expand_cfg): Resolve it here.
 
 2010-12-14  Alexander Monakov  <amonakov@ispras.ru>
 2010-12-13  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/45388
-       * ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
+       * ipa.c (cgraph_build_static_cdtor_1): Break out from ...  Add FINAL
+       parameter.
        (cgraph_build_static_cdtor): ... here.
        (build_cdtor): Use cgraph_build_static_cdtor_1.