1 2004-11-25 Bob Wilson <bob.wilson@acm.org>
3 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
4 __XTENSA_WINDOWED_ABI__.
6 2004-11-25 Richard Henderson <rth@redhat.com>
8 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
9 args_size adjustments for calls even with cfa as stack pointer.
10 Search calls for stack adjustments after the insn is issued.
11 (dwarf2out_frame_debug): Add after_p argument; pass it on.
12 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
13 * final.c (final_start_function, final_scan_insn): Likewise.
15 2004-11-25 Richard Henderson <rth@redhat.com>
18 * reload1.c (set_initial_eh_label_offset): New.
19 (set_initial_label_offsets): Use it.
21 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
23 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
24 before calling life_analysis and release them after.
26 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
28 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
31 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
33 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
35 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
37 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
39 parts of PR rtl-opt/18463, rtl-opt/17647
40 * cse.c (canon_for_address): New function.
41 (find_best_addr): Call canon_for_address before getting the
42 address's cost when checking if we should take that address.
44 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
46 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
47 "tree *" as the first argument.
48 * tree-flow.h: Update the prototype of add_phi_arg.
49 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
50 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
51 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
52 tree-vectorizer.c: Update all call sites of add_phi_arg.
54 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
56 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
57 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
58 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
59 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
61 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
63 PR tree-optimization/18587
64 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
65 call clobbered caches as invalid.
66 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
67 indicating whether the call clobbered operand cache is valid.
68 (ssa_ro_call_cache_valid): New. Flag indicating whether the
69 pure/const call operand cache is valid.
70 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
71 list of operands for cached call virtual operands.
72 (clobbered_aliased_loads, clobbered_aliased_stores,
73 ro_call_aliased_load): New. flags caching whether alias bits are
74 to be set in call stmt's.
75 (fini_ssa_operands): Remove call operand caches if present.
76 (get_expr_operands, get_asm_expr_operands,
77 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
78 (get_call_expr_operands): Add call clobbered variables first.
79 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
80 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
81 if it is valid, otherise fill the cache.
82 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
83 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
84 in_v_may_def_list bits.
85 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
86 in_list bits for the v_may_def elements and empty the operand
88 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
89 VUSES by checking the in_v_may_def_list bit.
90 (append_v_may_def, append_vuse): Use the in_list bit rather than
91 scanning the array for duplicates.
93 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
95 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
96 displacements are not short.
98 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
100 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
103 2004-11-25 Mark Mitchell <mark@codesourcery.com>
106 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
107 (lvalue_or_else): Declare.
108 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
109 * c-typeck.c (lvalue_use): Remove.
110 (lvalue_or_else): Remove.
113 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
114 unemitted variables with static storage duration.
116 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
118 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
121 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
123 * config/rs6000/altivec.md (VIshort): New mode macro.
124 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
126 (altivec_vaddu<VI_char>s): ... this.
127 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
129 (altivec_vadds<VI_char>s): ... this.
130 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
132 (altivec_vsubu<VI_char>s): ... this.
133 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
135 (altivec_vsubs<VI_char>s): ... this.
136 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
138 (altivec_vavgu<VI_char>): ... this.
139 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
141 (altivec_vavgs<VI_char>): ... this.
142 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
143 (altivec_vmsumu<VI_char>m): ... this.
144 (altivec_vmsummbm, altivec_vmsummhm): Replace
146 (altivec_vmsumm<VI_char>m): ... this.
147 (altivec_vandc): Remove.
148 (*andc<mode>3): Renamed to ...
149 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
150 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
152 (altivec_vrl<VI_char>): ... this.
153 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
155 (altivec_vsl<VI_char>): ... this.
156 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
158 (altivec_vsr<VI_char>): ... this.
159 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
161 (altivec_vsra<VI_char>): ... this.
162 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
163 (altivec_vsum4s<VI_char>s): ... this.
164 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
166 (altivec_vperm_<mode>): ... this.
167 (altivec_vsel_4sf): Rename to ...
168 (altivec_vsel_v4sf): ... here.
169 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
171 (altivec_vsel_<mode>): ... this.
172 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
173 altivec_vsldoi_16qi): Rename to ...
174 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
175 altivec_vsldoi_v16qi): ... here.
176 (altivec_vsldoi_4sf): Rename to ...
177 (altivec_vsldoi_v4sf): ... here.
178 (altivec_predicate_v4si, altivec_predicate_v8hi,
179 altivec_predicate_v16qi): Replace with ...
180 (altivec_predicate_<mode>): ... this.
181 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
183 (altivec_lve<VI_char>x): ... this.
184 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
186 (altivec_stve<VI_char>x): ... this.
187 (absv16qi2, absv8hi2, absv4si2): Replace
189 (abs<mode>2): ... this.
190 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
192 (altivec_abss_<mode>): ... this.
193 (vec_realign_load_v16qi, vec_realign_load_v8hi,
194 vec_realign_load_v4si): Replace with ...
195 (vec_realign_load_<mode>): ... this.
196 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
198 (rs6000_expand_ternop_builtin): Likewise.
200 2004-11-25 Andrew Haley <aph@redhat.com>
202 * gcc.c (process_command): Don't supply -v to linker.
204 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
206 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
207 instead of `%s' in diagnostic.
209 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
211 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
212 (FREE_REG_SET): Adjust.
213 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
214 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
215 (BITMAP_ALLOC): ... here.
216 (BITMAP_OBSTACK_FREE): Rename to ...
217 (BITMAP_FREE): Don't check for NULL bitmap here.
218 * tree-ssa-pre.c (value_insert_into_set_bitmap,
219 bitmap_set_new): Use new names.
221 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
222 * df.c (df_free): Likewise.
223 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
224 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
226 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
227 (ALLOC_REG_SET): ... here.
228 (FREE_REG_SET): Adjust.
229 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
230 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
231 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
232 * cfgrtl.c (rtl_split_block, rtl_split_edge,
233 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
234 * flow.c (update_life_info, calculate_global_regs_live,
235 allocate_bb_life_data, init_propagate_block_info): Adjust.
236 * global.c (build_insn_chain): Adjust.
237 * ifcvt.c (dead_or_predicable): Adjust.
238 * loop-iv.c (simplify_using_initial_values): Adjust.
239 * recog.c (peephole2_optimize): Adjust.
240 * sched-deps.c (init_deps_global): Adjust.
242 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
244 * config.gcc (avr-*-rtems*): Fix typo.
246 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
248 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
250 2004-11-24 Jeff Law <law@redhat.com>
252 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
253 the number of queries to random elements in the ai->written_vars
256 2004-11-24 Roger Sayle <roger@eyesopen.com>
258 * config/i386/i386.c (override_options): Disable x87 fancy math
259 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
261 2004-11-24 Roger Sayle <roger@eyesopen.com>
263 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
264 system header conflict on AIX 5.2.
265 * configure: Regenerate.
267 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
269 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
270 instead of calling phi_arg_from_edge.
272 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
275 2004-11-24 Ben Elliston <bje@au.ibm.com>
277 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
278 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
279 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
282 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
284 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
286 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
287 type will be remapped.
289 2004-11-24 Steven Bosscher <stevenb@suse.de>
291 * c-opts.c (c_common_post_options): Don't clear
292 flag_inline_functions.
293 * dojump.c (clear_pending_stack_adjust): Remove check on
294 flag_inline_functions, it's always true.
295 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
296 that can never trigger.
297 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
298 flag_inline_trees, now that flag_inline_functions is never
300 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
301 flag_inline_functions at optimization levels greater than
302 or equal to 3. This is already done by default.
304 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
306 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
307 instead to find the PHI argument. Do not take I as an
309 (eliminate_phi): Adjust the call to eliminate_build. Do not
310 take I as an argument.
311 (rewrite_trees): Adjust the call to eliminate_phi.
313 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
315 * optabs.h (force_expand_binop): Declare.
316 * optabs.c (force_expand_binop): Export.
317 * stmt.c (shift_return_value): Delete.
318 (expand_return): Don't call it.
319 * expr.h (shift_return_value): Declare.
320 * calls.c (shift_returned_value): Delete in favor of...
321 (shift_return_value): ...this new function. Leave the caller to check
322 for non-BLKmode values passed in the msb of a register. Take said mode
323 and a shift direction as argument. Operate on the hard function value,
325 (expand_call): Adjust accordingly.
326 * function.c (expand_function_start): If a non-BLKmode return value
327 is padded at the last significant end of the return register, use the
328 return value's natural mode for the DECL_RESULT, not the mode of the
330 (expand_function_end): Shift the same sort of return values left by
331 the appropriate amount.
333 2004-11-24 Matt Austern <austern@apple.com>
335 * recog.c (recog_memoized_1): Remove.
336 * recog.h (recog_memoized_1): Remove declaration.
337 (recog_memoized): Change from macro to inline function.
339 2004-11-24 Devang Patel <dpatel@apple.com>
342 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
343 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
345 2004-11-24 Devang Patel <dpatel@apple.com>
347 * gcc.c (process_command): Supply -v to linker.
349 2004-11-24 David Edelsohn <edelsohn@gnu.org>
350 Paolo Bonzini <bonzini@gnu.org>
352 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
353 vector modes without ALTIVEC_ABI. Use GCC vector instead of
355 (rs6000_pass_by_reference): Split conditional into pieces. Use
356 GCC vector instead of synthetic vector.
358 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
360 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
361 thread-local variable is invariant.
363 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
365 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
366 Handle TYPE_REF_CAN_ALIAS_ALL.
367 (print_declaration): Print array dimensions like dump_generic_node.
369 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
370 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
372 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
374 * bitmap.c (INLINE): Do not define.
375 (bitmap_elem_to_freelist, bitmap_element_free,
376 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
377 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
379 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
381 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
382 find the index of a PHI argument. Use e->dest_idx instead.
383 Replace hint with index.
385 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
388 2004-11-24 Diego Novillo <dnovillo@redhat.com>
390 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
393 2004-11-24 Joseph Myers <joseph@codesourcery.com>
395 * config/i386/i386.c (optimization_options): Use
396 SUBTARGET_OPTIMIZATION_OPTIONS.
397 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
398 (TARGET_SUBTARGET_DEFAULT): Don't include
399 MASK_OMIT_LEAF_FRAME_POINTER.
401 2004-11-24 Mark Mitchell <mark@codesourcery.com>
403 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
406 2004-11-24 Joseph Myers <joseph@codesourcery.com>
408 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
409 Use amd64 instead of 64.
411 2004-11-24 Mark Mitchell <mark@codesourcery.com>
412 Joseph Myers <joseph@codesourcery.com>
414 * crtstuff.c (IN_LIBGCC2): Define it.
415 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
416 instead of HAVE_LD_RO_RW_SECTION_MIXING.
417 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
418 * dwarf2out.c (named_section_eh_frame_section): Check
419 EH_TABLES_CAN_BE_READ_ONLY.
420 * except.c (default_exception_section): Likewise.
421 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
422 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
424 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
426 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
427 index of a PHI argument.
429 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
430 find_edge to find the index of a PHI argument.
432 2004-11-24 Steven Bosscher <stevenb@suse.de>
434 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
435 and LABELED_BLOCK_EXPR.
436 * gimplify.c (gimplify_labeled_block_expr): Remove.
437 (gimplify_exit_block_expr): Remove.
438 (gimplify_expr): Don't call them.
439 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
440 and LABELED_BLOCK_EXPR.
441 (estimate_num_insns_1): Likewise.
442 (walk_tree): Likewise.
443 * tree-pretty-print.c (dump_generic_node): Don't handle
444 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
445 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
446 (LABELED_BLOCK_EXPR): Likewise.
447 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
448 (LABELED_BLOCK_BODY): Likewise.
449 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
450 (EXIT_BLOCK_RETURN): Removed.
452 2004-11-24 Steven Bosscher <stevenb@suse.de>
454 * cfgrtl.c (rtl_delete_block): Fix comment.
455 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
456 or BLOCK_END insn notes.
457 * jump.c (squeeze_notes): Likewise.
458 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
459 EH_REGION_END notes, we never have them to begin with.
460 * sched-deps.c (sched_analyze_insn): When updating loop notes,
461 verify that we have indeed only recorded loop notes.
462 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
463 Only record loop notes.
465 * cfgexpand.c (tree_expand_cfg): Fix comment.
467 * passes.c (rest_of_compilation): Don't do a second call to
468 convert_from_eh_region_ranges from here, it's already called
470 * except.c (resolve_fixup_regions): Remove.
471 (remove_fixup_regions): Remove.
472 (convert_from_eh_region_ranges_1): Remove.
473 (convert_from_eh_region_ranges): Remove the case where EH is
474 not already lowered at the tree level. We always lower there.
476 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
479 * tree.c (make_vector_type): Move qualifiers to the vector type,
480 use the inner type's main variant and build a main variant for
481 the vector type if necessary.
482 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
484 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
486 * target.h (late_rtl_prologue_epilogue): Remove.
487 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
488 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
489 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
491 (rest_of_handle_flow2): ...here.
492 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
493 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
495 2004-11-23 Mark Mitchell <mark@codesourcery.com>
497 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
498 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
499 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
501 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
503 * config/i386/i386.c (override_options): Move
504 SUBTARGET_OVERRIDE_OPTIONS before defaulting
505 flag_omit_frame_pointer.
507 2004-11-23 Richard Henderson <rth@redhat.com>
509 * rtl.h (validate_subreg): Declare.
510 * emit-rtl.c (validate_subreg): New.
511 (gen_rtx_SUBREG): Use it.
512 * simplify-rtx.c (simplify_subreg): Likewise.
513 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
514 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
515 fallback whenever gen_realpart/gen_imagpart would not be able to
518 2004-11-23 Richard Henderson <rth@redhat.com>
520 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
521 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
524 2004-11-23 Diego Novillo <dnovillo@redhat.com>
526 PR tree-optimization/18618
527 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
528 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
529 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
531 (stmts_to_rescan): Likewise.
532 (const_and_copies_stack): Likewise.
533 (nonzero_vars_stack): Likewise.
534 (vrp_variables_stack): Likewise.
536 2004-11-23 Richard Henderson <rth@redhat.com>
538 * cse.c (record_jump_cond_subreg): New.
539 (record_jump_cond): Use it instead of gen_lowpart.
541 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
542 Joseph Myers <joseph@codesourcery.com>
544 * config/sol2-c.c (solaris_register_pragmas): Use
545 c_register_pragma_with_expansion.
546 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
547 * c-pragma.c (c_register_pragma): Update call to
549 (c_register_pragma_with_expansion): New function.
550 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
551 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
552 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
554 * doc/tm.texi (c_register_pragma_with_expansion,
555 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
557 2004-11-23 Richard Henderson <rth@redhat.com>
559 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
560 as mode sizes into local temporaries. Unify failure path.
562 2004-11-23 Richard Henderson <rth@redhat.com>
564 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
565 * caller-save.c (mark_set_regs): Use subreg_regno instead.
566 * final.c (alter_subreg): Likewise.
567 * local-alloc.c (reg_is_born): Likewise.
569 2004-11-23 Richard Henderson <rth@redhat.com>
571 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
572 instead of using a SUBREG temporary.
574 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
576 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
579 2004-11-23 Zack Weinberg <zack@codesourcery.com>
581 * function.h (struct function): Remove calls_longjmp.
582 (current_function_calls_longjmp): Delete.
583 * tree.h (ECF_LONGJMP): Delete.
584 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
585 (ECF_LIBCALL_BLOCK): Everybody slide down one.
586 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
587 * builtins.c (expand_builtin_longjmp): Don't set
588 current_function_calls_longjmp.
589 * calls.c (special_function_p): Mark longjmp and siglongjmp
590 with ECF_NORETURN, not ECF_LONGJMP.
591 (emit_call_1, expand_call, emit_library_call_value_1):
592 Don't check for ECF_LONGJMP.
593 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
594 (need_fake_edge_p): Likewise.
596 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
597 * system.h: Poison NON_SAVING_SETJMP.
598 * function.c (use_register_for_decl)
599 * gcse.c (compute_hash_table_work, compute_store_table)
600 * postreload-gcse.c (record_opr_changes)
601 * reload.c (find_equiv_reg)
603 * config/i386/i386.c (ix86_can_use_return_insn_p):
604 Remove code conditional on NON_SAVING_SETJMP.
605 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
607 * config/i386/sysv3.h: Delete file.
608 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
610 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
612 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
613 the vectorization factor is greater than the iteration count.
614 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
615 iteration count is known.
617 (vect_build_symbol_bound): Removed. Its functionality moved to
618 vect_generate_tmps_on_preheader.
619 (vect_generate_tmps_on_preheader): Moved content of
620 vect_build_symbol_bound here instead of calling it. Changed some
623 (vect_build_loop_niters): We don't expect a new_bb to be generated -
625 (vect_gen_niters_for_prolog_loop): Likewise.
626 (vect_gen_niters_for_prolog_loo): Likewise.
628 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
629 (slpeel_add_loop_guard): Likewise.
630 (slpeel_tree_peel_loop_to_edge): Likewise.
631 (vect_do_peeling_for_alignment): Likewise.
633 (vect_get_first_index): Missing space.
635 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
637 * config/s390/s390.md ("*iordi3"): Mark commutative.
638 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
640 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
642 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
643 greater than PHI_ARG_CAPACITY.
644 (reserve_phi_args_for_new_edge): Initialize the new PHI
645 argument to NULL_TREE. Increment PHI_NUM_ARGS.
646 (add_phi_arg): Add a PHI argument to the slot given by
648 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
649 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
650 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
651 argument by looking at PHI_ARG_DEF.
652 (verify_phi_args): Check for a missing PHI argument. Remove
653 the check for duplicate PHI arguments.
654 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
655 (phi_arg_d): Remove e.
657 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
658 by restricting to the case with two outgoing edges.
660 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
662 * config/s390/s390.c (s390_backchain_string): Removed.
663 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
664 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
665 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
666 TARGET_KERNEL_BACKCHAIN to reflect the new options.
667 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
668 (TARGET_KERNEL_BACKCHAIN): Removed.
669 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
670 (TARGET_PACKED_STACK): New macro.
671 (TARGET_SWITCHES): New switches added.
672 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
674 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
675 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
676 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
677 the change in target switch semantics.
678 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
679 (TARGET_DEFAULT): MASK_BACKCHAIN added.
680 * doc/invoke.texi: Added documentation for the new/changed options.
682 2004-11-23 Uros Bizjak <uros@kss-loka.si>
684 PR rtl-optimization/18614
685 * simplify-rtx.c (simplify_binary_operation): Do not
686 simplify inner elements of constant arguments of
689 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
691 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
694 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
696 * tree-phinode.c (make_phi_node): Use a new variable,
697 capacity, to receive the return value of ideal_phi_node_len.
699 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
701 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
702 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
703 __gthread_recursive_mutex_init_function.
704 (__gthread_key_create): Properly cast -1.
705 (__gthread_recursive_mutex_init_function): New function.
706 (__gthread_recursive_mutex_lock): Rewrite.
707 (__gthread_recursive_mutex_trylock): Likewise.
708 (__gthread_recursive_mutex_unlock): Likewise.
710 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
712 * config/c4x/t-rtems: New.
713 * config.gcc: Reflect having added c4x/t-rtems.
715 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
719 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
720 lang_hooks.types.type_for_size instead of integer_type_node for the
723 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
725 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
727 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
729 * config/arm/t-rtems: New.
730 * config.gcc: Reflect having added arm/t-rtems.
732 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
734 * tree-cfg.c (tree_execute_on_growing_pred): New.
735 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
736 * tree-flow.h: Add a prototype for
737 reserve_phi_args_for_new_edge.
738 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
739 (add_phi_arg): Don't resize a PHI array.
741 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
743 * config.gcc: Add avr-*-rtems*.
744 * config/avr/t-rtems: New.
745 * config/avr/rtems.h: New.
747 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
749 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
750 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
751 Add comment to function.
753 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
756 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
758 PR rtl-optimization/14838
759 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
761 (get_last_nonnote_insn): Don't assume last insn is a note.
763 2004-11-22 Roger Sayle <roger@eyesopen.com>
765 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
766 to fold_binary_to_constant.
767 (nondestructive_fold_unary_to_constant): Likewise, rename to
768 fold_unary_to_constant.
769 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
770 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
771 (nondestructive_fold_unary_to_constant): Likewise.
772 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
773 and fold_binary_to_constant.
774 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
775 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
776 and EXEC_UNARY with calls to fold_*nary_to_constant.
777 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
778 (idx_find_step): Replace uses of EXEC_BINARY with calls to
779 fold_binary_to_constant.
781 2004-11-22 Nick Clifton <nickc@redhat.com>
783 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
784 initialisation of 'e'.
786 2004-11-22 Roger Sayle <roger@eyesopen.com>
788 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
789 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
790 automatically for targets without TARGET_80387.
791 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
792 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
793 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
794 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
795 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
796 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
797 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
798 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
799 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
800 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
801 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
802 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
803 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
804 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
805 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
806 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
807 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
808 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
809 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
810 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
812 2004-11-22 Dale Johannesen <dalej@apple.com>
814 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
815 properly and comment.
817 2004-11-22 James A. Morrison <phython@gcc.gnu.org
819 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
820 (sparc_init_builtins): New function.
821 (sparc_init_vis_builtins): Create builtin functions for VIS
823 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
824 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
825 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
826 (def_builtin): New macro for creating builtin functions.
827 (P): New mode macro for pointer types.
828 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
829 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
830 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
831 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
832 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
833 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
834 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
836 2004-11-22 Devang Patel <dpatel@apple.com>
838 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
840 2004-11-22 Devang Patel <dpatel@apple.com>
842 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
843 (if_convertible_phi_p): ... new name.
844 (if_convertable_modify_expr_p): Rename to ...
845 (if_convertible_modify_expr_p): ... new name.
846 (if_convertable_stmt_p): Rename to ...
847 (if_convertible_stmt_p): ... new name.
848 (if_convertable_bb_p): Rename to ...
849 (if_convertible_bb_p): ... new name.
850 (if_convertable_loop_p): Rename to ...
851 (if_convertible_loop_p): ... new name.
853 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
856 * configure.ac (threading): Accept 'posix95'.
857 * configure: Regenerate.
858 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
859 include sol26.h and default to posix95 threads if have_pthread_h.
860 (sparc-*-solaris2*): Likewise.
861 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
862 * gthr-posix95.h: New file.
863 * config/sol26.h: New file.
864 * doc/install.texi (--enable-threads): Document 'posix95'.
866 2004-11-23 Ben Elliston <bje@au.ibm.com>
868 * pointer-set.h (pointer_set_contains): Remove.
869 * pointer-set.c (pointer_set_contains): Likewise.
871 2004-11-22 Dale Johannesen <dalej@apple.com>
873 * calls.c (expand_call): Do not call preserve_temp_slots.
875 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
877 * tree-flow.h: Remove the prototype for remove_phi_arg.
878 Add a prototype for remove_phi_args.
879 * tree-phinodes.c (remove_phi_arg): Remove.
880 (remove_phi_args): New.
881 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
884 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
885 after making an edge.
886 (remove_edge): Call execute_on_shrinking_pred before removing
888 (redirect_edge_succ): Call execute_on_growing_pred and
889 execute_on_shrinking_pred.
890 * cfghooks.c (execute_on_growing_pred): New.
891 (execute_on_shrinking_pred): Likewise.
892 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
893 execute_on_shrinking_pred.
894 Add prototypes for execute_on_growing_pred and
895 execute_on_shrinking_pred.
896 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
897 execute_on_growing_pred and execute_on_shrinking_pred.
898 (cfg_layout_rtl_cfg_hook): Likewise.
899 * tree-cfg.c (tree_cfg_hooks): Likewise.
901 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
902 (tree_cfg_hooks): Use it.
903 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
904 (ssa_redirect_edge): Don't call remove_phi_arg_num.
906 * tree-phinodes.c (remove_phi_arg_num): Make it static.
907 * tree-flow.h: Remove the corresponding prototype.
909 * tree-ssa.c (ssa_remove_edge): Remove.
910 * tree-flow.h: Remove the corresponding prototype.
911 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
912 * basic-block.h: Likewise.
913 * tree-if-conv.c: Likewise.
914 * tree-ssa-threadupdate.c: Likewise.
916 2004-11-23 Ben Elliston <bje@au.ibm.com>
918 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
919 @table to list the BSI methods. Use individual @findex directives
920 instead of one with a comma-separated list of index entries.
922 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
924 PR tree-optimization/18529
925 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
926 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
927 (fold): Call fold_to_nonsharp_ineq_using_bound.
928 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
929 (number_of_iterations_cond): Fold the expressions before futher
931 (tree_simplify_using_condition): Handle case when cond or expr is
932 an EQ_EXPR specially.
934 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
936 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
937 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
939 2004-11-22 David Edelsohn <edelsohn@gnu.org>
940 Fariborz Jahanian <fjahanian@apple.com>
942 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
944 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
945 Align 16 byte and larger vectors like Altivec.
946 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
947 (function_arg): Same.
948 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
950 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
953 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
956 2004-11-22 Richard Henderson <rth@redhat.com>
958 * function.c (assign_parm_setup_block): Revert 11-13 change to
959 forcably re-mode a (possibly BLKmode) hard register.
961 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
963 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
965 2004-11-22 David Edelsohn <edelsohn@gnu.org>
967 * config/rs6000/power4.md: Remove delay between dispatch and issue
968 associated with dispatch group slots 3 and 4.
969 * config/rs6000/power5.md: Same.
971 2004-11-21 Jeff Law <law@redhat.com>
973 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
975 * cfgbuild.c (make_edges): Likewise.
976 * cfghooks.c (can_duplicate_block_p): Likewise.
977 * cfgloop.c (loop_latch_edge): Likewise.
978 * cfgloopmanip.c (force_single_succ_latches): Likewise.
979 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
980 * predict.c (predict_loops, propagate_freq): Likewise.
981 * tracer.c (tail_duplicate): Likewise.
982 * tree-cfg.c (disband_implicit_edges): Likewise.
983 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
985 2004-11-22 Nick Clifton <nickc@redhat.com>
987 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
988 initialisation of 'e'.
990 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
992 PR rtl-optimization/18599
993 * regrename.c (copyprop_hardreg_forward): Speed up by putting
994 BB_VISITED flags on basic blocks as we process them.
996 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
999 * config/rs6000/altivec.md (VI_char): New mode attribute.
1000 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1001 (add<mode>3): ... this.
1002 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1003 (sub<mode>3): ... this.
1004 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1005 (smax<mode>3): ... this.
1006 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1007 (smin<mode>3): ... this.
1008 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1009 (umax<mode>3): ... this.
1010 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1011 (umin<mode>3): ... this.
1012 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1013 (and<mode>3): ... this.
1014 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1015 (ior<mode>3): ... this.
1016 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1017 (xor<mode>3): ... this.
1018 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1019 (and<mode>3): ... this.
1020 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1021 (ior<mode>3): ... this.
1022 (altivec_vnor): Replace with ...
1023 (altivec_nor<mode>): ... this.
1024 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1025 (one_cmpl<mode>2): ... this.
1026 (altivec_vandc): New expander.
1027 (*andc<mode>3): New insn.
1028 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1030 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1033 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1034 creating iv instead of integer_type.
1035 (vect_build_loop_niters): Remove redundant code.
1036 (vect_transform_loop_bound): Removed (duplicates functionality of
1037 make_loop_iterate_ntimes.
1038 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1039 lang_hooks.types.type_for_size to create a type of the required size.
1040 Use that type instead of integer_type. Remove redundant code.
1041 (vect_update_niters_after_peeling): Use type of niters instead of
1043 (vect_transform_loop): Unify handling of known and unknown loop bound
1044 cases. Call make_loop_iterate_ntimes instead of
1045 vect_transform_loop_bound.
1047 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1050 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1053 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1056 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1058 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1060 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1062 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1063 m32r/libgcc-glibc.ver.
1064 * config/m32r/libgcc-glibc.ver: Add New file.
1066 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1068 * bitmap.h (struct bitmap_obstack): New obstack type.
1069 (struct bitmap_head_def): Replace using_obstack with obstack
1071 (bitmap_default_obstack): New.
1072 (bitmap_initialize): Make inline, does not do allocation.
1073 (bitmap_release_memory): Remove.
1074 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1075 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1076 bitmap_obstack_free, bitmap_malloc_free): Declare.
1077 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1078 (BITMAP_FREE): Replace with ...
1079 (BITMAP_OBSTACK_FREE): ... this.
1080 (BITMAP_XFREE): Adjust.
1081 (BITMAP_INIT_ONCE): Remove.
1082 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1083 (bitmap_default_obstack): New.
1084 (bitmap_elem_to_freelist): Adjust.
1085 (bitmap_element_allocate): Adjust. Break initialization into ...
1086 (bitmap_obstack_initialize): ... here.
1087 (bitmap_release_memory): Replace with ...
1088 (bitmap_obstack_release): ... this.
1089 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1090 bitmap_obstack_free, bitmap_malloc_free): New.
1091 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1093 (bitmap_initialize): Move to bitmap.h.
1094 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1095 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1096 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1097 (INITIALIZE_REG_SET): Remove.
1098 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1099 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1100 (flow_obstack): Do not declare.
1101 (reg_obstack): Declare.
1102 * regs.h: Include obstack.h.
1103 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1104 release bitmap obstack here.
1105 * bb-reorder.c: #include regs, not basic-block.
1106 (fix_crossing_conditional_branches): Allocate regsets from
1108 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1110 * caller-save.c: Include regs.h earlier.
1111 * cfg.c: Do not include basic-block.h or obstack.h.
1112 (reg_obstack): Define.
1113 * cfganal.c: Include obstack.h
1114 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1116 * cfglayout.c: Do not include obstack.h.
1117 (flow_obstack): Remove declaration.
1118 (cfg_layout_duplicate_bb): Use reg_obstack.
1119 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1120 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1121 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1122 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1123 (cfg_layout_split_edge): Use reg_obstack.
1124 * cse.c: Include regs.h earlier.
1125 * ddg.c: Do not include basic-block.h.
1126 * dominance.c: Inlude obstack.h.
1127 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1128 (calculate_global_regs_live): Likewise.
1129 (allocate_bb_life_data): Use reg_obstack.
1130 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1131 * global.c: Do not include basic-block.h.
1132 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1133 * graph.c: Include obstack.h.
1134 * haifa-sched.c: Do not include basic-block.h.
1135 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1136 * local-alloc.c: Do not include basic-block.h.
1137 * loop-init.c, loop-invariant.c: Include obstack.h.
1138 * loop-iv.c: Likewise.
1139 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1141 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1142 * modulo-sched.c: Do not include basic-block.h.
1143 * passes.c (rest_of_handle_final): Do not call
1144 regset_release_memory.
1145 * ra-debug.c: Include regs.h earlier. Do not include
1147 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1148 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1149 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1150 (regset_release_memory): Remove.
1151 * resource.c: Do not include basic-block.h.
1152 * rtlanal.c: Do not include basic-block.h.
1153 * sbitmap.c: Include obstack.h.
1154 * sched-deps.c: Do not include basic-block.h.
1155 (reg_pending_sets_head, reg_pending_clobbers_head,
1156 reg_pending_uses_head): Remove.
1157 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1158 * sched-ebb.c: Do not include basic-block.h.
1159 * sched-rgn.c: Likewise.
1160 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1162 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1163 * tree-sra.c (decide_instantiations): Adjust bitmap
1165 * tree-ssa-dce.c: Include obstack.h.
1166 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1167 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1168 (bitmap_set_new): Likewise.
1169 (init_pre): Initialize bitmap obstack.
1170 (fini_pre): Release bitmap obstack.
1171 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1172 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1173 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1174 (marked_ssa_names): Likewise.
1175 (init_ssanames): Use BITMAP_XMALLOC.
1176 (fini_ssanames): Use BITMAP_XFREE.
1177 * web.c: Include obstack.h
1179 2004-11-22 Nick Clifton <nickc@redhat.com>
1181 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1182 predecessor in the first for-loop.
1184 2004-11-21 Stan Shebs <shebs@apple.com>
1186 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1188 (function_arg): Move darwin test up, sniff mode first for
1189 efficiency, test for union type.
1191 2004-11-21 Dale Johannesen <dalej@apple.com>
1193 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1195 2004-11-21 Jeff Law <law@redhat.com>
1197 * tree-ssa.c (verify_use): Fix comment.
1198 (verify_phi_args): Check that the number of incoming edges matches
1199 the number of PHI arguments. Check that each PHI argument is
1200 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1201 dead or duplicated edges. Clear e->aux earlier and avoid separate
1202 loop to clear e->aux and test for missed edges.
1203 (verify_ssa): Remove first walk over statements. Move checking
1204 of PHI args into verify_phi_args. Move checking of statements
1205 with aliased stores and V_MAY_DEFS into the remaining loop over
1206 the statements. Register defs by walking through the formal
1209 2004-11-21 Roger Sayle <roger@eyesopen.com>
1212 * dojump.c (compare_from_rtx): Clarify mode argument in function
1213 description. Correct order of mode/cmp_mode arguments in call to
1214 simplify_relational_operation. Check "tem" for COMPARISON_P.
1216 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
1217 David Edelsohn <edelsohn@gnu.org>
1220 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1221 synthetic vectors in memory.
1222 (function_arg_boundary): Align large synthetic vectors.
1223 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1225 2004-11-21 Jeff Law <law@redhat.com>
1227 * cfg.c (update_bb_profile_for_threading): Do not rescale the
1228 successor probabilities if they are not going to change. Pull
1229 division out of loop if we do need to rescale successor probabilities.
1231 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1232 index of the destination block for the hash value rather than
1235 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
1237 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
1238 checks for neither argument being an array or pointer (swapping
1239 the arguments if necessary), the array argument being a pointer to
1240 or array of functions and for -Wchar-subscripts warnings upfront.
1242 2004-11-20 Jeff Law <law@redhat.com>
1244 * regrename.c (copyprop_hardreg_forward): Only search for a
1245 previously processed block if the current block only has one
1248 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
1250 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1252 * config/arm/arm.c: Follow spelling conventions.
1254 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
1256 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1257 a bit in tune_flags.
1258 (const_double_needs_minipool): Likewise. Split most of the code out
1260 (arm_const_double_inline_cost): ... new function here.
1261 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1262 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1263 word constants of length 2, 3 and 4 insns respectively.
1264 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1265 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1266 constraints. Set insn lenghts accordingly.
1268 2004-11-19 Jeff Law <law@redhat.com>
1270 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1271 a hash table. Extensive modifications throughout to support
1274 (struct local_info): New.
1275 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1277 (redirection_data): Now a hashtable.
1278 (redirection_data_hash, redirection_data_eq): New.
1279 (lookup_redirection_data, create_duplicates): New.
1280 (create_edge_and_update_destionation_phis): New.
1281 (fixup_template_block, redirect_edges): New.
1282 (thread_block): Use hash table traversals instead of loops over
1283 varray entries or incoming edge vectors.
1285 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1287 * basic-block.h (edge_def): Add dest_idx.
1288 * cfg.c (unchecked_make_edge): Initialize dest_idx.
1289 (remove_edge): Simplify the disconnection of an edge from its
1291 (redirect_edge_succ): Likewise.
1292 * cfghooks.c (verify_flow_info): Check the consistency of
1293 dest_idx for each edge.
1295 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
1297 * simplify-rtx.c (simplify_ternary_operation): Use
1300 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1302 * tree-cfg.c (reinstall_phi_args): New.
1303 (tree_split_edge): Use it after redirecting an edge. Don't
1304 modify PHI_ARG_EDGE.
1306 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1308 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1309 if checking is enabled.
1311 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
1313 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1314 too many nested scopes.
1316 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1319 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1320 changed to suppoer uses-after-loop and to void creating flow paths
1321 that shouldn't exist.
1322 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1323 Modified to fit the new peeling scheme. Avoid quadratic behavior.
1324 (slpeel_add_loop_guard): Takes additional argument.
1325 (slpeel_verify_cfg_after_peeling): New function.
1326 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1327 documentation. Use 'exit-bb' instead of creating 'new-bb'.
1328 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1329 the new peeling scheme.
1330 (copy_phi_nodes): Function removed. Its functionality moved to
1331 update_phis_for_duplicate_loop.
1332 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1333 moved here. Added documentation. Modified to fit the new peeling scheme.
1334 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1335 needed - done in slpeel_tree_peel_loop_to_edge.
1336 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1337 (vect_do_peeling_for_loop_bound): Add documentation. Call
1338 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1339 with additional argument.
1340 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1342 (vect_finish_stmt_generation): Avoid 80 column oveflow.
1344 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1346 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1348 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1349 without last two arguments. Update single_exit of loops.
1350 (vect_update_niters_after_peeling): Removed. Its functionality was
1351 moved to vect_do_peeling_for_alignment.
1352 (vect_do_peeling_for_loop_bound): New name for function previously
1353 called vect_transform_for_unknown_loop_bound.
1354 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1355 instead of code that duplicates the same functionality.
1356 (vect_do_peeling_for_alignment): Functionality of
1357 vect_update_niters_after_peeling moved here.
1358 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1359 previously named vect_transform_for_unknown_loop_bound - for both known
1360 and unknown loop bound cases.
1362 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1364 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1365 previously called verify_loop_for_duplication. All conditions compacted
1366 into one compound condition. Removed debug dumps.
1367 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1368 functionality moved to vect_can_advance_ivs_p, and some to
1369 vect_analyze_loop_form.
1370 (vect_can_advance_ivs_p): New function. Contains functionality that was
1371 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1372 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1373 (vect_analyze_operations): Call vect_can_advance_ivs_p and
1374 slpeel_can_duplicate_loop_p.
1375 (vect_get_loop_niters): Added documentation.
1376 (vect_analyze_loop_form): Check the loop entry always - not only in case
1377 of unknown loop bound. Create preheader and exit bb if necessary. Apply
1378 a check that used to take place in
1379 vect_analyze_loop_with_symbolic_num_of_iters.
1380 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
1381 Remove redundant call to rewrite_into_loop_closed_ssa.
1382 (vect_compute_data_refs_alignment): Removed obsolete comment.
1384 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1386 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
1387 function previously called tree_duplicate_loop_to_edge.
1388 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
1389 previously called tree_duplicate_loop_to_edge_cfg.
1390 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
1392 (slpeel_update_phi_nodes_for_guard): Likewise.
1393 (slpeel_make_loop_iterate_ntimes): Likewise.
1394 (slpeel_add_loop_guard): Likewise.
1395 (allocate_new_names, free_new_names): Function declaration moved to top
1397 (rename_use_op, rename_def_op): Likewise.
1398 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
1399 (vect_generate_tmps_on_preheader): Function declaration moved.
1400 (vect_transform_for_unknown_loop_bound): Added missing function
1403 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
1406 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
1407 Define a VEC(tree_on_heap) for head.
1408 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1409 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1410 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
1411 the VEC(tree_on_heap) function. Also free it before returning.
1412 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1413 for block_defs_stack.
1414 (restore_currdefs_to_original_value): Use VEC_length instead of
1415 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1416 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1417 for block_defs_stack.
1418 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1419 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1420 for block_defs_stack.
1421 (ssa_register_new_def): Likewise.
1422 (ssa_rewrite_initialize_block): Likewise.
1423 (rewrite_finalize_block): Use VEC_length instead of
1424 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1425 (ssa_rewrite_finalize_block): Likewise.
1426 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1427 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
1428 (rewrite_blocks): Initialize block_defs_stack with
1429 the VEC(tree_on_heap) function. Also free it before returning.
1430 (rewrite_ssa_into_ssa): Likewise.
1432 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
1434 * config/darwin.c (machopic_data_defined_p): return 1 for
1435 MACHOPIC_DEFINED_FUNCTION.
1437 2004-11-19 Jeff Law <law@redhat.com>
1439 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
1442 2004-11-19 Paul Brook <paul@codesourcery.com>
1445 * varasm.c (default_assemble_integer): Allow pointer-sized values.
1448 2004-11-19 Nick Clifton <nickc@redhat.com>
1450 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
1451 zero_extension and lshiftrt insns.
1452 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
1454 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
1455 to handle bp and bn insn patterns with a zero_extend rtx
1458 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
1460 * config/arm/arm.md (generic_sched): Make const.
1462 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1464 * emit-rtl.c (classify_insn): Make it static.
1465 * rtl.h: Remove the corresponding prototype.
1467 * integrate.c (has_func_hard_reg_initial_val,
1468 get_func_hard_reg_initial_val): Make them static.
1469 * integrate.h: Remove the corresponding prototypes.
1471 2004-11-19 Ben Elliston <bje@au.ibm.com>
1473 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
1474 (dw2_asm_output_delta_sleb128): Likewise.
1475 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
1476 (dw2_asm_output_delta_sleb128): Likewise.
1478 2004-11-19 Adam Nemet <anemet@lnxw.com>
1480 * tree-ssa-alias.c: Fix comment.
1482 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1484 * tree-outof-ssa.c: Fix a comment typo.
1486 2004-11-19 Ben Elliston <bje@au.ibm.com>
1488 * predict.h (predict_insn): Remove extern declaration.
1489 * predict.c (predict_insn): Make static.
1491 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1493 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
1495 2004-11-18 Nicolas Pitre <nico@cam.org>
1497 * config/arm/arm.c (const_double_needs_minipool): New function to
1498 determine if a CONST_DOUBLE should be pushed to the minipool.
1499 (note_invalid_constants): Use it.
1501 2004-11-18 Paul Brook <paul@codesourcery.com>
1503 * config/arm/arm.c (target_float_switch): New variable..
1504 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
1505 target_float_switch.
1506 * config/arm/arm.h (target_float_switch): Declare.
1507 (ARM_FLAG_SOFT_FLOAT): Remove.
1508 (TARGET_SWITCHES): Remove hard-float and soft-float.
1509 (TARGET_OPTIONS): Add hard-float and soft-float.
1510 (TARGET_DEFAULT_FLOAT_ABI): Define.
1511 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
1512 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
1513 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
1514 * config/arm/netbsd-elf.h: Ditto.
1515 * config/arm/netbsd.h: Ditto.
1516 * config/arm/pe.h: Ditto.
1517 * config/arm/unknown-elf.h: Ditto.
1518 * config/arm/wince-pe.h: Ditto.
1519 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1520 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1521 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1523 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1525 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
1526 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
1527 altivec_lvx_4sf): Rename and replace with ...
1528 (altivec_lvx_<mode>): ... mode macro version.
1529 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
1530 altivec_stvx_4sf): Rename and replace with ...
1531 (altivec_stvx_<mode>): ... mode macro version.
1532 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
1533 (mov<mode>): ... mode macro version.
1534 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
1535 *movv4sf_internal1): Replace with ...
1536 (*mov<mode>_internal): ... mode macro version.
1537 (get_vrsave_internal, *set_vrsave_internal, *save_world,
1538 *restore_world): Unquote output statements.
1539 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
1540 altivec_expand_st_builtin): Adjust insn names.
1542 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
1544 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
1546 (rs6000_override_options): Likewise.
1547 (spe_build_register_parallel): Handle complex doubles on e500v2.
1548 (rs6000_spe_function_arg): Likewise.
1549 (function_arg): Likewise.
1550 (rs6000_function_value): Likewise.
1551 (rs6000_libcall_value): Likewise.
1553 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
1555 * ifcvt.c (find_if_block): Move the check for the number of edges
1556 above the loops checking for complex edges.
1557 Remove the counting of edges as we use EDGE_COUNT now.
1559 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1561 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1562 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
1564 2004-11-18 Andreas Schwab <schwab@suse.de>
1566 * config/i386/i386.md (define_peephole2): Revert last change.
1568 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1570 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1571 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
1573 2004-11-18 Diego Novillo <dnovillo@redhat.com>
1575 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
1578 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
1580 * Makefile.in (macro_list): Depend on s-macro_list.
1581 (s-macro_list): New target.
1583 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1586 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1587 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1588 (fold_range_test): Adjust.
1589 (fold_truthop): Use it.
1590 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1591 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1593 2004-11-18 Uros Bizjak <uros@kss-loka.si>
1595 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
1596 insn split constraint.
1597 (define_peephole2): Remove unneeded "&& 1" from peephole2
1600 2004-11-18 Ben Elliston <bje@au.ibm.com>
1602 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
1603 element for bsi_prev; use @findex instead.
1605 2004-11-18 Ben Elliston <bje@au.ibm.com>
1607 * opts.h (add_input_filename): Remove extern declaration.
1608 * opts.c (add_input_filename): Make static.
1610 2004-11-17 Mark Mitchell <mark@codesourcery.com>
1612 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
1615 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1617 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
1618 * system.h: Poison it.
1619 * doc/tm.texi: Delete its documentation.
1621 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1622 Mark Mitchell <mark@codesourcery.com>
1624 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
1625 * config/i386/i386.c (i386_solaris_elf_named_section): New
1627 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
1628 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
1630 (ASM_QUAD): Don't undefine for biarch targets.
1631 * config/i386/t-sol2: Introduce multilib support.
1633 2004-11-18 Ben Elliston <bje@au.ibm.com>
1635 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
1637 2004-11-18 Ben Elliston <bje@au.ibm.com>
1639 * cgraph.h: Replace "it's" with "its" throughout.
1641 2004-11-18 Ben Elliston <bje@au.ibm.com>
1643 * doc/rtl.texi (Flags): Grammar fix.
1645 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1647 * expmed.c (alg_code): Add alg_unknown.
1648 (alg_hash_entry): New.
1649 (NUM_ALG_HASH_ENTRIES): Likewise.
1650 (alg_hash): Likewise.
1651 (synth_mult): Cache the result into alg_hash.
1653 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1655 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
1656 config/rs6000/libgcc-ppc64.ver.
1658 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1660 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
1661 checking if an unconditional return is followed by a barrier.
1663 * jump.c (condjump_p): Remove unreachable code.
1665 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
1666 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
1667 tree-ssa-live.h, tree.h: Remove unused prototypes.
1669 2004-11-17 Jeff Law <law@redhat.com>
1671 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
1672 (edge_to_cases_elt): Renamed from edge_to_case_leader.
1673 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
1674 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
1675 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
1676 (get_cases_for_edge): New function.
1677 (start_recording_case_labels, end_recording_case_labels): Similarly.
1678 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
1679 chain equivalent CASE_LABEL_EXPRs together.
1680 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
1681 (make_switch_expr_edges): Do not record edge/cases here.
1682 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
1683 (split_critical_edges): Record cases around the edge splitting code.
1684 (cleanup_dead_labels): Use CASE_LABEL again.
1685 (tree_redirect_edge_and_branch): If we have a mapping from edge
1686 to cases, use it to handle redirections. Else do it the slow way.
1687 * tree.h (CASE_LEADER_OR_LABEL): Kill.
1688 (CASE_LABEL): Revert to just looking at the tree's second operand.
1689 * tree.c (get_case_label): Kill.
1691 2004-11-17 Diego Novillo <dnovillo@redhat.com>
1693 PR tree-optimization/18307
1694 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
1695 'orig' are the same node.
1696 (collect_points_to_info_r): Do not call merge_pointed_to_info
1697 when the PHI argument is identical to the LHS.
1699 2004-11-17 Steven Bosscher <stevenb@suse.de>
1701 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
1702 to insert the exit or entry block.
1703 (ssa_prop_init): Use add_control_edge to seed the algorithm.
1705 2004-11-16 Zack Weinberg <zack@codesourcery.com>
1707 * mkmap-flat.awk, mkmap-symver.awk: If the last version
1708 assigned to a symbol was '%exclude', do not emit it anywhere.
1709 If leading_underscore is true, prefix all symbols from the
1710 version scripts with a leading underscore before comparing
1711 them with nm output or emitting them. Remove support for dot
1713 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
1714 (SHLIB_MAPFILES): Use libgcc-std.ver.
1715 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
1716 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
1717 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
1718 libgcc-excl.ver and libgcc-glibc.ver.
1720 * config/sh/libgcc-excl.ver: New file.
1721 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
1723 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1725 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
1726 the test when the edge has the opposite meaning, not when
1727 the first argument is invariant.
1729 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
1731 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
1733 (rs6000_complex_function_value): Handle e500 v2 variant.
1735 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1737 Fix PR tree-optimization/18519
1739 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
1740 * tree-pass.h: Add TODO_cleanup_cfg.
1741 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
1742 (ccp_finalize): Remove call to cleanup_cfg.
1743 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
1744 (pass_cd_dce): Ditto.
1745 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
1746 dump_function_to_file.
1747 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
1749 (pass_ch): Add TODO_cleanup_cfg.
1750 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
1752 (pass_loop_done): Add TODO_cleanup_cfg.
1753 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
1754 (tree_ssa_phiopt): Remove call to cleanup_cfg.
1756 2004-11-16 Devang Patel <dpatel@apple.com>
1758 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
1760 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1762 * expmed.c, ra-colorize.c: Fix comment typos.
1764 * doc/tm.texi: Fix typos.
1766 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1767 Mark Mitchell <mark@codesourcery.com>
1770 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
1773 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1775 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
1776 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
1778 2004-11-16 Devang Patel <dpatel@apple.com>
1780 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
1782 2004-11-16 Eric Christopher <echristo@redhat.com>
1784 * config/mips/mips.c: Use rtl _P predicates.
1785 * config/mips/mips.h: Ditto.
1786 * config/mips/mips.md: Ditto.
1788 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
1790 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
1793 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
1795 * config/s390/s390.c (s390_cc_modes_compatible): New function.
1796 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
1798 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
1801 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
1802 before and after the insns for getting GOT address in non-PIC
1803 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
1806 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
1808 * gcc/cse.c (struct change_cc_mode_args): New structure.
1809 (cse_change_cc_mode_insn): New function.
1810 (cse_change_cc_mode): Use validate_change to perfom changes.
1811 (cse_change_cc_mode_insns, cse_condition_code_reg):
1812 Call cse_change_cc_mode_insn.
1814 2004-11-16 Steven Bosscher <stevenb@suse.de>
1818 2004-11-16 Steven Bosscher <stevenb@suse.de>
1820 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
1822 2004-11-15 Dale Johannesen <dalej@apple.com>
1824 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
1826 2004-11-15 Dale Johannesen <dalej@apple.com>
1828 * profile.c (compute_branch_probabilities): Prevent
1829 crash with EH in RTL-based profiling.
1831 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1833 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
1835 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
1836 * tree-ssa-dom.c (thread_across_edge): Likewise.
1837 * tree-vectorizer.c (vect_transform_loop_bound): Replace
1838 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
1841 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
1842 (tree_flow_call_edges_add): Update the call to
1843 bsi_commit_edge_inserts.
1844 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
1845 * profile.c (branch_prob): Likewise.
1846 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
1847 * tree-sra.c (scalarize_function): Likewise.
1848 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
1849 * tree-ssa-pre.c (fini_pre): Likewise.
1850 * tree-flow.h: Update the prototype for
1851 bsi_commit_edge_inserts.
1853 2004-11-15 Eric Christopher <echristo@redhat.com>
1855 * sched-deps.c (set_sched_group_p): Delete.
1856 (delete_all_dependencies): New function.
1857 (fixup_sched_groups): Use. New function.
1858 (sched_analyze_insn): Use.
1860 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
1862 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
1863 RROTATE_EXPR or unknown code.
1864 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
1865 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
1866 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
1869 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
1872 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
1873 after processing the declarator.
1875 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
1877 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
1879 (altivec_vspltb): Same.
1880 (altivec_vspltw): Same.
1881 (altivec_vspltisb): Same.
1882 (altivec_vspltish): Same.
1883 (altivec_vspltisw): Same.
1884 (altivec_vspltisw_v4sf): Same.
1885 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
1887 Move "End of vector xor's" comment to the right place.
1889 2004-11-15 Steve Ellcey <sje@cup.hp.com>
1891 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
1892 instead of nonimmediate_operand.
1894 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1896 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
1897 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
1898 * config/sol2.c (solaris_output_init_fini): Update calls to
1899 ASM_OUTPUT_CALL. Include "rtl.h".
1901 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1903 * config/sol2-c.c (cmn_err_char_table): Add "p".
1905 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1907 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
1908 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
1910 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1912 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
1913 within the multilib directory.
1915 2004-11-15 Nick Clifton <nickc@redhat.com>
1917 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
1918 builtin assert of cpu=xstormy16.
1920 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
1922 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
1925 2004-11-14 Richard Henderson <rth@redhat.com>
1928 * calls.c (struct arg_data): Add parallel_value.
1929 (precompute_register_parameters): Set it.
1930 (load_register_parameters): Use it.
1931 (store_one_arg): Also set it here.
1933 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
1935 PR tree-optimization/18431
1936 * fold-const.c (associate_trees): Do not produce x + 0.
1937 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
1939 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
1941 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
1942 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
1944 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1946 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
1948 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
1950 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
1951 value-prof.c: Fix comment typos.
1953 2004-11-14 Stan Shebs <shebs@apple.com>
1955 Basic ABI changes for passing structs by value in 64-bit Darwin.
1956 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
1957 (rs6000_override_options): Set it for 64-bit Darwin.
1958 (rs6000_parse_abi_options): Add testing options to change it.
1959 (rs6000_return_in_memory): Test whether the type is one
1960 that can be passed in registers.
1961 (darwin64_function_arg_advance): New.
1962 (function_arg_advance): Call it, plus add recursion depth
1963 argument and test when counting off arguments.
1964 (rs6000_darwin64_function_arg): New.
1965 (function_arg): Call it.
1966 (setup_incoming_varargs): Add argument to function_arg_advance.
1967 (rs6000_darwin64_function_value): New.
1968 (rs6000_function_value): Call it.
1969 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
1970 * config/rs6000/rs6000-protos.h: Update decl of
1971 function_arg_advance.
1973 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
1976 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
1977 support TImode before adding __int128_t and __uint128_t types.
1979 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
1982 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
1983 (vect_transform_loop_bound): Set loop->nb_iterations.
1985 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
1986 Andrew Pinski <pinskia@physics.uc.edu>
1989 * tree-vectorize.c (vect_build_loop_niters): Do not insert
1990 NULL into the instruction stream. Initialize new_bb to NULL.
1991 (vect_update_ivs_after_vectorizer): Likewise.
1992 (vect_gen_niters_for_prolog_loop): Likewise.
1994 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
1996 PR tree-optimization/18431
1997 * tree-flow.h (stmt_references_memory_p): Declare.
1998 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
1999 * tree-ssa.c (stmt_references_memory_p): New function.
2001 2004-11-14 Andreas Schwab <schwab@suse.de>
2003 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2006 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2008 * c-common.c (walk_stmt_tree): Remove.
2009 * c-common.h: Remove the corresponding prototype.
2011 * emit-rtl.c (push_to_full_sequence): Remove.
2012 * rtl.h: Remove the corresponding prototype.
2014 * cselib.c, expr.c: Fix comment typos.
2016 2004-11-13 Richard Henderson <rth@redhat.com>
2018 * calls.c (precompute_register_parameters): Force all PARALLELs
2019 into pseudo registers.
2020 (load_register_parameters): Copy PARALLELs into hard registers.
2021 * function.c (assign_parm_setup_block): Copy PARALLELS into
2022 pseudo registers. Do emit_group_store in conversion_insns.
2023 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2024 tmps as an argument. Move final copy loop ...
2025 (emit_group_load): ... here. New function.
2026 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2027 * expr.h: Declare them.
2029 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2031 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2032 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2033 with PHI_CHAIN where appropriate.
2035 2004-11-13 Dale Johannesen <dalej@apple.com>
2037 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2038 (tree_block_label): Ditto.
2039 (flush_pending_stmts): Ditto.
2040 (insert_edge_copies): Ditto.
2041 (expr_invariant_in_loop_p): Ditto.
2042 (TDF_USE_OPS): Parenthesize definition.
2043 (TDF_USE_VOPS): Ditto.
2045 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2047 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2048 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2050 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2052 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2054 * config/i386/i386.c (override_options): Move loop to set default
2055 tuning to correct place.
2057 2004-11-13 Zak Kipling <zak@transversal.com>
2060 * config/i386/i386.c (classify_argument): Fix infinite loop when
2061 passing object with 3 or more base classes by value.
2063 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2065 * doc/md.texi (constraints) <% modifier>: Mention that it is
2066 useless when the two alternatives are strictly identical.
2068 2004-11-13 Richard Henderson <rth@redhat.com>
2070 * expmed.c (extract_split_bit_field): Temporarily disable call to
2071 extract_force_align_mem_bit_field.
2073 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2075 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2078 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2079 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2080 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2082 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2084 * doc/install.texi (automake): Correctly document that everything now
2085 will use automake 1.9.3.
2087 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2090 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2091 TImode. Sorry for other non-complex larger-than-64-bit modes.
2092 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2094 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2096 * doc/install.texi (automake): Document that everything now uses 1.9.
2098 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2100 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2103 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2105 * tree.h: Fix comment typos.
2107 2004-11-13 Steven Bosscher <stevenb@suse.de>
2109 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2110 HARD_REGISTER_NUM_P.
2112 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2113 * flow.c (mark_set_1): Likewise.
2115 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2116 duplicate_eh_regions): Remove.
2117 * except.h (duplicate_eh_regions): Remove prototype.
2118 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2119 global_const_equiv_varray): Remove.
2120 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2121 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2122 extern declaration, and #define.
2123 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2124 (struct inline_remap): Remove.
2125 * varray.c (struct element): Remove entry for const_equiv_data.
2126 * varray.h (struct const_equiv_data): Remove.
2127 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2128 (union varray_data_tag) <const_equiv>: Remove.
2129 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2130 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2132 * regstack.c (record_label_references): Remove unused function.
2134 * rtl.def (VALUE): Update comment.
2135 (LABEL_REF): Remove unused operand 2.
2136 * rtl.h (struct rtx_def): Update for removed accessor macros.
2137 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2138 REG_LOOP_TEST_P): Remove.
2139 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2140 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2141 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2143 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2144 Eric Botcazou <ebotcazou@libertysurf.fr>
2147 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2149 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2150 (V32I): New macro for 32-bit modes.
2151 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2152 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2153 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2154 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2155 one_cmpldi_sp64): Use V64I instead of DI.
2156 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2157 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2158 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2159 (nandv64i_vis, nandv32i_vis): New patterns.
2161 2004-11-12 Mike Stump <mrs@apple.com>
2163 * Makefile.in: Add html support.
2164 * java/Make-lang.in: Likewise.
2165 * fortran/Make-lang.in: Likewise.
2166 * treelang/Make-lang.in: Likewise.
2167 * doc/install.texi: Likewise.
2168 * doc/makefile.texi: Likewise.
2169 * doc/sourcebuild.texi: Likewise.
2171 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2173 * tree-ssa-loop-manip.c: Fix a comment typo.
2175 2004-11-12 Mike Stump <mrs@apple.com>
2177 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2178 renaming this node to Concept Index.
2179 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2180 to more closely match gcc.texi.
2182 2004-11-12 Jeff Law <law@redhat.com>
2184 * tree-cfg.c (hashtab.h): Include.
2185 (struct edge_to_case_leader_elt): New structure.
2186 (edge_to_case_leader): New.
2187 (edge_to_case_leader_hash): New hashtable hasing function.
2188 (edge_to_case_leader_eq): New hashtable equality function.
2189 (record_switch_edge): New function.
2190 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2191 (make_switch_expr_edges): Build the edge-to-case-leader
2192 hash table. Tear down the hash table when we're done.
2193 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2195 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2196 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2197 to use new concept of case leaders to reduce overhead of
2198 redirecting outgoing edges from switch statements.
2199 * tree.c (get_case_label): New function.
2200 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2201 (CASE_LEADER_OR_LABEL): Define.
2203 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2205 * varasm.c (output_addressed_constants): For CONST_DECLs,
2206 output the initializer if present.
2208 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2210 * config/rs6000/darwin.h: Fix confusing typo in comment.
2212 2004-11-12 Devang Patel <dpatel@apple.com>
2214 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2216 2004-11-12 Devang Patel <dpatel@apple.com>
2218 * tree-if-conv.c (clean_predicate_lists): Use loop header
2221 2004-11-12 Richard Henderson <rth@redhat.com>
2224 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2225 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2226 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2227 * config/i386/i386-modes.def (XF): Use it.
2229 2004-11-11 Geoffrey Keating <geoffk@apple.com>
2231 * Makefile.in (macro_list): Use move-if-change to avoid spurious
2234 2004-11-12 Mark Mitchell <mark@codesourcery.com>
2237 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2238 when deciding whether to pass a variable to
2239 cgraph_varpool_finalize_decl or assemble_variable.
2240 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2242 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
2244 * tree-vectorizer.c: Fix a comment typo.
2246 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2248 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2250 2004-11-12 Diego Novillo <dnovillo@redhat.com>
2252 * tree-scalar-evolution.c (analyzable_condition): Remove
2253 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2255 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2257 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2258 Remove m505/roe multilib variant.
2260 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2262 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2263 to load from the stack.
2265 2004-11-12 Richard Henderson <rth@redhat.com>
2267 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2268 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2269 * toplev.h (FL2T__): Remove.
2270 (CLZ_HWI): Rename from FL2T_CLZ__.
2272 (floor_log2): Simplify.
2275 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2277 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2278 compute the first overlapping iterations.
2280 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2283 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2284 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2286 2004-11-12 Steven Bosscher <stevenb@suse.de>
2288 PR tree-optimization/18419
2289 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2290 pointer set instead of a bitmap.
2291 (walk_use_def_chains): Create, pass and clean up that pointer_set.
2293 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2295 (init_alias_info): Allocate and zero it here.
2296 (delete_alias_info): Delete it here.
2297 (collect_points_to_info_for): Use it.
2299 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2301 * alias.c (record_alias_subset, addr_side_effect_eval):
2303 * alias.h: Remove the prototype for record_alias_subset.
2304 * expr.h: Remove the commented-out prototype for
2305 record_alias_subset.
2306 * rtl.h: Remove the prototype for addr_side_effect_eval.
2308 * cfglayout.c (choose_inner_scope): Make it static.
2309 * rtl.h: Remove the corresponding prototype.
2311 * cfgloopmanip.c (update_single_exits_after_duplication,
2312 unloop): Make them static.
2313 * cfgloop.h: Remove the corresponding prototypes.
2315 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2317 * c-tree.h: Remove the corresponding prototypes.
2319 * explow.c (round_push): Make it static.
2320 * expr.h: Remove the corresponding prototype.
2322 * varasm.c (get_named_section_flags, decl_tls_model): Make
2324 * output.h: Remove the prototype for get_named_section_flags.
2325 * tree.h: Remove the prototype for decl_tls_model.
2327 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2329 * function.c (expand_function_end): Remove an "if" statement
2330 that always triggers.
2331 * stmt.c (expand_null_return_1): Likewise.
2333 2004-11-11 James E. Wilson <wilson@specifixinc.com>
2335 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2336 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2337 CLASS_MAX_NREGS): Likewise.
2339 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
2341 PR tree-optimization/17742
2342 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2343 MINUS_EXPR correctly.
2345 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
2347 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2348 Give up as soon as the evolution is known not computable.
2350 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2353 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2354 mask64_1or2_operand.
2355 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2356 to spot rlwinm opportunities.
2357 (and64_2_operand): Use mask_1or2_operand.
2358 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2360 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
2362 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2363 (vect_update_ivs_after_vectorizer): Update function documentation.
2364 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2366 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2368 * config/arm/arm.c: Fix a comment typo.
2370 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2372 * bitmap.h (nBITMAP_WORD_BITS): Remove.
2373 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
2374 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
2376 (bitmap_first_set_bit): Return unsigned, use ctzl.
2377 (bitmap_last_set_bit): Remove.
2378 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
2380 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
2381 remove special case code for two word elements.
2382 (bitmap_last_set_bit): Remove.
2383 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
2384 bitmap_first_set_bit with bitmap_empty_p.
2385 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
2386 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
2387 bitmap_last_bit_set.
2389 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2392 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
2395 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
2396 unsigned equality compare when we know the operands are unsigned.
2398 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
2400 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
2401 __PIC__ and __pic__ only if TARGET_ABICALLS.
2402 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
2403 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
2404 -KPIC only if not -mno-abicalls.
2406 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
2407 * config/sparc/linux.h, config/sparc/linux64.h
2408 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
2410 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
2411 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
2412 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
2413 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
2415 2004-11-11 Paul Brook <paul@codesourcery.com>
2417 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
2418 register if current_function_uses_pic_offset_table is set.
2420 2004-11-10 David Edelsohn <edelsohn@gnu.org>
2422 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
2423 Change multi-instruction sequences to new attribute.
2424 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
2425 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
2426 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
2428 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
2430 * tree-data-ref.c (build_classic_dist_vector): If either loop
2431 is outside of the nest we asked about, the dependence can't
2433 (build_classic_dir_vector): Ditto.
2435 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
2437 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
2439 (force_var_cost): Determine cost of addition and multiplication more
2441 (get_computation_cost_at): Add cost for computing address elements to
2444 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
2445 one of the arguments of MINUS_EXPR is an address.
2446 (split_address_to_core_and_offset): New function.
2447 (ptr_difference_const): Handle case when one of the operands is a
2449 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
2450 (ptr_difference_cost): Pass addresses instead of objects to
2451 ptr_difference_const.
2453 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
2455 * tree.c (tree_check_failed): Emit general error if the list of
2456 node types is empty.
2458 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2460 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
2461 argument. When the union is passed in the 6th slot, build a
2462 PARALLEL with only one element.
2463 (function_arg): Adjust call to function_arg_union_value.
2464 (function_value): Likewise.
2466 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
2468 PR tree-optimization/17892
2469 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
2470 MINUS_EXPR operator.
2472 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
2475 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
2476 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
2478 2004-11-10 Steven Bosscher <stevenb@suse.de>
2480 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
2481 (struct basic_block_def): Remove local_set and cond_local_set
2482 fields. Update comment for global_live_at_start.
2483 * flow.c (calculate_global_regs_live): Allocate local_sets and
2484 cond_local_sets here as arrays of bitmaps previously stored in
2485 bb->local_set and bb->cond_local_set. Use xmalloc instead of
2486 obstack allocated bitmaps.
2488 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
2491 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
2494 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
2496 2004-11-09 Jeff Law <law@redhat.com>
2498 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
2499 argument holding last unvisited block. Start search for
2500 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
2501 (connect_infinite_loops_to_exit): Supply last unvisited block
2502 to flow_dfs_compute_reverse_execute.
2504 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
2506 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
2508 (floatunssidf2): Same.
2510 ("extendsfdf2"): New expander.
2511 (*extendsfdf2_fpr): Rename.
2512 (*truncdfsf2_fpr): Same.
2513 (*negdf2_fpr): Same.
2514 (*absdf2_fpr): Same.
2515 (*nabsdf2_fpr): Same.
2516 (*adddf3_fpr): Same.
2517 (*subdf3_fpr): Same.
2518 (*muldf3_fpr): Same.
2519 (*divdf3_fpr): Same.
2521 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
2522 ("spe_fix_truncdfsi2"): Same.
2523 (spe_floatunssidf2): Same.
2524 (spe_floatsidf2): Same.
2526 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2529 * c-common.c (fname_decl): Don't use line number of decl in
2532 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2534 * config/s390/s390-protos.h (s390_pool_operand): Remove.
2535 * config/s390/s390.c (s390_pool_operand): Likewise.
2536 (s390_extra_constraint_str): Handle 'B' constraints.
2537 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
2538 * config/s390/s390.md: Document 'B' constraints.
2539 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
2540 s390_pool_operand to prevent insns with two literal pool
2541 references. Make pattern commutative.
2542 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
2543 'B' constraint instead of s390_pool_operand.
2545 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2547 * tree-cfg.c (create_bb): Remove unnecessary memset.
2549 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2551 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
2552 (thread_block): Call flush_pending_stmt instead of
2555 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2557 * loop-iv.c (iv_number_of_iterations): Make it static.
2558 * cfgloop.h: Remove the corresponding prototype.
2560 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2562 * function.c (combine_temp_slots, assign_parms,
2563 expand_pending_sizes): Make them static.
2564 * tree.h: Remove the corresponding prototypes.
2566 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2568 * emit-rtl.c (copy_most_rtx): Remove.
2569 * rtl.h: Remove the corresponding prototype.
2571 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2573 * cfgloop.c (flow_loops_update): Remove.
2574 * cfgloop.h: Remove the corresponding prototype.
2576 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2578 * conflict.c (mark_reg, conflict_graph_compute): Remove.
2579 * basic-block.h: Remove the prototype for
2580 conflict_graph_compute.
2582 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2584 * tree-if-conv.c (add_to_dst_predicate_list): Change the
2585 second argument to basic_block.
2586 (tree_if_convert_cond_expr): Update call sites.
2588 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2590 * fold-const.c (pedantic_non_lvalue): Make it static.
2591 * tree.h: Remove the corresponding prototype.
2593 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2595 * optabs.c (prepare_operand): Make it static.
2596 * optabs.h: Remove the corresponding prototype.
2598 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2600 * reload1.c (reloads_conflict, gen_reload): Make them static.
2601 * reload.h: Remove the corresponding prototypes.
2603 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2605 * reload.c (refers_to_mem_for_reload_p,
2606 refers_to_regno_for_reload_p): Make them static.
2607 * reload.h: Remove the corresponding prototypes.
2609 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2610 Eric Botcazou <ebotcazou@libertysurf.fr>
2613 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
2614 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
2615 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
2616 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
2617 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
2618 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
2619 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
2620 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
2621 MODE_VECTOR_INT modes.
2622 (sparc_extra_constraint_check): Add new constraint 'Y'.
2623 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
2624 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
2625 (V64): New mode macro for 64-bit modes.
2626 (movsf): Use V32 for mode instead of SF.
2627 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
2628 alongside 'G' constraint.
2629 (movdf): Use V64 for mode instead of DF.
2630 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
2631 of DF. Add 'Y' constraint alongside 'G' constraint.
2632 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
2635 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2637 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
2638 integer NEG and ABS.
2639 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
2640 ("*negdi2_31"): Reimplement using a splitter.
2641 ("*negdi2_cc", "*negdi2_cconly"): New insns.
2642 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
2643 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
2644 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
2645 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
2646 ("*absdi2_cc", "*absdi2_cconly"): New insns.
2647 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
2648 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
2649 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
2650 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
2651 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
2652 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
2653 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
2654 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
2655 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
2657 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2659 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
2660 when eliminating an UNSPEC_CMPINT.
2661 (s390_secondary_input_reload_class): Fix test for CC register reload.
2662 (s390_secondary_output_reload_class): Likewise.
2663 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
2664 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
2665 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
2666 insn patterns with splitters.
2668 2004-11-09 David Edelsohn <edelsohn@gnu.org>
2670 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
2671 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
2673 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2675 * tree-phinodes.c (phi_reverse): New.
2676 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
2678 * tree-flow.h: Add a prototype for phi_reverse.
2680 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2682 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2684 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2687 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
2690 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2692 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
2693 instead of "arg" in diagnostics.
2695 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2697 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
2698 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
2699 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
2700 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
2701 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
2702 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
2703 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
2704 config/iq2000/iq2000.c, config/m32r/m32r.c,
2705 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
2706 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
2707 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
2708 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2709 config/sh/symbian.c, config/stormy16/stormy16.c,
2710 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
2711 and %> as appropriate. Use %' as apostrophe in diagnostics where
2712 applicable. Use %< and %> in place of '' quotes where applicable.
2713 Use %qs in place of %<%s%>. Consistently quote __builtin function
2716 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
2718 * gdbinit.in (pbb, pbm): New macros.
2720 2004-11-08 Jeff Law <law@redhat.com>
2722 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
2723 implementing it inline.
2725 * cfganal.c (find_edge): Search pred->succs or succ->preds,
2726 whichever is shorter.
2728 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2730 * passes.c (rest_of_handle_jump): Remove dead code.
2732 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2734 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
2735 the last used element in the worklist.
2737 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2739 * tree-inline.c (remap_save_expr): Make it static.
2740 * tree-inline.h: Remove the corresponding prototype.
2742 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2744 * tree-ssa-loop-niter.c (upper_bound_in_type,
2745 lower_bound_in_type): Make them static.
2746 * tree.h: Remove the corresponding prototypes.
2748 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2750 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
2752 * tree-ssa-live.h: Remove the corresponding prototypes.
2754 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2756 * tree-if-conv.c (tree_if_conversion): Make it static.
2757 * tree-flow.h: Remove the corresponding prototype.
2759 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2761 * tree-ssa-operands.c (build_ssa_operands): Make it static.
2762 * tree-flow.h: Remove the corresponding prototype.
2764 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
2767 * tree-inline.c (copy_body_r): Change "t = t" to empty
2768 statement instead of "t".
2770 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2772 * modulo-sched.c (create_partial_schedule,
2773 free_partial_schedule, reset_partial_schedule,
2774 ps_add_node_check_conflicts, rotate_partial_schedule): Make
2777 2004-11-08 Richard Henderson <rth@redhat.com>
2779 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
2782 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2784 * sched-deps.c (add_insn_mem_dependence): Make it static.
2785 * sched-int.h: Remove the corresponding prototypes.
2787 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2789 * flow.c (allocate_bb_life_data): Make it static.
2790 * basic-block.h: Remove the corresponding prototype.
2792 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2794 * calls.c (split_complex_values, split_complex_types): Make
2796 * expr.h: Remove the corresponding prototypes.
2798 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
2800 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
2801 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
2803 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2805 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
2806 statements that always trigger.
2808 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2810 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
2811 tree-scalar-evolution.c, tree-ssa-loop-im.c,
2812 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
2813 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
2816 2004-11-08 Ben Elliston <bje@au.ibm.com>
2818 * cgraph.h (cgraph_calls_p): Remove.
2819 * cgraph.c (cgraph_calls_p): Likewise.
2821 * varray.h (varray_copy): Remove.
2822 * varray.c (varray_copy): Likewise.
2824 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
2827 * config/darwin.c (machopic_indirect_data_reference):
2828 Call gen_macho_high and gen_macho_low instead of
2829 checking the mode and calling gen_macho_high_di directly.
2830 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
2831 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
2833 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
2834 load_macho_picbase, macho_low, macho_high): Removed.
2835 (builtin_setjmp_receiver): Call gen_macho_high and
2836 gen_macho_low instead of checking the mode and calling
2837 gen_macho_high_di directly.
2838 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
2839 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
2840 Moved from rs6000.md.
2841 (macho_high): New expander.
2842 (macho_high_si): Renamed version of macho_high from rs6000.md.
2843 (macho_low): New expander.
2844 (macho_low_si): Renamed version of macho_low from rs6000.md.
2845 (load_macho_picbase): New expander.
2846 (load_macho_picbase_si): Renamed version of load_macho_picbase
2848 (macho_correct_pic): New expander.
2849 (macho_correct_pic_si): Renamed version of macho_correct_pic
2852 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
2854 * c-decl.c (finish_struct): Use complete sentences for diagnostic
2855 for structures or unions with no members or named members.
2857 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
2859 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
2860 taking address of bit-field by assertion.
2862 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2864 * config/s390/s390.md (attribute "op_type"): Default to "NN".
2865 (attribute "atype"): Default to "agen".
2866 (attribute "length"): Default to 6.
2867 (define_asm_attibutes): Remove.
2868 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
2869 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
2870 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
2871 Do not set type attribute to "cs" where already default.
2872 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
2874 Do not set type attribute to "other" where already default.
2875 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
2876 "*strlendi", "*strlensi",
2877 "*movmem_long_64", "*movmem_long_31",
2878 "*clrmem_long_64", "*clrmem_long_31",
2879 "*cmpmem_long_64", "*cmpmem_long_31",
2880 "*cmpint_si", "*cmpint_di",
2881 "addti3", "*adddi3_31z", "*adddi3_31",
2882 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
2883 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
2884 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
2885 "*pool_entry", "pool_align", "pool_section_start",
2886 "pool_section_end", "main_pool", "reload_base_31", "pool"):
2887 Do not set op_type attribute to "NN" where already default.
2888 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
2889 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
2890 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
2891 Do not set atype attribute to "agen" where already default.
2892 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
2894 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
2896 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
2898 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
2901 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
2902 R3000 and R4000 macros on IRIX.
2904 2004-11-06 Andreas Schwab <schwab@suse.de>
2907 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
2910 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2912 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
2914 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2916 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
2917 matches no insns already matched by other reservations.
2918 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
2919 matches no insns already matched by other reservations.
2920 ("x_ss"): Remove, replace by ...
2921 ("x_cs"): ... this new reservation. Check type instead of op_type.
2922 Update bypasses to use x_cs instead of x_ss.
2923 ("x_nn"): Remove, replace by ...
2924 ("x_other"): ... this new reservation. Check type instead of op_type.
2925 Add x_other and x_branch to bypasses.
2926 ("x_vs"): New reservation.
2927 * config/s390/s390.md (attribute "type"): Default according to op_type.
2928 ("*execute"): Set type to "cs".
2930 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2932 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
2933 if we are in GIMPLE.
2935 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
2937 PR rtl-optimization/17933
2938 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
2939 (covers_regno_p): New function. Handle SETs of PARALLEL,
2940 and defer the rest to...
2941 (covers_regno_no_parallel_p): New function.
2943 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2945 * config/sparc/sparc.c (function_arg_record_value_1): Skip
2946 fields with zero length.
2947 (function_arg_record_value_2): Likewise.
2948 (function_arg_record_value_3): Use smallest_mode_for_size
2949 instead of mode_for_size.
2950 (function_arg_union_value): Return naked register for unions
2953 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2955 * config/sparc/sparc.c (scan_record_type): Handle vector types.
2956 (function_arg_slotno): Handle vector types specially.
2957 (function_arg_record_value_1): Split fields with vector type and
2958 BLKmode into their subparts.
2959 (function_arg_record_value_2): Likewise. Be prepared to handle
2960 more than 2 registers per field.
2961 (function_arg_union_value): Increment regno inside the loop.
2962 (function_arg_vector_value): New function.
2963 (function_arg): Use it to split fields with vector type and
2964 BLKmode into their subparts and build a PARALLEL. Treat
2965 other vector types like floats.
2966 (function_value): Likewise.
2967 (sparc_pass_by_reference): Handle vector types.
2968 (sparc_return_in_memory): Likewise.
2970 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2972 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
2973 statement that never triggers.
2975 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2977 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
2978 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
2979 ("x_fdivd"): Use also for fsqrtd type.
2980 ("x_fdivs"): Use also for fsqrts type.
2981 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
2982 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
2983 ("fix_truncdfsi2_ibm"): Set type to "other".
2984 ("floatdidf2", "floatdisf2"): Do not clobber CC.
2985 ("floatsidf2", "floatsidf2_ieee"): Likewise.
2986 ("floatsisf2", "floatsisf2_ieee"): Likewise.
2987 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
2988 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
2990 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
2991 ("sqrtdf2"): Set type to "fsqrtd".
2992 ("sqrtsf2"): Set type to "fsqrts".
2994 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2996 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
2997 pointer to the last PHI node in the new PHI chain.
2999 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
3001 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
3002 for non-PIC TLS_MODEL_INITIAL_EXEC case.
3004 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3006 * expmed.c: Fix a comment typo.
3008 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3011 * config/i386/cygming.h
3012 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3014 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3016 * config/sh/sh4a.md: Fix copyright.
3018 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3020 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3023 2004-11-05 David Edelsohn <edelsohn@gnu.org>
3025 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3026 when carry not used. Suggested by Torbjorn Granlund.
3028 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3029 operand[1] unnecessarily. Suggested by Eric Christopher.
3030 (rs6000_adjust_cost): Increase latency of store to wider load.
3031 (rs6000_rtx_costs): mulli only allows 16-bit constants.
3033 2004-11-05 Stan Shebs <shebs@apple.com>
3035 * config/rs6000/rs6000.c (machopic_output_stub): Output
3036 ldu instead of lwzu for 64-bit stubs.
3038 2004-11-05 Richard Henderson <rth@redhat.com>
3040 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
3042 (alpha_expand_unaligned_store): Likewise.
3044 2004-11-05 Richard Henderson <rth@redhat.com>
3046 * expmed.c (extract_force_align_mem_bit_field): New.
3047 (extract_split_bit_field): Call it.
3049 2004-11-05 Richard Henderson <rth@redhat.com>
3051 * ia64.md (UNSPEC_SHRP): New.
3052 (dshift_count_operand): New.
3053 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
3054 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
3056 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3058 * c-typeck.c (output_init_element): Return early if value is
3061 2004-11-05 James E Wilson <wilson@specifixinc.com>
3063 * invoke.texi (-fno-guess-branch-probability): Rewrite.
3065 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
3066 1 to UNSPEC_GR_SPILL.
3068 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
3070 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
3071 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
3073 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
3075 * bitmap.h (enum bitmap_bits): Remove.
3076 (bitmap_operation): Remove.
3077 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3078 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3079 bitmap_xor_into): Prototype.
3080 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
3081 (bitmap_operation): Remove.
3082 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3083 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3084 bitmap_xor_into): New.
3085 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
3087 PR tree-optimization/18307
3088 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
3089 and ORIG being the same node.
3091 2004-11-04 Geoffrey Keating <geoffk@apple.com>
3093 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
3094 (install-mkheaders): Install the version built for the
3095 host, not for the build machine.
3096 * configure.ac: Always run fixincludes.
3097 (all_outputs): Remove mkheaders.
3098 * configure: Regenerate.
3099 * fixinc.in: Move to fixincludes/.
3100 * mkfixinc.sh: Likewise.
3101 * mkheaders.in: Likewise.
3102 * README-fixinc: Likewise.
3104 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3107 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
3108 equivalent on the A4.
3110 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3112 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
3113 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
3114 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
3115 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
3116 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3117 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
3118 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
3119 doc/trouble.texi: Correct end-of-sentence markup and markup of
3120 "etc.", "e.g." and "i.e.". Use @code in various places where
3123 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3125 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
3126 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
3127 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
3130 2004-11-04 Mark Mitchell <mark@codesourcery.com>
3132 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
3133 * doc/extend.texi: Document "notshared" attribute.
3135 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3137 * tree-phinodes.c (make_phi_node): Make it static.
3138 * tree.h: Remove the prototypes for make_phi_node.
3140 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3142 * stmt.c (expand_asm, expand_asm_operands): Make them static.
3143 * tree.h: Remove the prototypes for expand_asm and
3144 expand_asm_operands.
3146 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3148 * passes.c (rest_of_compilation): Make it static.
3149 * toplev.h: Remove the prototype for rest_of_compilation.
3151 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3153 * jump.c (cleanup_barriers): Use delete_insn instead of
3155 (delete_barrier): Remove.
3156 * rtl.h: Remove the corresponding prototype.
3158 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3160 * expr.c (mostly_zero_p): Make it static.
3161 * tree.h: Remove the prototype for mostly_zeros_p.
3163 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3165 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
3167 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3169 * builtins.c (expand_builtin_return_addr,
3170 expand_builtin_longjmp, expand_builtin_trap): Make them static.
3171 * expr.h: Remove the prototypes for expand_builtin_longjmp and
3172 expand_builtin_trap.
3173 * tree.h: Remove the prototype for expand_builtin_return_addr.
3175 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3177 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
3178 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
3179 with VAL being NULL.
3181 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3183 * cfghooks.c (delete_basic_block): Remove code to truncate
3186 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
3188 * flow.c (init_propagate_block_info): Change the type of i to
3191 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3193 PR tree-optimization/18184
3194 * c-typeck.c (comptypes): Do not treat pointers of different
3195 modes or alias-all flags as equivalent.
3196 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
3198 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
3200 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
3201 reference specific C parser files in examples.
3203 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
3206 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
3207 as OP_INOUT if the instruction is predicated.
3209 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3211 * bitmap.h: Fix a comment typo. Follow spelling conventions.
3212 * tree-vectorizer.c: Fix a comment typo.
3214 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3216 * sdbout.c (SDB_GENERATE_FAKE): Remove.
3217 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
3218 * system.h: Poison SDB_GENERATE_FAKE.
3219 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
3221 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3223 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
3225 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3228 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
3231 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
3233 * predict.c (propagate_freq): Make bitno unsigned. Move
3234 npredecessors update out of loop.
3236 * bitmap.h (bitmap_iterator): Remove word_bit and bit
3237 fields. Rename others.
3238 (bmp_iter_common_next_1, bmp_iter_single_next_1,
3239 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
3240 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
3241 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
3242 bmp_iter_and_next): Remove.
3243 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
3244 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
3246 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
3247 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
3249 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
3250 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
3251 bitmap_and_into, bitmap_ior_into as appropriate.
3252 * except.c (remove_eh_handler): Likewise.
3253 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
3254 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3255 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
3256 * tree-ssa-live.h (live_merge_and_clear): Likewise.
3257 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
3260 * bitmap.c (bitmap_print): Make bitno unsigned.
3261 * bt-load.c (clear_btr_from_live_range,
3262 btr_def_live_range): Likewise.
3263 * caller-save.c (save_call_clobbered_regs): Likewise.
3264 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3265 * cfgcleanup.c (thread_jump): Likewise.
3266 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3267 * conflict.c (conflict_graph_compute): Likewise.
3268 * ddg.c (add_deps_for_use): Likewise.
3269 * df.c (df_refs_update): Likewise.
3270 * except.c (remove_eh_handler): Likewise.
3271 * flow.c (verify_local_live_at_start, update_life_info,
3272 initialize_uninitialized_subregs, propagate_one_insn,
3273 free_propagate_block_info, propagate_block, find_use_as_address,
3274 reg_set_to_hard_reg_set): Likewise.
3275 * gcse.c (clear_modify_mem_tables): Likewise.
3276 * global.c (global_conflicts, build_insn_chain): Likewise.
3277 * ifcvt.c (dead_or_predicable): Likewise.
3278 * local-alloc.c (update_equiv_regs): Likewise.
3279 * loop.c (load_mems): Likewise.
3280 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
3282 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
3284 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
3285 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
3286 * sched-rgn.c (propagate_deps
3287 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
3288 * tree-dfa.c (dump_dfa_stats
3289 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
3290 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
3292 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
3293 free_temp_expr_table, find_replaceable_exprs): Likewise.
3294 * tree-sra.c (scan_function, scalarize_parms): Likewise.
3295 * tree-ssa-alias.c (init_alias_info,
3296 compute_points_to_and_addr_escape,
3297 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
3298 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
3299 * tree-ssa-live.c (new_tree_live_info, live_worklist,
3300 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
3301 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
3302 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3303 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
3304 add_call_read_ops): Likewise.
3305 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
3306 * tree-ssa-live.h (num_var_partitions): Return unsigned.
3308 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
3310 PR tree-optimization/18009
3311 * tree-vectorizer.h (enum dr_alignment_support): New type.
3312 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
3313 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
3314 single data_reference (instead of a varray of references).
3315 * tree-vectorizer.c (new_loop_vec_info): Likewise.
3316 (vect_gen_niters_for_prolog_loop): Likewise.
3317 (vect_update_inits_of_drs): Likewise.
3319 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
3320 vect_enhance_data_refs_alignment.
3321 (vect_do_peeling_for_alignment): Likewise.
3322 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
3323 this functionality used to be in vect_analyze_data_refs_alignment.
3324 Also update DR_MISALIGNMENT due to peeling; this functionality used to
3325 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
3326 (vect_analyze_data_refs_alignment): Decision on whether and by how much
3327 to peel moved to vect_enhance_data_refs_alignment. Call
3328 vect_supportable_dr_alignment.
3330 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
3331 (vect_compute_data_refs_alignment): Return bool. Consider return value
3332 of vect_compute_data_ref_alignment and return true/false accordingly.
3333 (vect_enhance_data_refs_alignment): Consider return value of
3334 vect_compute_data_refs_alignment and return true/false accordingly.
3336 (vect_supportable_dr_alignment): New function.
3337 (vectorizable_store): Call vect_supportable_dr_alignment.
3338 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
3339 support checks moved from here to vect_supportable_dr_alignment.
3341 (vect_transform_loop): Avoid 80 columns overflow.
3343 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3345 * timevar.c (timevar_enable): Change from
3347 (timevar_push): Rename to ...
3348 (timevar_push_1): this and remove the
3350 (timevar_pop): Rename to ...
3351 (timevar_pop_1): this and remove the
3353 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
3354 (timevar_pop): New macro.
3355 (timevar_push): New macro.
3356 (timevar_enable): Declare.
3358 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3360 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
3361 libgcc for shared libraries.
3363 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3365 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
3366 * config/s390/s390.c (s390_split_access_reg): New function.
3367 (regclass_map): Add access registers.
3368 (get_thread_pointer): Use access register instead of UNSPEC_TP.
3369 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
3370 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
3371 (TP_REGNUM): New define.
3372 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3373 REG_ALLOC_ORDER): Add access registers.
3374 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
3375 CANNOT_CHANGE_MODE_CLASS): Support access registers.
3376 (enum reg_class): Add ACCESS_REGS.
3377 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3378 (REG_CLASS_FROM_LETTER): Add 't' constraint.
3379 (REGISTER_NAMES): Add access registers.
3380 * config/s390/s390.md (UNSPEC_TP): Remove.
3381 ("*movdi_64"): Add access register alternatives. Provide splitters
3382 to split DImode access register <-> GPR moves into SImode moves.
3383 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
3384 ("movstrictsi"): Likewise.
3385 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
3386 ("set_tp_64", "set_tp_31"): Likewise.
3387 ("*set_tp"): New insn.
3389 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3391 * tree-phinodes.c (resize_phi_node): Copy only a portion of
3392 the PHI node currently in use.
3394 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3397 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
3400 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
3402 PR tree-optimization/18270
3403 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
3404 abnormal edges, commit all pending stmts on incoming edges.
3406 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3408 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
3409 cause extra costs. Generate canonical RTL.
3411 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
3413 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
3414 (lambda_compute_target_space). Ditto.
3415 * lambda.h (lambda_trans_matrix): Ditto.
3416 (lambda_linear_expression): Ditto.
3417 (lambda_body_vector): Ditto.
3418 (lambda_loopnest): Ditto.
3419 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
3420 update comments, and remove pointless addition of 0.
3421 (linear_transform_loops): Update comments.
3423 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
3425 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
3428 2004-11-03 Jeff Law <law@redhat.com>
3430 * predict.c (struct block_info_def): Kill "tovisit" field.
3431 (propagate_freq): Accept new "tovisit" parameter. Change
3432 read/write access methods for "tovisit" to check the "tovisit"
3433 bitmap instead of a bit in block_info_def.
3434 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
3435 it to propagate_freq.
3437 * stmt.c (expand_case): Speed up code to detect duplicate case
3438 label targets and count unique case label targets.
3440 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3442 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
3444 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3446 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
3448 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3450 * tree-cfg.c (find_taken_edge): Abort if we are given a
3451 statement that is neither COND_EXPR nor SWITCH_EXPR.
3453 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
3455 * fold-const.c (fold): Reassociate also (x - mult) + mult and
3456 (mult - x) + mult. Cast operands of expression after applying
3457 distributive law to the correct types. Apply distributive law
3458 to a * c - b * c for all non-float types.