1 2004-11-28 Steven Bosscher
2 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
5 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
6 that the case is in range, to make sure the casesi insn is always
7 in range and never falls through.
8 (casesi1): Add comment to explain why casesi never falls through.
9 Remove the unnamed special case casesi pattern.
11 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
14 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
15 "*movdicc_real". Only match reversible comparisons.
16 ("*movdicc_real_nonreversible"): New pattern, split from
17 "*movdicc_real". Match only nonreversible comparisons. Exclude
18 reversed alternatives.
19 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
22 2004-11-27 Richard Henderson <rth@redhat.com>
24 * config/ia64/ia64.md: Move all define_predicate's ...
25 * config/ia64/predicates.md: ... here. New file.
27 2004-11-27 Per Bothner <per@bothner.com>
30 Re-applied following, with two modifications: add a URL for the
31 fixed cctools; only exit if $build = $target.
33 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
34 * configure.ac (powerpc-*-darwin*): Require assembler to support
36 * configure: Regenerate.
38 2004-11-28 David Edelsohn <edelsohn@gnu.org>
41 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
42 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
43 Distinguish between SImode and DImode CONST_INT.
45 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
46 Alan Modra <amodra@bigpond.net.au>
49 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
50 functions, strings and thread-local vars.
52 2004-11-28 Alan Modra <amodra@bigpond.net.au>
54 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
55 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
56 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
57 to allow non-darwin ABIs to optimize away code.
58 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
60 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
62 * tree.c (operand_equal_for_phi_arg_p): New.
63 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
64 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
65 Replace operand_equal_p with operand_for_phi_arg_p
68 * bb-reorder.c (find_traces_1_round): Speed up by using
69 EDGE_COUNT instead of FOR_EACH_EDGE.
71 * fold-const.c, config/i386/linux64.h: Fix comment typos.
73 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
76 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
78 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
80 * config/i386/linux.h: Fix a comment typo.
81 * doc/extend.texi: Fix a typo.
83 2004-11-27 Jeff Law <law@redhat.com>
85 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
88 2004-11-27 Jakub Jelinek <jakub@redhat.com>
90 * config/i386/linux64.h (REG_NAME): Define.
92 2004-11-27 Jakub Jelinek <jakub@redhat.com>
94 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
95 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
96 and only afterwards convert to ctype.
98 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
100 * config/mips/mips-protos.h (function_arg_boundary): Declare.
101 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
102 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
103 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
104 * config/mips/mips.c (function_arg_boundary): New function.
105 Impose a maximum alignment of STACK_BOUNDARY.
107 2004-11-27 Jakub Jelinek <jakub@redhat.com>
109 PR rtl-optimization/17825
110 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
113 2004-11-27 Alan Modra <amodra@bigpond.net.au>
116 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
117 from rs6000_default_long_calls for libcalls.
119 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
121 * expmed.c (extract_bit_field): When extracting from non-integer mode,
122 force a SUBREG into a register because we may be taking a further
125 2004-11-27 Di-an Jan <dianj@freeshell.org>
127 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
129 2004-11-26 Robert Millan <robertmh@gnu.org>
131 Changes for k*bsd-gnu support.
132 * config/i386/linux.h: Define REG_NAME to allow overriding of
133 register names in sc structure.
134 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
136 * config.gcc: Detect x86_64-k*bsd-gnu systems.
138 2004-11-26 Jeff Law <law@redhat.com>
140 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
141 retrieve annotations or pointer info before it's necessary.
142 Reorder tests for early continue of the loop. Manually CSE
145 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
147 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
148 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
149 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
150 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
151 to a fixed reg if the source is the Return Address register.
152 Implement new Rule 15.
153 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
154 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
155 sparc_dwarf_handle_frame_unspec.
156 (gen_save_register_window): New function.
157 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
158 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
159 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
160 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
161 (sparc_asm_function_prologue): Do not emit call frame debugging info.
162 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
163 (sparc_expand_epilogue): Likewise.
164 (sparc_dwarf_handle_frame_unspec): New function.
165 * config/sparc/sparc.md (save_register_window): Remove.
166 (save_register_windowdi): Rewrite modelled on the callframe debug info.
167 (save_register_windowsi): Likewise.
169 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
171 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
172 BB_HEAD, not BLOCK_HEAD.
174 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
176 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
177 scratch insns that set a register live at the join point.
179 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
181 * cse.c, tree-ssa-operands.c: Fix comment typos.
183 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
185 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
188 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
190 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
192 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
193 check that tests if all edges go to the same destination.
195 * bitmap.c (bitmap_find_bit): Speed up by traversing from
196 head->first if that seems profitable.
198 2004-11-25 Jeff Law <law@redhat.com>
200 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
201 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
202 (pass_loop_done): Use TV_TREE_LOOP_FINI.
204 2004-11-26 Alan Modra <amodra@bigpond.net.au>
206 PR rtl-optimization/16356
207 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
208 separate output register and one less jump. Enable for powerpc64.
209 (floatdisf2): Adjust for above.
211 2004-11-25 Bob Wilson <bob.wilson@acm.org>
213 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
214 (GCC_DRIVER_HOST_INITIALIZATION): Define.
216 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
219 * tree-complex.c (vector_inner_type): New variable moved from
220 build_word_mode_vector_type.
221 (vector_last_type): Likewise.
222 (vector_last_nunits): Likewise.
223 (build_word_mode_vector_type): Use the new variables.
224 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
225 (GTFILES): Add tree-complex.c.
226 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
228 2004-11-25 Bob Wilson <bob.wilson@acm.org>
230 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
231 __XTENSA_WINDOWED_ABI__.
233 2004-11-25 Richard Henderson <rth@redhat.com>
235 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
236 args_size adjustments for calls even with cfa as stack pointer.
237 Search calls for stack adjustments after the insn is issued.
238 (dwarf2out_frame_debug): Add after_p argument; pass it on.
239 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
240 * final.c (final_start_function, final_scan_insn): Likewise.
242 2004-11-25 Richard Henderson <rth@redhat.com>
245 * reload1.c (set_initial_eh_label_offset): New.
246 (set_initial_label_offsets): Use it.
248 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
250 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
251 before calling life_analysis and release them after.
253 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
255 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
258 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
260 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
261 BITMAP_OBSTACK_ALLOC.
262 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
264 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
266 parts of PR rtl-opt/18463, rtl-opt/17647
267 * cse.c (canon_for_address): New function.
268 (find_best_addr): Call canon_for_address before getting the
269 address's cost when checking if we should take that address.
271 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
273 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
274 "tree *" as the first argument.
275 * tree-flow.h: Update the prototype of add_phi_arg.
276 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
277 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
278 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
279 tree-vectorizer.c: Update all call sites of add_phi_arg.
281 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
283 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
284 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
285 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
286 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
288 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
290 PR tree-optimization/18587
291 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
292 call clobbered caches as invalid.
293 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
294 indicating whether the call clobbered operand cache is valid.
295 (ssa_ro_call_cache_valid): New. Flag indicating whether the
296 pure/const call operand cache is valid.
297 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
298 list of operands for cached call virtual operands.
299 (clobbered_aliased_loads, clobbered_aliased_stores,
300 ro_call_aliased_load): New. flags caching whether alias bits are
301 to be set in call stmt's.
302 (fini_ssa_operands): Remove call operand caches if present.
303 (get_expr_operands, get_asm_expr_operands,
304 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
305 (get_call_expr_operands): Add call clobbered variables first.
306 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
307 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
308 if it is valid, otherise fill the cache.
309 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
310 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
311 in_v_may_def_list bits.
312 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
313 in_list bits for the v_may_def elements and empty the operand
315 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
316 VUSES by checking the in_v_may_def_list bit.
317 (append_v_may_def, append_vuse): Use the in_list bit rather than
318 scanning the array for duplicates.
320 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
322 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
323 displacements are not short.
325 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
327 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
330 2004-11-25 Mark Mitchell <mark@codesourcery.com>
333 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
334 (lvalue_or_else): Declare.
335 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
336 * c-typeck.c (lvalue_use): Remove.
337 (lvalue_or_else): Remove.
340 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
341 unemitted variables with static storage duration.
343 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
345 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
348 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
350 * config/rs6000/altivec.md (VIshort): New mode macro.
351 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
353 (altivec_vaddu<VI_char>s): ... this.
354 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
356 (altivec_vadds<VI_char>s): ... this.
357 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
359 (altivec_vsubu<VI_char>s): ... this.
360 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
362 (altivec_vsubs<VI_char>s): ... this.
363 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
365 (altivec_vavgu<VI_char>): ... this.
366 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
368 (altivec_vavgs<VI_char>): ... this.
369 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
370 (altivec_vmsumu<VI_char>m): ... this.
371 (altivec_vmsummbm, altivec_vmsummhm): Replace
373 (altivec_vmsumm<VI_char>m): ... this.
374 (altivec_vandc): Remove.
375 (*andc<mode>3): Renamed to ...
376 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
377 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
379 (altivec_vrl<VI_char>): ... this.
380 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
382 (altivec_vsl<VI_char>): ... this.
383 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
385 (altivec_vsr<VI_char>): ... this.
386 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
388 (altivec_vsra<VI_char>): ... this.
389 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
390 (altivec_vsum4s<VI_char>s): ... this.
391 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
393 (altivec_vperm_<mode>): ... this.
394 (altivec_vsel_4sf): Rename to ...
395 (altivec_vsel_v4sf): ... here.
396 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
398 (altivec_vsel_<mode>): ... this.
399 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
400 altivec_vsldoi_16qi): Rename to ...
401 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
402 altivec_vsldoi_v16qi): ... here.
403 (altivec_vsldoi_4sf): Rename to ...
404 (altivec_vsldoi_v4sf): ... here.
405 (altivec_predicate_v4si, altivec_predicate_v8hi,
406 altivec_predicate_v16qi): Replace with ...
407 (altivec_predicate_<mode>): ... this.
408 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
410 (altivec_lve<VI_char>x): ... this.
411 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
413 (altivec_stve<VI_char>x): ... this.
414 (absv16qi2, absv8hi2, absv4si2): Replace
416 (abs<mode>2): ... this.
417 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
419 (altivec_abss_<mode>): ... this.
420 (vec_realign_load_v16qi, vec_realign_load_v8hi,
421 vec_realign_load_v4si): Replace with ...
422 (vec_realign_load_<mode>): ... this.
423 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
425 (rs6000_expand_ternop_builtin): Likewise.
427 2004-11-25 Andrew Haley <aph@redhat.com>
429 * gcc.c (process_command): Don't supply -v to linker.
431 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
433 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
434 instead of `%s' in diagnostic.
436 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
438 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
439 (FREE_REG_SET): Adjust.
440 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
441 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
442 (BITMAP_ALLOC): ... here.
443 (BITMAP_OBSTACK_FREE): Rename to ...
444 (BITMAP_FREE): Don't check for NULL bitmap here.
445 * tree-ssa-pre.c (value_insert_into_set_bitmap,
446 bitmap_set_new): Use new names.
448 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
449 * df.c (df_free): Likewise.
450 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
451 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
453 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
454 (ALLOC_REG_SET): ... here.
455 (FREE_REG_SET): Adjust.
456 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
457 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
458 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
459 * cfgrtl.c (rtl_split_block, rtl_split_edge,
460 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
461 * flow.c (update_life_info, calculate_global_regs_live,
462 allocate_bb_life_data, init_propagate_block_info): Adjust.
463 * global.c (build_insn_chain): Adjust.
464 * ifcvt.c (dead_or_predicable): Adjust.
465 * loop-iv.c (simplify_using_initial_values): Adjust.
466 * recog.c (peephole2_optimize): Adjust.
467 * sched-deps.c (init_deps_global): Adjust.
469 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
471 * config.gcc (avr-*-rtems*): Fix typo.
473 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
475 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
477 2004-11-24 Jeff Law <law@redhat.com>
479 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
480 the number of queries to random elements in the ai->written_vars
483 2004-11-24 Roger Sayle <roger@eyesopen.com>
485 * config/i386/i386.c (override_options): Disable x87 fancy math
486 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
488 2004-11-24 Roger Sayle <roger@eyesopen.com>
490 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
491 system header conflict on AIX 5.2.
492 * configure: Regenerate.
494 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
496 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
497 instead of calling phi_arg_from_edge.
499 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
502 2004-11-24 Ben Elliston <bje@au.ibm.com>
504 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
505 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
506 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
509 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
511 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
513 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
514 type will be remapped.
516 2004-11-24 Steven Bosscher <stevenb@suse.de>
518 * c-opts.c (c_common_post_options): Don't clear
519 flag_inline_functions.
520 * dojump.c (clear_pending_stack_adjust): Remove check on
521 flag_inline_functions, it's always true.
522 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
523 that can never trigger.
524 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
525 flag_inline_trees, now that flag_inline_functions is never
527 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
528 flag_inline_functions at optimization levels greater than
529 or equal to 3. This is already done by default.
531 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
533 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
534 instead to find the PHI argument. Do not take I as an
536 (eliminate_phi): Adjust the call to eliminate_build. Do not
537 take I as an argument.
538 (rewrite_trees): Adjust the call to eliminate_phi.
540 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
542 * optabs.h (force_expand_binop): Declare.
543 * optabs.c (force_expand_binop): Export.
544 * stmt.c (shift_return_value): Delete.
545 (expand_return): Don't call it.
546 * expr.h (shift_return_value): Declare.
547 * calls.c (shift_returned_value): Delete in favor of...
548 (shift_return_value): ...this new function. Leave the caller to check
549 for non-BLKmode values passed in the msb of a register. Take said mode
550 and a shift direction as argument. Operate on the hard function value,
552 (expand_call): Adjust accordingly.
553 * function.c (expand_function_start): If a non-BLKmode return value
554 is padded at the last significant end of the return register, use the
555 return value's natural mode for the DECL_RESULT, not the mode of the
557 (expand_function_end): Shift the same sort of return values left by
558 the appropriate amount.
560 2004-11-24 Matt Austern <austern@apple.com>
562 * recog.c (recog_memoized_1): Remove.
563 * recog.h (recog_memoized_1): Remove declaration.
564 (recog_memoized): Change from macro to inline function.
566 2004-11-24 Devang Patel <dpatel@apple.com>
569 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
570 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
572 2004-11-24 Devang Patel <dpatel@apple.com>
574 * gcc.c (process_command): Supply -v to linker.
576 2004-11-24 David Edelsohn <edelsohn@gnu.org>
577 Paolo Bonzini <bonzini@gnu.org>
579 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
580 vector modes without ALTIVEC_ABI. Use GCC vector instead of
582 (rs6000_pass_by_reference): Split conditional into pieces. Use
583 GCC vector instead of synthetic vector.
585 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
587 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
588 thread-local variable is invariant.
590 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
592 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
593 Handle TYPE_REF_CAN_ALIAS_ALL.
594 (print_declaration): Print array dimensions like dump_generic_node.
596 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
597 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
599 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
601 * bitmap.c (INLINE): Do not define.
602 (bitmap_elem_to_freelist, bitmap_element_free,
603 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
604 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
606 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
608 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
609 find the index of a PHI argument. Use e->dest_idx instead.
610 Replace hint with index.
612 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
615 2004-11-24 Diego Novillo <dnovillo@redhat.com>
617 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
620 2004-11-24 Joseph Myers <joseph@codesourcery.com>
622 * config/i386/i386.c (optimization_options): Use
623 SUBTARGET_OPTIMIZATION_OPTIONS.
624 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
625 (TARGET_SUBTARGET_DEFAULT): Don't include
626 MASK_OMIT_LEAF_FRAME_POINTER.
628 2004-11-24 Mark Mitchell <mark@codesourcery.com>
630 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
633 2004-11-24 Joseph Myers <joseph@codesourcery.com>
635 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
636 Use amd64 instead of 64.
638 2004-11-24 Mark Mitchell <mark@codesourcery.com>
639 Joseph Myers <joseph@codesourcery.com>
641 * crtstuff.c (IN_LIBGCC2): Define it.
642 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
643 instead of HAVE_LD_RO_RW_SECTION_MIXING.
644 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
645 * dwarf2out.c (named_section_eh_frame_section): Check
646 EH_TABLES_CAN_BE_READ_ONLY.
647 * except.c (default_exception_section): Likewise.
648 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
649 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
651 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
653 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
654 index of a PHI argument.
656 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
657 find_edge to find the index of a PHI argument.
659 2004-11-24 Steven Bosscher <stevenb@suse.de>
661 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
662 and LABELED_BLOCK_EXPR.
663 * gimplify.c (gimplify_labeled_block_expr): Remove.
664 (gimplify_exit_block_expr): Remove.
665 (gimplify_expr): Don't call them.
666 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
667 and LABELED_BLOCK_EXPR.
668 (estimate_num_insns_1): Likewise.
669 (walk_tree): Likewise.
670 * tree-pretty-print.c (dump_generic_node): Don't handle
671 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
672 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
673 (LABELED_BLOCK_EXPR): Likewise.
674 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
675 (LABELED_BLOCK_BODY): Likewise.
676 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
677 (EXIT_BLOCK_RETURN): Removed.
679 2004-11-24 Steven Bosscher <stevenb@suse.de>
681 * cfgrtl.c (rtl_delete_block): Fix comment.
682 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
683 or BLOCK_END insn notes.
684 * jump.c (squeeze_notes): Likewise.
685 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
686 EH_REGION_END notes, we never have them to begin with.
687 * sched-deps.c (sched_analyze_insn): When updating loop notes,
688 verify that we have indeed only recorded loop notes.
689 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
690 Only record loop notes.
692 * cfgexpand.c (tree_expand_cfg): Fix comment.
694 * passes.c (rest_of_compilation): Don't do a second call to
695 convert_from_eh_region_ranges from here, it's already called
697 * except.c (resolve_fixup_regions): Remove.
698 (remove_fixup_regions): Remove.
699 (convert_from_eh_region_ranges_1): Remove.
700 (convert_from_eh_region_ranges): Remove the case where EH is
701 not already lowered at the tree level. We always lower there.
703 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
706 * tree.c (make_vector_type): Move qualifiers to the vector type,
707 use the inner type's main variant and build a main variant for
708 the vector type if necessary.
709 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
711 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
713 * target.h (late_rtl_prologue_epilogue): Remove.
714 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
715 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
716 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
718 (rest_of_handle_flow2): ...here.
719 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
720 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
722 2004-11-23 Mark Mitchell <mark@codesourcery.com>
724 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
725 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
726 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
728 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
730 * config/i386/i386.c (override_options): Move
731 SUBTARGET_OVERRIDE_OPTIONS before defaulting
732 flag_omit_frame_pointer.
734 2004-11-23 Richard Henderson <rth@redhat.com>
736 * rtl.h (validate_subreg): Declare.
737 * emit-rtl.c (validate_subreg): New.
738 (gen_rtx_SUBREG): Use it.
739 * simplify-rtx.c (simplify_subreg): Likewise.
740 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
741 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
742 fallback whenever gen_realpart/gen_imagpart would not be able to
745 2004-11-23 Richard Henderson <rth@redhat.com>
747 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
748 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
751 2004-11-23 Diego Novillo <dnovillo@redhat.com>
753 PR tree-optimization/18618
754 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
755 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
756 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
758 (stmts_to_rescan): Likewise.
759 (const_and_copies_stack): Likewise.
760 (nonzero_vars_stack): Likewise.
761 (vrp_variables_stack): Likewise.
763 2004-11-23 Richard Henderson <rth@redhat.com>
765 * cse.c (record_jump_cond_subreg): New.
766 (record_jump_cond): Use it instead of gen_lowpart.
768 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
769 Joseph Myers <joseph@codesourcery.com>
771 * config/sol2-c.c (solaris_register_pragmas): Use
772 c_register_pragma_with_expansion.
773 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
774 * c-pragma.c (c_register_pragma): Update call to
776 (c_register_pragma_with_expansion): New function.
777 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
778 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
779 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
781 * doc/tm.texi (c_register_pragma_with_expansion,
782 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
784 2004-11-23 Richard Henderson <rth@redhat.com>
786 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
787 as mode sizes into local temporaries. Unify failure path.
789 2004-11-23 Richard Henderson <rth@redhat.com>
791 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
792 * caller-save.c (mark_set_regs): Use subreg_regno instead.
793 * final.c (alter_subreg): Likewise.
794 * local-alloc.c (reg_is_born): Likewise.
796 2004-11-23 Richard Henderson <rth@redhat.com>
798 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
799 instead of using a SUBREG temporary.
801 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
803 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
806 2004-11-23 Zack Weinberg <zack@codesourcery.com>
808 * function.h (struct function): Remove calls_longjmp.
809 (current_function_calls_longjmp): Delete.
810 * tree.h (ECF_LONGJMP): Delete.
811 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
812 (ECF_LIBCALL_BLOCK): Everybody slide down one.
813 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
814 * builtins.c (expand_builtin_longjmp): Don't set
815 current_function_calls_longjmp.
816 * calls.c (special_function_p): Mark longjmp and siglongjmp
817 with ECF_NORETURN, not ECF_LONGJMP.
818 (emit_call_1, expand_call, emit_library_call_value_1):
819 Don't check for ECF_LONGJMP.
820 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
821 (need_fake_edge_p): Likewise.
823 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
824 * system.h: Poison NON_SAVING_SETJMP.
825 * function.c (use_register_for_decl)
826 * gcse.c (compute_hash_table_work, compute_store_table)
827 * postreload-gcse.c (record_opr_changes)
828 * reload.c (find_equiv_reg)
830 * config/i386/i386.c (ix86_can_use_return_insn_p):
831 Remove code conditional on NON_SAVING_SETJMP.
832 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
834 * config/i386/sysv3.h: Delete file.
835 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
837 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
839 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
840 the vectorization factor is greater than the iteration count.
841 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
842 iteration count is known.
844 (vect_build_symbol_bound): Removed. Its functionality moved to
845 vect_generate_tmps_on_preheader.
846 (vect_generate_tmps_on_preheader): Moved content of
847 vect_build_symbol_bound here instead of calling it. Changed some
850 (vect_build_loop_niters): We don't expect a new_bb to be generated -
852 (vect_gen_niters_for_prolog_loop): Likewise.
853 (vect_gen_niters_for_prolog_loo): Likewise.
855 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
856 (slpeel_add_loop_guard): Likewise.
857 (slpeel_tree_peel_loop_to_edge): Likewise.
858 (vect_do_peeling_for_alignment): Likewise.
860 (vect_get_first_index): Missing space.
862 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
864 * config/s390/s390.md ("*iordi3"): Mark commutative.
865 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
867 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
869 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
870 greater than PHI_ARG_CAPACITY.
871 (reserve_phi_args_for_new_edge): Initialize the new PHI
872 argument to NULL_TREE. Increment PHI_NUM_ARGS.
873 (add_phi_arg): Add a PHI argument to the slot given by
875 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
876 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
877 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
878 argument by looking at PHI_ARG_DEF.
879 (verify_phi_args): Check for a missing PHI argument. Remove
880 the check for duplicate PHI arguments.
881 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
882 (phi_arg_d): Remove e.
884 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
885 by restricting to the case with two outgoing edges.
887 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
889 * config/s390/s390.c (s390_backchain_string): Removed.
890 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
891 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
892 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
893 TARGET_KERNEL_BACKCHAIN to reflect the new options.
894 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
895 (TARGET_KERNEL_BACKCHAIN): Removed.
896 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
897 (TARGET_PACKED_STACK): New macro.
898 (TARGET_SWITCHES): New switches added.
899 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
901 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
902 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
903 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
904 the change in target switch semantics.
905 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
906 (TARGET_DEFAULT): MASK_BACKCHAIN added.
907 * doc/invoke.texi: Added documentation for the new/changed options.
909 2004-11-23 Uros Bizjak <uros@kss-loka.si>
911 PR rtl-optimization/18614
912 * simplify-rtx.c (simplify_binary_operation): Do not
913 simplify inner elements of constant arguments of
916 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
918 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
921 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
923 * tree-phinode.c (make_phi_node): Use a new variable,
924 capacity, to receive the return value of ideal_phi_node_len.
926 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
928 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
929 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
930 __gthread_recursive_mutex_init_function.
931 (__gthread_key_create): Properly cast -1.
932 (__gthread_recursive_mutex_init_function): New function.
933 (__gthread_recursive_mutex_lock): Rewrite.
934 (__gthread_recursive_mutex_trylock): Likewise.
935 (__gthread_recursive_mutex_unlock): Likewise.
937 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
939 * config/c4x/t-rtems: New.
940 * config.gcc: Reflect having added c4x/t-rtems.
942 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
946 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
947 lang_hooks.types.type_for_size instead of integer_type_node for the
950 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
952 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
954 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
956 * config/arm/t-rtems: New.
957 * config.gcc: Reflect having added arm/t-rtems.
959 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
961 * tree-cfg.c (tree_execute_on_growing_pred): New.
962 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
963 * tree-flow.h: Add a prototype for
964 reserve_phi_args_for_new_edge.
965 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
966 (add_phi_arg): Don't resize a PHI array.
968 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
970 * config.gcc: Add avr-*-rtems*.
971 * config/avr/t-rtems: New.
972 * config/avr/rtems.h: New.
974 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
976 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
977 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
978 Add comment to function.
980 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
983 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
985 PR rtl-optimization/14838
986 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
988 (get_last_nonnote_insn): Don't assume last insn is a note.
990 2004-11-22 Roger Sayle <roger@eyesopen.com>
992 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
993 to fold_binary_to_constant.
994 (nondestructive_fold_unary_to_constant): Likewise, rename to
995 fold_unary_to_constant.
996 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
997 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
998 (nondestructive_fold_unary_to_constant): Likewise.
999 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1000 and fold_binary_to_constant.
1001 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1002 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1003 and EXEC_UNARY with calls to fold_*nary_to_constant.
1004 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1005 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1006 fold_binary_to_constant.
1008 2004-11-22 Nick Clifton <nickc@redhat.com>
1010 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1011 initialisation of 'e'.
1013 2004-11-22 Roger Sayle <roger@eyesopen.com>
1015 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1016 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1017 automatically for targets without TARGET_80387.
1018 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1019 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1020 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1021 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1022 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1023 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1024 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1025 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1026 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1027 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1028 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1029 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1030 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1031 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1032 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1033 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1034 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1035 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1036 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1037 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1039 2004-11-22 Dale Johannesen <dalej@apple.com>
1041 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1042 properly and comment.
1044 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1046 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1047 (sparc_init_builtins): New function.
1048 (sparc_init_vis_builtins): Create builtin functions for VIS
1050 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1051 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1052 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1053 (def_builtin): New macro for creating builtin functions.
1054 (P): New mode macro for pointer types.
1055 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1056 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1057 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1058 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1059 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1060 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1061 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1063 2004-11-22 Devang Patel <dpatel@apple.com>
1065 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1067 2004-11-22 Devang Patel <dpatel@apple.com>
1069 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1070 (if_convertible_phi_p): ... new name.
1071 (if_convertable_modify_expr_p): Rename to ...
1072 (if_convertible_modify_expr_p): ... new name.
1073 (if_convertable_stmt_p): Rename to ...
1074 (if_convertible_stmt_p): ... new name.
1075 (if_convertable_bb_p): Rename to ...
1076 (if_convertible_bb_p): ... new name.
1077 (if_convertable_loop_p): Rename to ...
1078 (if_convertible_loop_p): ... new name.
1080 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1083 * configure.ac (threading): Accept 'posix95'.
1084 * configure: Regenerate.
1085 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1086 include sol26.h and default to posix95 threads if have_pthread_h.
1087 (sparc-*-solaris2*): Likewise.
1088 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1089 * gthr-posix95.h: New file.
1090 * config/sol26.h: New file.
1091 * doc/install.texi (--enable-threads): Document 'posix95'.
1093 2004-11-23 Ben Elliston <bje@au.ibm.com>
1095 * pointer-set.h (pointer_set_contains): Remove.
1096 * pointer-set.c (pointer_set_contains): Likewise.
1098 2004-11-22 Dale Johannesen <dalej@apple.com>
1100 * calls.c (expand_call): Do not call preserve_temp_slots.
1102 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1104 * tree-flow.h: Remove the prototype for remove_phi_arg.
1105 Add a prototype for remove_phi_args.
1106 * tree-phinodes.c (remove_phi_arg): Remove.
1107 (remove_phi_args): New.
1108 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1111 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1112 after making an edge.
1113 (remove_edge): Call execute_on_shrinking_pred before removing
1115 (redirect_edge_succ): Call execute_on_growing_pred and
1116 execute_on_shrinking_pred.
1117 * cfghooks.c (execute_on_growing_pred): New.
1118 (execute_on_shrinking_pred): Likewise.
1119 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1120 execute_on_shrinking_pred.
1121 Add prototypes for execute_on_growing_pred and
1122 execute_on_shrinking_pred.
1123 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1124 execute_on_growing_pred and execute_on_shrinking_pred.
1125 (cfg_layout_rtl_cfg_hook): Likewise.
1126 * tree-cfg.c (tree_cfg_hooks): Likewise.
1128 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1129 (tree_cfg_hooks): Use it.
1130 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1131 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1133 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1134 * tree-flow.h: Remove the corresponding prototype.
1136 * tree-ssa.c (ssa_remove_edge): Remove.
1137 * tree-flow.h: Remove the corresponding prototype.
1138 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1139 * basic-block.h: Likewise.
1140 * tree-if-conv.c: Likewise.
1141 * tree-ssa-threadupdate.c: Likewise.
1143 2004-11-23 Ben Elliston <bje@au.ibm.com>
1145 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1146 @table to list the BSI methods. Use individual @findex directives
1147 instead of one with a comma-separated list of index entries.
1149 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
1151 PR tree-optimization/18529
1152 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1153 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
1154 (fold): Call fold_to_nonsharp_ineq_using_bound.
1155 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1156 (number_of_iterations_cond): Fold the expressions before futher
1158 (tree_simplify_using_condition): Handle case when cond or expr is
1159 an EQ_EXPR specially.
1161 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1163 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1164 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1166 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1167 Fariborz Jahanian <fjahanian@apple.com>
1169 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1171 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1172 Align 16 byte and larger vectors like Altivec.
1173 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1174 (function_arg): Same.
1175 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1177 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1180 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1183 2004-11-22 Richard Henderson <rth@redhat.com>
1185 * function.c (assign_parm_setup_block): Revert 11-13 change to
1186 forcably re-mode a (possibly BLKmode) hard register.
1188 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1190 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1192 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1194 * config/rs6000/power4.md: Remove delay between dispatch and issue
1195 associated with dispatch group slots 3 and 4.
1196 * config/rs6000/power5.md: Same.
1198 2004-11-21 Jeff Law <law@redhat.com>
1200 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1202 * cfgbuild.c (make_edges): Likewise.
1203 * cfghooks.c (can_duplicate_block_p): Likewise.
1204 * cfgloop.c (loop_latch_edge): Likewise.
1205 * cfgloopmanip.c (force_single_succ_latches): Likewise.
1206 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1207 * predict.c (predict_loops, propagate_freq): Likewise.
1208 * tracer.c (tail_duplicate): Likewise.
1209 * tree-cfg.c (disband_implicit_edges): Likewise.
1210 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1212 2004-11-22 Nick Clifton <nickc@redhat.com>
1214 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1215 initialisation of 'e'.
1217 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1219 PR rtl-optimization/18599
1220 * regrename.c (copyprop_hardreg_forward): Speed up by putting
1221 BB_VISITED flags on basic blocks as we process them.
1223 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1226 * config/rs6000/altivec.md (VI_char): New mode attribute.
1227 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1228 (add<mode>3): ... this.
1229 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1230 (sub<mode>3): ... this.
1231 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1232 (smax<mode>3): ... this.
1233 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1234 (smin<mode>3): ... this.
1235 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1236 (umax<mode>3): ... this.
1237 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1238 (umin<mode>3): ... this.
1239 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1240 (and<mode>3): ... this.
1241 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1242 (ior<mode>3): ... this.
1243 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1244 (xor<mode>3): ... this.
1245 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1246 (and<mode>3): ... this.
1247 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1248 (ior<mode>3): ... this.
1249 (altivec_vnor): Replace with ...
1250 (altivec_nor<mode>): ... this.
1251 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1252 (one_cmpl<mode>2): ... this.
1253 (altivec_vandc): New expander.
1254 (*andc<mode>3): New insn.
1255 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1257 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1260 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1261 creating iv instead of integer_type.
1262 (vect_build_loop_niters): Remove redundant code.
1263 (vect_transform_loop_bound): Removed (duplicates functionality of
1264 make_loop_iterate_ntimes.
1265 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1266 lang_hooks.types.type_for_size to create a type of the required size.
1267 Use that type instead of integer_type. Remove redundant code.
1268 (vect_update_niters_after_peeling): Use type of niters instead of
1270 (vect_transform_loop): Unify handling of known and unknown loop bound
1271 cases. Call make_loop_iterate_ntimes instead of
1272 vect_transform_loop_bound.
1274 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1277 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1280 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1283 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1285 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1287 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1289 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1290 m32r/libgcc-glibc.ver.
1291 * config/m32r/libgcc-glibc.ver: Add New file.
1293 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1295 * bitmap.h (struct bitmap_obstack): New obstack type.
1296 (struct bitmap_head_def): Replace using_obstack with obstack
1298 (bitmap_default_obstack): New.
1299 (bitmap_initialize): Make inline, does not do allocation.
1300 (bitmap_release_memory): Remove.
1301 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1302 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1303 bitmap_obstack_free, bitmap_malloc_free): Declare.
1304 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1305 (BITMAP_FREE): Replace with ...
1306 (BITMAP_OBSTACK_FREE): ... this.
1307 (BITMAP_XFREE): Adjust.
1308 (BITMAP_INIT_ONCE): Remove.
1309 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1310 (bitmap_default_obstack): New.
1311 (bitmap_elem_to_freelist): Adjust.
1312 (bitmap_element_allocate): Adjust. Break initialization into ...
1313 (bitmap_obstack_initialize): ... here.
1314 (bitmap_release_memory): Replace with ...
1315 (bitmap_obstack_release): ... this.
1316 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1317 bitmap_obstack_free, bitmap_malloc_free): New.
1318 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1320 (bitmap_initialize): Move to bitmap.h.
1321 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1322 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1323 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1324 (INITIALIZE_REG_SET): Remove.
1325 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1326 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1327 (flow_obstack): Do not declare.
1328 (reg_obstack): Declare.
1329 * regs.h: Include obstack.h.
1330 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1331 release bitmap obstack here.
1332 * bb-reorder.c: #include regs, not basic-block.
1333 (fix_crossing_conditional_branches): Allocate regsets from
1335 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1337 * caller-save.c: Include regs.h earlier.
1338 * cfg.c: Do not include basic-block.h or obstack.h.
1339 (reg_obstack): Define.
1340 * cfganal.c: Include obstack.h
1341 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1343 * cfglayout.c: Do not include obstack.h.
1344 (flow_obstack): Remove declaration.
1345 (cfg_layout_duplicate_bb): Use reg_obstack.
1346 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1347 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1348 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1349 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1350 (cfg_layout_split_edge): Use reg_obstack.
1351 * cse.c: Include regs.h earlier.
1352 * ddg.c: Do not include basic-block.h.
1353 * dominance.c: Inlude obstack.h.
1354 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1355 (calculate_global_regs_live): Likewise.
1356 (allocate_bb_life_data): Use reg_obstack.
1357 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1358 * global.c: Do not include basic-block.h.
1359 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1360 * graph.c: Include obstack.h.
1361 * haifa-sched.c: Do not include basic-block.h.
1362 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1363 * local-alloc.c: Do not include basic-block.h.
1364 * loop-init.c, loop-invariant.c: Include obstack.h.
1365 * loop-iv.c: Likewise.
1366 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1368 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1369 * modulo-sched.c: Do not include basic-block.h.
1370 * passes.c (rest_of_handle_final): Do not call
1371 regset_release_memory.
1372 * ra-debug.c: Include regs.h earlier. Do not include
1374 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1375 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1376 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1377 (regset_release_memory): Remove.
1378 * resource.c: Do not include basic-block.h.
1379 * rtlanal.c: Do not include basic-block.h.
1380 * sbitmap.c: Include obstack.h.
1381 * sched-deps.c: Do not include basic-block.h.
1382 (reg_pending_sets_head, reg_pending_clobbers_head,
1383 reg_pending_uses_head): Remove.
1384 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1385 * sched-ebb.c: Do not include basic-block.h.
1386 * sched-rgn.c: Likewise.
1387 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1389 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1390 * tree-sra.c (decide_instantiations): Adjust bitmap
1392 * tree-ssa-dce.c: Include obstack.h.
1393 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1394 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1395 (bitmap_set_new): Likewise.
1396 (init_pre): Initialize bitmap obstack.
1397 (fini_pre): Release bitmap obstack.
1398 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1399 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1400 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1401 (marked_ssa_names): Likewise.
1402 (init_ssanames): Use BITMAP_XMALLOC.
1403 (fini_ssanames): Use BITMAP_XFREE.
1404 * web.c: Include obstack.h
1406 2004-11-22 Nick Clifton <nickc@redhat.com>
1408 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1409 predecessor in the first for-loop.
1411 2004-11-21 Stan Shebs <shebs@apple.com>
1413 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1415 (function_arg): Move darwin test up, sniff mode first for
1416 efficiency, test for union type.
1418 2004-11-21 Dale Johannesen <dalej@apple.com>
1420 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1422 2004-11-21 Jeff Law <law@redhat.com>
1424 * tree-ssa.c (verify_use): Fix comment.
1425 (verify_phi_args): Check that the number of incoming edges matches
1426 the number of PHI arguments. Check that each PHI argument is
1427 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1428 dead or duplicated edges. Clear e->aux earlier and avoid separate
1429 loop to clear e->aux and test for missed edges.
1430 (verify_ssa): Remove first walk over statements. Move checking
1431 of PHI args into verify_phi_args. Move checking of statements
1432 with aliased stores and V_MAY_DEFS into the remaining loop over
1433 the statements. Register defs by walking through the formal
1436 2004-11-21 Roger Sayle <roger@eyesopen.com>
1439 * dojump.c (compare_from_rtx): Clarify mode argument in function
1440 description. Correct order of mode/cmp_mode arguments in call to
1441 simplify_relational_operation. Check "tem" for COMPARISON_P.
1443 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
1444 David Edelsohn <edelsohn@gnu.org>
1447 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1448 synthetic vectors in memory.
1449 (function_arg_boundary): Align large synthetic vectors.
1450 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1452 2004-11-21 Jeff Law <law@redhat.com>
1454 * cfg.c (update_bb_profile_for_threading): Do not rescale the
1455 successor probabilities if they are not going to change. Pull
1456 division out of loop if we do need to rescale successor probabilities.
1458 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1459 index of the destination block for the hash value rather than
1462 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
1464 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
1465 checks for neither argument being an array or pointer (swapping
1466 the arguments if necessary), the array argument being a pointer to
1467 or array of functions and for -Wchar-subscripts warnings upfront.
1469 2004-11-20 Jeff Law <law@redhat.com>
1471 * regrename.c (copyprop_hardreg_forward): Only search for a
1472 previously processed block if the current block only has one
1475 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
1477 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1479 * config/arm/arm.c: Follow spelling conventions.
1481 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
1483 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1484 a bit in tune_flags.
1485 (const_double_needs_minipool): Likewise. Split most of the code out
1487 (arm_const_double_inline_cost): ... new function here.
1488 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1489 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1490 word constants of length 2, 3 and 4 insns respectively.
1491 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1492 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1493 constraints. Set insn lenghts accordingly.
1495 2004-11-19 Jeff Law <law@redhat.com>
1497 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1498 a hash table. Extensive modifications throughout to support
1501 (struct local_info): New.
1502 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1504 (redirection_data): Now a hashtable.
1505 (redirection_data_hash, redirection_data_eq): New.
1506 (lookup_redirection_data, create_duplicates): New.
1507 (create_edge_and_update_destionation_phis): New.
1508 (fixup_template_block, redirect_edges): New.
1509 (thread_block): Use hash table traversals instead of loops over
1510 varray entries or incoming edge vectors.
1512 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1514 * basic-block.h (edge_def): Add dest_idx.
1515 * cfg.c (unchecked_make_edge): Initialize dest_idx.
1516 (remove_edge): Simplify the disconnection of an edge from its
1518 (redirect_edge_succ): Likewise.
1519 * cfghooks.c (verify_flow_info): Check the consistency of
1520 dest_idx for each edge.
1522 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
1524 * simplify-rtx.c (simplify_ternary_operation): Use
1527 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1529 * tree-cfg.c (reinstall_phi_args): New.
1530 (tree_split_edge): Use it after redirecting an edge. Don't
1531 modify PHI_ARG_EDGE.
1533 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1535 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1536 if checking is enabled.
1538 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
1540 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1541 too many nested scopes.
1543 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1546 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1547 changed to suppoer uses-after-loop and to void creating flow paths
1548 that shouldn't exist.
1549 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1550 Modified to fit the new peeling scheme. Avoid quadratic behavior.
1551 (slpeel_add_loop_guard): Takes additional argument.
1552 (slpeel_verify_cfg_after_peeling): New function.
1553 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1554 documentation. Use 'exit-bb' instead of creating 'new-bb'.
1555 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1556 the new peeling scheme.
1557 (copy_phi_nodes): Function removed. Its functionality moved to
1558 update_phis_for_duplicate_loop.
1559 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1560 moved here. Added documentation. Modified to fit the new peeling scheme.
1561 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1562 needed - done in slpeel_tree_peel_loop_to_edge.
1563 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1564 (vect_do_peeling_for_loop_bound): Add documentation. Call
1565 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1566 with additional argument.
1567 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1569 (vect_finish_stmt_generation): Avoid 80 column oveflow.
1571 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1573 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1575 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1576 without last two arguments. Update single_exit of loops.
1577 (vect_update_niters_after_peeling): Removed. Its functionality was
1578 moved to vect_do_peeling_for_alignment.
1579 (vect_do_peeling_for_loop_bound): New name for function previously
1580 called vect_transform_for_unknown_loop_bound.
1581 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1582 instead of code that duplicates the same functionality.
1583 (vect_do_peeling_for_alignment): Functionality of
1584 vect_update_niters_after_peeling moved here.
1585 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1586 previously named vect_transform_for_unknown_loop_bound - for both known
1587 and unknown loop bound cases.
1589 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1591 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1592 previously called verify_loop_for_duplication. All conditions compacted
1593 into one compound condition. Removed debug dumps.
1594 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1595 functionality moved to vect_can_advance_ivs_p, and some to
1596 vect_analyze_loop_form.
1597 (vect_can_advance_ivs_p): New function. Contains functionality that was
1598 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1599 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1600 (vect_analyze_operations): Call vect_can_advance_ivs_p and
1601 slpeel_can_duplicate_loop_p.
1602 (vect_get_loop_niters): Added documentation.
1603 (vect_analyze_loop_form): Check the loop entry always - not only in case
1604 of unknown loop bound. Create preheader and exit bb if necessary. Apply
1605 a check that used to take place in
1606 vect_analyze_loop_with_symbolic_num_of_iters.
1607 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
1608 Remove redundant call to rewrite_into_loop_closed_ssa.
1609 (vect_compute_data_refs_alignment): Removed obsolete comment.
1611 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1613 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
1614 function previously called tree_duplicate_loop_to_edge.
1615 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
1616 previously called tree_duplicate_loop_to_edge_cfg.
1617 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
1619 (slpeel_update_phi_nodes_for_guard): Likewise.
1620 (slpeel_make_loop_iterate_ntimes): Likewise.
1621 (slpeel_add_loop_guard): Likewise.
1622 (allocate_new_names, free_new_names): Function declaration moved to top
1624 (rename_use_op, rename_def_op): Likewise.
1625 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
1626 (vect_generate_tmps_on_preheader): Function declaration moved.
1627 (vect_transform_for_unknown_loop_bound): Added missing function
1630 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
1633 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
1634 Define a VEC(tree_on_heap) for head.
1635 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1636 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1637 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
1638 the VEC(tree_on_heap) function. Also free it before returning.
1639 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1640 for block_defs_stack.
1641 (restore_currdefs_to_original_value): Use VEC_length instead of
1642 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1643 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1644 for block_defs_stack.
1645 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1646 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1647 for block_defs_stack.
1648 (ssa_register_new_def): Likewise.
1649 (ssa_rewrite_initialize_block): Likewise.
1650 (rewrite_finalize_block): Use VEC_length instead of
1651 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1652 (ssa_rewrite_finalize_block): Likewise.
1653 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1654 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
1655 (rewrite_blocks): Initialize block_defs_stack with
1656 the VEC(tree_on_heap) function. Also free it before returning.
1657 (rewrite_ssa_into_ssa): Likewise.
1659 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
1661 * config/darwin.c (machopic_data_defined_p): return 1 for
1662 MACHOPIC_DEFINED_FUNCTION.
1664 2004-11-19 Jeff Law <law@redhat.com>
1666 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
1669 2004-11-19 Paul Brook <paul@codesourcery.com>
1672 * varasm.c (default_assemble_integer): Allow pointer-sized values.
1675 2004-11-19 Nick Clifton <nickc@redhat.com>
1677 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
1678 zero_extension and lshiftrt insns.
1679 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
1681 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
1682 to handle bp and bn insn patterns with a zero_extend rtx
1685 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
1687 * config/arm/arm.md (generic_sched): Make const.
1689 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1691 * emit-rtl.c (classify_insn): Make it static.
1692 * rtl.h: Remove the corresponding prototype.
1694 * integrate.c (has_func_hard_reg_initial_val,
1695 get_func_hard_reg_initial_val): Make them static.
1696 * integrate.h: Remove the corresponding prototypes.
1698 2004-11-19 Ben Elliston <bje@au.ibm.com>
1700 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
1701 (dw2_asm_output_delta_sleb128): Likewise.
1702 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
1703 (dw2_asm_output_delta_sleb128): Likewise.
1705 2004-11-19 Adam Nemet <anemet@lnxw.com>
1707 * tree-ssa-alias.c: Fix comment.
1709 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1711 * tree-outof-ssa.c: Fix a comment typo.
1713 2004-11-19 Ben Elliston <bje@au.ibm.com>
1715 * predict.h (predict_insn): Remove extern declaration.
1716 * predict.c (predict_insn): Make static.
1718 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1720 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
1722 2004-11-18 Nicolas Pitre <nico@cam.org>
1724 * config/arm/arm.c (const_double_needs_minipool): New function to
1725 determine if a CONST_DOUBLE should be pushed to the minipool.
1726 (note_invalid_constants): Use it.
1728 2004-11-18 Paul Brook <paul@codesourcery.com>
1730 * config/arm/arm.c (target_float_switch): New variable..
1731 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
1732 target_float_switch.
1733 * config/arm/arm.h (target_float_switch): Declare.
1734 (ARM_FLAG_SOFT_FLOAT): Remove.
1735 (TARGET_SWITCHES): Remove hard-float and soft-float.
1736 (TARGET_OPTIONS): Add hard-float and soft-float.
1737 (TARGET_DEFAULT_FLOAT_ABI): Define.
1738 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
1739 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
1740 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
1741 * config/arm/netbsd-elf.h: Ditto.
1742 * config/arm/netbsd.h: Ditto.
1743 * config/arm/pe.h: Ditto.
1744 * config/arm/unknown-elf.h: Ditto.
1745 * config/arm/wince-pe.h: Ditto.
1746 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1747 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1748 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1750 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1752 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
1753 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
1754 altivec_lvx_4sf): Rename and replace with ...
1755 (altivec_lvx_<mode>): ... mode macro version.
1756 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
1757 altivec_stvx_4sf): Rename and replace with ...
1758 (altivec_stvx_<mode>): ... mode macro version.
1759 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
1760 (mov<mode>): ... mode macro version.
1761 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
1762 *movv4sf_internal1): Replace with ...
1763 (*mov<mode>_internal): ... mode macro version.
1764 (get_vrsave_internal, *set_vrsave_internal, *save_world,
1765 *restore_world): Unquote output statements.
1766 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
1767 altivec_expand_st_builtin): Adjust insn names.
1769 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
1771 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
1773 (rs6000_override_options): Likewise.
1774 (spe_build_register_parallel): Handle complex doubles on e500v2.
1775 (rs6000_spe_function_arg): Likewise.
1776 (function_arg): Likewise.
1777 (rs6000_function_value): Likewise.
1778 (rs6000_libcall_value): Likewise.
1780 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
1782 * ifcvt.c (find_if_block): Move the check for the number of edges
1783 above the loops checking for complex edges.
1784 Remove the counting of edges as we use EDGE_COUNT now.
1786 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1788 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1789 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
1791 2004-11-18 Andreas Schwab <schwab@suse.de>
1793 * config/i386/i386.md (define_peephole2): Revert last change.
1795 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1797 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1798 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
1800 2004-11-18 Diego Novillo <dnovillo@redhat.com>
1802 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
1805 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
1807 * Makefile.in (macro_list): Depend on s-macro_list.
1808 (s-macro_list): New target.
1810 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1813 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1814 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1815 (fold_range_test): Adjust.
1816 (fold_truthop): Use it.
1817 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1818 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1820 2004-11-18 Uros Bizjak <uros@kss-loka.si>
1822 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
1823 insn split constraint.
1824 (define_peephole2): Remove unneeded "&& 1" from peephole2
1827 2004-11-18 Ben Elliston <bje@au.ibm.com>
1829 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
1830 element for bsi_prev; use @findex instead.
1832 2004-11-18 Ben Elliston <bje@au.ibm.com>
1834 * opts.h (add_input_filename): Remove extern declaration.
1835 * opts.c (add_input_filename): Make static.
1837 2004-11-17 Mark Mitchell <mark@codesourcery.com>
1839 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
1842 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1844 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
1845 * system.h: Poison it.
1846 * doc/tm.texi: Delete its documentation.
1848 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
1849 Mark Mitchell <mark@codesourcery.com>
1851 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
1852 * config/i386/i386.c (i386_solaris_elf_named_section): New
1854 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
1855 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
1857 (ASM_QUAD): Don't undefine for biarch targets.
1858 * config/i386/t-sol2: Introduce multilib support.
1860 2004-11-18 Ben Elliston <bje@au.ibm.com>
1862 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
1864 2004-11-18 Ben Elliston <bje@au.ibm.com>
1866 * cgraph.h: Replace "it's" with "its" throughout.
1868 2004-11-18 Ben Elliston <bje@au.ibm.com>
1870 * doc/rtl.texi (Flags): Grammar fix.
1872 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1874 * expmed.c (alg_code): Add alg_unknown.
1875 (alg_hash_entry): New.
1876 (NUM_ALG_HASH_ENTRIES): Likewise.
1877 (alg_hash): Likewise.
1878 (synth_mult): Cache the result into alg_hash.
1880 2004-11-17 Zack Weinberg <zack@codesourcery.com>
1882 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
1883 config/rs6000/libgcc-ppc64.ver.
1885 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
1887 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
1888 checking if an unconditional return is followed by a barrier.
1890 * jump.c (condjump_p): Remove unreachable code.
1892 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
1893 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
1894 tree-ssa-live.h, tree.h: Remove unused prototypes.
1896 2004-11-17 Jeff Law <law@redhat.com>
1898 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
1899 (edge_to_cases_elt): Renamed from edge_to_case_leader.
1900 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
1901 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
1902 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
1903 (get_cases_for_edge): New function.
1904 (start_recording_case_labels, end_recording_case_labels): Similarly.
1905 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
1906 chain equivalent CASE_LABEL_EXPRs together.
1907 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
1908 (make_switch_expr_edges): Do not record edge/cases here.
1909 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
1910 (split_critical_edges): Record cases around the edge splitting code.
1911 (cleanup_dead_labels): Use CASE_LABEL again.
1912 (tree_redirect_edge_and_branch): If we have a mapping from edge
1913 to cases, use it to handle redirections. Else do it the slow way.
1914 * tree.h (CASE_LEADER_OR_LABEL): Kill.
1915 (CASE_LABEL): Revert to just looking at the tree's second operand.
1916 * tree.c (get_case_label): Kill.
1918 2004-11-17 Diego Novillo <dnovillo@redhat.com>
1920 PR tree-optimization/18307
1921 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
1922 'orig' are the same node.
1923 (collect_points_to_info_r): Do not call merge_pointed_to_info
1924 when the PHI argument is identical to the LHS.
1926 2004-11-17 Steven Bosscher <stevenb@suse.de>
1928 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
1929 to insert the exit or entry block.
1930 (ssa_prop_init): Use add_control_edge to seed the algorithm.
1932 2004-11-16 Zack Weinberg <zack@codesourcery.com>
1934 * mkmap-flat.awk, mkmap-symver.awk: If the last version
1935 assigned to a symbol was '%exclude', do not emit it anywhere.
1936 If leading_underscore is true, prefix all symbols from the
1937 version scripts with a leading underscore before comparing
1938 them with nm output or emitting them. Remove support for dot
1940 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
1941 (SHLIB_MAPFILES): Use libgcc-std.ver.
1942 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
1943 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
1944 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
1945 libgcc-excl.ver and libgcc-glibc.ver.
1947 * config/sh/libgcc-excl.ver: New file.
1948 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
1950 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1952 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
1953 the test when the edge has the opposite meaning, not when
1954 the first argument is invariant.
1956 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
1958 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
1960 (rs6000_complex_function_value): Handle e500 v2 variant.
1962 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
1964 Fix PR tree-optimization/18519
1966 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
1967 * tree-pass.h: Add TODO_cleanup_cfg.
1968 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
1969 (ccp_finalize): Remove call to cleanup_cfg.
1970 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
1971 (pass_cd_dce): Ditto.
1972 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
1973 dump_function_to_file.
1974 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
1976 (pass_ch): Add TODO_cleanup_cfg.
1977 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
1979 (pass_loop_done): Add TODO_cleanup_cfg.
1980 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
1981 (tree_ssa_phiopt): Remove call to cleanup_cfg.
1983 2004-11-16 Devang Patel <dpatel@apple.com>
1985 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
1987 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
1989 * expmed.c, ra-colorize.c: Fix comment typos.
1991 * doc/tm.texi: Fix typos.
1993 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
1994 Mark Mitchell <mark@codesourcery.com>
1997 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2000 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2002 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2003 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2005 2004-11-16 Devang Patel <dpatel@apple.com>
2007 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2009 2004-11-16 Eric Christopher <echristo@redhat.com>
2011 * config/mips/mips.c: Use rtl _P predicates.
2012 * config/mips/mips.h: Ditto.
2013 * config/mips/mips.md: Ditto.
2015 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2017 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2020 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2022 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2023 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2025 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2028 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2029 before and after the insns for getting GOT address in non-PIC
2030 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2033 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2035 * gcc/cse.c (struct change_cc_mode_args): New structure.
2036 (cse_change_cc_mode_insn): New function.
2037 (cse_change_cc_mode): Use validate_change to perfom changes.
2038 (cse_change_cc_mode_insns, cse_condition_code_reg):
2039 Call cse_change_cc_mode_insn.
2041 2004-11-16 Steven Bosscher <stevenb@suse.de>
2045 2004-11-16 Steven Bosscher <stevenb@suse.de>
2047 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2049 2004-11-15 Dale Johannesen <dalej@apple.com>
2051 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2053 2004-11-15 Dale Johannesen <dalej@apple.com>
2055 * profile.c (compute_branch_probabilities): Prevent
2056 crash with EH in RTL-based profiling.
2058 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2060 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2062 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2063 * tree-ssa-dom.c (thread_across_edge): Likewise.
2064 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2065 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2068 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2069 (tree_flow_call_edges_add): Update the call to
2070 bsi_commit_edge_inserts.
2071 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2072 * profile.c (branch_prob): Likewise.
2073 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2074 * tree-sra.c (scalarize_function): Likewise.
2075 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2076 * tree-ssa-pre.c (fini_pre): Likewise.
2077 * tree-flow.h: Update the prototype for
2078 bsi_commit_edge_inserts.
2080 2004-11-15 Eric Christopher <echristo@redhat.com>
2082 * sched-deps.c (set_sched_group_p): Delete.
2083 (delete_all_dependencies): New function.
2084 (fixup_sched_groups): Use. New function.
2085 (sched_analyze_insn): Use.
2087 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2089 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2090 RROTATE_EXPR or unknown code.
2091 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2092 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2093 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2096 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2099 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2100 after processing the declarator.
2102 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2104 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2106 (altivec_vspltb): Same.
2107 (altivec_vspltw): Same.
2108 (altivec_vspltisb): Same.
2109 (altivec_vspltish): Same.
2110 (altivec_vspltisw): Same.
2111 (altivec_vspltisw_v4sf): Same.
2112 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2114 Move "End of vector xor's" comment to the right place.
2116 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2118 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2119 instead of nonimmediate_operand.
2121 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2123 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2124 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2125 * config/sol2.c (solaris_output_init_fini): Update calls to
2126 ASM_OUTPUT_CALL. Include "rtl.h".
2128 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2130 * config/sol2-c.c (cmn_err_char_table): Add "p".
2132 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2134 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2135 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2137 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2139 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2140 within the multilib directory.
2142 2004-11-15 Nick Clifton <nickc@redhat.com>
2144 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2145 builtin assert of cpu=xstormy16.
2147 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2149 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2152 2004-11-14 Richard Henderson <rth@redhat.com>
2155 * calls.c (struct arg_data): Add parallel_value.
2156 (precompute_register_parameters): Set it.
2157 (load_register_parameters): Use it.
2158 (store_one_arg): Also set it here.
2160 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2162 PR tree-optimization/18431
2163 * fold-const.c (associate_trees): Do not produce x + 0.
2164 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2166 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2168 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2169 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2171 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2173 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2175 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2177 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2178 value-prof.c: Fix comment typos.
2180 2004-11-14 Stan Shebs <shebs@apple.com>
2182 Basic ABI changes for passing structs by value in 64-bit Darwin.
2183 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2184 (rs6000_override_options): Set it for 64-bit Darwin.
2185 (rs6000_parse_abi_options): Add testing options to change it.
2186 (rs6000_return_in_memory): Test whether the type is one
2187 that can be passed in registers.
2188 (darwin64_function_arg_advance): New.
2189 (function_arg_advance): Call it, plus add recursion depth
2190 argument and test when counting off arguments.
2191 (rs6000_darwin64_function_arg): New.
2192 (function_arg): Call it.
2193 (setup_incoming_varargs): Add argument to function_arg_advance.
2194 (rs6000_darwin64_function_value): New.
2195 (rs6000_function_value): Call it.
2196 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2197 * config/rs6000/rs6000-protos.h: Update decl of
2198 function_arg_advance.
2200 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
2203 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2204 support TImode before adding __int128_t and __uint128_t types.
2206 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2209 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2210 (vect_transform_loop_bound): Set loop->nb_iterations.
2212 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2213 Andrew Pinski <pinskia@physics.uc.edu>
2216 * tree-vectorize.c (vect_build_loop_niters): Do not insert
2217 NULL into the instruction stream. Initialize new_bb to NULL.
2218 (vect_update_ivs_after_vectorizer): Likewise.
2219 (vect_gen_niters_for_prolog_loop): Likewise.
2221 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2223 PR tree-optimization/18431
2224 * tree-flow.h (stmt_references_memory_p): Declare.
2225 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2226 * tree-ssa.c (stmt_references_memory_p): New function.
2228 2004-11-14 Andreas Schwab <schwab@suse.de>
2230 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2233 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2235 * c-common.c (walk_stmt_tree): Remove.
2236 * c-common.h: Remove the corresponding prototype.
2238 * emit-rtl.c (push_to_full_sequence): Remove.
2239 * rtl.h: Remove the corresponding prototype.
2241 * cselib.c, expr.c: Fix comment typos.
2243 2004-11-13 Richard Henderson <rth@redhat.com>
2245 * calls.c (precompute_register_parameters): Force all PARALLELs
2246 into pseudo registers.
2247 (load_register_parameters): Copy PARALLELs into hard registers.
2248 * function.c (assign_parm_setup_block): Copy PARALLELS into
2249 pseudo registers. Do emit_group_store in conversion_insns.
2250 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2251 tmps as an argument. Move final copy loop ...
2252 (emit_group_load): ... here. New function.
2253 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2254 * expr.h: Declare them.
2256 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2258 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2259 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2260 with PHI_CHAIN where appropriate.
2262 2004-11-13 Dale Johannesen <dalej@apple.com>
2264 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2265 (tree_block_label): Ditto.
2266 (flush_pending_stmts): Ditto.
2267 (insert_edge_copies): Ditto.
2268 (expr_invariant_in_loop_p): Ditto.
2269 (TDF_USE_OPS): Parenthesize definition.
2270 (TDF_USE_VOPS): Ditto.
2272 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2274 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2275 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2277 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2279 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2281 * config/i386/i386.c (override_options): Move loop to set default
2282 tuning to correct place.
2284 2004-11-13 Zak Kipling <zak@transversal.com>
2287 * config/i386/i386.c (classify_argument): Fix infinite loop when
2288 passing object with 3 or more base classes by value.
2290 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2292 * doc/md.texi (constraints) <% modifier>: Mention that it is
2293 useless when the two alternatives are strictly identical.
2295 2004-11-13 Richard Henderson <rth@redhat.com>
2297 * expmed.c (extract_split_bit_field): Temporarily disable call to
2298 extract_force_align_mem_bit_field.
2300 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2302 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2305 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2306 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2307 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2309 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2311 * doc/install.texi (automake): Correctly document that everything now
2312 will use automake 1.9.3.
2314 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2317 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2318 TImode. Sorry for other non-complex larger-than-64-bit modes.
2319 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2321 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2323 * doc/install.texi (automake): Document that everything now uses 1.9.
2325 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2327 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2330 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2332 * tree.h: Fix comment typos.
2334 2004-11-13 Steven Bosscher <stevenb@suse.de>
2336 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2337 HARD_REGISTER_NUM_P.
2339 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2340 * flow.c (mark_set_1): Likewise.
2342 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2343 duplicate_eh_regions): Remove.
2344 * except.h (duplicate_eh_regions): Remove prototype.
2345 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2346 global_const_equiv_varray): Remove.
2347 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2348 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2349 extern declaration, and #define.
2350 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2351 (struct inline_remap): Remove.
2352 * varray.c (struct element): Remove entry for const_equiv_data.
2353 * varray.h (struct const_equiv_data): Remove.
2354 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2355 (union varray_data_tag) <const_equiv>: Remove.
2356 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2357 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2359 * regstack.c (record_label_references): Remove unused function.
2361 * rtl.def (VALUE): Update comment.
2362 (LABEL_REF): Remove unused operand 2.
2363 * rtl.h (struct rtx_def): Update for removed accessor macros.
2364 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2365 REG_LOOP_TEST_P): Remove.
2366 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2367 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2368 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2370 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2371 Eric Botcazou <ebotcazou@libertysurf.fr>
2374 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2376 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2377 (V32I): New macro for 32-bit modes.
2378 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2379 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2380 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2381 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2382 one_cmpldi_sp64): Use V64I instead of DI.
2383 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2384 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2385 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2386 (nandv64i_vis, nandv32i_vis): New patterns.
2388 2004-11-12 Mike Stump <mrs@apple.com>
2390 * Makefile.in: Add html support.
2391 * java/Make-lang.in: Likewise.
2392 * fortran/Make-lang.in: Likewise.
2393 * treelang/Make-lang.in: Likewise.
2394 * doc/install.texi: Likewise.
2395 * doc/makefile.texi: Likewise.
2396 * doc/sourcebuild.texi: Likewise.
2398 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2400 * tree-ssa-loop-manip.c: Fix a comment typo.
2402 2004-11-12 Mike Stump <mrs@apple.com>
2404 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2405 renaming this node to Concept Index.
2406 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2407 to more closely match gcc.texi.
2409 2004-11-12 Jeff Law <law@redhat.com>
2411 * tree-cfg.c (hashtab.h): Include.
2412 (struct edge_to_case_leader_elt): New structure.
2413 (edge_to_case_leader): New.
2414 (edge_to_case_leader_hash): New hashtable hasing function.
2415 (edge_to_case_leader_eq): New hashtable equality function.
2416 (record_switch_edge): New function.
2417 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2418 (make_switch_expr_edges): Build the edge-to-case-leader
2419 hash table. Tear down the hash table when we're done.
2420 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2422 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2423 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2424 to use new concept of case leaders to reduce overhead of
2425 redirecting outgoing edges from switch statements.
2426 * tree.c (get_case_label): New function.
2427 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2428 (CASE_LEADER_OR_LABEL): Define.
2430 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2432 * varasm.c (output_addressed_constants): For CONST_DECLs,
2433 output the initializer if present.
2435 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2437 * config/rs6000/darwin.h: Fix confusing typo in comment.
2439 2004-11-12 Devang Patel <dpatel@apple.com>
2441 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2443 2004-11-12 Devang Patel <dpatel@apple.com>
2445 * tree-if-conv.c (clean_predicate_lists): Use loop header
2448 2004-11-12 Richard Henderson <rth@redhat.com>
2451 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2452 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2453 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2454 * config/i386/i386-modes.def (XF): Use it.
2456 2004-11-11 Geoffrey Keating <geoffk@apple.com>
2458 * Makefile.in (macro_list): Use move-if-change to avoid spurious
2461 2004-11-12 Mark Mitchell <mark@codesourcery.com>
2464 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2465 when deciding whether to pass a variable to
2466 cgraph_varpool_finalize_decl or assemble_variable.
2467 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2469 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
2471 * tree-vectorizer.c: Fix a comment typo.
2473 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2475 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2477 2004-11-12 Diego Novillo <dnovillo@redhat.com>
2479 * tree-scalar-evolution.c (analyzable_condition): Remove
2480 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2482 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2484 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2485 Remove m505/roe multilib variant.
2487 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2489 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2490 to load from the stack.
2492 2004-11-12 Richard Henderson <rth@redhat.com>
2494 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2495 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2496 * toplev.h (FL2T__): Remove.
2497 (CLZ_HWI): Rename from FL2T_CLZ__.
2499 (floor_log2): Simplify.
2502 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2504 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2505 compute the first overlapping iterations.
2507 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2510 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2511 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2513 2004-11-12 Steven Bosscher <stevenb@suse.de>
2515 PR tree-optimization/18419
2516 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2517 pointer set instead of a bitmap.
2518 (walk_use_def_chains): Create, pass and clean up that pointer_set.
2520 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2522 (init_alias_info): Allocate and zero it here.
2523 (delete_alias_info): Delete it here.
2524 (collect_points_to_info_for): Use it.
2526 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2528 * alias.c (record_alias_subset, addr_side_effect_eval):
2530 * alias.h: Remove the prototype for record_alias_subset.
2531 * expr.h: Remove the commented-out prototype for
2532 record_alias_subset.
2533 * rtl.h: Remove the prototype for addr_side_effect_eval.
2535 * cfglayout.c (choose_inner_scope): Make it static.
2536 * rtl.h: Remove the corresponding prototype.
2538 * cfgloopmanip.c (update_single_exits_after_duplication,
2539 unloop): Make them static.
2540 * cfgloop.h: Remove the corresponding prototypes.
2542 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2544 * c-tree.h: Remove the corresponding prototypes.
2546 * explow.c (round_push): Make it static.
2547 * expr.h: Remove the corresponding prototype.
2549 * varasm.c (get_named_section_flags, decl_tls_model): Make
2551 * output.h: Remove the prototype for get_named_section_flags.
2552 * tree.h: Remove the prototype for decl_tls_model.
2554 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2556 * function.c (expand_function_end): Remove an "if" statement
2557 that always triggers.
2558 * stmt.c (expand_null_return_1): Likewise.
2560 2004-11-11 James E. Wilson <wilson@specifixinc.com>
2562 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2563 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2564 CLASS_MAX_NREGS): Likewise.
2566 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
2568 PR tree-optimization/17742
2569 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2570 MINUS_EXPR correctly.
2572 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
2574 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2575 Give up as soon as the evolution is known not computable.
2577 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2580 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2581 mask64_1or2_operand.
2582 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2583 to spot rlwinm opportunities.
2584 (and64_2_operand): Use mask_1or2_operand.
2585 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2587 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
2589 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2590 (vect_update_ivs_after_vectorizer): Update function documentation.
2591 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2593 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2595 * config/arm/arm.c: Fix a comment typo.
2597 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2599 * bitmap.h (nBITMAP_WORD_BITS): Remove.
2600 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
2601 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
2603 (bitmap_first_set_bit): Return unsigned, use ctzl.
2604 (bitmap_last_set_bit): Remove.
2605 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
2607 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
2608 remove special case code for two word elements.
2609 (bitmap_last_set_bit): Remove.
2610 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
2611 bitmap_first_set_bit with bitmap_empty_p.
2612 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
2613 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
2614 bitmap_last_bit_set.
2616 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2619 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
2622 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
2623 unsigned equality compare when we know the operands are unsigned.
2625 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
2627 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
2628 __PIC__ and __pic__ only if TARGET_ABICALLS.
2629 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
2630 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
2631 -KPIC only if not -mno-abicalls.
2633 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
2634 * config/sparc/linux.h, config/sparc/linux64.h
2635 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
2637 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
2638 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
2639 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
2640 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
2642 2004-11-11 Paul Brook <paul@codesourcery.com>
2644 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
2645 register if current_function_uses_pic_offset_table is set.
2647 2004-11-10 David Edelsohn <edelsohn@gnu.org>
2649 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
2650 Change multi-instruction sequences to new attribute.
2651 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
2652 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
2653 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
2655 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
2657 * tree-data-ref.c (build_classic_dist_vector): If either loop
2658 is outside of the nest we asked about, the dependence can't
2660 (build_classic_dir_vector): Ditto.
2662 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
2664 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
2666 (force_var_cost): Determine cost of addition and multiplication more
2668 (get_computation_cost_at): Add cost for computing address elements to
2671 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
2672 one of the arguments of MINUS_EXPR is an address.
2673 (split_address_to_core_and_offset): New function.
2674 (ptr_difference_const): Handle case when one of the operands is a
2676 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
2677 (ptr_difference_cost): Pass addresses instead of objects to
2678 ptr_difference_const.
2680 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
2682 * tree.c (tree_check_failed): Emit general error if the list of
2683 node types is empty.
2685 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2687 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
2688 argument. When the union is passed in the 6th slot, build a
2689 PARALLEL with only one element.
2690 (function_arg): Adjust call to function_arg_union_value.
2691 (function_value): Likewise.
2693 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
2695 PR tree-optimization/17892
2696 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
2697 MINUS_EXPR operator.
2699 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
2702 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
2703 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
2705 2004-11-10 Steven Bosscher <stevenb@suse.de>
2707 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
2708 (struct basic_block_def): Remove local_set and cond_local_set
2709 fields. Update comment for global_live_at_start.
2710 * flow.c (calculate_global_regs_live): Allocate local_sets and
2711 cond_local_sets here as arrays of bitmaps previously stored in
2712 bb->local_set and bb->cond_local_set. Use xmalloc instead of
2713 obstack allocated bitmaps.
2715 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
2718 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
2721 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
2723 2004-11-09 Jeff Law <law@redhat.com>
2725 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
2726 argument holding last unvisited block. Start search for
2727 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
2728 (connect_infinite_loops_to_exit): Supply last unvisited block
2729 to flow_dfs_compute_reverse_execute.
2731 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
2733 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
2735 (floatunssidf2): Same.
2737 ("extendsfdf2"): New expander.
2738 (*extendsfdf2_fpr): Rename.
2739 (*truncdfsf2_fpr): Same.
2740 (*negdf2_fpr): Same.
2741 (*absdf2_fpr): Same.
2742 (*nabsdf2_fpr): Same.
2743 (*adddf3_fpr): Same.
2744 (*subdf3_fpr): Same.
2745 (*muldf3_fpr): Same.
2746 (*divdf3_fpr): Same.
2748 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
2749 ("spe_fix_truncdfsi2"): Same.
2750 (spe_floatunssidf2): Same.
2751 (spe_floatsidf2): Same.
2753 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2756 * c-common.c (fname_decl): Don't use line number of decl in
2759 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2761 * config/s390/s390-protos.h (s390_pool_operand): Remove.
2762 * config/s390/s390.c (s390_pool_operand): Likewise.
2763 (s390_extra_constraint_str): Handle 'B' constraints.
2764 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
2765 * config/s390/s390.md: Document 'B' constraints.
2766 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
2767 s390_pool_operand to prevent insns with two literal pool
2768 references. Make pattern commutative.
2769 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
2770 'B' constraint instead of s390_pool_operand.
2772 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2774 * tree-cfg.c (create_bb): Remove unnecessary memset.
2776 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2778 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
2779 (thread_block): Call flush_pending_stmt instead of
2782 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2784 * loop-iv.c (iv_number_of_iterations): Make it static.
2785 * cfgloop.h: Remove the corresponding prototype.
2787 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2789 * function.c (combine_temp_slots, assign_parms,
2790 expand_pending_sizes): Make them static.
2791 * tree.h: Remove the corresponding prototypes.
2793 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2795 * emit-rtl.c (copy_most_rtx): Remove.
2796 * rtl.h: Remove the corresponding prototype.
2798 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2800 * cfgloop.c (flow_loops_update): Remove.
2801 * cfgloop.h: Remove the corresponding prototype.
2803 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2805 * conflict.c (mark_reg, conflict_graph_compute): Remove.
2806 * basic-block.h: Remove the prototype for
2807 conflict_graph_compute.
2809 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2811 * tree-if-conv.c (add_to_dst_predicate_list): Change the
2812 second argument to basic_block.
2813 (tree_if_convert_cond_expr): Update call sites.
2815 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2817 * fold-const.c (pedantic_non_lvalue): Make it static.
2818 * tree.h: Remove the corresponding prototype.
2820 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2822 * optabs.c (prepare_operand): Make it static.
2823 * optabs.h: Remove the corresponding prototype.
2825 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2827 * reload1.c (reloads_conflict, gen_reload): Make them static.
2828 * reload.h: Remove the corresponding prototypes.
2830 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2832 * reload.c (refers_to_mem_for_reload_p,
2833 refers_to_regno_for_reload_p): Make them static.
2834 * reload.h: Remove the corresponding prototypes.
2836 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2837 Eric Botcazou <ebotcazou@libertysurf.fr>
2840 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
2841 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
2842 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
2843 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
2844 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
2845 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
2846 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
2847 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
2848 MODE_VECTOR_INT modes.
2849 (sparc_extra_constraint_check): Add new constraint 'Y'.
2850 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
2851 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
2852 (V64): New mode macro for 64-bit modes.
2853 (movsf): Use V32 for mode instead of SF.
2854 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
2855 alongside 'G' constraint.
2856 (movdf): Use V64 for mode instead of DF.
2857 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
2858 of DF. Add 'Y' constraint alongside 'G' constraint.
2859 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
2862 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2864 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
2865 integer NEG and ABS.
2866 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
2867 ("*negdi2_31"): Reimplement using a splitter.
2868 ("*negdi2_cc", "*negdi2_cconly"): New insns.
2869 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
2870 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
2871 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
2872 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
2873 ("*absdi2_cc", "*absdi2_cconly"): New insns.
2874 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
2875 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
2876 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
2877 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
2878 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
2879 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
2880 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
2881 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
2882 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
2884 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2886 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
2887 when eliminating an UNSPEC_CMPINT.
2888 (s390_secondary_input_reload_class): Fix test for CC register reload.
2889 (s390_secondary_output_reload_class): Likewise.
2890 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
2891 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
2892 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
2893 insn patterns with splitters.
2895 2004-11-09 David Edelsohn <edelsohn@gnu.org>
2897 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
2898 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
2900 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2902 * tree-phinodes.c (phi_reverse): New.
2903 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
2905 * tree-flow.h: Add a prototype for phi_reverse.
2907 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2909 * tree-ssa-loop-ivopts.c: Fix a comment typo.
2911 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
2914 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
2917 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2919 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
2920 instead of "arg" in diagnostics.
2922 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2924 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
2925 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
2926 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
2927 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
2928 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
2929 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
2930 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
2931 config/iq2000/iq2000.c, config/m32r/m32r.c,
2932 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
2933 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
2934 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
2935 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2936 config/sh/symbian.c, config/stormy16/stormy16.c,
2937 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
2938 and %> as appropriate. Use %' as apostrophe in diagnostics where
2939 applicable. Use %< and %> in place of '' quotes where applicable.
2940 Use %qs in place of %<%s%>. Consistently quote __builtin function
2943 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
2945 * gdbinit.in (pbb, pbm): New macros.
2947 2004-11-08 Jeff Law <law@redhat.com>
2949 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
2950 implementing it inline.
2952 * cfganal.c (find_edge): Search pred->succs or succ->preds,
2953 whichever is shorter.
2955 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2957 * passes.c (rest_of_handle_jump): Remove dead code.
2959 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2961 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
2962 the last used element in the worklist.
2964 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2966 * tree-inline.c (remap_save_expr): Make it static.
2967 * tree-inline.h: Remove the corresponding prototype.
2969 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2971 * tree-ssa-loop-niter.c (upper_bound_in_type,
2972 lower_bound_in_type): Make them static.
2973 * tree.h: Remove the corresponding prototypes.
2975 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2977 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
2979 * tree-ssa-live.h: Remove the corresponding prototypes.
2981 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2983 * tree-if-conv.c (tree_if_conversion): Make it static.
2984 * tree-flow.h: Remove the corresponding prototype.
2986 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2988 * tree-ssa-operands.c (build_ssa_operands): Make it static.
2989 * tree-flow.h: Remove the corresponding prototype.
2991 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
2994 * tree-inline.c (copy_body_r): Change "t = t" to empty
2995 statement instead of "t".
2997 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
2999 * modulo-sched.c (create_partial_schedule,
3000 free_partial_schedule, reset_partial_schedule,
3001 ps_add_node_check_conflicts, rotate_partial_schedule): Make
3004 2004-11-08 Richard Henderson <rth@redhat.com>
3006 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
3009 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3011 * sched-deps.c (add_insn_mem_dependence): Make it static.
3012 * sched-int.h: Remove the corresponding prototypes.
3014 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3016 * flow.c (allocate_bb_life_data): Make it static.
3017 * basic-block.h: Remove the corresponding prototype.
3019 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3021 * calls.c (split_complex_values, split_complex_types): Make
3023 * expr.h: Remove the corresponding prototypes.
3025 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
3027 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
3028 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3030 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3032 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
3033 statements that always trigger.
3035 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3037 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
3038 tree-scalar-evolution.c, tree-ssa-loop-im.c,
3039 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
3040 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
3043 2004-11-08 Ben Elliston <bje@au.ibm.com>
3045 * cgraph.h (cgraph_calls_p): Remove.
3046 * cgraph.c (cgraph_calls_p): Likewise.
3048 * varray.h (varray_copy): Remove.
3049 * varray.c (varray_copy): Likewise.
3051 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
3054 * config/darwin.c (machopic_indirect_data_reference):
3055 Call gen_macho_high and gen_macho_low instead of
3056 checking the mode and calling gen_macho_high_di directly.
3057 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3058 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
3060 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
3061 load_macho_picbase, macho_low, macho_high): Removed.
3062 (builtin_setjmp_receiver): Call gen_macho_high and
3063 gen_macho_low instead of checking the mode and calling
3064 gen_macho_high_di directly.
3065 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
3066 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
3067 Moved from rs6000.md.
3068 (macho_high): New expander.
3069 (macho_high_si): Renamed version of macho_high from rs6000.md.
3070 (macho_low): New expander.
3071 (macho_low_si): Renamed version of macho_low from rs6000.md.
3072 (load_macho_picbase): New expander.
3073 (load_macho_picbase_si): Renamed version of load_macho_picbase
3075 (macho_correct_pic): New expander.
3076 (macho_correct_pic_si): Renamed version of macho_correct_pic
3079 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3081 * c-decl.c (finish_struct): Use complete sentences for diagnostic
3082 for structures or unions with no members or named members.
3084 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3086 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
3087 taking address of bit-field by assertion.
3089 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3091 * config/s390/s390.md (attribute "op_type"): Default to "NN".
3092 (attribute "atype"): Default to "agen".
3093 (attribute "length"): Default to 6.
3094 (define_asm_attibutes): Remove.
3095 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3096 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
3097 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
3098 Do not set type attribute to "cs" where already default.
3099 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
3101 Do not set type attribute to "other" where already default.
3102 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
3103 "*strlendi", "*strlensi",
3104 "*movmem_long_64", "*movmem_long_31",
3105 "*clrmem_long_64", "*clrmem_long_31",
3106 "*cmpmem_long_64", "*cmpmem_long_31",
3107 "*cmpint_si", "*cmpint_di",
3108 "addti3", "*adddi3_31z", "*adddi3_31",
3109 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3110 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3111 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3112 "*pool_entry", "pool_align", "pool_section_start",
3113 "pool_section_end", "main_pool", "reload_base_31", "pool"):
3114 Do not set op_type attribute to "NN" where already default.
3115 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3116 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3117 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3118 Do not set atype attribute to "agen" where already default.
3119 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3121 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3123 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3125 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3128 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3129 R3000 and R4000 macros on IRIX.
3131 2004-11-06 Andreas Schwab <schwab@suse.de>
3134 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3137 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3139 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3141 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3143 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
3144 matches no insns already matched by other reservations.
3145 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
3146 matches no insns already matched by other reservations.
3147 ("x_ss"): Remove, replace by ...
3148 ("x_cs"): ... this new reservation. Check type instead of op_type.
3149 Update bypasses to use x_cs instead of x_ss.
3150 ("x_nn"): Remove, replace by ...
3151 ("x_other"): ... this new reservation. Check type instead of op_type.
3152 Add x_other and x_branch to bypasses.
3153 ("x_vs"): New reservation.
3154 * config/s390/s390.md (attribute "type"): Default according to op_type.
3155 ("*execute"): Set type to "cs".
3157 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3159 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
3160 if we are in GIMPLE.
3162 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
3164 PR rtl-optimization/17933
3165 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
3166 (covers_regno_p): New function. Handle SETs of PARALLEL,
3167 and defer the rest to...
3168 (covers_regno_no_parallel_p): New function.
3170 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3172 * config/sparc/sparc.c (function_arg_record_value_1): Skip
3173 fields with zero length.
3174 (function_arg_record_value_2): Likewise.
3175 (function_arg_record_value_3): Use smallest_mode_for_size
3176 instead of mode_for_size.
3177 (function_arg_union_value): Return naked register for unions
3180 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3182 * config/sparc/sparc.c (scan_record_type): Handle vector types.
3183 (function_arg_slotno): Handle vector types specially.
3184 (function_arg_record_value_1): Split fields with vector type and
3185 BLKmode into their subparts.
3186 (function_arg_record_value_2): Likewise. Be prepared to handle
3187 more than 2 registers per field.
3188 (function_arg_union_value): Increment regno inside the loop.
3189 (function_arg_vector_value): New function.
3190 (function_arg): Use it to split fields with vector type and
3191 BLKmode into their subparts and build a PARALLEL. Treat
3192 other vector types like floats.
3193 (function_value): Likewise.
3194 (sparc_pass_by_reference): Handle vector types.
3195 (sparc_return_in_memory): Likewise.
3197 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3199 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
3200 statement that never triggers.
3202 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3204 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
3205 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
3206 ("x_fdivd"): Use also for fsqrtd type.
3207 ("x_fdivs"): Use also for fsqrts type.
3208 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
3209 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
3210 ("fix_truncdfsi2_ibm"): Set type to "other".
3211 ("floatdidf2", "floatdisf2"): Do not clobber CC.
3212 ("floatsidf2", "floatsidf2_ieee"): Likewise.
3213 ("floatsisf2", "floatsisf2_ieee"): Likewise.
3214 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
3215 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
3217 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
3218 ("sqrtdf2"): Set type to "fsqrtd".
3219 ("sqrtsf2"): Set type to "fsqrts".
3221 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3223 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
3224 pointer to the last PHI node in the new PHI chain.
3226 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
3228 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
3229 for non-PIC TLS_MODEL_INITIAL_EXEC case.
3231 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3233 * expmed.c: Fix a comment typo.
3235 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3238 * config/i386/cygming.h
3239 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3241 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3243 * config/sh/sh4a.md: Fix copyright.
3245 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3247 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3250 2004-11-05 David Edelsohn <edelsohn@gnu.org>
3252 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3253 when carry not used. Suggested by Torbjorn Granlund.
3255 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3256 operand[1] unnecessarily. Suggested by Eric Christopher.
3257 (rs6000_adjust_cost): Increase latency of store to wider load.
3258 (rs6000_rtx_costs): mulli only allows 16-bit constants.
3260 2004-11-05 Stan Shebs <shebs@apple.com>
3262 * config/rs6000/rs6000.c (machopic_output_stub): Output
3263 ldu instead of lwzu for 64-bit stubs.
3265 2004-11-05 Richard Henderson <rth@redhat.com>
3267 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
3269 (alpha_expand_unaligned_store): Likewise.
3271 2004-11-05 Richard Henderson <rth@redhat.com>
3273 * expmed.c (extract_force_align_mem_bit_field): New.
3274 (extract_split_bit_field): Call it.
3276 2004-11-05 Richard Henderson <rth@redhat.com>
3278 * ia64.md (UNSPEC_SHRP): New.
3279 (dshift_count_operand): New.
3280 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
3281 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
3283 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3285 * c-typeck.c (output_init_element): Return early if value is
3288 2004-11-05 James E Wilson <wilson@specifixinc.com>
3290 * invoke.texi (-fno-guess-branch-probability): Rewrite.
3292 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
3293 1 to UNSPEC_GR_SPILL.
3295 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
3297 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
3298 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
3300 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
3302 * bitmap.h (enum bitmap_bits): Remove.
3303 (bitmap_operation): Remove.
3304 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3305 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3306 bitmap_xor_into): Prototype.
3307 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
3308 (bitmap_operation): Remove.
3309 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3310 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3311 bitmap_xor_into): New.
3312 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
3314 PR tree-optimization/18307
3315 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
3316 and ORIG being the same node.
3318 2004-11-04 Geoffrey Keating <geoffk@apple.com>
3320 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
3321 (install-mkheaders): Install the version built for the
3322 host, not for the build machine.
3323 * configure.ac: Always run fixincludes.
3324 (all_outputs): Remove mkheaders.
3325 * configure: Regenerate.
3326 * fixinc.in: Move to fixincludes/.
3327 * mkfixinc.sh: Likewise.
3328 * mkheaders.in: Likewise.
3329 * README-fixinc: Likewise.
3331 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3334 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
3335 equivalent on the A4.
3337 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3339 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
3340 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
3341 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
3342 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
3343 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3344 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
3345 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
3346 doc/trouble.texi: Correct end-of-sentence markup and markup of
3347 "etc.", "e.g." and "i.e.". Use @code in various places where
3350 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3352 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
3353 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
3354 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
3357 2004-11-04 Mark Mitchell <mark@codesourcery.com>
3359 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
3360 * doc/extend.texi: Document "notshared" attribute.
3362 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3364 * tree-phinodes.c (make_phi_node): Make it static.
3365 * tree.h: Remove the prototypes for make_phi_node.
3367 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3369 * stmt.c (expand_asm, expand_asm_operands): Make them static.
3370 * tree.h: Remove the prototypes for expand_asm and
3371 expand_asm_operands.
3373 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3375 * passes.c (rest_of_compilation): Make it static.
3376 * toplev.h: Remove the prototype for rest_of_compilation.
3378 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3380 * jump.c (cleanup_barriers): Use delete_insn instead of
3382 (delete_barrier): Remove.
3383 * rtl.h: Remove the corresponding prototype.
3385 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3387 * expr.c (mostly_zero_p): Make it static.
3388 * tree.h: Remove the prototype for mostly_zeros_p.
3390 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3392 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
3394 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3396 * builtins.c (expand_builtin_return_addr,
3397 expand_builtin_longjmp, expand_builtin_trap): Make them static.
3398 * expr.h: Remove the prototypes for expand_builtin_longjmp and
3399 expand_builtin_trap.
3400 * tree.h: Remove the prototype for expand_builtin_return_addr.
3402 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3404 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
3405 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
3406 with VAL being NULL.
3408 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3410 * cfghooks.c (delete_basic_block): Remove code to truncate
3413 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
3415 * flow.c (init_propagate_block_info): Change the type of i to
3418 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3420 PR tree-optimization/18184
3421 * c-typeck.c (comptypes): Do not treat pointers of different
3422 modes or alias-all flags as equivalent.
3423 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
3425 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
3427 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
3428 reference specific C parser files in examples.
3430 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
3433 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
3434 as OP_INOUT if the instruction is predicated.
3436 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3438 * bitmap.h: Fix a comment typo. Follow spelling conventions.
3439 * tree-vectorizer.c: Fix a comment typo.
3441 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3443 * sdbout.c (SDB_GENERATE_FAKE): Remove.
3444 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
3445 * system.h: Poison SDB_GENERATE_FAKE.
3446 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
3448 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3450 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
3452 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3455 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
3458 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
3460 * predict.c (propagate_freq): Make bitno unsigned. Move
3461 npredecessors update out of loop.
3463 * bitmap.h (bitmap_iterator): Remove word_bit and bit
3464 fields. Rename others.
3465 (bmp_iter_common_next_1, bmp_iter_single_next_1,
3466 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
3467 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
3468 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
3469 bmp_iter_and_next): Remove.
3470 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
3471 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
3473 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
3474 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
3476 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
3477 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
3478 bitmap_and_into, bitmap_ior_into as appropriate.
3479 * except.c (remove_eh_handler): Likewise.
3480 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
3481 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3482 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
3483 * tree-ssa-live.h (live_merge_and_clear): Likewise.
3484 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
3487 * bitmap.c (bitmap_print): Make bitno unsigned.
3488 * bt-load.c (clear_btr_from_live_range,
3489 btr_def_live_range): Likewise.
3490 * caller-save.c (save_call_clobbered_regs): Likewise.
3491 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3492 * cfgcleanup.c (thread_jump): Likewise.
3493 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3494 * conflict.c (conflict_graph_compute): Likewise.
3495 * ddg.c (add_deps_for_use): Likewise.
3496 * df.c (df_refs_update): Likewise.
3497 * except.c (remove_eh_handler): Likewise.
3498 * flow.c (verify_local_live_at_start, update_life_info,
3499 initialize_uninitialized_subregs, propagate_one_insn,
3500 free_propagate_block_info, propagate_block, find_use_as_address,
3501 reg_set_to_hard_reg_set): Likewise.
3502 * gcse.c (clear_modify_mem_tables): Likewise.
3503 * global.c (global_conflicts, build_insn_chain): Likewise.
3504 * ifcvt.c (dead_or_predicable): Likewise.
3505 * local-alloc.c (update_equiv_regs): Likewise.
3506 * loop.c (load_mems): Likewise.
3507 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
3509 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
3511 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
3512 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
3513 * sched-rgn.c (propagate_deps
3514 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
3515 * tree-dfa.c (dump_dfa_stats
3516 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
3517 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
3519 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
3520 free_temp_expr_table, find_replaceable_exprs): Likewise.
3521 * tree-sra.c (scan_function, scalarize_parms): Likewise.
3522 * tree-ssa-alias.c (init_alias_info,
3523 compute_points_to_and_addr_escape,
3524 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
3525 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
3526 * tree-ssa-live.c (new_tree_live_info, live_worklist,
3527 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
3528 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
3529 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3530 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
3531 add_call_read_ops): Likewise.
3532 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
3533 * tree-ssa-live.h (num_var_partitions): Return unsigned.
3535 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
3537 PR tree-optimization/18009
3538 * tree-vectorizer.h (enum dr_alignment_support): New type.
3539 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
3540 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
3541 single data_reference (instead of a varray of references).
3542 * tree-vectorizer.c (new_loop_vec_info): Likewise.
3543 (vect_gen_niters_for_prolog_loop): Likewise.
3544 (vect_update_inits_of_drs): Likewise.
3546 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
3547 vect_enhance_data_refs_alignment.
3548 (vect_do_peeling_for_alignment): Likewise.
3549 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
3550 this functionality used to be in vect_analyze_data_refs_alignment.
3551 Also update DR_MISALIGNMENT due to peeling; this functionality used to
3552 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
3553 (vect_analyze_data_refs_alignment): Decision on whether and by how much
3554 to peel moved to vect_enhance_data_refs_alignment. Call
3555 vect_supportable_dr_alignment.
3557 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
3558 (vect_compute_data_refs_alignment): Return bool. Consider return value
3559 of vect_compute_data_ref_alignment and return true/false accordingly.
3560 (vect_enhance_data_refs_alignment): Consider return value of
3561 vect_compute_data_refs_alignment and return true/false accordingly.
3563 (vect_supportable_dr_alignment): New function.
3564 (vectorizable_store): Call vect_supportable_dr_alignment.
3565 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
3566 support checks moved from here to vect_supportable_dr_alignment.
3568 (vect_transform_loop): Avoid 80 columns overflow.
3570 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3572 * timevar.c (timevar_enable): Change from
3574 (timevar_push): Rename to ...
3575 (timevar_push_1): this and remove the
3577 (timevar_pop): Rename to ...
3578 (timevar_pop_1): this and remove the
3580 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
3581 (timevar_pop): New macro.
3582 (timevar_push): New macro.
3583 (timevar_enable): Declare.
3585 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3587 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
3588 libgcc for shared libraries.
3590 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3592 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
3593 * config/s390/s390.c (s390_split_access_reg): New function.
3594 (regclass_map): Add access registers.
3595 (get_thread_pointer): Use access register instead of UNSPEC_TP.
3596 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
3597 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
3598 (TP_REGNUM): New define.
3599 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3600 REG_ALLOC_ORDER): Add access registers.
3601 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
3602 CANNOT_CHANGE_MODE_CLASS): Support access registers.
3603 (enum reg_class): Add ACCESS_REGS.
3604 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3605 (REG_CLASS_FROM_LETTER): Add 't' constraint.
3606 (REGISTER_NAMES): Add access registers.
3607 * config/s390/s390.md (UNSPEC_TP): Remove.
3608 ("*movdi_64"): Add access register alternatives. Provide splitters
3609 to split DImode access register <-> GPR moves into SImode moves.
3610 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
3611 ("movstrictsi"): Likewise.
3612 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
3613 ("set_tp_64", "set_tp_31"): Likewise.
3614 ("*set_tp"): New insn.
3616 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3618 * tree-phinodes.c (resize_phi_node): Copy only a portion of
3619 the PHI node currently in use.
3621 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3624 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
3627 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
3629 PR tree-optimization/18270
3630 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
3631 abnormal edges, commit all pending stmts on incoming edges.
3633 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3635 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
3636 cause extra costs. Generate canonical RTL.
3638 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
3640 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
3641 (lambda_compute_target_space). Ditto.
3642 * lambda.h (lambda_trans_matrix): Ditto.
3643 (lambda_linear_expression): Ditto.
3644 (lambda_body_vector): Ditto.
3645 (lambda_loopnest): Ditto.
3646 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
3647 update comments, and remove pointless addition of 0.
3648 (linear_transform_loops): Update comments.
3650 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
3652 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
3655 2004-11-03 Jeff Law <law@redhat.com>
3657 * predict.c (struct block_info_def): Kill "tovisit" field.
3658 (propagate_freq): Accept new "tovisit" parameter. Change
3659 read/write access methods for "tovisit" to check the "tovisit"
3660 bitmap instead of a bit in block_info_def.
3661 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
3662 it to propagate_freq.
3664 * stmt.c (expand_case): Speed up code to detect duplicate case
3665 label targets and count unique case label targets.
3667 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3669 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
3671 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3673 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
3675 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
3677 * tree-cfg.c (find_taken_edge): Abort if we are given a
3678 statement that is neither COND_EXPR nor SWITCH_EXPR.
3680 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
3682 * fold-const.c (fold): Reassociate also (x - mult) + mult and
3683 (mult - x) + mult. Cast operands of expression after applying
3684 distributive law to the correct types. Apply distributive law
3685 to a * c - b * c for all non-float types.
3687 2004-11-02 Geoffrey Keating <geoffk@apple.com>
3689 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
3690 because we don't want to run them now; instead, set them to
3691 stmp-install-fixproto or stmp-install-fixinc.
3692 * Makefile.in (stmp-install-fixproto): New.
3693 (stmp-install-fixinc): New.
3694 * configure: Regenerate.
3696 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3698 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
3701 2004-11-02 Ziemowit Laski <zlaski@apple.com>
3703 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
3704 (c_types_compatible_p): Move function definition...
3705 * c-objc-common.c (c_types_compatible_p): ...here.
3706 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
3709 2004-11-02 Steven Bosscher <stevenb@suse.de>
3711 * cfgloop.h (struct loop): Update comment.
3712 * cse.c (cse_main): Remove obsolete comment.
3714 * expr.h (gen_cond_trap): Move prototype under functions provided
3716 (canonicalize_condition, get_condition): Move to...
3717 * rtl.h (canonicalize_condition, get_condition): ...here.
3718 (branch_target_load_optimize): Add comment that this function is
3720 * loop.c (canonicalize_condition, get_condition): Move to...
3721 * rtlanal.c (canonicalize_condition, get_condition): ...here.
3722 * sched-deps.c (get_condition): Rename to sched_get_condition.
3723 (add_dependence): Update this caller.
3725 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
3728 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
3729 that the vops get marked for renaming.
3731 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
3733 * config/s390/s390.md ("movcc"): Set type attribute.
3735 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3737 * tree-phinodes.c (add_phi_arg): Add an assertion that the
3738 edge already exists.
3740 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3742 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
3743 element that's being removed.
3745 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
3747 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
3748 arguments using PENDING_STMT.
3749 (thread_block): Call copy_phis_to_block after redirecting an
3752 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3754 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
3755 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
3756 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
3757 (bitmap_ior_and_compl_into): Produce bool.
3758 (bitmap_union_of_diff): Rename to ...
3759 (bitmap_ior_and_compl): ... here. Produce bool.
3760 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
3761 bitmap_operation directly.
3762 (bitmap_union_of_diff): Rename to ...
3763 (bitmap_ior_and_compl): ... here. Return bool, use
3764 bitmap_operation directly.
3765 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
3766 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
3767 * global.c (modify_bb_reg_pav): Likewise.
3769 * bitmap.h (bitmap_equal_p): Return bool.
3770 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
3771 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
3772 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
3773 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
3774 bitmap_intersect_compl_p.
3775 * ifcvt (dead_or_predicable): Likewise.
3777 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
3779 PR rtl-optimization/17104
3780 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
3781 loads in zero_extend.
3783 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
3786 * toplev.c (debug_type_names): Remove "dwarf-1".
3788 2004-11-02 Ben Elliston <bje@au.ibm.com>
3790 * timevar.h (timevar_get): Remove.
3791 * timevar.c (timevar_get): Remove unused function.
3793 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
3795 * doc/include/texinfo.tex: Update from Texinfo CVS.
3797 2004-11-02 Ben Elliston <bje@au.ibm.com>
3799 * cppdefault.h (cpp_SYSROOT): Remove.
3800 * cppdefault.c (cpp_SYSROOT): Likewise.
3802 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
3804 PR tree-optimization/16447
3805 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
3806 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
3807 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
3808 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
3809 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
3810 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
3811 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
3812 (identical_copies_p): New. Return true is two copies are the same.
3813 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
3814 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
3816 (perform_edge_inserts): New. Determine what to do with all stmts that
3817 have been inserted on edges.
3818 (remove_ssa_form): Analyze and commit edges from here.
3820 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
3823 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
3824 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
3825 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3826 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
3828 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
3831 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
3832 parameter declarations.
3834 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
3836 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
3837 (s390_secondary_input_reload_class)
3838 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
3840 (s390_expand_cmpmem): Enable cmpmem implementation.
3841 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
3842 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
3843 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
3844 * config/s390/s390.md ("movcc"): New insn pattern.
3845 * doc/md.texi: Document 'c' constraint for s390.
3847 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
3850 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
3853 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
3855 Fix PR tree-optimization/17672
3856 Fix PR tree-optimization/18168
3858 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
3860 (gcc_tree_to_linear_expression): Add extra to existing constant.
3861 (depth_of_nest): Factor out function used in various places.
3862 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
3864 (find_induction_var_from_exit_cond): Stop guessing, and just
3865 get the right answer :).
3866 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
3867 Print out message about result of attempt to create perfect nest.
3868 (lbv_to_gcc_expression): Add type argument, use it to do math
3869 and induction variable creation.
3870 (lle_to_gcc_expression): Ditto.
3871 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
3872 oldiv. Pass type argument to lle_to_gcc_expression and
3873 lbv_to_gcc_expression.
3874 Reset number of iterations after transformation.
3875 (perfect_nestify): Remove useless pre-allocation, and cleanup
3878 * tree-data-ref.c (build_classic_dist_vector): Return false for
3879 dependences completely outside of the loop nest we asked about.
3880 (build_classic_dir_vector): Ditto.
3881 (compute_data_dependences_for_loop): Only add dependence relations
3882 inside the loop we asked about.
3884 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
3885 Compute immediate uses.
3887 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
3889 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
3891 * tree-cfg.c (thread_jumps): Fix a comment typo.
3893 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
3895 * tree-cfg.c (thread_jumps): Fix a comment typo.
3897 2004-10-31 Nicolas Pitre <nico@cam.org>
3899 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
3900 values smaller than 2^32.
3902 2004-10-31 Jeff Law <law@redhat.com>
3904 * cfgloop.h (struct loop): Remove unused "nodes" field.
3905 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
3906 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
3907 instead of calling flow_bb_inside_loop_p for every basic block
3909 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
3911 2004-10-31 Graham Stott <graham.stott@btinternet.com>
3913 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
3914 INT_5_BITS instead of VAL_5_BITS_P.
3916 2004-10-31 Roger Sayle <roger@eyesopen.com>
3919 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
3920 for consistent quoting in diagnostic messages.
3921 (expand_call_inline): Likewise.
3922 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3923 * tree-ssa.c (warn_uninitialized_var): Likewise.
3924 (warn_uninitialized_phi): Likewise.
3926 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
3928 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
3931 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
3933 * c-common.c: Fix a comment typo.
3935 2004-10-31 Jason Merrill <jason@redhat.com>
3938 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
3939 aggregate types that are not BLKmode.
3941 2004-10-30 Ziemowit Laski <zlaski@apple.com>
3943 * c-common.h (objc_lookup_ivar): Add second parameter to
3945 * c-typeck.c (build_external_ref): After looking up symbol,
3946 pass it to objc_lookup_ivar() to decide whether it or the
3947 ivar should be used, rather than deciding the issue locally.
3948 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
3949 which is simply returned in the non-ObjC case.
3951 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
3953 * sdbout.c (sdbout_symbol): Do not output type .def statements
3956 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3958 * c-common.c (catenate_strings): New.
3959 (c_parse_error): Use it. Don't over-escape.
3961 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
3963 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
3964 modify the for loop expressions for it. Remove unnecessary casts.
3965 (sh_expand_prologue): Declare reg as unsigned.
3966 (sh_gimplify_va_arg_expr): Initinalize lab_over.
3967 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
3969 2004-10-30 Geoffrey Keating <geoffk@apple.com>
3971 * doc/invoke.texi (Darwin Options): Improve description of
3972 how the subtype is chosen.
3974 2004-10-30 Roger Sayle <roger@eyesopen.com>
3977 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
3978 the stack adjustment, "size", is valid for Pmode. If the stack
3979 frame is too large, generate a trap insn and issue a warning.
3981 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
3983 * tree-ssa-dom.c: Fix comment typos.
3985 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
3987 * config/sh/sh.c (prepare_move_operands): Use operands[0]
3988 for the output rtl if no_new_pseudos is set. Remove redundant
3991 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
3994 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
3995 determining whether to copy parameter types from a previous
3996 prototype declaration.
3998 2004-10-29 Roger Sayle <roger@eyesopen.com>
4000 PR rtl-optimization/17581
4001 * cselib.c (cselib_process_insn): The last instruction of a libcall
4002 block, with the REG_RETVAL note, should be considered in the libcall.
4003 * gcse.c (do_local_cprop): Allow constants to be propagated outside
4005 (adjust_libcall_notes): Use simplify_replace_rtx instead of
4006 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
4008 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
4010 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
4012 2004-10-29 Jeff Law <law@redhat.com>
4014 * tree-ssa-dom.c (struct edge_info): New structure holding
4015 edge equivalences and edge redirection information.
4016 (get_eq_expr_value, record_dominating_conditions): Kill.
4017 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
4018 Call record_edge_info.
4019 (allocate_edge_info, free_edge_info): New.
4020 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
4021 rather than cprop_into_phis. Free all edge infos before threading
4023 (thread_across_edge): Allocate new edge info structures as needed
4024 and store the redirection target into the edge info structure
4025 instead of the edge's AUX field.
4026 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
4027 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
4028 Revamp code which finds and records equivalences associated with
4029 edges to use saved data in the edge_info structure.
4030 (record_equivalencs_from_phis): Similarly.
4031 (dom_opt_finalize_block): Revamp code which finds and records
4032 equivalences associated with edges to use saved data in the
4033 edge_info structure.
4034 (build_and_record_new_cond): New function.
4035 (record_conditions): Use build_and_record_new_cond to record
4036 dominating conditions.
4037 (record_edge_info): New function.
4038 (record_range): Tighten test for conditions which create
4039 useful range records.
4041 2004-10-29 Geoffrey Keating <geoffk@apple.com>
4043 * config/i386/darwin.h (ASM_SPEC): Simplify.
4044 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
4045 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
4046 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
4047 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
4048 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
4049 in all cases. Pass the right -arch or -arch_only based on -mcpu.
4050 (ASM_SPEC): Handle -force_cpusubtype_ALL.
4051 * doc/invoke.texi (Darwin Options): Improve documentation for
4052 Darwin linker (and libtool) switches.
4054 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
4056 2004-10-29 Stan Shebs <shebs@apple.com>
4058 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.