+2008-01-26 Zdenek Dvorak <ook@ucw.cz>
+
+ PR target/34711
+ * tree-ssa-loop-ivopts.c (comp_cost): New type.
+ (zero_cost, infinite_cost): New constants.
+ (struct cost_pair): Change type of cost to comp_cost.
+ (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
+ (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
+ New functions.
+ (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
+ split_address_cost, ptr_difference_cost, difference_cost,
+ get_computation_cost_at, get_computation_cost,
+ determine_use_iv_cost_generic, determine_use_iv_cost_address,
+ determine_use_iv_cost_condition, determine_use_iv_costs,
+ cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
+ iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
+ iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
+ Change type of cost to comp_cost.
+ (determine_iv_cost): Increase cost of non-original ivs, instead
+ of decreasing the cost of original ones.
+ (get_address_cost): Indicate the complexity of the addressing mode
+ in comp_cost.
+ (try_add_cand_for): Prefer using ivs not specific to some object.
+ * tree-flow.h (force_expr_to_var_cost): Declaration removed.
+
+2007-01-26 Peter Bergner <bergner@vnet.ibm.com>
+ Janis Johnson <janis187@us.ibm.com>
+
+ PR target/34814
+ * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
+ (TARGET_INSTANTIATE_DECLS): Likewise.
+ * target.h (expand_to_rtl_hook): New target hook.
+ (instantiate_decls): Likewise.
+ * function.c (instantiate_decl): Make non-static. Rename to...
+ (instantiate_decl_rtl): ... this.
+ (instantiate_expr): Use instantiate_decl_rtl.
+ (instantiate_decls_1): Likewise.
+ (instantiate_decls): Likewise.
+ (instantiate_virtual_regs: Call new instantiate_decls taget hook.
+ * function.h (instantiate_decl_rtl): Add prototype.
+ * cfgexpand.c (target.h): New include.
+ (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
+ * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
+ (TARGET_INSTANTIATE_DECLS): Likewise.
+ (TARGET_INITIALIZER): New target hooks added.
+ * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
+ New prototype.
+ * config/rs6000/rs6000.c (tree-flow.h): New include.
+ (machine_function): Add sdmode_stack_slot field.
+ (rs6000_alloc_sdmode_stack_slot): New function.
+ (rs6000_instantiate_decls): Likewise.
+ (rs6000_secondary_memory_needed_rtx): Likewise.
+ (rs6000_check_sdmode): Likewise.
+ (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
+ (TARGET_INSTANTIATE_DECLS): Likewise.
+ (rs6000_hard_regno_mode_ok): Allow SDmode.
+ (num_insns_constant): Likewise. Handle _Decimal32 constants.
+ (rs6000_emit_move): Handle SDmode.
+ (function_arg_advance): Likewise.
+ (function_arg): Likewise.
+ (rs6000_gimplify_va_arg): Likewise. Add special handling of
+ SDmode var args for 32-bit compiles.
+ (rs6000_secondary_reload_class): Handle SDmode.
+ (rs6000_output_function_epilogue): Likewise.
+ (rs6000_function_value): Simplify if statement.
+ (rs6000_libcall_value): Likewise.
+ * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
+ (SECONDARY_MEMORY_NEEDED_RTX): Add define.
+ * config/rs6000/dfp.md (movsd): New define_expand and splitter.
+ (movsd_hardfloat): New define_insn.
+ (movsd_softfloat): Likewise.
+ (movsd_store): Likewise.
+ (movsd_load): Likewise.
+ (extendsddd2): Likewise.
+ (extendsdtd2): Likewise.
+ (truncddsd2): Likewise.
+ (movdd_hardfloat64): Fixup comment.
+ (UNSPEC_MOVSD_LOAD): New constant.
+ (UNSPEC_MOVSD_STORE): Likewise.
+
+2008-01-26 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/34965
+ * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
+ TRUTH_XOR_EXPR.
+ (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
+ (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
+ (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
+ and TRUTH_XOR_EXPR.
+
+2008-01-26 David Edelsohn <edelsohn@gnu.org>
+
+ PR target/34794
+ * config.gcc: Separate AIX 5.3 from AIX 6.1.
+ * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
+ __LONGDOUBLE128 too.
+ * config/rs6000/aix61.h: New file.
+
+2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
+
+ PR rtl-optimization/34959
+ * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
+ popcount and parity rtxes the same mode as their operand.
+ Truncate or extend the result to the return value's mode
+ if necessary.
+
+2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
+
+ PR target/34981
+ * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
+ * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
+ to GOT_VERSION_REGNUM.
+ (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
+ (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
+ * config/mips/mips.c (mips_emit_call_insn): New function.
+ (mips_call_tls_get_addr): Call mips_expand_call directly.
+ (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
+ emit_call_insn.
+ (mips16_build_call_stub): Likewise. Return the call insn or null.
+ (mips_expand_call): Update the call to mips16_build_call_stub
+ accordingly and a remove redundant condition. Assert that MIPS16
+ stubs do not use lazy binding. Use mips_emit_call_insn and return
+ the call insn.
+ (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
+ TARGET_USE_GOT.
+ (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
+ (mips_avoid_hazard): Remove hazard_set handling.
+ * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
+ (UNSPEC_RESTORE_GP): ...this.
+ (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
+ (FAKE_CALL_REGNO): Rename to...
+ (GOT_VERSION_REGNUM): ...this.
+ (type): Add "ghost" value. Add an associated insn reservation.
+ (hazard_set): Remove.
+ (exception_receiver): Rename to...
+ (restore_gp): ...this and update the unspec identifier accordingly.
+ (exception_receiver, nonlocal_got_receiver): New expanders.
+ (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
+ FAKE_CALL_REGNO. Remove hazard_set attribute.
+ (set_got_version, update_got_version): New patterns.
+
+2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR target/34970
+ * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
+
+2008-01-25 Joseph Myers <joseph@codesourcery.com>
+
+ PR other/31955
+ * doc/install.texi2html: Generate gcc-vers.texi.
+
+2008-01-25 DJ Delorie <dj@redhat.com>
+
+ * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
+
+2008-01-25 Joseph Myers <joseph@codesourcery.com>
+
+ * config/c4x: Remove directory.
+ * config.gcc (crx-*, mt-*): Mark obsolete.
+ (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
+ h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
+ sh-*-rtemscoff*): Remove cases.
+ * defaults.h (C4X_FLOAT_FORMAT): Remove.
+ * real.c (encode_c4x_single, decode_c4x_single,
+ encode_c4x_extended, decode_c4x_extended, c4x_single_format,
+ c4x_extended_format): Remove.
+ * real.h (c4x_single_format, c4x_extended_format): Remove.
+ * doc/extend.texi (interrupt, naked): Remove mention of attributes
+ on C4x.
+ (Pragmas): Remove comment about c4x pragmas.
+ * doc/install.texi (c4x): Remove target-specific instructions.
+ * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
+ * doc/md.texi (Machine Constraints): Remove C4x documentation.
+ * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
+ refer to C4x source files as examples.
+ (C4X_FLOAT_FORMAT): Remove documentation.
+
+2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * config/bfin/bfin.c (override_options): Reorder tests so that
+ flag_pic gets enabled for -msep-data.
+
+2008-01-25 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/32244
+ * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
+ to its bitfield precision if required.
+
+2008-01-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/33880
+ * tree-nested.c (walk_omp_for): New function.
+ (convert_nonlocal_reference, convert_local_reference): Call
+ walk_omp_for on OMP_FOR.
+ (convert_call_expr): Call walk_body on OMP_FOR's
+ OMP_FOR_PRE_INIT_BODY.
+
+2008-01-25 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/34966
+ * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
+ default defs and PHI_NODEs we have to insert after the
+ defining statement.
+
+2008-01-24 Nick Clifton <nickc@redhat.com>
+
+ * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
+ Provide a default definition.
+ (LIBGCC2_UNITS_PER_WORD): Likewise.
+
+ * config/stormy16/stormy16.c: Include df.h for the prototype
+ for df_regs_ever_live_p.
+ (xstormy16_expand_builtin_va_start): Convert the stack offset
+ into a component_ref and then use POINTER_PLUS_EXPR to add it
+ to the incoming_virtual_args_rtx.
+ (xstormy16_gimplify_va_arg_expr): Rename to
+ xstormy16_gimplify_va_arg_expr.
+ Use POINTER_PLUS_EXPR when performing pointer arithmetic.
+ (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
+ xstormy16_gimplify_va_arg_expr.
+ Fix up some formatting issues.
+
+ * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
+ Move to predicates.md.
+ (xs_hi_general_operand): Likewise.
+ (xs_hi_nonmemory_operand): Likewise.
+ * config/stormy16/predicates.md:
+ (xstormy16_carry_plus_operand): New predicate.
+ (xs_hi_general_operand): New predicate.
+ (xs_hi_nonmemory_operand): New predicate.
+ * config/stormy16/stormy16-protos.h:
+ (xstormy16_carry_plus_operand): Delete prototype.
+ (xs_hi_general_operand): Likewise.
+ (xs_hi_nonmemory_operand): Likewise.
+
+ * config/storm16/stormy16.md (addhi3): Remove earlyclobber
+ modifiers as they are no longer needed and they can trigger
+ reload spill failures.
+
+ * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
+ with a match_operand in order to help reload.
+
+ * config/storm16/stormy16.md (movhi_internal): Replace 'r'
+ constraint with 'e' for the 8th alternative as this version of
+ the mov.w instruction only accepts the lower 8 registers.
+
+2008-01-25 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/34856
+ * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
+ Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
+ vector elements.
+
+2008-01-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/33333
+ * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
+
+2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
+
+ * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
+ New functions.
+ (remove_structure): Update allocations list before removing structure.
+
+2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
+
+ * ipa-struct-reorg.c (is_safe_cond_expr,
+ create_new_stmts_for_cond_expr): Use integer_zerop function,
+ that recognize not only zero-pointer, but zero-integer too.
+
+2008-01-25 Ben Elliston <bje@au.ibm.com>
+
+ PR other/22232
+ * fixproto: Escape "." in sed expression that strips leading "./".
+
+2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR driver/34904
+ * gcc.c (SWITCH_OK): Removed.
+ (SWITCH_LIVE): Changed to bit.
+ (SWITCH_FALSE): Likewise.
+ (SWITCH_IGNORE): Likewise.
+ (switchstr): Change live_cond to unsigned int.
+ (process_command): Replace SWITCH_OK with 0.
+ (do_self_spec): Likewise.
+ (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
+ (give_switch): Likewise.
+ (used_arg): Likewise.
+ (do_spec_1): Set the SWITCH_IGNORE bit.
+ (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
+ bits. Set the SWITCH_LIVE bit.
+
+2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
+
+ * config/s390/s390.h (MOVE_RATIO): Define new target macro.
+
+2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
+
+ PR tree-optimization/34472
+ * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
+ parameter to a "bool *" and set *DATA to false if there is
+ an unsafe access. Do not delete the structure here.
+ (check_cond_exprs): Delete it here instead.
+ (check_cond_exprs, exclude_cold_structs): Do not increase
+ I when removing a structure.
+
+2008-01-24 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/34856
+ * config/i386/i386.c (ix86_expand_vector_init): Consider only
+ CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
+
+2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
+
+ PR middle-end/34934
+ * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
+ a fixed vector for stack.
+
+2008-01-24 Ben Elliston <bje@au.ibm.com>
+
+ PR c++/25701
+ * doc/gcc.texi (Software development): Add a direntry for g++.
+
+2008-01-23 Hans-Peter Nilsson <hp@axis.com>
+
+ * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
+ stale and straggling -fforce-addr comments above.
+
+ * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
+ define.
+ * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
+ * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
+
+2008-01-23 Michael Matz <matz@suse.de>
+
+ PR debug/34895
+ * dwarf2out.c (force_type_die): Use modified_type_die instead of
+ gen_type_die.
+
+2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
+
+ * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
+ malloc result type.
+
+2008-01-23 Anatoly Sokolov <aesok@post.ru>
+
+ * config/avr/avr.c (avr_current_arch): New variable.
+ (avr_arch_types): Add 'avr31' and 'avr51' entries.
+ (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
+ (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
+ (avr_override_options): Init 'avr_current_arch'.
+ (base_arch_s): Move from here...
+ * config/avr/avr.h (base_arch_s): ... here. Add new members
+ 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
+ 'mega' to 'have_jmp_call'.
+ (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
+ "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
+ macros.
+ (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
+ architectures.
+ * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
+ MULTILIB_MATCHES): (Ditto.).
+
+2008-01-23 Richard Guenther <rguenther@suse.de>
+
+ PR middle-end/31529
+ * cgraphunit.c (cgraph_reset_node): Always mark the node
+ not reachable if it is not queued already.
+
+2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
+ * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
+ (cputype_selected): New static variable.
+ (bfin_handle_option): Set it if -mcpu is used.
+ (override_option): Select default set of workarounds if no cpu type
+ selected on the command line.
+ (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
+
+ From Michael Frysinger <michael.frysinger@analog.com>
+ * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
+ BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
+
+ * config/bfin/elf.h (LIB_SPEC): Use proper linker script
+ for bf547, bf523, bf524, and bf526.
+ * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
+ bf526.
+ * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
+ __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
+ __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
+ __ADSPBF547__ and __ADSPBF54x__ for bf547.
+ * doc/invoke.texi (Blackfin Options): Document that
+ -mcpu now accept bf547, bf523, bf524, and bf526.
+
+2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
+
+ PR rtl-optimization/34628
+ * combine.c (try_combine): Stop and undo after the first combination
+ if an autoincrement side-effect on the first insn has effectively
+ been lost.
+
+2008-01-22 David Edelsohn <edelsohn@gnu.org>
+
+ PR target/34529
+ * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
+ Offset addresses are not valid for Altivec or paired float modes.
+
2008-01-22 Jakub Jelinek <jakub@redhat.com>
+ PR c++/34607
+ * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
+ if DECL_INITIAL (decl) is error_mark_node.
+
+ PR c++/34914
+ * c-common.c (handle_vector_size_attribute): Only allow
+ integral, scalar float and fixed point types. Handle OFFSET_TYPE
+ the same way as pointer, array etc. types.
+ * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
+
PR c++/34917
* tree.c (build_type_attribute_qual_variant): Call
build_qualified_type if attributes are equal, but quals are not.