OSDN Git Service

Canonicalize mips nmadd/nmsub patterns.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 430dc19..2ed0288 100644 (file)
+2004-08-17  James E Wilson  <wilson@specifixinc.com>
+
+       * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
+       of VOIDmode for comparison code mode.
+       * config/mips/mips.md: For conditional move patterns, use mode of
+       first compare operand for comparison mode, instead of VOIDmode.
+
+       * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
+       normal and -ffast-math code.
+
+2004-08-17  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/15871
+       * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
+
+2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
+  
+        * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
+
+2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
+       for non Darwin targets.
+       (*call_value_nonlocal_darwin64): Likewise.
+
+2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
+
+       * config/rs6000/rs6000.c (rs6000_function_value): Check for
+       altivec mode for altivec return register.
+
+2004-08-17  David Edelsohn  <edelsohn@gnu.org>
+
+       Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
+       * config/rs6000/rs6000.md: Include darwin.md.
+       (builtin_setjmp_receiver): Add DImode case.
+       * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
+       Darwin bits.
+
+2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
+
+       * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE trees.
+       * tree-vectorizer.h: New File: Same.
+       * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
+       * common.opt (ftree-vectorize): New flag to enable vectorization.
+       * timevar.def (TV_TREE_VECTORIZATION): New dump file for vectorization
+       pass.
+       * tree-data-ref.h (init_data_ref): Additional argument.
+       (array_base_name_differ_p): Moved to tree-data-ref.c.
+       * tree-data-ref.c (array_base_name_differ_p): Revised.
+       (initialize_data_dependence_relation): Call array_base_name_differ_p
+       with an extra argument.
+       (analyze_all_data_dependences): Same.
+       (init_data_ref): Additional argument is_read to set DR_IS_READ.
+       * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this file.
+       * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
+       * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
+       * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new 
+       vectorization pass.
+       * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
+       (tree_ssa_loop_done): Call scev_finalize.
+       (tree_vectorize): Define the new vectorization pass.
+       * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the size of
+       the vector they support (until support for multiple vector sizes is
+       added to the vectorizer).
+       * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
+       * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
+       * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
+       documentation.
+
+2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
+       usage.
+       (generate_protocol_list, handle_impent): Likewise.
+
+2004-08-17  Roger Sayle  <roger@eyesopen.com>
+
+       * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
+       ensure that call_used_regs is a superset of both fixed_regs and
+       call_really_used_regs.
+
+2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
+
+       PR target/17019
+       * arm.md (addsi3_cbranch_scratch): Correct case labels.
+
+2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
+
+       PR middle-end/17036
+       * fold-const.c (fold): Check for integer operand when
+       folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
+       Pinski  <pinskia@physics.uc.edu>.
+
+2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
+
+       * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
+       No need to check if in a cross configuration.
+       * configure: Regenerate.
+
+       * calls.c (precompute_register_parameters):
+       Inline preserve_subexpressions_p ().
+       * expmed.c (expand_mult_const, emit_store_flag): Likewise.
+       * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
+       Likewise.
+       * expr.c (get_subtarget): Likewise.
+       * rtl.h (preserve_subexpressions_p): Remove.
+       * stmt.c (preserve_subexpressions_p): Remove.
+
+       * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
+       TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
+       Abort on gimplified cases.
+
+2004-08-16  James E Wilson  <wilson@specifixinc.com>
+
+       * tree.h (VECTOR_FLOAT_TYPE_P): New.
+       (FLOAT_TYPE_P): Use it.
+       * c-typeck.c (build_binary_op): After convert calls, check for
+       check for ERROR_MARK operands.
+
+2004-08-16  Zack Weinberg  <zack@codesourcery.com>
+
+       * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
+       (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
+       (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
+       (genobjs static pattern rule): Remove %.c dependency.
+       ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
+       Rename rules; delete commands; fix dependencies.
+       (mostlyclean): Do not delete temporary source copies.
+       * configure.ac: Delete all references to BUILD_PREFIX and
+       BUILD_PREFIX_1.
+       * configure: Regenerate.
+
+       * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
+       Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
+       basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
+       with #ifndef GENERATOR_FILE so that nothing from those headers
+       is used.
+
+       * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
+
+2004-08-16  Adam Nemet  <anemet@lnxw.com>
+
+       * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
+
+2004-08-16  Andrew Pinski  <apinski@apple.com>
+
+       * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
+       extraneous semicolon.
+
+2004-08-16  Devang Patel  <dpatel@apple.com>
+
+       * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
+       * print-tree.c (print_node): Print DECL_PRESERVE_P.
+       * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
+       (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
+       * target.h (struct gcc_target): New member, mark_decl_preserved.
+       * hooks.c (hook_void_charptr): Rename to ...
+       (hook_void_constcharptr): ... new name.
+       * hooks.h (hook_void_charptr): Rename to ..
+       (hook_void_constcharptr): ... new name.
+       * tree.h (DECL_PRESERVE_P): New #define.
+       (struct tree_decl): New member, preserve_flag.
+       * varasm.c (assemble_start_function): Mark decl preserved.
+       (assemble_variable): Same.
+       * darwin.c (darwin_mark_decl_preserved): New function.
+       * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
+       * darwin-protos.h (darwin_mark_decl_preserved): New decl.
+       * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
+
+2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       * c-decl.c (grokdeclarator): Allow for function definition where
+       innermost declarator has attributes.
+
+2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
+
+       * except.c (get_exception_filter, build_post_landing_pads,
+       dw2_build_landing_pads): Use target-specific mode for 'filter'.
+       * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
+       * target.h (eh_return_filter_mode): New field added.
+       * targhooks.c (default_eh_return_filter_mode): Defined.
+       * targhooks.h (default_eh_return_filter_mode): Declared.
+       * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
+
+2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
+       ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
+       * configure: Regenerate.
+
+2004-08-16  Stan Shebs  <shebs@apple.com>
+
+       Basic support for 64-bit Darwin.
+       * config/darwin.c (macho_indirect_data_reference): Add DImode case.
+       (machopic_legitimize_pic_address): Similarly, plus use Pmode
+       instead of SImode.
+       * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
+       (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
+       (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
+       (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
+       (PROCESSOR_DEFAULT64): Define.
+       * config/rs6000/darwin.md: New file, patterns specific to 64-bit
+       Darwin.
+       * config/rs6000/rs6000.md: Include darwin.md.
+       (builtin_setjmp_receiver): Add DImode case.
+       * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
+       Darwin.
+       (TARGET_ASM_ALIGNED_DI_OP): Ditto.
+       (rs6000_emit_move): Add DImode case to Darwin bits.
+       (machopic_output_stub): Use .quad if 64-bit.
+       * invoke.texi: Document -m32 and -m64.
+
+2004-08-16  Janis Johnson  <janis187@us.ibm.com>
+
+       * doc/extend.texi (AltiVec builtins): Document additional differences
+       from the Motorola AltiVec PIM.
+
+2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
+       * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
+       (struct tree_common): Update public_flag documentation.
+
+2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
+
+       * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
+       Check for artificial variables, not is_gimple_tmp_var.
+       * tree-ssa-live.c (var_union): Likewise.
+
+2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * calls.c (load_register_parameters): Remove spurious FIXME token.
+
 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
 
        * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
        (c-lang.o): Depend on c-objc-common.h.
-       (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and 
+       (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
        c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
        * c-lang.c: Include c-objc-common.h.
        (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
        LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
        LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
-       LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P, 
-       LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE, 
+       LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
+       LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
        LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
        LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
-       LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME, 
+       LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
        LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
        LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
        LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
        * tree-ssa-loop-niter.c (number_of_iterations_cond,
        loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
        Likewise.
-       
+
        * config/alpha/alpha.c (alpha_initialize_trampoline,
        alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
        * config/arm/arm.c (arm_get_cookie_size): Likewise.
        Likewise.
        * config/xtensa/xtensa.c (xtensa_va_start,
        xtensa_gimplify_va_arg_expr): Likewise.
-       
+
        * objc/objc-act.c (build_objc_string_object,
        build_objc_symtab_template, init_def_list, init_objc_symtab,
        init_module_descriptor, generate_static_references,
        hard_fp_register_operand, hard_int_register_operand,
        reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
        samegp_function_operand, direct_call_operand, small_symbolic_operand,
-       global_symbolic_operand, call_operand, symbolic_operand, 
+       global_symbolic_operand, call_operand, symbolic_operand,
        dtp16_symbolic_operand, dtp32_symbolic_operand,
        gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
        gottp_symbolic_operand, alpha_comparison_operator,
        * config/i386/xmmintrin.h: Include <mm_malloc.h>.
 
 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
-           Tanguy FautrÃ\83  <tfautre@pandora.be>
+           Tanguy Fautrà <tfautre@pandora.be>
 
        * config/i386/pmm_malloc.h: New file.