OSDN Git Service

* defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index df8f0ed..8afa6d1 100644 (file)
@@ -1,3 +1,226 @@
+2009-11-04  Nick Clifton  <nickc@redhat.com>
+
+       * defaults.h (CONSTANT_ADDRESS_P): Provide a default definition.
+       Make sure that it does not allow CONST_DOUBLEs.
+       * doc/tm.texi (CONSTANT_ADDRESS_P): Update description.
+       * config/avr/avr.h (CONSTANT_ADDRESS_P): Delete.
+       * config/bfin/bfin.h (CONSTANT_ADDRESS_P): Delete.
+       * config/cris/cris.h (CONSTANT_ADDRESS_P): Delete.
+       * config/fr30/fr30.h (CONSTANT_ADDRESS_P): Delete.
+       * config/frv/frv.h (CONSTANT_ADDRESS_P): Delete.
+       * config/m32c/m32c.h (CONSTANT_ADDRESS_P): Delete.
+       * config/m68hc11/m68hc11.h (CONSTANT_ADDRESS_P): Delete.
+       * config/mep/mep.h (CONSTANT_ADDRESS_P): Delete.
+       * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Delete.
+       * config/moxie/moxie.h (CONSTANT_ADDRESS_P): Delete.
+       * config/pdp11/pdp11.h (CONSTANT_ADDRESS_P): Delete.
+       * config/picochip/picochip.h (CONSTANT_ADDRESS_P): Delete.
+       * config/score/score.h (CONSTANT_ADDRESS_P): Delete.
+       * config/stormy16/stormy16.h (CONSTANT_ADDRESS_P): Delete.
+
+2009-11-04  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/41919
+       * tree-vrp.c (test_for_singularity): Properly compare values.
+
+2009-11-04  Revital Eres  <eres@il.ibm.com>
+
+       * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
+       Consider peeling for alignment only for stores and remove
+       redundant assignment.
+
+2009-11-04  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+       PR target/41302
+       * config/m68k/m68k.c (m68k_reg_present_p): New static function.
+       (m68k_ok_for_sibcall_p): Handle different result return locations.
+
+2009-11-04  Richard Guenther  <rguenther@suse.de>
+
+       * c-opts.c (c_common_post_options): Move LTO option processing
+       code ...
+       * opts.c (decode_options): ... here.
+
+2009-11-04  Jakub Jelinek  <jakub@redhat.com>
+
+       * c-common.c (fold_offsetof_1): Use %wd instead of
+       HOST_WIDE_INT_PRINT_DEC.
+
+2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Don't define
+       __pic__ or __PIC__.
+
+2009-11-04  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * config.gcc (vax-*-linux*): Keep the original contents of
+       tmake_file while adding vax/t-linux.
+
+2009-11-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/10127
+       PR ada/20548
+       * expr.h (STACK_CHECK_PROBE_INTERVAL): Delete.
+       (STACK_CHECK_PROBE_INTERVAL_EXP): New macro.
+       (STACK_CHECK_MOVING_SP): Likewise.
+       * system.h (STACK_CHECK_PROBE_INTERVAL): Poison it.
+       * doc/tm.texi (Stack Checking): Delete STACK_CHECK_PROBE_INTERVAL.
+       Document STACK_CHECK_PROBE_INTERVAL_EXP and STACK_CHECK_MOVING_SP.
+       * doc/md.texi (Standard Pattern Names): Tweak entry of CHECK_STACK.
+       Document PROBE_STACK.
+       * explow.c (anti_adjust_stack_and_probe): New function.
+       (allocate_dynamic_stack_space): Do not directly allocate space if
+       STACK_CHECK_MOVING_SP, instead invoke above function.
+       (emit_stack_probe): Handle probe_stack insn.
+       (PROBE_INTERVAL): New macro.
+       (STACK_GROW_OPTAB): Likewise.
+       (STACK_GROW_OFF): Likewise.
+       (probe_stack_range): Use Pmode and memory_address consistently.  Fix
+       loop condition in the small constant case.  Rewrite in the general
+       case to be immune to wraparounds.  Make sure the address of probes
+       is valid.  Try to use [base + disp] addressing mode if possible.
+       * ira.c (setup_eliminable_regset): Set frame_pointer_needed if stack
+       checking is enabled and STACK_CHECK_MOVING_SP.
+       * rtlanal.c (may_trap_p_1) <MEM>: If stack checking is enabled,
+       return 1 for volatile references to the stack pointer.
+       * tree.c (build_common_builtin_nodes): Do not set ECF_NOTHROW on
+       __builtin_alloca if stack checking is enabled.
+       * unwind-dw2.c (uw_identify_context): Take into account whether the
+       context is that of a signal frame or not.
+       * config/i386/linux.h (STACK_CHECK_MOVING_SP): Define to 1.
+       * config/i386/linux64.h (STACK_CHECK_MOVING_SP): Likewise.
+
+2009-11-03  Jakub Jelinek  <jakub@redhat.com>
+
+       PR rtl-optimization/41917
+       * rtlanal.c (num_sign_bit_copies1) <case UMOD>: If sign bit of second
+       operand isn't known to be 0, return 1.
+
+2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/mips/mips.md: Fix typos.
+
+2009-11-03  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * doc/invoke.texi: Fix typo.
+
+2009-11-03  Paul Brook  <paul@codesourcery.com>
+
+       * config/arm/neon.ml (vectype): Add T_floatSF.
+       (string_of_vectype): Ditto.
+       * config/arm/neon-gen.ml (signed_ctype): Add T_floatSF.
+       (deftypes): Use float for float32_t.
+       * config/arm/arm_neon.h: Regenerate.
+
+2009-11-03  Nick Clifton  <nickc@redhat.com>
+           Kevin Buettner  <kevinb@redhat.com>
+
+       * config/rx/predicates.md (rx_store_multiple_vector): Reverse
+       order of expected registers.
+       (rx_load_multiple_vector): Likewise.
+       (rx_rtsd_vector): Likewise.
+       * config/rx/rx.c (rx_cpu_type): New variable.
+       (rx_print_operand): Fix bug printing 64-bit constant values.
+       (rx_emit_stack_pushm): Reverse order of pushed registers.
+       (gen_rx_store_vector): Likewise.
+       (is_fast_interrupt_func): Only accept "fast_interrupt" as the
+       attribute name.
+       (is_exception_func): Rename to is_interrupt_func and only accept
+       "interrupt" as the attribute name.
+       (rx_get_stack_layout): Use new function name.
+       (rx_func_attr_inlinable): Likewise.
+       (rx_attribute_table): Remove "exception".
+       (rx_expand_prologue): If necessary push the accumulator register
+       in the prologue of interrupt functions.
+       (rx_expand_epilogue): If necessary pop the accumulator.
+       (rx_builtins): Add RX_BUILTIN_MVTIPL.
+       (rx_expand_builtin_stz): Remove.
+       (rx_expand_builtin_mvtipl): New function.
+       (rx_init_builtins): Handle RX_BUILTIN_MVTIPL.
+       (rx_expand_builtin): Likewise.
+       (rx_enable_fpu): New variable.
+       (rx_handle_option): Handle -fpu, -nofpu, -mcpu and -patch.
+       * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Assert machine based
+       on rx_cpu_type.  Define __RX_FPU_INSNS__ if FPU insns are allowed.
+       (enum rx_cpu_types): Define.
+       (ASM_SPEC): Pass -m32bit-doubles on to assembler.
+       (INCOMING_FRAME_SP_OFFSET): Define.
+       (ARG_POINTER_CFA_OFFSET): Define.
+       (FRAME_POINTER_CFA_OFFSET): Define.
+       (OVERRIDE_OPTIONS): Enable fast math if RX FPU insns are enabled.
+       (ALLOW_RX_FPU_INSNS): Define.
+       * config/rx/rx.md: Test ALLOW_RX_FPU_INSNS instead of
+       fast_math_flags_set_p.
+       (UNSPEC_BUILTIN_MVTIPL): Define.
+       (revl): Rename to bswapsi2.
+       (bswaphi2): New pattern.
+       (mvtachi): Mark as volatile because it uses a register unknown to GCC.
+       (mvtaclo): Likewise.
+       (racw): Likewise.
+       (mvtc): Remove clobber of cc0.
+       (mvtcp): Delete.
+       (opecp): Delete.
+       * config/rx/rx.opt (mieee): Remove.
+       (fpu): Add.
+       (nofpu): Add.
+       (mcpu=): Add.
+       (patch=): Add.
+       (msave-acc-in-interrupts): Add.
+       * config/rx/t-rx (MULTILIB_OPTIONS): Change default to 64bit doubles.
+       (MULTILIB_DIRS): Likewise.
+       (MULTILIB_MATCHES): Treat -fpu as an alias for -m32bit-doubles.
+       * doc/extend.texi: Remove description of "exception" function
+       attribute.
+       * doc/invoke.texi: Document -fpu, -nofpu, -mcpu=, -patch= and
+       -msave-acc-in-interrupts options.
+
+2009-11-03  Richard Guenther  <rguenther@suse.de>
+
+       * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC.
+
+2009-11-03  Dodji Seketeli  <dodji@redhat.com>
+
+       PR c++/38699
+       * c-common.c (fold_offsetof_1): Issue errors when the member designator
+       of the offsetof expression is not legitimate.
+
+2009-11-03  Uros Bizjak  <ubizjak@gmail.com>
+
+       * config/i386/i386.md (*call_value_1_rex64_ms_sysv): Use register
+       names instead of numerical constants.
+       (sse_prologue_save): Ditto.
+       (*sse_prologue_save_insn): Ditto.
+
+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-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       PR tree-optimization/41857
+       * tree-flow.h (rewrite_use_address): Add BASE_HINT argument.
+       * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass base hint
+       to create_mem_ref.
+       * tree-ssa-address.c (move_hint_to_base): New function.
+       (most_expensive_mult_to_index): Add TYPE argument.  Use mode and
+       address space associated with TYPE.
+       (addr_to_parts): Add TYPE and BASE_HINT arguments.  Pass TYPE to
+       most_expensive_mult_to_index.  Call move_hint_to_base.
+       (create_mem_ref): Add BASE_HINT argument.  Pass BASE_HINT and
+       TYPE to addr_to_parts.
+
 2009-11-02  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/41750
 
        * config/mn10300/mn10300.c (mn10300_function_value): Make static, add
        new 'outgoing' argument.
-       (mn10300_libcall_value, mn10300_function_value_regno_p): New
-       functions.
+       (mn10300_libcall_value, mn10300_function_value_regno_p): New functions.
        (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Declare.
        * config/mn10300/mn10300.h: (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
        LIBCALL_VALUE): Remove.
        PR target/38018
        * doc/tm.texi (OVERRIDE_OPTIONS): Update.
        (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
-       * optc-gen.awk (cl_target_option_restore): Include call to 
+       * optc-gen.awk (cl_target_option_restore): Include call to
        targetm.override_options_after_change.
        * target-def.h (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
        * target.h (override_options_after_change): New.
 2009-10-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
        * config/arm/arm.c (find_best_start): Fix type of remainder to be
-       unsigned .
+       unsigned.
 
 2009-10-29  Martin Jambor  <mjambor@suse.cz>
 
 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
 
        * doc/invoke.texi: Rename -use-linker-plugin -fuse-linker-plugin.
-       
+
 2009-10-28  Rafael Avila de Espindola  <espindola@google.com>
 
        * dbxout.c (dbxout_common_check): Accept non public trees.