OSDN Git Service

PR c++/18001
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
index 82a31f1..0f8ebea 100644 (file)
@@ -1,3 +1,288 @@
+2004-11-25  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/18001
+       * c-common.h (lvalue_use): Move here from c-ctypeck.c.
+       (lvalue_or_else): Declare.
+       * c-common.c (lvalue_or_else): Move here from c-typeck.c.
+       * c-typeck.c (lvalue_use): Remove.
+       (lvalue_or_else): Remove.
+
+       PR c++/18556
+       * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
+       unemitted variables with static storage duration.
+
+2004-11-25  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
+       message with \n.
+
+2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * config/rs6000/altivec.md (VIshort): New mode macro.
+       (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
+       with ...
+       (altivec_vaddu<VI_char>s): ... this.
+       (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
+       with ...
+       (altivec_vadds<VI_char>s): ... this.
+       (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
+       with ...
+       (altivec_vsubu<VI_char>s): ... this.
+       (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
+       with ...
+       (altivec_vsubs<VI_char>s): ... this.
+       (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
+       with ...
+       (altivec_vavgu<VI_char>): ... this.
+       (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
+       with ...
+       (altivec_vavgs<VI_char>): ... this.
+       (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
+       (altivec_vmsumu<VI_char>m): ... this.
+       (altivec_vmsummbm, altivec_vmsummhm): Replace
+       with ...
+       (altivec_vmsumm<VI_char>m): ... this.
+       (altivec_vandc): Remove.
+       (*andc<mode>3): Renamed to ...
+       (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
+       (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
+       with ...
+       (altivec_vrl<VI_char>): ... this.
+       (altivec_vslb, altivec_vslh, altivec_vslw): Replace
+       with ...
+       (altivec_vsl<VI_char>): ... this.
+       (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
+       with ...
+       (altivec_vsr<VI_char>): ... this.
+       (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
+       with ...
+       (altivec_vsra<VI_char>): ... this.
+       (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
+       (altivec_vsum4s<VI_char>s): ... this.
+       (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
+       with ...
+       (altivec_vperm_<mode>): ... this.
+       (altivec_vsel_4sf): Rename to ...
+       (altivec_vsel_v4sf): ... here.
+       (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
+       with ...
+       (altivec_vsel_<mode>): ... this.
+       (altivec_vsldoi_4si, altivec_vsldoi_8hi,
+       altivec_vsldoi_16qi): Rename to ...
+       (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
+       altivec_vsldoi_v16qi): ... here.
+       (altivec_vsldoi_4sf): Rename to ...
+       (altivec_vsldoi_v4sf): ... here.
+       (altivec_predicate_v4si, altivec_predicate_v8hi,
+       altivec_predicate_v16qi): Replace with ...
+       (altivec_predicate_<mode>): ... this.
+       (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
+       with ...
+       (altivec_lve<VI_char>x): ... this.
+       (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
+       with ...
+       (altivec_stve<VI_char>x): ... this.
+       (absv16qi2, absv8hi2, absv4si2): Replace
+       with ...
+       (abs<mode>2): ... this.
+       (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
+       with ...
+       (altivec_abss_<mode>): ... this.
+       (vec_realign_load_v16qi, vec_realign_load_v8hi,
+       vec_realign_load_v4si): Replace with ...
+       (vec_realign_load_<mode>): ... this.
+       * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
+       insn names.
+       (rs6000_expand_ternop_builtin): Likewise.
+
+2004-11-25  Andrew Haley  <aph@redhat.com>
+
+       * gcc.c (process_command): Don't supply -v to linker.
+
+2004-11-25  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
+       instead of `%s' in diagnostic.
+
+2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
+       (FREE_REG_SET): Adjust.
+       * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
+       * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
+       (BITMAP_ALLOC): ... here.
+       (BITMAP_OBSTACK_FREE): Rename to ...
+       (BITMAP_FREE): Don't check for NULL bitmap here.
+       * tree-ssa-pre.c (value_insert_into_set_bitmap,
+       bitmap_set_new): Use new names.
+
+       * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
+       * df.c (df_free): Likewise.
+       * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
+       * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
+
+       * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
+       (ALLOC_REG_SET): ... here.
+       (FREE_REG_SET): Adjust.
+       (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
+       * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
+       * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
+       * cfgrtl.c (rtl_split_block, rtl_split_edge,
+       safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
+       * flow.c (update_life_info, calculate_global_regs_live,
+       allocate_bb_life_data, init_propagate_block_info): Adjust.
+       * global.c (build_insn_chain): Adjust.
+       * ifcvt.c (dead_or_predicable): Adjust.
+       * loop-iv.c (simplify_using_initial_values): Adjust.
+       * recog.c (peephole2_optimize): Adjust.
+       * sched-deps.c (init_deps_global): Adjust.
+
+2004-11-25  Ralf Corsepius <ralf.corsepius@rtems.org>
+
+       * config.gcc (avr-*-rtems*): Fix typo.
+
+2004-11-25  J"orn Rennecke <joern.rennecke@st.com>
+
+       * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
+
+2004-11-24  Jeff Law  <law@redhat.com>
+
+       * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
+       the number of queries to random elements in the ai->written_vars
+       bitmap.
+
+2004-11-24  Roger Sayle  <roger@eyesopen.com>
+
+       * config/i386/i386.c (override_options): Disable x87 fancy math
+       intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
+
+2004-11-24  Roger Sayle  <roger@eyesopen.com>
+
+       * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
+       system header conflict on AIX 5.2.
+       * configure: Regenerate.
+
+2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
+       instead of calling phi_arg_from_edge.
+
+       * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
+       with e->dest_idx.
+
+2004-11-24  Ben Elliston  <bje@au.ibm.com>
+
+       * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
+       * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
+       * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
+       Likewise.
+       
+2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
+
+       * tree-inline.c (copy_body_r): Explicitly copy a constant if the
+       type will be remapped.
+
+2004-11-24  Steven Bosscher  <stevenb@suse.de>
+
+       * c-opts.c (c_common_post_options): Don't clear
+       flag_inline_functions.
+       * dojump.c (clear_pending_stack_adjust): Remove check on
+       flag_inline_functions, it's always true.
+       * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
+       that can never trigger.
+       * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
+       flag_inline_trees, now that flag_inline_functions is never
+       cleared.
+       * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
+       flag_inline_functions at optimization levels greater than
+       or equal to 3.  This is already done by default.
+
+2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
+       instead to find the PHI argument.  Do not take I as an
+       argument.
+       (eliminate_phi): Adjust the call to eliminate_build.  Do not
+       take I as an argument.
+       (rewrite_trees): Adjust the call to eliminate_phi.
+
+2004-11-24  Richard Sandiford  <rsandifo@redhat.com>
+
+       * optabs.h (force_expand_binop): Declare.
+       * optabs.c (force_expand_binop): Export.
+       * stmt.c (shift_return_value): Delete.
+       (expand_return): Don't call it.
+       * expr.h (shift_return_value): Declare.
+       * calls.c (shift_returned_value): Delete in favor of...
+       (shift_return_value): ...this new function.  Leave the caller to check
+       for non-BLKmode values passed in the msb of a register.  Take said mode
+       and a shift direction as argument.  Operate on the hard function value,
+       not a pseudo.
+       (expand_call): Adjust accordingly.
+       * function.c (expand_function_start): If a non-BLKmode return value
+       is padded at the last significant end of the return register, use the
+       return value's natural mode for the DECL_RESULT, not the mode of the
+       padded register.
+       (expand_function_end): Shift the same sort of return values left by
+       the appropriate amount.
+
+2004-11-24  Matt Austern  <austern@apple.com>
+
+       * recog.c (recog_memoized_1): Remove.
+       * recog.h (recog_memoized_1): Remove declaration.
+       (recog_memoized): Change from macro to inline function.
+       
+2004-11-24  Devang Patel  <dpatel@apple.com>
+
+       PR/18555
+       * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
+       * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
+
+2004-11-24  Devang Patel  <dpatel@apple.com>
+
+       * gcc.c (process_command): Supply -v to linker.
+       
+2004-11-24  David Edelsohn  <edelsohn@gnu.org>
+           Paolo Bonzini  <bonzini@gnu.org>
+
+       * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
+       vector modes without ALTIVEC_ABI.  Use GCC vector instead of
+       synthetic vector.
+       (rs6000_pass_by_reference): Split conditional into pieces.  Use
+       GCC vector instead of synthetic vector.
+
+2004-11-24  Aldy Hernandez  <aldyh@redhat.com>
+
+       * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
+       thread-local variable is invariant.
+
+2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
+       Handle TYPE_REF_CAN_ALIAS_ALL.
+       (print_declaration): Print array dimensions like dump_generic_node.
+
+       * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
+       ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
+
+2004-11-24  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * bitmap.c (INLINE): Do not define.
+       (bitmap_elem_to_freelist, bitmap_element_free,
+       bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
+       bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
+
+2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
+       find the index of a PHI argument.  Use e->dest_idx instead.
+       Replace hint with index.
+
+       * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
+       with indx.
+
 2004-11-24  Diego Novillo  <dnovillo@redhat.com>
 
        * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
 
 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
 
+       PR target/18531
        * config/rs6000/altivec.md (VI_char): New mode attribute.
        (addv16qi3, addv8hi3, addv4ai3): Replace with ...
        (add<mode>3): ... this.