1 2004-11-25 Richard Henderson <rth@redhat.com>
3 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
4 args_size adjustments for calls even with cfa as stack pointer.
5 Search calls for stack adjustments after the insn is issued.
6 (dwarf2out_frame_debug): Add after_p argument; pass it on.
7 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
8 * final.c (final_start_function, final_scan_insn): Likewise.
10 2004-11-25 Richard Henderson <rth@redhat.com>
13 * reload1.c (set_initial_eh_label_offset): New.
14 (set_initial_label_offsets): Use it.
16 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
18 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
19 before calling life_analysis and release them after.
21 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
23 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
26 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
28 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
30 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
32 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
34 parts of PR rtl-opt/18463, rtl-opt/17647
35 * cse.c (canon_for_address): New function.
36 (find_best_addr): Call canon_for_address before getting the
37 address's cost when checking if we should take that address.
39 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
41 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
42 "tree *" as the first argument.
43 * tree-flow.h: Update the prototype of add_phi_arg.
44 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
45 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
46 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
47 tree-vectorizer.c: Update all call sites of add_phi_arg.
49 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
51 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
52 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
53 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
54 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
56 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
58 PR tree-optimization/18587
59 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
60 call clobbered caches as invalid.
61 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
62 indicating whether the call clobbered operand cache is valid.
63 (ssa_ro_call_cache_valid): New. Flag indicating whether the
64 pure/const call operand cache is valid.
65 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
66 list of operands for cached call virtual operands.
67 (clobbered_aliased_loads, clobbered_aliased_stores,
68 ro_call_aliased_load): New. flags caching whether alias bits are
69 to be set in call stmt's.
70 (fini_ssa_operands): Remove call operand caches if present.
71 (get_expr_operands, get_asm_expr_operands,
72 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
73 (get_call_expr_operands): Add call clobbered variables first.
74 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
75 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
76 if it is valid, otherise fill the cache.
77 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
78 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
79 in_v_may_def_list bits.
80 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
81 in_list bits for the v_may_def elements and empty the operand
83 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
84 VUSES by checking the in_v_may_def_list bit.
85 (append_v_may_def, append_vuse): Use the in_list bit rather than
86 scanning the array for duplicates.
88 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
90 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
91 displacements are not short.
93 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
95 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
98 2004-11-25 Mark Mitchell <mark@codesourcery.com>
101 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
102 (lvalue_or_else): Declare.
103 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
104 * c-typeck.c (lvalue_use): Remove.
105 (lvalue_or_else): Remove.
108 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
109 unemitted variables with static storage duration.
111 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
113 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
116 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
118 * config/rs6000/altivec.md (VIshort): New mode macro.
119 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
121 (altivec_vaddu<VI_char>s): ... this.
122 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
124 (altivec_vadds<VI_char>s): ... this.
125 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
127 (altivec_vsubu<VI_char>s): ... this.
128 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
130 (altivec_vsubs<VI_char>s): ... this.
131 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
133 (altivec_vavgu<VI_char>): ... this.
134 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
136 (altivec_vavgs<VI_char>): ... this.
137 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
138 (altivec_vmsumu<VI_char>m): ... this.
139 (altivec_vmsummbm, altivec_vmsummhm): Replace
141 (altivec_vmsumm<VI_char>m): ... this.
142 (altivec_vandc): Remove.
143 (*andc<mode>3): Renamed to ...
144 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
145 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
147 (altivec_vrl<VI_char>): ... this.
148 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
150 (altivec_vsl<VI_char>): ... this.
151 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
153 (altivec_vsr<VI_char>): ... this.
154 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
156 (altivec_vsra<VI_char>): ... this.
157 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
158 (altivec_vsum4s<VI_char>s): ... this.
159 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
161 (altivec_vperm_<mode>): ... this.
162 (altivec_vsel_4sf): Rename to ...
163 (altivec_vsel_v4sf): ... here.
164 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
166 (altivec_vsel_<mode>): ... this.
167 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
168 altivec_vsldoi_16qi): Rename to ...
169 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
170 altivec_vsldoi_v16qi): ... here.
171 (altivec_vsldoi_4sf): Rename to ...
172 (altivec_vsldoi_v4sf): ... here.
173 (altivec_predicate_v4si, altivec_predicate_v8hi,
174 altivec_predicate_v16qi): Replace with ...
175 (altivec_predicate_<mode>): ... this.
176 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
178 (altivec_lve<VI_char>x): ... this.
179 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
181 (altivec_stve<VI_char>x): ... this.
182 (absv16qi2, absv8hi2, absv4si2): Replace
184 (abs<mode>2): ... this.
185 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
187 (altivec_abss_<mode>): ... this.
188 (vec_realign_load_v16qi, vec_realign_load_v8hi,
189 vec_realign_load_v4si): Replace with ...
190 (vec_realign_load_<mode>): ... this.
191 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
193 (rs6000_expand_ternop_builtin): Likewise.
195 2004-11-25 Andrew Haley <aph@redhat.com>
197 * gcc.c (process_command): Don't supply -v to linker.
199 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
201 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
202 instead of `%s' in diagnostic.
204 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
206 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
207 (FREE_REG_SET): Adjust.
208 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
209 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
210 (BITMAP_ALLOC): ... here.
211 (BITMAP_OBSTACK_FREE): Rename to ...
212 (BITMAP_FREE): Don't check for NULL bitmap here.
213 * tree-ssa-pre.c (value_insert_into_set_bitmap,
214 bitmap_set_new): Use new names.
216 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
217 * df.c (df_free): Likewise.
218 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
219 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
221 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
222 (ALLOC_REG_SET): ... here.
223 (FREE_REG_SET): Adjust.
224 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
225 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
226 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
227 * cfgrtl.c (rtl_split_block, rtl_split_edge,
228 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
229 * flow.c (update_life_info, calculate_global_regs_live,
230 allocate_bb_life_data, init_propagate_block_info): Adjust.
231 * global.c (build_insn_chain): Adjust.
232 * ifcvt.c (dead_or_predicable): Adjust.
233 * loop-iv.c (simplify_using_initial_values): Adjust.
234 * recog.c (peephole2_optimize): Adjust.
235 * sched-deps.c (init_deps_global): Adjust.
237 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
239 * config.gcc (avr-*-rtems*): Fix typo.
241 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
243 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
245 2004-11-24 Jeff Law <law@redhat.com>
247 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
248 the number of queries to random elements in the ai->written_vars
251 2004-11-24 Roger Sayle <roger@eyesopen.com>
253 * config/i386/i386.c (override_options): Disable x87 fancy math
254 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
256 2004-11-24 Roger Sayle <roger@eyesopen.com>
258 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
259 system header conflict on AIX 5.2.
260 * configure: Regenerate.
262 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
264 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
265 instead of calling phi_arg_from_edge.
267 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
270 2004-11-24 Ben Elliston <bje@au.ibm.com>
272 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
273 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
274 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
277 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
279 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
281 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
282 type will be remapped.
284 2004-11-24 Steven Bosscher <stevenb@suse.de>
286 * c-opts.c (c_common_post_options): Don't clear
287 flag_inline_functions.
288 * dojump.c (clear_pending_stack_adjust): Remove check on
289 flag_inline_functions, it's always true.
290 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
291 that can never trigger.
292 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
293 flag_inline_trees, now that flag_inline_functions is never
295 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
296 flag_inline_functions at optimization levels greater than
297 or equal to 3. This is already done by default.
299 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
301 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
302 instead to find the PHI argument. Do not take I as an
304 (eliminate_phi): Adjust the call to eliminate_build. Do not
305 take I as an argument.
306 (rewrite_trees): Adjust the call to eliminate_phi.
308 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
310 * optabs.h (force_expand_binop): Declare.
311 * optabs.c (force_expand_binop): Export.
312 * stmt.c (shift_return_value): Delete.
313 (expand_return): Don't call it.
314 * expr.h (shift_return_value): Declare.
315 * calls.c (shift_returned_value): Delete in favor of...
316 (shift_return_value): ...this new function. Leave the caller to check
317 for non-BLKmode values passed in the msb of a register. Take said mode
318 and a shift direction as argument. Operate on the hard function value,
320 (expand_call): Adjust accordingly.
321 * function.c (expand_function_start): If a non-BLKmode return value
322 is padded at the last significant end of the return register, use the
323 return value's natural mode for the DECL_RESULT, not the mode of the
325 (expand_function_end): Shift the same sort of return values left by
326 the appropriate amount.
328 2004-11-24 Matt Austern <austern@apple.com>
330 * recog.c (recog_memoized_1): Remove.
331 * recog.h (recog_memoized_1): Remove declaration.
332 (recog_memoized): Change from macro to inline function.
334 2004-11-24 Devang Patel <dpatel@apple.com>
337 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
338 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
340 2004-11-24 Devang Patel <dpatel@apple.com>
342 * gcc.c (process_command): Supply -v to linker.
344 2004-11-24 David Edelsohn <edelsohn@gnu.org>
345 Paolo Bonzini <bonzini@gnu.org>
347 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
348 vector modes without ALTIVEC_ABI. Use GCC vector instead of
350 (rs6000_pass_by_reference): Split conditional into pieces. Use
351 GCC vector instead of synthetic vector.
353 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
355 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
356 thread-local variable is invariant.
358 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
360 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
361 Handle TYPE_REF_CAN_ALIAS_ALL.
362 (print_declaration): Print array dimensions like dump_generic_node.
364 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
365 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
367 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
369 * bitmap.c (INLINE): Do not define.
370 (bitmap_elem_to_freelist, bitmap_element_free,
371 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
372 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
374 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
376 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
377 find the index of a PHI argument. Use e->dest_idx instead.
378 Replace hint with index.
380 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
383 2004-11-24 Diego Novillo <dnovillo@redhat.com>
385 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
388 2004-11-24 Joseph Myers <joseph@codesourcery.com>
390 * config/i386/i386.c (optimization_options): Use
391 SUBTARGET_OPTIMIZATION_OPTIONS.
392 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
393 (TARGET_SUBTARGET_DEFAULT): Don't include
394 MASK_OMIT_LEAF_FRAME_POINTER.
396 2004-11-24 Mark Mitchell <mark@codesourcery.com>
398 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
401 2004-11-24 Joseph Myers <joseph@codesourcery.com>
403 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
404 Use amd64 instead of 64.
406 2004-11-24 Mark Mitchell <mark@codesourcery.com>
407 Joseph Myers <joseph@codesourcery.com>
409 * crtstuff.c (IN_LIBGCC2): Define it.
410 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
411 instead of HAVE_LD_RO_RW_SECTION_MIXING.
412 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
413 * dwarf2out.c (named_section_eh_frame_section): Check
414 EH_TABLES_CAN_BE_READ_ONLY.
415 * except.c (default_exception_section): Likewise.
416 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
417 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
419 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
421 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
422 index of a PHI argument.
424 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
425 find_edge to find the index of a PHI argument.
427 2004-11-24 Steven Bosscher <stevenb@suse.de>
429 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
430 and LABELED_BLOCK_EXPR.
431 * gimplify.c (gimplify_labeled_block_expr): Remove.
432 (gimplify_exit_block_expr): Remove.
433 (gimplify_expr): Don't call them.
434 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
435 and LABELED_BLOCK_EXPR.
436 (estimate_num_insns_1): Likewise.
437 (walk_tree): Likewise.
438 * tree-pretty-print.c (dump_generic_node): Don't handle
439 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
440 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
441 (LABELED_BLOCK_EXPR): Likewise.
442 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
443 (LABELED_BLOCK_BODY): Likewise.
444 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
445 (EXIT_BLOCK_RETURN): Removed.
447 2004-11-24 Steven Bosscher <stevenb@suse.de>
449 * cfgrtl.c (rtl_delete_block): Fix comment.
450 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
451 or BLOCK_END insn notes.
452 * jump.c (squeeze_notes): Likewise.
453 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
454 EH_REGION_END notes, we never have them to begin with.
455 * sched-deps.c (sched_analyze_insn): When updating loop notes,
456 verify that we have indeed only recorded loop notes.
457 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
458 Only record loop notes.
460 * cfgexpand.c (tree_expand_cfg): Fix comment.
462 * passes.c (rest_of_compilation): Don't do a second call to
463 convert_from_eh_region_ranges from here, it's already called
465 * except.c (resolve_fixup_regions): Remove.
466 (remove_fixup_regions): Remove.
467 (convert_from_eh_region_ranges_1): Remove.
468 (convert_from_eh_region_ranges): Remove the case where EH is
469 not already lowered at the tree level. We always lower there.
471 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
474 * tree.c (make_vector_type): Move qualifiers to the vector type,
475 use the inner type's main variant and build a main variant for
476 the vector type if necessary.
477 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
479 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
481 * target.h (late_rtl_prologue_epilogue): Remove.
482 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
483 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
484 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
486 (rest_of_handle_flow2): ...here.
487 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
488 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
490 2004-11-23 Mark Mitchell <mark@codesourcery.com>
492 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
493 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
494 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
496 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
498 * config/i386/i386.c (override_options): Move
499 SUBTARGET_OVERRIDE_OPTIONS before defaulting
500 flag_omit_frame_pointer.
502 2004-11-23 Richard Henderson <rth@redhat.com>
504 * rtl.h (validate_subreg): Declare.
505 * emit-rtl.c (validate_subreg): New.
506 (gen_rtx_SUBREG): Use it.
507 * simplify-rtx.c (simplify_subreg): Likewise.
508 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
509 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
510 fallback whenever gen_realpart/gen_imagpart would not be able to
513 2004-11-23 Richard Henderson <rth@redhat.com>
515 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
516 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
519 2004-11-23 Diego Novillo <dnovillo@redhat.com>
521 PR tree-optimization/18618
522 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
523 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
524 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
526 (stmts_to_rescan): Likewise.
527 (const_and_copies_stack): Likewise.
528 (nonzero_vars_stack): Likewise.
529 (vrp_variables_stack): Likewise.
531 2004-11-23 Richard Henderson <rth@redhat.com>
533 * cse.c (record_jump_cond_subreg): New.
534 (record_jump_cond): Use it instead of gen_lowpart.
536 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
537 Joseph Myers <joseph@codesourcery.com>
539 * config/sol2-c.c (solaris_register_pragmas): Use
540 c_register_pragma_with_expansion.
541 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
542 * c-pragma.c (c_register_pragma): Update call to
544 (c_register_pragma_with_expansion): New function.
545 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
546 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
547 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
549 * doc/tm.texi (c_register_pragma_with_expansion,
550 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
552 2004-11-23 Richard Henderson <rth@redhat.com>
554 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
555 as mode sizes into local temporaries. Unify failure path.
557 2004-11-23 Richard Henderson <rth@redhat.com>
559 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
560 * caller-save.c (mark_set_regs): Use subreg_regno instead.
561 * final.c (alter_subreg): Likewise.
562 * local-alloc.c (reg_is_born): Likewise.
564 2004-11-23 Richard Henderson <rth@redhat.com>
566 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
567 instead of using a SUBREG temporary.
569 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
571 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
574 2004-11-23 Zack Weinberg <zack@codesourcery.com>
576 * function.h (struct function): Remove calls_longjmp.
577 (current_function_calls_longjmp): Delete.
578 * tree.h (ECF_LONGJMP): Delete.
579 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
580 (ECF_LIBCALL_BLOCK): Everybody slide down one.
581 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
582 * builtins.c (expand_builtin_longjmp): Don't set
583 current_function_calls_longjmp.
584 * calls.c (special_function_p): Mark longjmp and siglongjmp
585 with ECF_NORETURN, not ECF_LONGJMP.
586 (emit_call_1, expand_call, emit_library_call_value_1):
587 Don't check for ECF_LONGJMP.
588 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
589 (need_fake_edge_p): Likewise.
591 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
592 * system.h: Poison NON_SAVING_SETJMP.
593 * function.c (use_register_for_decl)
594 * gcse.c (compute_hash_table_work, compute_store_table)
595 * postreload-gcse.c (record_opr_changes)
596 * reload.c (find_equiv_reg)
598 * config/i386/i386.c (ix86_can_use_return_insn_p):
599 Remove code conditional on NON_SAVING_SETJMP.
600 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
602 * config/i386/sysv3.h: Delete file.
603 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
605 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
607 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
608 the vectorization factor is greater than the iteration count.
609 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
610 iteration count is known.
612 (vect_build_symbol_bound): Removed. Its functionality moved to
613 vect_generate_tmps_on_preheader.
614 (vect_generate_tmps_on_preheader): Moved content of
615 vect_build_symbol_bound here instead of calling it. Changed some
618 (vect_build_loop_niters): We don't expect a new_bb to be generated -
620 (vect_gen_niters_for_prolog_loop): Likewise.
621 (vect_gen_niters_for_prolog_loo): Likewise.
623 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
624 (slpeel_add_loop_guard): Likewise.
625 (slpeel_tree_peel_loop_to_edge): Likewise.
626 (vect_do_peeling_for_alignment): Likewise.
628 (vect_get_first_index): Missing space.
630 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
632 * config/s390/s390.md ("*iordi3"): Mark commutative.
633 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
635 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
637 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
638 greater than PHI_ARG_CAPACITY.
639 (reserve_phi_args_for_new_edge): Initialize the new PHI
640 argument to NULL_TREE. Increment PHI_NUM_ARGS.
641 (add_phi_arg): Add a PHI argument to the slot given by
643 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
644 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
645 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
646 argument by looking at PHI_ARG_DEF.
647 (verify_phi_args): Check for a missing PHI argument. Remove
648 the check for duplicate PHI arguments.
649 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
650 (phi_arg_d): Remove e.
652 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
653 by restricting to the case with two outgoing edges.
655 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
657 * config/s390/s390.c (s390_backchain_string): Removed.
658 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
659 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
660 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
661 TARGET_KERNEL_BACKCHAIN to reflect the new options.
662 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
663 (TARGET_KERNEL_BACKCHAIN): Removed.
664 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
665 (TARGET_PACKED_STACK): New macro.
666 (TARGET_SWITCHES): New switches added.
667 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
669 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
670 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
671 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
672 the change in target switch semantics.
673 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
674 (TARGET_DEFAULT): MASK_BACKCHAIN added.
675 * doc/invoke.texi: Added documentation for the new/changed options.
677 2004-11-23 Uros Bizjak <uros@kss-loka.si>
679 PR rtl-optimization/18614
680 * simplify-rtx.c (simplify_binary_operation): Do not
681 simplify inner elements of constant arguments of
684 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
686 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
689 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
691 * tree-phinode.c (make_phi_node): Use a new variable,
692 capacity, to receive the return value of ideal_phi_node_len.
694 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
696 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
697 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
698 __gthread_recursive_mutex_init_function.
699 (__gthread_key_create): Properly cast -1.
700 (__gthread_recursive_mutex_init_function): New function.
701 (__gthread_recursive_mutex_lock): Rewrite.
702 (__gthread_recursive_mutex_trylock): Likewise.
703 (__gthread_recursive_mutex_unlock): Likewise.
705 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
707 * config/c4x/t-rtems: New.
708 * config.gcc: Reflect having added c4x/t-rtems.
710 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
714 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
715 lang_hooks.types.type_for_size instead of integer_type_node for the
718 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
720 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
722 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
724 * config/arm/t-rtems: New.
725 * config.gcc: Reflect having added arm/t-rtems.
727 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
729 * tree-cfg.c (tree_execute_on_growing_pred): New.
730 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
731 * tree-flow.h: Add a prototype for
732 reserve_phi_args_for_new_edge.
733 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
734 (add_phi_arg): Don't resize a PHI array.
736 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
738 * config.gcc: Add avr-*-rtems*.
739 * config/avr/t-rtems: New.
740 * config/avr/rtems.h: New.
742 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
744 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
745 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
746 Add comment to function.
748 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
751 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
753 PR rtl-optimization/14838
754 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
756 (get_last_nonnote_insn): Don't assume last insn is a note.
758 2004-11-22 Roger Sayle <roger@eyesopen.com>
760 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
761 to fold_binary_to_constant.
762 (nondestructive_fold_unary_to_constant): Likewise, rename to
763 fold_unary_to_constant.
764 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
765 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
766 (nondestructive_fold_unary_to_constant): Likewise.
767 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
768 and fold_binary_to_constant.
769 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
770 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
771 and EXEC_UNARY with calls to fold_*nary_to_constant.
772 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
773 (idx_find_step): Replace uses of EXEC_BINARY with calls to
774 fold_binary_to_constant.
776 2004-11-22 Nick Clifton <nickc@redhat.com>
778 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
779 initialisation of 'e'.
781 2004-11-22 Roger Sayle <roger@eyesopen.com>
783 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
784 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
785 automatically for targets without TARGET_80387.
786 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
787 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
788 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
789 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
790 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
791 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
792 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
793 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
794 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
795 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
796 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
797 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
798 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
799 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
800 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
801 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
802 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
803 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
804 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
805 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
807 2004-11-22 Dale Johannesen <dalej@apple.com>
809 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
810 properly and comment.
812 2004-11-22 James A. Morrison <phython@gcc.gnu.org
814 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
815 (sparc_init_builtins): New function.
816 (sparc_init_vis_builtins): Create builtin functions for VIS
818 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
819 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
820 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
821 (def_builtin): New macro for creating builtin functions.
822 (P): New mode macro for pointer types.
823 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
824 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
825 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
826 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
827 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
828 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
829 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
831 2004-11-22 Devang Patel <dpatel@apple.com>
833 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
835 2004-11-22 Devang Patel <dpatel@apple.com>
837 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
838 (if_convertible_phi_p): ... new name.
839 (if_convertable_modify_expr_p): Rename to ...
840 (if_convertible_modify_expr_p): ... new name.
841 (if_convertable_stmt_p): Rename to ...
842 (if_convertible_stmt_p): ... new name.
843 (if_convertable_bb_p): Rename to ...
844 (if_convertible_bb_p): ... new name.
845 (if_convertable_loop_p): Rename to ...
846 (if_convertible_loop_p): ... new name.
848 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
851 * configure.ac (threading): Accept 'posix95'.
852 * configure: Regenerate.
853 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
854 include sol26.h and default to posix95 threads if have_pthread_h.
855 (sparc-*-solaris2*): Likewise.
856 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
857 * gthr-posix95.h: New file.
858 * config/sol26.h: New file.
859 * doc/install.texi (--enable-threads): Document 'posix95'.
861 2004-11-23 Ben Elliston <bje@au.ibm.com>
863 * pointer-set.h (pointer_set_contains): Remove.
864 * pointer-set.c (pointer_set_contains): Likewise.
866 2004-11-22 Dale Johannesen <dalej@apple.com>
868 * calls.c (expand_call): Do not call preserve_temp_slots.
870 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
872 * tree-flow.h: Remove the prototype for remove_phi_arg.
873 Add a prototype for remove_phi_args.
874 * tree-phinodes.c (remove_phi_arg): Remove.
875 (remove_phi_args): New.
876 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
879 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
880 after making an edge.
881 (remove_edge): Call execute_on_shrinking_pred before removing
883 (redirect_edge_succ): Call execute_on_growing_pred and
884 execute_on_shrinking_pred.
885 * cfghooks.c (execute_on_growing_pred): New.
886 (execute_on_shrinking_pred): Likewise.
887 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
888 execute_on_shrinking_pred.
889 Add prototypes for execute_on_growing_pred and
890 execute_on_shrinking_pred.
891 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
892 execute_on_growing_pred and execute_on_shrinking_pred.
893 (cfg_layout_rtl_cfg_hook): Likewise.
894 * tree-cfg.c (tree_cfg_hooks): Likewise.
896 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
897 (tree_cfg_hooks): Use it.
898 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
899 (ssa_redirect_edge): Don't call remove_phi_arg_num.
901 * tree-phinodes.c (remove_phi_arg_num): Make it static.
902 * tree-flow.h: Remove the corresponding prototype.
904 * tree-ssa.c (ssa_remove_edge): Remove.
905 * tree-flow.h: Remove the corresponding prototype.
906 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
907 * basic-block.h: Likewise.
908 * tree-if-conv.c: Likewise.
909 * tree-ssa-threadupdate.c: Likewise.
911 2004-11-23 Ben Elliston <bje@au.ibm.com>
913 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
914 @table to list the BSI methods. Use individual @findex directives
915 instead of one with a comma-separated list of index entries.
917 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
919 PR tree-optimization/18529
920 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
921 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
922 (fold): Call fold_to_nonsharp_ineq_using_bound.
923 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
924 (number_of_iterations_cond): Fold the expressions before futher
926 (tree_simplify_using_condition): Handle case when cond or expr is
927 an EQ_EXPR specially.
929 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
931 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
932 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
934 2004-11-22 David Edelsohn <edelsohn@gnu.org>
935 Fariborz Jahanian <fjahanian@apple.com>
937 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
939 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
940 Align 16 byte and larger vectors like Altivec.
941 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
942 (function_arg): Same.
943 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
945 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
948 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
951 2004-11-22 Richard Henderson <rth@redhat.com>
953 * function.c (assign_parm_setup_block): Revert 11-13 change to
954 forcably re-mode a (possibly BLKmode) hard register.
956 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
958 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
960 2004-11-22 David Edelsohn <edelsohn@gnu.org>
962 * config/rs6000/power4.md: Remove delay between dispatch and issue
963 associated with dispatch group slots 3 and 4.
964 * config/rs6000/power5.md: Same.
966 2004-11-21 Jeff Law <law@redhat.com>
968 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
970 * cfgbuild.c (make_edges): Likewise.
971 * cfghooks.c (can_duplicate_block_p): Likewise.
972 * cfgloop.c (loop_latch_edge): Likewise.
973 * cfgloopmanip.c (force_single_succ_latches): Likewise.
974 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
975 * predict.c (predict_loops, propagate_freq): Likewise.
976 * tracer.c (tail_duplicate): Likewise.
977 * tree-cfg.c (disband_implicit_edges): Likewise.
978 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
980 2004-11-22 Nick Clifton <nickc@redhat.com>
982 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
983 initialisation of 'e'.
985 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
987 PR rtl-optimization/18599
988 * regrename.c (copyprop_hardreg_forward): Speed up by putting
989 BB_VISITED flags on basic blocks as we process them.
991 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
994 * config/rs6000/altivec.md (VI_char): New mode attribute.
995 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
996 (add<mode>3): ... this.
997 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
998 (sub<mode>3): ... this.
999 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1000 (smax<mode>3): ... this.
1001 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1002 (smin<mode>3): ... this.
1003 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1004 (umax<mode>3): ... this.
1005 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1006 (umin<mode>3): ... this.
1007 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1008 (and<mode>3): ... this.
1009 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1010 (ior<mode>3): ... this.
1011 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1012 (xor<mode>3): ... this.
1013 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1014 (and<mode>3): ... this.
1015 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1016 (ior<mode>3): ... this.
1017 (altivec_vnor): Replace with ...
1018 (altivec_nor<mode>): ... this.
1019 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1020 (one_cmpl<mode>2): ... this.
1021 (altivec_vandc): New expander.
1022 (*andc<mode>3): New insn.
1023 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1025 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1028 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1029 creating iv instead of integer_type.
1030 (vect_build_loop_niters): Remove redundant code.
1031 (vect_transform_loop_bound): Removed (duplicates functionality of
1032 make_loop_iterate_ntimes.
1033 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1034 lang_hooks.types.type_for_size to create a type of the required size.
1035 Use that type instead of integer_type. Remove redundant code.
1036 (vect_update_niters_after_peeling): Use type of niters instead of
1038 (vect_transform_loop): Unify handling of known and unknown loop bound
1039 cases. Call make_loop_iterate_ntimes instead of
1040 vect_transform_loop_bound.
1042 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1045 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1048 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1051 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1053 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1055 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1057 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1058 m32r/libgcc-glibc.ver.
1059 * config/m32r/libgcc-glibc.ver: Add New file.
1061 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1063 * bitmap.h (struct bitmap_obstack): New obstack type.
1064 (struct bitmap_head_def): Replace using_obstack with obstack
1066 (bitmap_default_obstack): New.
1067 (bitmap_initialize): Make inline, does not do allocation.
1068 (bitmap_release_memory): Remove.
1069 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1070 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1071 bitmap_obstack_free, bitmap_malloc_free): Declare.
1072 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1073 (BITMAP_FREE): Replace with ...
1074 (BITMAP_OBSTACK_FREE): ... this.
1075 (BITMAP_XFREE): Adjust.
1076 (BITMAP_INIT_ONCE): Remove.
1077 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1078 (bitmap_default_obstack): New.
1079 (bitmap_elem_to_freelist): Adjust.
1080 (bitmap_element_allocate): Adjust. Break initialization into ...
1081 (bitmap_obstack_initialize): ... here.
1082 (bitmap_release_memory): Replace with ...
1083 (bitmap_obstack_release): ... this.
1084 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1085 bitmap_obstack_free, bitmap_malloc_free): New.
1086 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1088 (bitmap_initialize): Move to bitmap.h.
1089 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1090 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1091 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1092 (INITIALIZE_REG_SET): Remove.
1093 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1094 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1095 (flow_obstack): Do not declare.
1096 (reg_obstack): Declare.
1097 * regs.h: Include obstack.h.
1098 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1099 release bitmap obstack here.
1100 * bb-reorder.c: #include regs, not basic-block.
1101 (fix_crossing_conditional_branches): Allocate regsets from
1103 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1105 * caller-save.c: Include regs.h earlier.
1106 * cfg.c: Do not include basic-block.h or obstack.h.
1107 (reg_obstack): Define.
1108 * cfganal.c: Include obstack.h
1109 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1111 * cfglayout.c: Do not include obstack.h.
1112 (flow_obstack): Remove declaration.
1113 (cfg_layout_duplicate_bb): Use reg_obstack.
1114 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1115 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1116 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1117 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1118 (cfg_layout_split_edge): Use reg_obstack.
1119 * cse.c: Include regs.h earlier.
1120 * ddg.c: Do not include basic-block.h.
1121 * dominance.c: Inlude obstack.h.
1122 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1123 (calculate_global_regs_live): Likewise.
1124 (allocate_bb_life_data): Use reg_obstack.
1125 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1126 * global.c: Do not include basic-block.h.
1127 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1128 * graph.c: Include obstack.h.
1129 * haifa-sched.c: Do not include basic-block.h.
1130 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1131 * local-alloc.c: Do not include basic-block.h.
1132 * loop-init.c, loop-invariant.c: Include obstack.h.
1133 * loop-iv.c: Likewise.
1134 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1136 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1137 * modulo-sched.c: Do not include basic-block.h.
1138 * passes.c (rest_of_handle_final): Do not call
1139 regset_release_memory.
1140 * ra-debug.c: Include regs.h earlier. Do not include
1142 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1143 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1144 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1145 (regset_release_memory): Remove.
1146 * resource.c: Do not include basic-block.h.
1147 * rtlanal.c: Do not include basic-block.h.
1148 * sbitmap.c: Include obstack.h.
1149 * sched-deps.c: Do not include basic-block.h.
1150 (reg_pending_sets_head, reg_pending_clobbers_head,
1151 reg_pending_uses_head): Remove.
1152 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1153 * sched-ebb.c: Do not include basic-block.h.
1154 * sched-rgn.c: Likewise.
1155 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1157 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1158 * tree-sra.c (decide_instantiations): Adjust bitmap
1160 * tree-ssa-dce.c: Include obstack.h.
1161 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1162 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1163 (bitmap_set_new): Likewise.
1164 (init_pre): Initialize bitmap obstack.
1165 (fini_pre): Release bitmap obstack.
1166 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1167 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1168 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1169 (marked_ssa_names): Likewise.
1170 (init_ssanames): Use BITMAP_XMALLOC.
1171 (fini_ssanames): Use BITMAP_XFREE.
1172 * web.c: Include obstack.h
1174 2004-11-22 Nick Clifton <nickc@redhat.com>
1176 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1177 predecessor in the first for-loop.
1179 2004-11-21 Stan Shebs <shebs@apple.com>
1181 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1183 (function_arg): Move darwin test up, sniff mode first for
1184 efficiency, test for union type.
1186 2004-11-21 Dale Johannesen <dalej@apple.com>
1188 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1190 2004-11-21 Jeff Law <law@redhat.com>
1192 * tree-ssa.c (verify_use): Fix comment.
1193 (verify_phi_args): Check that the number of incoming edges matches
1194 the number of PHI arguments. Check that each PHI argument is
1195 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1196 dead or duplicated edges. Clear e->aux earlier and avoid separate
1197 loop to clear e->aux and test for missed edges.
1198 (verify_ssa): Remove first walk over statements. Move checking
1199 of PHI args into verify_phi_args. Move checking of statements
1200 with aliased stores and V_MAY_DEFS into the remaining loop over
1201 the statements. Register defs by walking through the formal
1204 2004-11-21 Roger Sayle <roger@eyesopen.com>
1207 * dojump.c (compare_from_rtx): Clarify mode argument in function
1208 description. Correct order of mode/cmp_mode arguments in call to
1209 simplify_relational_operation. Check "tem" for COMPARISON_P.
1211 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
1212 David Edelsohn <edelsohn@gnu.org>
1215 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1216 synthetic vectors in memory.
1217 (function_arg_boundary): Align large synthetic vectors.
1218 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1220 2004-11-21 Jeff Law <law@redhat.com>
1222 * cfg.c (update_bb_profile_for_threading): Do not rescale the
1223 successor probabilities if they are not going to change. Pull
1224 division out of loop if we do need to rescale successor probabilities.
1226 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1227 index of the destination block for the hash value rather than
1230 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
1232 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
1233 checks for neither argument being an array or pointer (swapping
1234 the arguments if necessary), the array argument being a pointer to
1235 or array of functions and for -Wchar-subscripts warnings upfront.
1237 2004-11-20 Jeff Law <law@redhat.com>
1239 * regrename.c (copyprop_hardreg_forward): Only search for a
1240 previously processed block if the current block only has one
1243 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
1245 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1247 * config/arm/arm.c: Follow spelling conventions.
1249 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
1251 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1252 a bit in tune_flags.
1253 (const_double_needs_minipool): Likewise. Split most of the code out
1255 (arm_const_double_inline_cost): ... new function here.
1256 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1257 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1258 word constants of length 2, 3 and 4 insns respectively.
1259 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1260 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1261 constraints. Set insn lenghts accordingly.
1263 2004-11-19 Jeff Law <law@redhat.com>
1265 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1266 a hash table. Extensive modifications throughout to support
1269 (struct local_info): New.
1270 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1272 (redirection_data): Now a hashtable.
1273 (redirection_data_hash, redirection_data_eq): New.
1274 (lookup_redirection_data, create_duplicates): New.
1275 (create_edge_and_update_destionation_phis): New.
1276 (fixup_template_block, redirect_edges): New.
1277 (thread_block): Use hash table traversals instead of loops over
1278 varray entries or incoming edge vectors.
1280 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1282 * basic-block.h (edge_def): Add dest_idx.
1283 * cfg.c (unchecked_make_edge): Initialize dest_idx.
1284 (remove_edge): Simplify the disconnection of an edge from its
1286 (redirect_edge_succ): Likewise.
1287 * cfghooks.c (verify_flow_info): Check the consistency of
1288 dest_idx for each edge.
1290 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
1292 * simplify-rtx.c (simplify_ternary_operation): Use
1295 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1297 * tree-cfg.c (reinstall_phi_args): New.
1298 (tree_split_edge): Use it after redirecting an edge. Don't
1299 modify PHI_ARG_EDGE.
1301 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1303 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1304 if checking is enabled.
1306 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
1308 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1309 too many nested scopes.
1311 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1314 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1315 changed to suppoer uses-after-loop and to void creating flow paths
1316 that shouldn't exist.
1317 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1318 Modified to fit the new peeling scheme. Avoid quadratic behavior.
1319 (slpeel_add_loop_guard): Takes additional argument.
1320 (slpeel_verify_cfg_after_peeling): New function.
1321 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1322 documentation. Use 'exit-bb' instead of creating 'new-bb'.
1323 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1324 the new peeling scheme.
1325 (copy_phi_nodes): Function removed. Its functionality moved to
1326 update_phis_for_duplicate_loop.
1327 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1328 moved here. Added documentation. Modified to fit the new peeling scheme.
1329 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1330 needed - done in slpeel_tree_peel_loop_to_edge.
1331 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1332 (vect_do_peeling_for_loop_bound): Add documentation. Call
1333 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1334 with additional argument.
1335 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1337 (vect_finish_stmt_generation): Avoid 80 column oveflow.
1339 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1341 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1343 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1344 without last two arguments. Update single_exit of loops.
1345 (vect_update_niters_after_peeling): Removed. Its functionality was
1346 moved to vect_do_peeling_for_alignment.
1347 (vect_do_peeling_for_loop_bound): New name for function previously
1348 called vect_transform_for_unknown_loop_bound.
1349 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1350 instead of code that duplicates the same functionality.
1351 (vect_do_peeling_for_alignment): Functionality of
1352 vect_update_niters_after_peeling moved here.
1353 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1354 previously named vect_transform_for_unknown_loop_bound - for both known
1355 and unknown loop bound cases.
1357 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1359 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1360 previously called verify_loop_for_duplication. All conditions compacted
1361 into one compound condition. Removed debug dumps.
1362 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1363 functionality moved to vect_can_advance_ivs_p, and some to
1364 vect_analyze_loop_form.
1365 (vect_can_advance_ivs_p): New function. Contains functionality that was
1366 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1367 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1368 (vect_analyze_operations): Call vect_can_advance_ivs_p and
1369 slpeel_can_duplicate_loop_p.
1370 (vect_get_loop_niters): Added documentation.
1371 (vect_analyze_loop_form): Check the loop entry always - not only in case
1372 of unknown loop bound. Create preheader and exit bb if necessary. Apply
1373 a check that used to take place in
1374 vect_analyze_loop_with_symbolic_num_of_iters.
1375 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
1376 Remove redundant call to rewrite_into_loop_closed_ssa.
1377 (vect_compute_data_refs_alignment): Removed obsolete comment.
1379 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1381 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
1382 function previously called tree_duplicate_loop_to_edge.
1383 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
1384 previously called tree_duplicate_loop_to_edge_cfg.
1385 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
1387 (slpeel_update_phi_nodes_for_guard): Likewise.
1388 (slpeel_make_loop_iterate_ntimes): Likewise.
1389 (slpeel_add_loop_guard): Likewise.
1390 (allocate_new_names, free_new_names): Function declaration moved to top
1392 (rename_use_op, rename_def_op): Likewise.
1393 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
1394 (vect_generate_tmps_on_preheader): Function declaration moved.
1395 (vect_transform_for_unknown_loop_bound): Added missing function
1398 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
1401 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
1402 Define a VEC(tree_on_heap) for head.
1403 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1404 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1405 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
1406 the VEC(tree_on_heap) function. Also free it before returning.
1407 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1408 for block_defs_stack.
1409 (restore_currdefs_to_original_value): Use VEC_length instead of
1410 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1411 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1412 for block_defs_stack.
1413 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1414 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1415 for block_defs_stack.
1416 (ssa_register_new_def): Likewise.
1417 (ssa_rewrite_initialize_block): Likewise.
1418 (rewrite_finalize_block): Use VEC_length instead of
1419 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1420 (ssa_rewrite_finalize_block): Likewise.
1421 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1422 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
1423 (rewrite_blocks): Initialize block_defs_stack with
1424 the VEC(tree_on_heap) function. Also free it before returning.
1425 (rewrite_ssa_into_ssa): Likewise.
1427 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
1429 * config/darwin.c (machopic_data_defined_p): return 1 for
1430 MACHOPIC_DEFINED_FUNCTION.
1432 2004-11-19 Jeff Law <law@redhat.com>
1434 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
1437 2004-11-19 Paul Brook <paul@codesourcery.com>
1440 * varasm.c (default_assemble_integer): Allow pointer-sized values.
1443 2004-11-19 Nick Clifton <nickc@redhat.com>
1445 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
1446 zero_extension and lshiftrt insns.
1447 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
1449 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
1450 to handle bp and bn insn patterns with a zero_extend rtx
1453 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
1455 * config/arm/arm.md (generic_sched): Make const.
1457 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1459 * emit-rtl.c (classify_insn): Make it static.
1460 * rtl.h: Remove the corresponding prototype.
1462 * integrate.c (has_func_hard_reg_initial_val,
1463 get_func_hard_reg_initial_val): Make them static.
1464 * integrate.h: Remove the corresponding prototypes.
1466 2004-11-19 Ben Elliston <bje@au.ibm.com>
1468 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
1469 (dw2_asm_output_delta_sleb128): Likewise.
1470 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
1471 (dw2_asm_output_delta_sleb128): Likewise.
1473 2004-11-19 Adam Nemet <anemet@lnxw.com>
1475 * tree-ssa-alias.c: Fix comment.
1477 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1479 * tree-outof-ssa.c: Fix a comment typo.
1481 2004-11-19 Ben Elliston <bje@au.ibm.com>
1483 * predict.h (predict_insn): Remove extern declaration.
1484 * predict.c (predict_insn): Make static.
1486 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1488 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
1490 2004-11-18 Nicolas Pitre <nico@cam.org>
1492 * config/arm/arm.c (const_double_needs_minipool): New function to
1493 determine if a CONST_DOUBLE should be pushed to the minipool.
1494 (note_invalid_constants): Use it.
1496 2004-11-18 Paul Brook <paul@codesourcery.com>
1498 * config/arm/arm.c (target_float_switch): New variable..
1499 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
1500 target_float_switch.
1501 * config/arm/arm.h (target_float_switch): Declare.
1502 (ARM_FLAG_SOFT_FLOAT): Remove.
1503 (TARGET_SWITCHES): Remove hard-float and soft-float.
1504 (TARGET_OPTIONS): Add hard-float and soft-float.
1505 (TARGET_DEFAULT_FLOAT_ABI): Define.
1506 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
1507 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
1508 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
1509 * config/arm/netbsd-elf.h: Ditto.
1510 * config/arm/netbsd.h: Ditto.
1511 * config/arm/pe.h: Ditto.
1512 * config/arm/unknown-elf.h: Ditto.
1513 * config/arm/wince-pe.h: Ditto.
1514 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1515 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1516 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1518 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1520 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
1521 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
1522 altivec_lvx_4sf): Rename and replace with ...
1523 (altivec_lvx_<mode>): ... mode macro version.
1524 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
1525 altivec_stvx_4sf): Rename and replace with ...
1526 (altivec_stvx_<mode>): ... mode macro version.
1527 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
1528 (mov<mode>): ... mode macro version.
1529 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
1530 *movv4sf_internal1): Replace with ...
1531 (*mov<mode>_internal): ... mode macro version.
1532 (get_vrsave_internal, *set_vrsave_internal, *save_world,
1533 *restore_world): Unquote output statements.
1534 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
1535 altivec_expand_st_builtin): Adjust insn names.
1537 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
1539 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
1541 (rs6000_override_options): Likewise.
1542 (spe_build_register_parallel): Handle complex doubles on e500v2.
1543 (rs6000_spe_function_arg): Likewise.
1544 (function_arg): Likewise.
1545 (rs6000_function_value): Likewise.
1546 (rs6000_libcall_value): Likewise.
1548 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
1550 * ifcvt.c (find_if_block): Move the check for the number of edges
1551 above the loops checking for complex edges.
1552 Remove the counting of edges as we use EDGE_COUNT now.
1554 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1556 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1557 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
1559 2004-11-18 Andreas Schwab <schwab@suse.de>
1561 * config/i386/i386.md (define_peephole2): Revert last change.
1563 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1565 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1566 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
1568 2004-11-18 Diego Novillo <dnovillo@redhat.com>
1570 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
1573 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
1575 * Makefile.in (macro_list): Depend on s-macro_list.
1576 (s-macro_list): New target.
1578 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1581 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1582 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1583 (fold_range_test): Adjust.
1584 (fold_truthop): Use it.
1585 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1586 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1588 2004-11-18 Uros Bizjak <uros@kss-loka.si>
1590 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
1591 insn split constraint.
1592 (define_peephole2): Remove unneeded "&& 1" from peephole2
1595 2004-11-18 Ben Elliston <bje@au.ibm.com>
1597 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
1598 element for bsi_prev; use @findex instead.
1600 2004-11-18 Ben Elliston <bje@au.ibm.com>
1602 * opts.h (add_input_filename): Remove extern declaration.
1603 * opts.c (add_input_filename): Make static.
1605 2004-11-17 Mark Mitchell <mark@codesourcery.com>
1607 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
1610 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1612 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
1613 * system.h: Poison it.
1614 * doc/tm.texi: Delete its documentation.
1616 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1617 Mark Mitchell <mark@codesourcery.com>
1619 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
1620 * config/i386/i386.c (i386_solaris_elf_named_section): New
1622 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
1623 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
1625 (ASM_QUAD): Don't undefine for biarch targets.
1626 * config/i386/t-sol2: Introduce multilib support.
1628 2004-11-18 Ben Elliston <bje@au.ibm.com>
1630 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
1632 2004-11-18 Ben Elliston <bje@au.ibm.com>
1634 * cgraph.h: Replace "it's" with "its" throughout.
1636 2004-11-18 Ben Elliston <bje@au.ibm.com>
1638 * doc/rtl.texi (Flags): Grammar fix.
1640 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1642 * expmed.c (alg_code): Add alg_unknown.
1643 (alg_hash_entry): New.
1644 (NUM_ALG_HASH_ENTRIES): Likewise.
1645 (alg_hash): Likewise.
1646 (synth_mult): Cache the result into alg_hash.
1648 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1650 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
1651 config/rs6000/libgcc-ppc64.ver.
1653 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1655 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
1656 checking if an unconditional return is followed by a barrier.
1658 * jump.c (condjump_p): Remove unreachable code.
1660 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
1661 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
1662 tree-ssa-live.h, tree.h: Remove unused prototypes.
1664 2004-11-17 Jeff Law <law@redhat.com>
1666 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
1667 (edge_to_cases_elt): Renamed from edge_to_case_leader.
1668 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
1669 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
1670 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
1671 (get_cases_for_edge): New function.
1672 (start_recording_case_labels, end_recording_case_labels): Similarly.
1673 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
1674 chain equivalent CASE_LABEL_EXPRs together.
1675 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
1676 (make_switch_expr_edges): Do not record edge/cases here.
1677 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
1678 (split_critical_edges): Record cases around the edge splitting code.
1679 (cleanup_dead_labels): Use CASE_LABEL again.
1680 (tree_redirect_edge_and_branch): If we have a mapping from edge
1681 to cases, use it to handle redirections. Else do it the slow way.
1682 * tree.h (CASE_LEADER_OR_LABEL): Kill.
1683 (CASE_LABEL): Revert to just looking at the tree's second operand.
1684 * tree.c (get_case_label): Kill.
1686 2004-11-17 Diego Novillo <dnovillo@redhat.com>
1688 PR tree-optimization/18307
1689 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
1690 'orig' are the same node.
1691 (collect_points_to_info_r): Do not call merge_pointed_to_info
1692 when the PHI argument is identical to the LHS.
1694 2004-11-17 Steven Bosscher <stevenb@suse.de>
1696 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
1697 to insert the exit or entry block.
1698 (ssa_prop_init): Use add_control_edge to seed the algorithm.
1700 2004-11-16 Zack Weinberg <zack@codesourcery.com>
1702 * mkmap-flat.awk, mkmap-symver.awk: If the last version
1703 assigned to a symbol was '%exclude', do not emit it anywhere.
1704 If leading_underscore is true, prefix all symbols from the
1705 version scripts with a leading underscore before comparing
1706 them with nm output or emitting them. Remove support for dot
1708 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
1709 (SHLIB_MAPFILES): Use libgcc-std.ver.
1710 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
1711 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
1712 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
1713 libgcc-excl.ver and libgcc-glibc.ver.
1715 * config/sh/libgcc-excl.ver: New file.
1716 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
1718 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1720 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
1721 the test when the edge has the opposite meaning, not when
1722 the first argument is invariant.
1724 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
1726 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
1728 (rs6000_complex_function_value): Handle e500 v2 variant.
1730 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1732 Fix PR tree-optimization/18519
1734 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
1735 * tree-pass.h: Add TODO_cleanup_cfg.
1736 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
1737 (ccp_finalize): Remove call to cleanup_cfg.
1738 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
1739 (pass_cd_dce): Ditto.
1740 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
1741 dump_function_to_file.
1742 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
1744 (pass_ch): Add TODO_cleanup_cfg.
1745 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
1747 (pass_loop_done): Add TODO_cleanup_cfg.
1748 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
1749 (tree_ssa_phiopt): Remove call to cleanup_cfg.
1751 2004-11-16 Devang Patel <dpatel@apple.com>
1753 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
1755 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1757 * expmed.c, ra-colorize.c: Fix comment typos.
1759 * doc/tm.texi: Fix typos.
1761 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1762 Mark Mitchell <mark@codesourcery.com>
1765 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
1768 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1770 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
1771 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
1773 2004-11-16 Devang Patel <dpatel@apple.com>
1775 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
1777 2004-11-16 Eric Christopher <echristo@redhat.com>
1779 * config/mips/mips.c: Use rtl _P predicates.
1780 * config/mips/mips.h: Ditto.
1781 * config/mips/mips.md: Ditto.
1783 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
1785 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
1788 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
1790 * config/s390/s390.c (s390_cc_modes_compatible): New function.
1791 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
1793 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
1796 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
1797 before and after the insns for getting GOT address in non-PIC
1798 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
1801 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
1803 * gcc/cse.c (struct change_cc_mode_args): New structure.
1804 (cse_change_cc_mode_insn): New function.
1805 (cse_change_cc_mode): Use validate_change to perfom changes.
1806 (cse_change_cc_mode_insns, cse_condition_code_reg):
1807 Call cse_change_cc_mode_insn.
1809 2004-11-16 Steven Bosscher <stevenb@suse.de>
1813 2004-11-16 Steven Bosscher <stevenb@suse.de>
1815 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
1817 2004-11-15 Dale Johannesen <dalej@apple.com>
1819 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
1821 2004-11-15 Dale Johannesen <dalej@apple.com>
1823 * profile.c (compute_branch_probabilities): Prevent
1824 crash with EH in RTL-based profiling.
1826 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1828 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
1830 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
1831 * tree-ssa-dom.c (thread_across_edge): Likewise.
1832 * tree-vectorizer.c (vect_transform_loop_bound): Replace
1833 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
1836 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
1837 (tree_flow_call_edges_add): Update the call to
1838 bsi_commit_edge_inserts.
1839 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
1840 * profile.c (branch_prob): Likewise.
1841 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
1842 * tree-sra.c (scalarize_function): Likewise.
1843 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
1844 * tree-ssa-pre.c (fini_pre): Likewise.
1845 * tree-flow.h: Update the prototype for
1846 bsi_commit_edge_inserts.
1848 2004-11-15 Eric Christopher <echristo@redhat.com>
1850 * sched-deps.c (set_sched_group_p): Delete.
1851 (delete_all_dependencies): New function.
1852 (fixup_sched_groups): Use. New function.
1853 (sched_analyze_insn): Use.
1855 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
1857 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
1858 RROTATE_EXPR or unknown code.
1859 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
1860 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
1861 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
1864 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
1867 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
1868 after processing the declarator.
1870 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
1872 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
1874 (altivec_vspltb): Same.
1875 (altivec_vspltw): Same.
1876 (altivec_vspltisb): Same.
1877 (altivec_vspltish): Same.
1878 (altivec_vspltisw): Same.
1879 (altivec_vspltisw_v4sf): Same.
1880 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
1882 Move "End of vector xor's" comment to the right place.
1884 2004-11-15 Steve Ellcey <sje@cup.hp.com>
1886 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
1887 instead of nonimmediate_operand.
1889 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1891 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
1892 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
1893 * config/sol2.c (solaris_output_init_fini): Update calls to
1894 ASM_OUTPUT_CALL. Include "rtl.h".
1896 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1898 * config/sol2-c.c (cmn_err_char_table): Add "p".
1900 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1902 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
1903 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
1905 2004-11-15 Mark Mitchell <mark@codesourcery.com>
1907 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
1908 within the multilib directory.
1910 2004-11-15 Nick Clifton <nickc@redhat.com>
1912 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
1913 builtin assert of cpu=xstormy16.
1915 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
1917 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
1920 2004-11-14 Richard Henderson <rth@redhat.com>
1923 * calls.c (struct arg_data): Add parallel_value.
1924 (precompute_register_parameters): Set it.
1925 (load_register_parameters): Use it.
1926 (store_one_arg): Also set it here.
1928 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
1930 PR tree-optimization/18431
1931 * fold-const.c (associate_trees): Do not produce x + 0.
1932 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
1934 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
1936 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
1937 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
1939 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1941 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
1943 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
1945 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
1946 value-prof.c: Fix comment typos.
1948 2004-11-14 Stan Shebs <shebs@apple.com>
1950 Basic ABI changes for passing structs by value in 64-bit Darwin.
1951 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
1952 (rs6000_override_options): Set it for 64-bit Darwin.
1953 (rs6000_parse_abi_options): Add testing options to change it.
1954 (rs6000_return_in_memory): Test whether the type is one
1955 that can be passed in registers.
1956 (darwin64_function_arg_advance): New.
1957 (function_arg_advance): Call it, plus add recursion depth
1958 argument and test when counting off arguments.
1959 (rs6000_darwin64_function_arg): New.
1960 (function_arg): Call it.
1961 (setup_incoming_varargs): Add argument to function_arg_advance.
1962 (rs6000_darwin64_function_value): New.
1963 (rs6000_function_value): Call it.
1964 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
1965 * config/rs6000/rs6000-protos.h: Update decl of
1966 function_arg_advance.
1968 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
1971 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
1972 support TImode before adding __int128_t and __uint128_t types.
1974 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
1977 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
1978 (vect_transform_loop_bound): Set loop->nb_iterations.
1980 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
1981 Andrew Pinski <pinskia@physics.uc.edu>
1984 * tree-vectorize.c (vect_build_loop_niters): Do not insert
1985 NULL into the instruction stream. Initialize new_bb to NULL.
1986 (vect_update_ivs_after_vectorizer): Likewise.
1987 (vect_gen_niters_for_prolog_loop): Likewise.
1989 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
1991 PR tree-optimization/18431
1992 * tree-flow.h (stmt_references_memory_p): Declare.
1993 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
1994 * tree-ssa.c (stmt_references_memory_p): New function.
1996 2004-11-14 Andreas Schwab <schwab@suse.de>
1998 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2001 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2003 * c-common.c (walk_stmt_tree): Remove.
2004 * c-common.h: Remove the corresponding prototype.
2006 * emit-rtl.c (push_to_full_sequence): Remove.
2007 * rtl.h: Remove the corresponding prototype.
2009 * cselib.c, expr.c: Fix comment typos.
2011 2004-11-13 Richard Henderson <rth@redhat.com>
2013 * calls.c (precompute_register_parameters): Force all PARALLELs
2014 into pseudo registers.
2015 (load_register_parameters): Copy PARALLELs into hard registers.
2016 * function.c (assign_parm_setup_block): Copy PARALLELS into
2017 pseudo registers. Do emit_group_store in conversion_insns.
2018 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2019 tmps as an argument. Move final copy loop ...
2020 (emit_group_load): ... here. New function.
2021 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2022 * expr.h: Declare them.
2024 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2026 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2027 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2028 with PHI_CHAIN where appropriate.
2030 2004-11-13 Dale Johannesen <dalej@apple.com>
2032 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2033 (tree_block_label): Ditto.
2034 (flush_pending_stmts): Ditto.
2035 (insert_edge_copies): Ditto.
2036 (expr_invariant_in_loop_p): Ditto.
2037 (TDF_USE_OPS): Parenthesize definition.
2038 (TDF_USE_VOPS): Ditto.
2040 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2042 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2043 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2045 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2047 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2049 * config/i386/i386.c (override_options): Move loop to set default
2050 tuning to correct place.
2052 2004-11-13 Zak Kipling <zak@transversal.com>
2055 * config/i386/i386.c (classify_argument): Fix infinite loop when
2056 passing object with 3 or more base classes by value.
2058 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2060 * doc/md.texi (constraints) <% modifier>: Mention that it is
2061 useless when the two alternatives are strictly identical.
2063 2004-11-13 Richard Henderson <rth@redhat.com>
2065 * expmed.c (extract_split_bit_field): Temporarily disable call to
2066 extract_force_align_mem_bit_field.
2068 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2070 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2073 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2074 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2075 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2077 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2079 * doc/install.texi (automake): Correctly document that everything now
2080 will use automake 1.9.3.
2082 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2085 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2086 TImode. Sorry for other non-complex larger-than-64-bit modes.
2087 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2089 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2091 * doc/install.texi (automake): Document that everything now uses 1.9.
2093 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2095 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2098 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2100 * tree.h: Fix comment typos.
2102 2004-11-13 Steven Bosscher <stevenb@suse.de>
2104 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2105 HARD_REGISTER_NUM_P.
2107 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2108 * flow.c (mark_set_1): Likewise.
2110 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2111 duplicate_eh_regions): Remove.
2112 * except.h (duplicate_eh_regions): Remove prototype.
2113 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2114 global_const_equiv_varray): Remove.
2115 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2116 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2117 extern declaration, and #define.
2118 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2119 (struct inline_remap): Remove.
2120 * varray.c (struct element): Remove entry for const_equiv_data.
2121 * varray.h (struct const_equiv_data): Remove.
2122 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2123 (union varray_data_tag) <const_equiv>: Remove.
2124 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2125 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2127 * regstack.c (record_label_references): Remove unused function.
2129 * rtl.def (VALUE): Update comment.
2130 (LABEL_REF): Remove unused operand 2.
2131 * rtl.h (struct rtx_def): Update for removed accessor macros.
2132 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2133 REG_LOOP_TEST_P): Remove.
2134 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2135 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2136 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2138 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2139 Eric Botcazou <ebotcazou@libertysurf.fr>
2142 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2144 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2145 (V32I): New macro for 32-bit modes.
2146 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2147 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2148 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2149 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2150 one_cmpldi_sp64): Use V64I instead of DI.
2151 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2152 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2153 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2154 (nandv64i_vis, nandv32i_vis): New patterns.
2156 2004-11-12 Mike Stump <mrs@apple.com>
2158 * Makefile.in: Add html support.
2159 * java/Make-lang.in: Likewise.
2160 * fortran/Make-lang.in: Likewise.
2161 * treelang/Make-lang.in: Likewise.
2162 * doc/install.texi: Likewise.
2163 * doc/makefile.texi: Likewise.
2164 * doc/sourcebuild.texi: Likewise.
2166 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2168 * tree-ssa-loop-manip.c: Fix a comment typo.
2170 2004-11-12 Mike Stump <mrs@apple.com>
2172 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2173 renaming this node to Concept Index.
2174 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2175 to more closely match gcc.texi.
2177 2004-11-12 Jeff Law <law@redhat.com>
2179 * tree-cfg.c (hashtab.h): Include.
2180 (struct edge_to_case_leader_elt): New structure.
2181 (edge_to_case_leader): New.
2182 (edge_to_case_leader_hash): New hashtable hasing function.
2183 (edge_to_case_leader_eq): New hashtable equality function.
2184 (record_switch_edge): New function.
2185 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2186 (make_switch_expr_edges): Build the edge-to-case-leader
2187 hash table. Tear down the hash table when we're done.
2188 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2190 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2191 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2192 to use new concept of case leaders to reduce overhead of
2193 redirecting outgoing edges from switch statements.
2194 * tree.c (get_case_label): New function.
2195 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2196 (CASE_LEADER_OR_LABEL): Define.
2198 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2200 * varasm.c (output_addressed_constants): For CONST_DECLs,
2201 output the initializer if present.
2203 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2205 * config/rs6000/darwin.h: Fix confusing typo in comment.
2207 2004-11-12 Devang Patel <dpatel@apple.com>
2209 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2211 2004-11-12 Devang Patel <dpatel@apple.com>
2213 * tree-if-conv.c (clean_predicate_lists): Use loop header
2216 2004-11-12 Richard Henderson <rth@redhat.com>
2219 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2220 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2221 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2222 * config/i386/i386-modes.def (XF): Use it.
2224 2004-11-11 Geoffrey Keating <geoffk@apple.com>
2226 * Makefile.in (macro_list): Use move-if-change to avoid spurious
2229 2004-11-12 Mark Mitchell <mark@codesourcery.com>
2232 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2233 when deciding whether to pass a variable to
2234 cgraph_varpool_finalize_decl or assemble_variable.
2235 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2237 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
2239 * tree-vectorizer.c: Fix a comment typo.
2241 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2243 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2245 2004-11-12 Diego Novillo <dnovillo@redhat.com>
2247 * tree-scalar-evolution.c (analyzable_condition): Remove
2248 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2250 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2252 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2253 Remove m505/roe multilib variant.
2255 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2257 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2258 to load from the stack.
2260 2004-11-12 Richard Henderson <rth@redhat.com>
2262 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2263 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2264 * toplev.h (FL2T__): Remove.
2265 (CLZ_HWI): Rename from FL2T_CLZ__.
2267 (floor_log2): Simplify.
2270 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2272 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2273 compute the first overlapping iterations.
2275 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2278 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2279 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2281 2004-11-12 Steven Bosscher <stevenb@suse.de>
2283 PR tree-optimization/18419
2284 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2285 pointer set instead of a bitmap.
2286 (walk_use_def_chains): Create, pass and clean up that pointer_set.
2288 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2290 (init_alias_info): Allocate and zero it here.
2291 (delete_alias_info): Delete it here.
2292 (collect_points_to_info_for): Use it.
2294 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2296 * alias.c (record_alias_subset, addr_side_effect_eval):
2298 * alias.h: Remove the prototype for record_alias_subset.
2299 * expr.h: Remove the commented-out prototype for
2300 record_alias_subset.
2301 * rtl.h: Remove the prototype for addr_side_effect_eval.
2303 * cfglayout.c (choose_inner_scope): Make it static.
2304 * rtl.h: Remove the corresponding prototype.
2306 * cfgloopmanip.c (update_single_exits_after_duplication,
2307 unloop): Make them static.
2308 * cfgloop.h: Remove the corresponding prototypes.
2310 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2312 * c-tree.h: Remove the corresponding prototypes.
2314 * explow.c (round_push): Make it static.
2315 * expr.h: Remove the corresponding prototype.
2317 * varasm.c (get_named_section_flags, decl_tls_model): Make
2319 * output.h: Remove the prototype for get_named_section_flags.
2320 * tree.h: Remove the prototype for decl_tls_model.
2322 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2324 * function.c (expand_function_end): Remove an "if" statement
2325 that always triggers.
2326 * stmt.c (expand_null_return_1): Likewise.
2328 2004-11-11 James E. Wilson <wilson@specifixinc.com>
2330 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2331 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2332 CLASS_MAX_NREGS): Likewise.
2334 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
2336 PR tree-optimization/17742
2337 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2338 MINUS_EXPR correctly.
2340 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
2342 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2343 Give up as soon as the evolution is known not computable.
2345 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2348 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2349 mask64_1or2_operand.
2350 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2351 to spot rlwinm opportunities.
2352 (and64_2_operand): Use mask_1or2_operand.
2353 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2355 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
2357 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2358 (vect_update_ivs_after_vectorizer): Update function documentation.
2359 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2361 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2363 * config/arm/arm.c: Fix a comment typo.
2365 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2367 * bitmap.h (nBITMAP_WORD_BITS): Remove.
2368 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
2369 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
2371 (bitmap_first_set_bit): Return unsigned, use ctzl.
2372 (bitmap_last_set_bit): Remove.
2373 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
2375 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
2376 remove special case code for two word elements.
2377 (bitmap_last_set_bit): Remove.
2378 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
2379 bitmap_first_set_bit with bitmap_empty_p.
2380 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
2381 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
2382 bitmap_last_bit_set.
2384 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2387 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
2390 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
2391 unsigned equality compare when we know the operands are unsigned.
2393 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
2395 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
2396 __PIC__ and __pic__ only if TARGET_ABICALLS.
2397 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
2398 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
2399 -KPIC only if not -mno-abicalls.
2401 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
2402 * config/sparc/linux.h, config/sparc/linux64.h
2403 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
2405 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
2406 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
2407 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
2408 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
2410 2004-11-11 Paul Brook <paul@codesourcery.com>
2412 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
2413 register if current_function_uses_pic_offset_table is set.
2415 2004-11-10 David Edelsohn <edelsohn@gnu.org>
2417 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
2418 Change multi-instruction sequences to new attribute.
2419 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
2420 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
2421 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
2423 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
2425 * tree-data-ref.c (build_classic_dist_vector): If either loop
2426 is outside of the nest we asked about, the dependence can't
2428 (build_classic_dir_vector): Ditto.
2430 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
2432 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
2434 (force_var_cost): Determine cost of addition and multiplication more
2436 (get_computation_cost_at): Add cost for computing address elements to
2439 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
2440 one of the arguments of MINUS_EXPR is an address.
2441 (split_address_to_core_and_offset): New function.
2442 (ptr_difference_const): Handle case when one of the operands is a
2444 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
2445 (ptr_difference_cost): Pass addresses instead of objects to
2446 ptr_difference_const.
2448 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
2450 * tree.c (tree_check_failed): Emit general error if the list of
2451 node types is empty.
2453 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2455 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
2456 argument. When the union is passed in the 6th slot, build a
2457 PARALLEL with only one element.
2458 (function_arg): Adjust call to function_arg_union_value.
2459 (function_value): Likewise.
2461 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
2463 PR tree-optimization/17892
2464 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
2465 MINUS_EXPR operator.
2467 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
2470 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
2471 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
2473 2004-11-10 Steven Bosscher <stevenb@suse.de>
2475 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
2476 (struct basic_block_def): Remove local_set and cond_local_set
2477 fields. Update comment for global_live_at_start.
2478 * flow.c (calculate_global_regs_live): Allocate local_sets and
2479 cond_local_sets here as arrays of bitmaps previously stored in
2480 bb->local_set and bb->cond_local_set. Use xmalloc instead of
2481 obstack allocated bitmaps.
2483 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
2486 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
2489 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
2491 2004-11-09 Jeff Law <law@redhat.com>
2493 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
2494 argument holding last unvisited block. Start search for
2495 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
2496 (connect_infinite_loops_to_exit): Supply last unvisited block
2497 to flow_dfs_compute_reverse_execute.
2499 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
2501 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
2503 (floatunssidf2): Same.
2505 ("extendsfdf2"): New expander.
2506 (*extendsfdf2_fpr): Rename.
2507 (*truncdfsf2_fpr): Same.
2508 (*negdf2_fpr): Same.
2509 (*absdf2_fpr): Same.
2510 (*nabsdf2_fpr): Same.
2511 (*adddf3_fpr): Same.
2512 (*subdf3_fpr): Same.
2513 (*muldf3_fpr): Same.
2514 (*divdf3_fpr): Same.
2516 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
2517 ("spe_fix_truncdfsi2"): Same.
2518 (spe_floatunssidf2): Same.
2519 (spe_floatsidf2): Same.
2521 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2524 * c-common.c (fname_decl): Don't use line number of decl in
2527 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2529 * config/s390/s390-protos.h (s390_pool_operand): Remove.
2530 * config/s390/s390.c (s390_pool_operand): Likewise.
2531 (s390_extra_constraint_str): Handle 'B' constraints.
2532 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
2533 * config/s390/s390.md: Document 'B' constraints.
2534 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
2535 s390_pool_operand to prevent insns with two literal pool
2536 references. Make pattern commutative.
2537 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
2538 'B' constraint instead of s390_pool_operand.
2540 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2542 * tree-cfg.c (create_bb): Remove unnecessary memset.
2544 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2546 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
2547 (thread_block): Call flush_pending_stmt instead of
2550 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2552 * loop-iv.c (iv_number_of_iterations): Make it static.
2553 * cfgloop.h: Remove the corresponding prototype.
2555 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2557 * function.c (combine_temp_slots, assign_parms,
2558 expand_pending_sizes): Make them static.
2559 * tree.h: Remove the corresponding prototypes.
2561 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2563 * emit-rtl.c (copy_most_rtx): Remove.
2564 * rtl.h: Remove the corresponding prototype.
2566 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2568 * cfgloop.c (flow_loops_update): Remove.
2569 * cfgloop.h: Remove the corresponding prototype.
2571 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2573 * conflict.c (mark_reg, conflict_graph_compute): Remove.
2574 * basic-block.h: Remove the prototype for
2575 conflict_graph_compute.
2577 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2579 * tree-if-conv.c (add_to_dst_predicate_list): Change the
2580 second argument to basic_block.
2581 (tree_if_convert_cond_expr): Update call sites.
2583 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2585 * fold-const.c (pedantic_non_lvalue): Make it static.
2586 * tree.h: Remove the corresponding prototype.
2588 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2590 * optabs.c (prepare_operand): Make it static.
2591 * optabs.h: Remove the corresponding prototype.
2593 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2595 * reload1.c (reloads_conflict, gen_reload): Make them static.
2596 * reload.h: Remove the corresponding prototypes.
2598 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2600 * reload.c (refers_to_mem_for_reload_p,
2601 refers_to_regno_for_reload_p): Make them static.
2602 * reload.h: Remove the corresponding prototypes.
2604 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2605 Eric Botcazou <ebotcazou@libertysurf.fr>
2608 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
2609 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
2610 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
2611 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
2612 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
2613 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
2614 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
2615 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
2616 MODE_VECTOR_INT modes.
2617 (sparc_extra_constraint_check): Add new constraint 'Y'.
2618 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
2619 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
2620 (V64): New mode macro for 64-bit modes.
2621 (movsf): Use V32 for mode instead of SF.
2622 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
2623 alongside 'G' constraint.
2624 (movdf): Use V64 for mode instead of DF.
2625 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
2626 of DF. Add 'Y' constraint alongside 'G' constraint.
2627 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
2630 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2632 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
2633 integer NEG and ABS.
2634 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
2635 ("*negdi2_31"): Reimplement using a splitter.
2636 ("*negdi2_cc", "*negdi2_cconly"): New insns.
2637 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
2638 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
2639 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
2640 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
2641 ("*absdi2_cc", "*absdi2_cconly"): New insns.
2642 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
2643 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
2644 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
2645 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
2646 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
2647 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
2648 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
2649 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
2650 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
2652 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2654 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
2655 when eliminating an UNSPEC_CMPINT.
2656 (s390_secondary_input_reload_class): Fix test for CC register reload.
2657 (s390_secondary_output_reload_class): Likewise.
2658 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
2659 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
2660 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
2661 insn patterns with splitters.
2663 2004-11-09 David Edelsohn <edelsohn@gnu.org>
2665 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
2666 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
2668 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2670 * tree-phinodes.c (phi_reverse): New.
2671 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
2673 * tree-flow.h: Add a prototype for phi_reverse.
2675 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2677 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2679 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2682 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
2685 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2687 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
2688 instead of "arg" in diagnostics.
2690 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2692 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
2693 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
2694 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
2695 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
2696 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
2697 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
2698 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
2699 config/iq2000/iq2000.c, config/m32r/m32r.c,
2700 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
2701 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
2702 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
2703 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2704 config/sh/symbian.c, config/stormy16/stormy16.c,
2705 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
2706 and %> as appropriate. Use %' as apostrophe in diagnostics where
2707 applicable. Use %< and %> in place of '' quotes where applicable.
2708 Use %qs in place of %<%s%>. Consistently quote __builtin function
2711 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
2713 * gdbinit.in (pbb, pbm): New macros.
2715 2004-11-08 Jeff Law <law@redhat.com>
2717 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
2718 implementing it inline.
2720 * cfganal.c (find_edge): Search pred->succs or succ->preds,
2721 whichever is shorter.
2723 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2725 * passes.c (rest_of_handle_jump): Remove dead code.
2727 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2729 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
2730 the last used element in the worklist.
2732 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2734 * tree-inline.c (remap_save_expr): Make it static.
2735 * tree-inline.h: Remove the corresponding prototype.
2737 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2739 * tree-ssa-loop-niter.c (upper_bound_in_type,
2740 lower_bound_in_type): Make them static.
2741 * tree.h: Remove the corresponding prototypes.
2743 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2745 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
2747 * tree-ssa-live.h: Remove the corresponding prototypes.
2749 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2751 * tree-if-conv.c (tree_if_conversion): Make it static.
2752 * tree-flow.h: Remove the corresponding prototype.
2754 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2756 * tree-ssa-operands.c (build_ssa_operands): Make it static.
2757 * tree-flow.h: Remove the corresponding prototype.
2759 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
2762 * tree-inline.c (copy_body_r): Change "t = t" to empty
2763 statement instead of "t".
2765 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2767 * modulo-sched.c (create_partial_schedule,
2768 free_partial_schedule, reset_partial_schedule,
2769 ps_add_node_check_conflicts, rotate_partial_schedule): Make
2772 2004-11-08 Richard Henderson <rth@redhat.com>
2774 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
2777 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2779 * sched-deps.c (add_insn_mem_dependence): Make it static.
2780 * sched-int.h: Remove the corresponding prototypes.
2782 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2784 * flow.c (allocate_bb_life_data): Make it static.
2785 * basic-block.h: Remove the corresponding prototype.
2787 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2789 * calls.c (split_complex_values, split_complex_types): Make
2791 * expr.h: Remove the corresponding prototypes.
2793 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
2795 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
2796 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
2798 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2800 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
2801 statements that always trigger.
2803 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2805 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
2806 tree-scalar-evolution.c, tree-ssa-loop-im.c,
2807 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
2808 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
2811 2004-11-08 Ben Elliston <bje@au.ibm.com>
2813 * cgraph.h (cgraph_calls_p): Remove.
2814 * cgraph.c (cgraph_calls_p): Likewise.
2816 * varray.h (varray_copy): Remove.
2817 * varray.c (varray_copy): Likewise.
2819 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
2822 * config/darwin.c (machopic_indirect_data_reference):
2823 Call gen_macho_high and gen_macho_low instead of
2824 checking the mode and calling gen_macho_high_di directly.
2825 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
2826 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
2828 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
2829 load_macho_picbase, macho_low, macho_high): Removed.
2830 (builtin_setjmp_receiver): Call gen_macho_high and
2831 gen_macho_low instead of checking the mode and calling
2832 gen_macho_high_di directly.
2833 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
2834 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
2835 Moved from rs6000.md.
2836 (macho_high): New expander.
2837 (macho_high_si): Renamed version of macho_high from rs6000.md.
2838 (macho_low): New expander.
2839 (macho_low_si): Renamed version of macho_low from rs6000.md.
2840 (load_macho_picbase): New expander.
2841 (load_macho_picbase_si): Renamed version of load_macho_picbase
2843 (macho_correct_pic): New expander.
2844 (macho_correct_pic_si): Renamed version of macho_correct_pic
2847 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
2849 * c-decl.c (finish_struct): Use complete sentences for diagnostic
2850 for structures or unions with no members or named members.
2852 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
2854 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
2855 taking address of bit-field by assertion.
2857 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2859 * config/s390/s390.md (attribute "op_type"): Default to "NN".
2860 (attribute "atype"): Default to "agen".
2861 (attribute "length"): Default to 6.
2862 (define_asm_attibutes): Remove.
2863 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
2864 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
2865 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
2866 Do not set type attribute to "cs" where already default.
2867 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
2869 Do not set type attribute to "other" where already default.
2870 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
2871 "*strlendi", "*strlensi",
2872 "*movmem_long_64", "*movmem_long_31",
2873 "*clrmem_long_64", "*clrmem_long_31",
2874 "*cmpmem_long_64", "*cmpmem_long_31",
2875 "*cmpint_si", "*cmpint_di",
2876 "addti3", "*adddi3_31z", "*adddi3_31",
2877 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
2878 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
2879 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
2880 "*pool_entry", "pool_align", "pool_section_start",
2881 "pool_section_end", "main_pool", "reload_base_31", "pool"):
2882 Do not set op_type attribute to "NN" where already default.
2883 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
2884 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
2885 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
2886 Do not set atype attribute to "agen" where already default.
2887 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
2889 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
2891 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
2893 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
2896 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
2897 R3000 and R4000 macros on IRIX.
2899 2004-11-06 Andreas Schwab <schwab@suse.de>
2902 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
2905 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2907 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
2909 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2911 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
2912 matches no insns already matched by other reservations.
2913 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
2914 matches no insns already matched by other reservations.
2915 ("x_ss"): Remove, replace by ...
2916 ("x_cs"): ... this new reservation. Check type instead of op_type.
2917 Update bypasses to use x_cs instead of x_ss.
2918 ("x_nn"): Remove, replace by ...
2919 ("x_other"): ... this new reservation. Check type instead of op_type.
2920 Add x_other and x_branch to bypasses.
2921 ("x_vs"): New reservation.
2922 * config/s390/s390.md (attribute "type"): Default according to op_type.
2923 ("*execute"): Set type to "cs".
2925 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2927 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
2928 if we are in GIMPLE.
2930 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
2932 PR rtl-optimization/17933
2933 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
2934 (covers_regno_p): New function. Handle SETs of PARALLEL,
2935 and defer the rest to...
2936 (covers_regno_no_parallel_p): New function.
2938 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2940 * config/sparc/sparc.c (function_arg_record_value_1): Skip
2941 fields with zero length.
2942 (function_arg_record_value_2): Likewise.
2943 (function_arg_record_value_3): Use smallest_mode_for_size
2944 instead of mode_for_size.
2945 (function_arg_union_value): Return naked register for unions
2948 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2950 * config/sparc/sparc.c (scan_record_type): Handle vector types.
2951 (function_arg_slotno): Handle vector types specially.
2952 (function_arg_record_value_1): Split fields with vector type and
2953 BLKmode into their subparts.
2954 (function_arg_record_value_2): Likewise. Be prepared to handle
2955 more than 2 registers per field.
2956 (function_arg_union_value): Increment regno inside the loop.
2957 (function_arg_vector_value): New function.
2958 (function_arg): Use it to split fields with vector type and
2959 BLKmode into their subparts and build a PARALLEL. Treat
2960 other vector types like floats.
2961 (function_value): Likewise.
2962 (sparc_pass_by_reference): Handle vector types.
2963 (sparc_return_in_memory): Likewise.
2965 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2967 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
2968 statement that never triggers.
2970 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2972 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
2973 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
2974 ("x_fdivd"): Use also for fsqrtd type.
2975 ("x_fdivs"): Use also for fsqrts type.
2976 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
2977 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
2978 ("fix_truncdfsi2_ibm"): Set type to "other".
2979 ("floatdidf2", "floatdisf2"): Do not clobber CC.
2980 ("floatsidf2", "floatsidf2_ieee"): Likewise.
2981 ("floatsisf2", "floatsisf2_ieee"): Likewise.
2982 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
2983 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
2985 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
2986 ("sqrtdf2"): Set type to "fsqrtd".
2987 ("sqrtsf2"): Set type to "fsqrts".
2989 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
2991 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
2992 pointer to the last PHI node in the new PHI chain.
2994 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
2996 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
2997 for non-PIC TLS_MODEL_INITIAL_EXEC case.
2999 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3001 * expmed.c: Fix a comment typo.
3003 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3006 * config/i386/cygming.h
3007 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3009 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3011 * config/sh/sh4a.md: Fix copyright.
3013 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3015 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3018 2004-11-05 David Edelsohn <edelsohn@gnu.org>
3020 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3021 when carry not used. Suggested by Torbjorn Granlund.
3023 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3024 operand[1] unnecessarily. Suggested by Eric Christopher.
3025 (rs6000_adjust_cost): Increase latency of store to wider load.
3026 (rs6000_rtx_costs): mulli only allows 16-bit constants.
3028 2004-11-05 Stan Shebs <shebs@apple.com>
3030 * config/rs6000/rs6000.c (machopic_output_stub): Output
3031 ldu instead of lwzu for 64-bit stubs.
3033 2004-11-05 Richard Henderson <rth@redhat.com>
3035 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
3037 (alpha_expand_unaligned_store): Likewise.
3039 2004-11-05 Richard Henderson <rth@redhat.com>
3041 * expmed.c (extract_force_align_mem_bit_field): New.
3042 (extract_split_bit_field): Call it.
3044 2004-11-05 Richard Henderson <rth@redhat.com>
3046 * ia64.md (UNSPEC_SHRP): New.
3047 (dshift_count_operand): New.
3048 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
3049 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
3051 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3053 * c-typeck.c (output_init_element): Return early if value is
3056 2004-11-05 James E Wilson <wilson@specifixinc.com>
3058 * invoke.texi (-fno-guess-branch-probability): Rewrite.
3060 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
3061 1 to UNSPEC_GR_SPILL.
3063 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
3065 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
3066 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
3068 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
3070 * bitmap.h (enum bitmap_bits): Remove.
3071 (bitmap_operation): Remove.
3072 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3073 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3074 bitmap_xor_into): Prototype.
3075 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
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): New.
3080 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
3082 PR tree-optimization/18307
3083 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
3084 and ORIG being the same node.
3086 2004-11-04 Geoffrey Keating <geoffk@apple.com>
3088 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
3089 (install-mkheaders): Install the version built for the
3090 host, not for the build machine.
3091 * configure.ac: Always run fixincludes.
3092 (all_outputs): Remove mkheaders.
3093 * configure: Regenerate.
3094 * fixinc.in: Move to fixincludes/.
3095 * mkfixinc.sh: Likewise.
3096 * mkheaders.in: Likewise.
3097 * README-fixinc: Likewise.
3099 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3102 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
3103 equivalent on the A4.
3105 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3107 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
3108 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
3109 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
3110 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
3111 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3112 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
3113 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
3114 doc/trouble.texi: Correct end-of-sentence markup and markup of
3115 "etc.", "e.g." and "i.e.". Use @code in various places where
3118 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3120 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
3121 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
3122 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
3125 2004-11-04 Mark Mitchell <mark@codesourcery.com>
3127 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
3128 * doc/extend.texi: Document "notshared" attribute.
3130 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3132 * tree-phinodes.c (make_phi_node): Make it static.
3133 * tree.h: Remove the prototypes for make_phi_node.
3135 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3137 * stmt.c (expand_asm, expand_asm_operands): Make them static.
3138 * tree.h: Remove the prototypes for expand_asm and
3139 expand_asm_operands.
3141 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3143 * passes.c (rest_of_compilation): Make it static.
3144 * toplev.h: Remove the prototype for rest_of_compilation.
3146 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3148 * jump.c (cleanup_barriers): Use delete_insn instead of
3150 (delete_barrier): Remove.
3151 * rtl.h: Remove the corresponding prototype.
3153 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3155 * expr.c (mostly_zero_p): Make it static.
3156 * tree.h: Remove the prototype for mostly_zeros_p.
3158 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3160 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
3162 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3164 * builtins.c (expand_builtin_return_addr,
3165 expand_builtin_longjmp, expand_builtin_trap): Make them static.
3166 * expr.h: Remove the prototypes for expand_builtin_longjmp and
3167 expand_builtin_trap.
3168 * tree.h: Remove the prototype for expand_builtin_return_addr.
3170 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3172 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
3173 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
3174 with VAL being NULL.
3176 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3178 * cfghooks.c (delete_basic_block): Remove code to truncate
3181 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
3183 * flow.c (init_propagate_block_info): Change the type of i to
3186 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3188 PR tree-optimization/18184
3189 * c-typeck.c (comptypes): Do not treat pointers of different
3190 modes or alias-all flags as equivalent.
3191 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
3193 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
3195 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
3196 reference specific C parser files in examples.
3198 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
3201 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
3202 as OP_INOUT if the instruction is predicated.
3204 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3206 * bitmap.h: Fix a comment typo. Follow spelling conventions.
3207 * tree-vectorizer.c: Fix a comment typo.
3209 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3211 * sdbout.c (SDB_GENERATE_FAKE): Remove.
3212 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
3213 * system.h: Poison SDB_GENERATE_FAKE.
3214 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
3216 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3218 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
3220 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3223 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
3226 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
3228 * predict.c (propagate_freq): Make bitno unsigned. Move
3229 npredecessors update out of loop.
3231 * bitmap.h (bitmap_iterator): Remove word_bit and bit
3232 fields. Rename others.
3233 (bmp_iter_common_next_1, bmp_iter_single_next_1,
3234 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
3235 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
3236 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
3237 bmp_iter_and_next): Remove.
3238 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
3239 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
3241 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
3242 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
3244 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
3245 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
3246 bitmap_and_into, bitmap_ior_into as appropriate.
3247 * except.c (remove_eh_handler): Likewise.
3248 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
3249 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3250 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
3251 * tree-ssa-live.h (live_merge_and_clear): Likewise.
3252 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
3255 * bitmap.c (bitmap_print): Make bitno unsigned.
3256 * bt-load.c (clear_btr_from_live_range,
3257 btr_def_live_range): Likewise.
3258 * caller-save.c (save_call_clobbered_regs): Likewise.
3259 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3260 * cfgcleanup.c (thread_jump): Likewise.
3261 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3262 * conflict.c (conflict_graph_compute): Likewise.
3263 * ddg.c (add_deps_for_use): Likewise.
3264 * df.c (df_refs_update): Likewise.
3265 * except.c (remove_eh_handler): Likewise.
3266 * flow.c (verify_local_live_at_start, update_life_info,
3267 initialize_uninitialized_subregs, propagate_one_insn,
3268 free_propagate_block_info, propagate_block, find_use_as_address,
3269 reg_set_to_hard_reg_set): Likewise.
3270 * gcse.c (clear_modify_mem_tables): Likewise.
3271 * global.c (global_conflicts, build_insn_chain): Likewise.
3272 * ifcvt.c (dead_or_predicable): Likewise.
3273 * local-alloc.c (update_equiv_regs): Likewise.
3274 * loop.c (load_mems): Likewise.
3275 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
3277 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
3279 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
3280 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
3281 * sched-rgn.c (propagate_deps
3282 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
3283 * tree-dfa.c (dump_dfa_stats
3284 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
3285 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
3287 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
3288 free_temp_expr_table, find_replaceable_exprs): Likewise.
3289 * tree-sra.c (scan_function, scalarize_parms): Likewise.
3290 * tree-ssa-alias.c (init_alias_info,
3291 compute_points_to_and_addr_escape,
3292 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
3293 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
3294 * tree-ssa-live.c (new_tree_live_info, live_worklist,
3295 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
3296 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
3297 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3298 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
3299 add_call_read_ops): Likewise.
3300 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
3301 * tree-ssa-live.h (num_var_partitions): Return unsigned.
3303 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
3305 PR tree-optimization/18009
3306 * tree-vectorizer.h (enum dr_alignment_support): New type.
3307 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
3308 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
3309 single data_reference (instead of a varray of references).
3310 * tree-vectorizer.c (new_loop_vec_info): Likewise.
3311 (vect_gen_niters_for_prolog_loop): Likewise.
3312 (vect_update_inits_of_drs): Likewise.
3314 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
3315 vect_enhance_data_refs_alignment.
3316 (vect_do_peeling_for_alignment): Likewise.
3317 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
3318 this functionality used to be in vect_analyze_data_refs_alignment.
3319 Also update DR_MISALIGNMENT due to peeling; this functionality used to
3320 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
3321 (vect_analyze_data_refs_alignment): Decision on whether and by how much
3322 to peel moved to vect_enhance_data_refs_alignment. Call
3323 vect_supportable_dr_alignment.
3325 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
3326 (vect_compute_data_refs_alignment): Return bool. Consider return value
3327 of vect_compute_data_ref_alignment and return true/false accordingly.
3328 (vect_enhance_data_refs_alignment): Consider return value of
3329 vect_compute_data_refs_alignment and return true/false accordingly.
3331 (vect_supportable_dr_alignment): New function.
3332 (vectorizable_store): Call vect_supportable_dr_alignment.
3333 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
3334 support checks moved from here to vect_supportable_dr_alignment.
3336 (vect_transform_loop): Avoid 80 columns overflow.
3338 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3340 * timevar.c (timevar_enable): Change from
3342 (timevar_push): Rename to ...
3343 (timevar_push_1): this and remove the
3345 (timevar_pop): Rename to ...
3346 (timevar_pop_1): this and remove the
3348 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
3349 (timevar_pop): New macro.
3350 (timevar_push): New macro.
3351 (timevar_enable): Declare.
3353 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3355 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
3356 libgcc for shared libraries.
3358 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3360 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
3361 * config/s390/s390.c (s390_split_access_reg): New function.
3362 (regclass_map): Add access registers.
3363 (get_thread_pointer): Use access register instead of UNSPEC_TP.
3364 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
3365 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
3366 (TP_REGNUM): New define.
3367 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3368 REG_ALLOC_ORDER): Add access registers.
3369 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
3370 CANNOT_CHANGE_MODE_CLASS): Support access registers.
3371 (enum reg_class): Add ACCESS_REGS.
3372 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3373 (REG_CLASS_FROM_LETTER): Add 't' constraint.
3374 (REGISTER_NAMES): Add access registers.
3375 * config/s390/s390.md (UNSPEC_TP): Remove.
3376 ("*movdi_64"): Add access register alternatives. Provide splitters
3377 to split DImode access register <-> GPR moves into SImode moves.
3378 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
3379 ("movstrictsi"): Likewise.
3380 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
3381 ("set_tp_64", "set_tp_31"): Likewise.
3382 ("*set_tp"): New insn.
3384 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3386 * tree-phinodes.c (resize_phi_node): Copy only a portion of
3387 the PHI node currently in use.
3389 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3392 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
3395 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
3397 PR tree-optimization/18270
3398 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
3399 abnormal edges, commit all pending stmts on incoming edges.
3401 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3403 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
3404 cause extra costs. Generate canonical RTL.
3406 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
3408 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
3409 (lambda_compute_target_space). Ditto.
3410 * lambda.h (lambda_trans_matrix): Ditto.
3411 (lambda_linear_expression): Ditto.
3412 (lambda_body_vector): Ditto.
3413 (lambda_loopnest): Ditto.
3414 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
3415 update comments, and remove pointless addition of 0.
3416 (linear_transform_loops): Update comments.
3418 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
3420 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
3423 2004-11-03 Jeff Law <law@redhat.com>
3425 * predict.c (struct block_info_def): Kill "tovisit" field.
3426 (propagate_freq): Accept new "tovisit" parameter. Change
3427 read/write access methods for "tovisit" to check the "tovisit"
3428 bitmap instead of a bit in block_info_def.
3429 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
3430 it to propagate_freq.
3432 * stmt.c (expand_case): Speed up code to detect duplicate case
3433 label targets and count unique case label targets.
3435 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3437 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
3439 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3441 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
3443 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3445 * tree-cfg.c (find_taken_edge): Abort if we are given a
3446 statement that is neither COND_EXPR nor SWITCH_EXPR.
3448 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
3450 * fold-const.c (fold): Reassociate also (x - mult) + mult and
3451 (mult - x) + mult. Cast operands of expression after applying
3452 distributive law to the correct types. Apply distributive law
3453 to a * c - b * c for all non-float types.
3455 2004-11-02 Geoffrey Keating <geoffk@apple.com>
3457 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
3458 because we don't want to run them now; instead, set them to
3459 stmp-install-fixproto or stmp-install-fixinc.
3460 * Makefile.in (stmp-install-fixproto): New.
3461 (stmp-install-fixinc): New.
3462 * configure: Regenerate.
3464 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3466 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
3469 2004-11-02 Ziemowit Laski <zlaski@apple.com>
3471 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
3472 (c_types_compatible_p): Move function definition...
3473 * c-objc-common.c (c_types_compatible_p): ...here.
3474 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
3477 2004-11-02 Steven Bosscher <stevenb@suse.de>
3479 * cfgloop.h (struct loop): Update comment.
3480 * cse.c (cse_main): Remove obsolete comment.
3482 * expr.h (gen_cond_trap): Move prototype under functions provided
3484 (canonicalize_condition, get_condition): Move to...
3485 * rtl.h (canonicalize_condition, get_condition): ...here.
3486 (branch_target_load_optimize): Add comment that this function is
3488 * loop.c (canonicalize_condition, get_condition): Move to...
3489 * rtlanal.c (canonicalize_condition, get_condition): ...here.
3490 * sched-deps.c (get_condition): Rename to sched_get_condition.
3491 (add_dependence): Update this caller.
3493 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
3496 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
3497 that the vops get marked for renaming.
3499 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
3501 * config/s390/s390.md ("movcc"): Set type attribute.
3503 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3505 * tree-phinodes.c (add_phi_arg): Add an assertion that the
3506 edge already exists.
3508 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3510 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
3511 element that's being removed.
3513 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3515 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
3516 arguments using PENDING_STMT.
3517 (thread_block): Call copy_phis_to_block after redirecting an
3520 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3522 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
3523 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
3524 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
3525 (bitmap_ior_and_compl_into): Produce bool.
3526 (bitmap_union_of_diff): Rename to ...
3527 (bitmap_ior_and_compl): ... here. Produce bool.
3528 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
3529 bitmap_operation directly.
3530 (bitmap_union_of_diff): Rename to ...
3531 (bitmap_ior_and_compl): ... here. Return bool, use
3532 bitmap_operation directly.
3533 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
3534 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
3535 * global.c (modify_bb_reg_pav): Likewise.
3537 * bitmap.h (bitmap_equal_p): Return bool.
3538 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
3539 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
3540 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
3541 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
3542 bitmap_intersect_compl_p.
3543 * ifcvt (dead_or_predicable): Likewise.
3545 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3547 PR rtl-optimization/17104
3548 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
3549 loads in zero_extend.
3551 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
3554 * toplev.c (debug_type_names): Remove "dwarf-1".
3556 2004-11-02 Ben Elliston <bje@au.ibm.com>
3558 * timevar.h (timevar_get): Remove.
3559 * timevar.c (timevar_get): Remove unused function.
3561 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
3563 * doc/include/texinfo.tex: Update from Texinfo CVS.
3565 2004-11-02 Ben Elliston <bje@au.ibm.com>
3567 * cppdefault.h (cpp_SYSROOT): Remove.
3568 * cppdefault.c (cpp_SYSROOT): Likewise.
3570 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
3572 PR tree-optimization/16447
3573 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
3574 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
3575 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
3576 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
3577 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
3578 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
3579 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
3580 (identical_copies_p): New. Return true is two copies are the same.
3581 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
3582 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
3584 (perform_edge_inserts): New. Determine what to do with all stmts that
3585 have been inserted on edges.
3586 (remove_ssa_form): Analyze and commit edges from here.
3588 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
3591 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
3592 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
3593 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3594 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
3596 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
3599 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
3600 parameter declarations.
3602 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
3604 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
3605 (s390_secondary_input_reload_class)
3606 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
3608 (s390_expand_cmpmem): Enable cmpmem implementation.
3609 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3610 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
3611 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
3612 * config/s390/s390.md ("movcc"): New insn pattern.
3613 * doc/md.texi: Document 'c' constraint for s390.
3615 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
3618 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
3621 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
3623 Fix PR tree-optimization/17672
3624 Fix PR tree-optimization/18168
3626 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
3628 (gcc_tree_to_linear_expression): Add extra to existing constant.
3629 (depth_of_nest): Factor out function used in various places.
3630 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
3632 (find_induction_var_from_exit_cond): Stop guessing, and just
3633 get the right answer :).
3634 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
3635 Print out message about result of attempt to create perfect nest.
3636 (lbv_to_gcc_expression): Add type argument, use it to do math
3637 and induction variable creation.
3638 (lle_to_gcc_expression): Ditto.
3639 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
3640 oldiv. Pass type argument to lle_to_gcc_expression and
3641 lbv_to_gcc_expression.
3642 Reset number of iterations after transformation.
3643 (perfect_nestify): Remove useless pre-allocation, and cleanup
3646 * tree-data-ref.c (build_classic_dist_vector): Return false for
3647 dependences completely outside of the loop nest we asked about.
3648 (build_classic_dir_vector): Ditto.
3649 (compute_data_dependences_for_loop): Only add dependence relations
3650 inside the loop we asked about.
3652 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
3653 Compute immediate uses.
3655 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
3657 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
3659 * tree-cfg.c (thread_jumps): Fix a comment typo.
3661 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
3663 * tree-cfg.c (thread_jumps): Fix a comment typo.
3665 2004-10-31 Nicolas Pitre <nico@cam.org>
3667 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
3668 values smaller than 2^32.
3670 2004-10-31 Jeff Law <law@redhat.com>
3672 * cfgloop.h (struct loop): Remove unused "nodes" field.
3673 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
3674 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
3675 instead of calling flow_bb_inside_loop_p for every basic block
3677 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
3679 2004-10-31 Graham Stott <graham.stott@btinternet.com>
3681 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
3682 INT_5_BITS instead of VAL_5_BITS_P.
3684 2004-10-31 Roger Sayle <roger@eyesopen.com>
3687 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
3688 for consistent quoting in diagnostic messages.
3689 (expand_call_inline): Likewise.
3690 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3691 * tree-ssa.c (warn_uninitialized_var): Likewise.
3692 (warn_uninitialized_phi): Likewise.
3694 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
3696 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
3699 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
3701 * c-common.c: Fix a comment typo.
3703 2004-10-31 Jason Merrill <jason@redhat.com>
3706 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
3707 aggregate types that are not BLKmode.
3709 2004-10-30 Ziemowit Laski <zlaski@apple.com>
3711 * c-common.h (objc_lookup_ivar): Add second parameter to
3713 * c-typeck.c (build_external_ref): After looking up symbol,
3714 pass it to objc_lookup_ivar() to decide whether it or the
3715 ivar should be used, rather than deciding the issue locally.
3716 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
3717 which is simply returned in the non-ObjC case.
3719 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
3721 * sdbout.c (sdbout_symbol): Do not output type .def statements
3724 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3726 * c-common.c (catenate_strings): New.
3727 (c_parse_error): Use it. Don't over-escape.
3729 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
3731 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
3732 modify the for loop expressions for it. Remove unnecessary casts.
3733 (sh_expand_prologue): Declare reg as unsigned.
3734 (sh_gimplify_va_arg_expr): Initinalize lab_over.
3735 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
3737 2004-10-30 Geoffrey Keating <geoffk@apple.com>
3739 * doc/invoke.texi (Darwin Options): Improve description of
3740 how the subtype is chosen.
3742 2004-10-30 Roger Sayle <roger@eyesopen.com>
3745 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
3746 the stack adjustment, "size", is valid for Pmode. If the stack
3747 frame is too large, generate a trap insn and issue a warning.
3749 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
3751 * tree-ssa-dom.c: Fix comment typos.
3753 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
3755 * config/sh/sh.c (prepare_move_operands): Use operands[0]
3756 for the output rtl if no_new_pseudos is set. Remove redundant
3759 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
3762 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
3763 determining whether to copy parameter types from a previous
3764 prototype declaration.
3766 2004-10-29 Roger Sayle <roger@eyesopen.com>
3768 PR rtl-optimization/17581
3769 * cselib.c (cselib_process_insn): The last instruction of a libcall
3770 block, with the REG_RETVAL note, should be considered in the libcall.
3771 * gcse.c (do_local_cprop): Allow constants to be propagated outside
3773 (adjust_libcall_notes): Use simplify_replace_rtx instead of
3774 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
3776 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
3778 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
3780 2004-10-29 Jeff Law <law@redhat.com>
3782 * tree-ssa-dom.c (struct edge_info): New structure holding
3783 edge equivalences and edge redirection information.
3784 (get_eq_expr_value, record_dominating_conditions): Kill.
3785 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
3786 Call record_edge_info.
3787 (allocate_edge_info, free_edge_info): New.
3788 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
3789 rather than cprop_into_phis. Free all edge infos before threading
3791 (thread_across_edge): Allocate new edge info structures as needed
3792 and store the redirection target into the edge info structure
3793 instead of the edge's AUX field.
3794 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
3795 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
3796 Revamp code which finds and records equivalences associated with
3797 edges to use saved data in the edge_info structure.
3798 (record_equivalencs_from_phis): Similarly.
3799 (dom_opt_finalize_block): Revamp code which finds and records
3800 equivalences associated with edges to use saved data in the
3801 edge_info structure.
3802 (build_and_record_new_cond): New function.
3803 (record_conditions): Use build_and_record_new_cond to record
3804 dominating conditions.
3805 (record_edge_info): New function.
3806 (record_range): Tighten test for conditions which create
3807 useful range records.
3809 2004-10-29 Geoffrey Keating <geoffk@apple.com>
3811 * config/i386/darwin.h (ASM_SPEC): Simplify.
3812 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
3813 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
3814 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
3815 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
3816 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
3817 in all cases. Pass the right -arch or -arch_only based on -mcpu.
3818 (ASM_SPEC): Handle -force_cpusubtype_ALL.
3819 * doc/invoke.texi (Darwin Options): Improve documentation for
3820 Darwin linker (and libtool) switches.
3822 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
3824 2004-10-29 Stan Shebs <shebs@apple.com>
3826 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
3828 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
3830 * tree-phinodes.c (allocate_phi_node): New.
3831 (make_phi_node, resize_phi_node): Use it.
3833 2004-10-29 David Edelsohn <edelsohn@gnu.org>
3835 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
3836 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
3838 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
3840 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
3842 * tree.h (tree_phi_node): Tell the garbage collector to chase
3845 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
3847 * opts.c (decode_options): Lower the crossjump threshold for -Os.
3849 2004-10-29 Diego Novillo <dnovillo@redhat.com>
3851 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
3853 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
3855 * bitmap.h (bitmap_empty_p): New.
3856 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3857 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
3858 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
3860 (bitmap_ior_and_compl): Rename to ...
3861 (bitmap_ior_and_compl_into): ... here.
3862 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
3863 (bitmap_ior_and_compl): Rename to ...
3864 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
3866 (bitmap_union_of_diff): Use renamed bitmap functions.
3867 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
3868 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
3869 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3870 * df.c (df_bb_rd_local_compute)
3871 * flow.c (calculate_global_regs_live,
3872 init_propagate_block_info): Likewise.
3873 * ifcvt.c (find_if_case_1, find_if_case_2,
3874 dead_or_predicable): Likewise.
3875 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
3876 reset_conflicts, conflicts_between_webs): Likewise.
3877 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
3878 detect_web_parts_to_rebuild): Likewise.
3879 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
3880 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
3881 * tree-sra.c (decide_instantiations): Likewise.
3882 * tree-ssa-alias.c (create_name_tags,
3883 merge_pointed_to_info): Likewise.
3884 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3885 * tree-ssa-loop-im.c (move_computations): Likewise.
3886 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
3887 * tree-ssa-pre.c (fini_pre): Likewise.
3888 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
3889 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
3890 * tree-vectorizer.c (vectorize_loops): Likewise.
3892 2004-10-29 Nick Clifton <nickc@redhat.com>
3894 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
3895 adding the PIC register to the fixed_regs array, also add it
3896 to the call_used_regs array.
3898 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3900 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
3901 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
3903 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
3905 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
3906 (rewrite_blocks): Modify argument, and use it to decide which
3908 (rewrite_def_def_chains): Call rewrite_blocks with true here.
3909 (rewrite_into_ssa): and call it with false here.
3911 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
3913 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
3914 triggers into gcc_assert.
3916 2004-10-28 Diego Novillo <dnovillo@redhat.com>
3918 PR tree-optimization/16728
3919 * tree-flow.h (get_ptr_info): Declare.
3920 * tree-ssa-alias.c (get_ptr_info): Make extern.
3921 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
3924 2004-10-28 Stan Shebs <shebs@apple.com>
3926 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
3927 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
3930 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
3932 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
3933 prevent their later unnecessary registration.
3934 (mf_build_check_statement_for): Remove "addr" argument, and
3935 related "__mf_value" generated code. Update callers.
3936 (mf_decl_eligible_p): New function, factored from mx_register_decls.
3937 (mx_register_decls): Call it.
3938 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
3939 to restore support for complex nested expressions.
3940 (mudflap_enqueue_decl): Simplify. Move registration call emission
3942 (mudflap_finish_file): ... to here.
3943 (mudflap_enqueue_constant): Remove dump code.
3945 2004-10-28 Zack Weinberg <zack@codesourcery.com>
3948 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
3949 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
3950 (dbxout_finish_complex_stabs): Update to match.
3951 (dbxout_symbol_location): Call emit_pending_bincls_if_required
3952 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
3953 dbxout_begin_complex_stabs_noforcetext.
3954 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
3955 N_GSYM, using new SYM parameter. Correct logic for special
3958 * varasm.c (function_section): If DECL is NULL_TREE, don't try
3959 to do anything else. Do not call get_insns if cfun or
3960 cfun->emit are NULL.
3962 2004-10-28 Adam Nemet <anemet@lnxw.com>
3965 * c-typeck.c (c_mark_addressable): Issue error if address of a
3966 register variable is taken. Use "%qD" to print DECL_NAME.
3968 2004-10-28 Diego Novillo <dnovillo@redhat.com>
3970 * opts.c (decode_options): Don't run PRE at -Os.
3972 2004-10-28 Richard Henderson <rth@redhat.com>
3974 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
3975 zero in the conditional.
3976 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
3978 2004-10-28 Richard Henderson <rth@redhat.com>
3980 * cse.c (memory_extend_rtx): Remove.
3981 (cse_main): Don't set it.
3982 (cse_insn): Use a local buffer instead.
3984 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
3986 * profile.c (branch_prob): Call to init_edge_profiler added.
3987 * rtl-profile.c (rtl_init_edge_profiler): New function.
3988 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
3989 call to safe_insert_insn_on_edge.
3990 (rtl_profile_hooks): rtl_init_edge_profiler added.
3991 * tree-profile.c (tree_init_edge_profiler): New function.
3992 (tree_profile_hooks): tree_init_edge_profiler added.
3993 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
3995 2004-10-28 Nick Clifton <nickc@redhat.com>
3997 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
3998 emit_jump_insn() to generate the return instruction.
4000 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4002 * tree-phinodes.c: Remove trailing whitespace.
4004 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4006 * tree-ssa-loop-ivopts.c: Fix a comment typo.
4007 * doc/invoke.texi: Fix a typo.
4009 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4011 * Makefile.in (OBJS-common): Remove duplicates.
4013 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4015 * lambda-code.c (nestify_update_pending_stmts): Remove.
4016 (perfect_nestify): Use flush_pending_stmts instead of
4017 nestify_update_pending_stmts.
4018 * tree-cfg.c (tree_make_forwarder_block): Use
4019 flush_pending_stmts.
4020 * tree-flow.h: Add a prototype for flush_pending_stmts.
4021 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
4022 Use flush_pending_stmts.
4023 (lv_update_pending_stmts): Remove.
4024 (tree_ssa_loop_version): Use flush_pending_stmts instead of
4025 lv_update_pending_stmts.
4026 * tree-ssa.c (flush_pending_stmts): New.
4028 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
4031 * final.c (alter_subreg): Compute correct offset to use with
4032 paradoxical SUBREGs of memory operands.
4033 * recog.c (general_operand): Allow paradoxical SUBREGs of
4034 memory operands after reload.
4035 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
4036 has failed when passed a hard register.
4038 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
4040 * function.c (assign_parm_setup_block): Handle parallels correctly.
4042 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
4044 * final.c (shorten_branches): Initialize flags structure.
4046 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
4048 * tree.c (int_cst_node, int_cst_hash_table): New variables.
4049 (init_ttree): Initialize them.
4050 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
4051 (build_int_cst_wide): Use hash table for oversized integers.
4053 2004-10-28 Nick Clifton <nickc@redhat.com>
4055 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define