1 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
4 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
6 2004-11-30 Ben Elliston <bje@au.ibm.com>
8 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
10 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
13 * c-common.c (handle_visibility_attribute): When the type decl
14 is really a identifier node, warn about being ignored and return.
16 2004-11-29 Richard Henderson <rth@redhat.com>
18 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
20 2004-11-29 Steven Bosscher <stevenb@suse.de>
22 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
23 Remove CASE_DROPS_THROUGH checks, it is never defined.
24 * cfglyout.c (fixup_reorder_chain): Likewise.
25 * cfgrtl.c (rtl_verify_flow_info): Likewise.
26 * stmt.c (expand_case): Likewise.
27 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
29 * system.h (CASE_DROPS_THROUGH): Poison.
30 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
31 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
33 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
35 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
38 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
41 2004-11-29 Diego Novillo <dnovillo@redhat.com>
43 PR tree-optimization/18712
44 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
45 WORK_STACK by reference.
46 Call VEC_safe_push instead of VEC_quick_push.
49 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
52 * Makefile.in (c-lang.o): Update dependencies.
53 * c-lang.c: Include "c-pragma.h".
54 (finish_file): Call maybe_apply_pending_pragma_weaks.
55 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
56 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
58 2004-11-29 Richard Henderson <rth@redhat.com>
61 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
62 outside the referenced object.
64 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
66 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
67 EDGE_PRED instead of PHI_ARG_EDGE.
68 * tree-ssa-live.c: Likewise.
69 * tree-ssa-loop-manip.c: Likewise.
70 * tree-ssa.c: Likewise.
72 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
73 simplifying edge manipulation.
75 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
78 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
81 * cfg.c (flow_obstack): Remove.
82 (flow_firstobj): Likewise.
83 (init_flow): Remove all uses of flow_obstack.
85 2004-11-29 Alan Modra <amodra@bigpond.net.au>
87 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
90 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
92 * opts.c (decode_options): Do not set max-inline-insns-rtl.
93 (common_handle_option): Likewise.
94 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
95 * params.h (MAX_INLINE_INSNS_RTL): Remove.
96 * doc/invoke.texi (max-inline-insns-rtl): Remove.
98 2004-11-29 Alan Modra <amodra@bigpond.net.au>
101 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
103 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
106 * gimplify.c (gimplify_asm_expr): If the length of an output operand
107 is zero, do not process it, just let it go through.
109 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
110 Diego Novillo <dnovillo@redhat.com>
112 PR/18662, also backported from tree-cleanup-branch.
113 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
114 always call maybe_clean_eh_stmt and modify_stmt.
116 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
119 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
120 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
121 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
122 add an inverse VIEW_CONVERT_EXPR to const_val.
125 * tree-nested.c (check_for_nested_with_variably_modified): New.
126 (create_nesting_tree): Call it.
128 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
129 special code for assigning to non-pointer.
130 (is_escape_site): If RHS is a conversion between pointer and integer
131 types, this is an escape site.
133 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
134 (store_motion): Don't move store if any edge we'd want to move it
137 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
138 non-zero lower bound.
140 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
142 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
145 * opts.c (find_opt): Require that the input match a switch exactly
146 or that the switch take a joined option to be interpreted as a
147 match for another language.
149 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
151 * timevar.def (TV_TREE_REDPHI): New timevar.
152 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
154 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
156 PR preprocessor/17651
157 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
158 flag_no_line_commands.
159 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
162 2004-11-28 Theodore A. Roth <troth@openavr.org>
164 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
165 warning if the function name does not begin with "__vector" and the
166 function has either the 'signal' or 'interrupt' attribute.
168 2004-11-28 Theodore A. Roth <troth@openavr.org>
170 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
171 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
172 atmega325, atmega3250, atmega645 and atmega6450.
173 * config/avr/avr.h (LINK_SPEC): Ditto.
175 (LIBGCC_SPEC): Ditto.
176 (CRT_BINUTILS_SPECS): Ditto.
177 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
179 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
181 PR preprocessor/17610
182 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
184 2004-11-28 Jeff Law <law@redhat.com>
186 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
187 (pass_maybe_create_global_var): New.
188 * tree-pass.h (pass_maybe_create_global_var): Declare.
189 * tree-optimize.c (init_tree_optimization_passes): Link in
190 pass_maybe_create_global_var.
192 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
194 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
196 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
198 PR rtl-optimization/18420
199 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
201 2004-11-28 Steven Bosscher <stevenb@suse.de>
202 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
204 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
205 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
206 that the case is in range, to make sure the casesi insn is always
207 in range and never falls through.
208 (casesi1): Add comment to explain why casesi never falls through.
209 Remove the unnamed special case casesi pattern.
211 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
214 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
215 "*movdicc_real". Only match reversible comparisons.
216 ("*movdicc_real_nonreversible"): New pattern, split from
217 "*movdicc_real". Match only nonreversible comparisons. Exclude
218 reversed alternatives.
219 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
222 2004-11-27 Richard Henderson <rth@redhat.com>
224 * config/ia64/ia64.md: Move all define_predicate's ...
225 * config/ia64/predicates.md: ... here. New file.
227 2004-11-27 Per Bothner <per@bothner.com>
230 Re-applied following, with two modifications: add a URL for the
231 fixed cctools; only exit if $build = $target.
233 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
234 * configure.ac (powerpc-*-darwin*): Require assembler to support
236 * configure: Regenerate.
238 2004-11-28 David Edelsohn <edelsohn@gnu.org>
241 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
242 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
243 Distinguish between SImode and DImode CONST_INT.
245 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
246 Alan Modra <amodra@bigpond.net.au>
249 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
250 functions, strings and thread-local vars.
252 2004-11-28 Alan Modra <amodra@bigpond.net.au>
254 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
255 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
256 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
257 to allow non-darwin ABIs to optimize away code.
258 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
260 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
262 * tree.c (operand_equal_for_phi_arg_p): New.
263 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
264 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
265 Replace operand_equal_p with operand_for_phi_arg_p
268 * bb-reorder.c (find_traces_1_round): Speed up by using
269 EDGE_COUNT instead of FOR_EACH_EDGE.
271 * fold-const.c, config/i386/linux64.h: Fix comment typos.
273 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
276 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
278 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
280 * config/i386/linux.h: Fix a comment typo.
281 * doc/extend.texi: Fix a typo.
283 2004-11-27 Jeff Law <law@redhat.com>
285 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
288 2004-11-27 Jakub Jelinek <jakub@redhat.com>
290 * config/i386/linux64.h (REG_NAME): Define.
292 2004-11-27 Jakub Jelinek <jakub@redhat.com>
294 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
295 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
296 and only afterwards convert to ctype.
298 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
300 * config/mips/mips-protos.h (function_arg_boundary): Declare.
301 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
302 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
303 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
304 * config/mips/mips.c (function_arg_boundary): New function.
305 Impose a maximum alignment of STACK_BOUNDARY.
307 2004-11-27 Jakub Jelinek <jakub@redhat.com>
309 PR rtl-optimization/17825
310 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
313 2004-11-27 Alan Modra <amodra@bigpond.net.au>
316 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
317 from rs6000_default_long_calls for libcalls.
319 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
321 * expmed.c (extract_bit_field): When extracting from non-integer mode,
322 force a SUBREG into a register because we may be taking a further
325 2004-11-27 Di-an Jan <dianj@freeshell.org>
327 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
329 2004-11-26 Robert Millan <robertmh@gnu.org>
331 Changes for k*bsd-gnu support.
332 * config/i386/linux.h: Define REG_NAME to allow overriding of
333 register names in sc structure.
334 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
336 * config.gcc: Detect x86_64-k*bsd-gnu systems.
338 2004-11-26 Jeff Law <law@redhat.com>
340 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
341 retrieve annotations or pointer info before it's necessary.
342 Reorder tests for early continue of the loop. Manually CSE
345 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
347 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
348 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
349 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
350 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
351 to a fixed reg if the source is the Return Address register.
352 Implement new Rule 15.
353 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
354 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
355 sparc_dwarf_handle_frame_unspec.
356 (gen_save_register_window): New function.
357 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
358 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
359 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
360 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
361 (sparc_asm_function_prologue): Do not emit call frame debugging info.
362 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
363 (sparc_expand_epilogue): Likewise.
364 (sparc_dwarf_handle_frame_unspec): New function.
365 * config/sparc/sparc.md (save_register_window): Remove.
366 (save_register_windowdi): Rewrite modelled on the callframe debug info.
367 (save_register_windowsi): Likewise.
369 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
371 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
372 BB_HEAD, not BLOCK_HEAD.
374 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
376 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
377 scratch insns that set a register live at the join point.
379 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
381 * cse.c, tree-ssa-operands.c: Fix comment typos.
383 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
385 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
388 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
390 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
392 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
393 check that tests if all edges go to the same destination.
395 * bitmap.c (bitmap_find_bit): Speed up by traversing from
396 head->first if that seems profitable.
398 2004-11-25 Jeff Law <law@redhat.com>
400 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
401 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
402 (pass_loop_done): Use TV_TREE_LOOP_FINI.
404 2004-11-26 Alan Modra <amodra@bigpond.net.au>
406 PR rtl-optimization/16356
407 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
408 separate output register and one less jump. Enable for powerpc64.
409 (floatdisf2): Adjust for above.
411 2004-11-25 Bob Wilson <bob.wilson@acm.org>
413 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
414 (GCC_DRIVER_HOST_INITIALIZATION): Define.
416 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
419 * tree-complex.c (vector_inner_type): New variable moved from
420 build_word_mode_vector_type.
421 (vector_last_type): Likewise.
422 (vector_last_nunits): Likewise.
423 (build_word_mode_vector_type): Use the new variables.
424 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
425 (GTFILES): Add tree-complex.c.
426 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
428 2004-11-25 Bob Wilson <bob.wilson@acm.org>
430 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
431 __XTENSA_WINDOWED_ABI__.
433 2004-11-25 Richard Henderson <rth@redhat.com>
435 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
436 args_size adjustments for calls even with cfa as stack pointer.
437 Search calls for stack adjustments after the insn is issued.
438 (dwarf2out_frame_debug): Add after_p argument; pass it on.
439 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
440 * final.c (final_start_function, final_scan_insn): Likewise.
442 2004-11-25 Richard Henderson <rth@redhat.com>
445 * reload1.c (set_initial_eh_label_offset): New.
446 (set_initial_label_offsets): Use it.
448 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
450 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
451 before calling life_analysis and release them after.
453 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
455 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
458 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
460 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
461 BITMAP_OBSTACK_ALLOC.
462 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
464 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
466 parts of PR rtl-opt/18463, rtl-opt/17647
467 * cse.c (canon_for_address): New function.
468 (find_best_addr): Call canon_for_address before getting the
469 address's cost when checking if we should take that address.
471 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
473 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
474 "tree *" as the first argument.
475 * tree-flow.h: Update the prototype of add_phi_arg.
476 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
477 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
478 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
479 tree-vectorizer.c: Update all call sites of add_phi_arg.
481 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
483 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
484 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
485 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
486 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
488 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
490 PR tree-optimization/18587
491 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
492 call clobbered caches as invalid.
493 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
494 indicating whether the call clobbered operand cache is valid.
495 (ssa_ro_call_cache_valid): New. Flag indicating whether the
496 pure/const call operand cache is valid.
497 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
498 list of operands for cached call virtual operands.
499 (clobbered_aliased_loads, clobbered_aliased_stores,
500 ro_call_aliased_load): New. flags caching whether alias bits are
501 to be set in call stmt's.
502 (fini_ssa_operands): Remove call operand caches if present.
503 (get_expr_operands, get_asm_expr_operands,
504 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
505 (get_call_expr_operands): Add call clobbered variables first.
506 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
507 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
508 if it is valid, otherise fill the cache.
509 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
510 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
511 in_v_may_def_list bits.
512 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
513 in_list bits for the v_may_def elements and empty the operand
515 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
516 VUSES by checking the in_v_may_def_list bit.
517 (append_v_may_def, append_vuse): Use the in_list bit rather than
518 scanning the array for duplicates.
520 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
522 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
523 displacements are not short.
525 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
527 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
530 2004-11-25 Mark Mitchell <mark@codesourcery.com>
533 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
534 (lvalue_or_else): Declare.
535 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
536 * c-typeck.c (lvalue_use): Remove.
537 (lvalue_or_else): Remove.
540 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
541 unemitted variables with static storage duration.
543 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
545 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
548 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
550 * config/rs6000/altivec.md (VIshort): New mode macro.
551 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
553 (altivec_vaddu<VI_char>s): ... this.
554 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
556 (altivec_vadds<VI_char>s): ... this.
557 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
559 (altivec_vsubu<VI_char>s): ... this.
560 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
562 (altivec_vsubs<VI_char>s): ... this.
563 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
565 (altivec_vavgu<VI_char>): ... this.
566 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
568 (altivec_vavgs<VI_char>): ... this.
569 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
570 (altivec_vmsumu<VI_char>m): ... this.
571 (altivec_vmsummbm, altivec_vmsummhm): Replace
573 (altivec_vmsumm<VI_char>m): ... this.
574 (altivec_vandc): Remove.
575 (*andc<mode>3): Renamed to ...
576 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
577 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
579 (altivec_vrl<VI_char>): ... this.
580 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
582 (altivec_vsl<VI_char>): ... this.
583 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
585 (altivec_vsr<VI_char>): ... this.
586 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
588 (altivec_vsra<VI_char>): ... this.
589 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
590 (altivec_vsum4s<VI_char>s): ... this.
591 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
593 (altivec_vperm_<mode>): ... this.
594 (altivec_vsel_4sf): Rename to ...
595 (altivec_vsel_v4sf): ... here.
596 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
598 (altivec_vsel_<mode>): ... this.
599 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
600 altivec_vsldoi_16qi): Rename to ...
601 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
602 altivec_vsldoi_v16qi): ... here.
603 (altivec_vsldoi_4sf): Rename to ...
604 (altivec_vsldoi_v4sf): ... here.
605 (altivec_predicate_v4si, altivec_predicate_v8hi,
606 altivec_predicate_v16qi): Replace with ...
607 (altivec_predicate_<mode>): ... this.
608 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
610 (altivec_lve<VI_char>x): ... this.
611 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
613 (altivec_stve<VI_char>x): ... this.
614 (absv16qi2, absv8hi2, absv4si2): Replace
616 (abs<mode>2): ... this.
617 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
619 (altivec_abss_<mode>): ... this.
620 (vec_realign_load_v16qi, vec_realign_load_v8hi,
621 vec_realign_load_v4si): Replace with ...
622 (vec_realign_load_<mode>): ... this.
623 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
625 (rs6000_expand_ternop_builtin): Likewise.
627 2004-11-25 Andrew Haley <aph@redhat.com>
629 * gcc.c (process_command): Don't supply -v to linker.
631 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
633 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
634 instead of `%s' in diagnostic.
636 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
638 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
639 (FREE_REG_SET): Adjust.
640 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
641 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
642 (BITMAP_ALLOC): ... here.
643 (BITMAP_OBSTACK_FREE): Rename to ...
644 (BITMAP_FREE): Don't check for NULL bitmap here.
645 * tree-ssa-pre.c (value_insert_into_set_bitmap,
646 bitmap_set_new): Use new names.
648 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
649 * df.c (df_free): Likewise.
650 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
651 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
653 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
654 (ALLOC_REG_SET): ... here.
655 (FREE_REG_SET): Adjust.
656 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
657 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
658 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
659 * cfgrtl.c (rtl_split_block, rtl_split_edge,
660 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
661 * flow.c (update_life_info, calculate_global_regs_live,
662 allocate_bb_life_data, init_propagate_block_info): Adjust.
663 * global.c (build_insn_chain): Adjust.
664 * ifcvt.c (dead_or_predicable): Adjust.
665 * loop-iv.c (simplify_using_initial_values): Adjust.
666 * recog.c (peephole2_optimize): Adjust.
667 * sched-deps.c (init_deps_global): Adjust.
669 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
671 * config.gcc (avr-*-rtems*): Fix typo.
673 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
675 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
677 2004-11-24 Jeff Law <law@redhat.com>
679 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
680 the number of queries to random elements in the ai->written_vars
683 2004-11-24 Roger Sayle <roger@eyesopen.com>
685 * config/i386/i386.c (override_options): Disable x87 fancy math
686 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
688 2004-11-24 Roger Sayle <roger@eyesopen.com>
690 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
691 system header conflict on AIX 5.2.
692 * configure: Regenerate.
694 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
696 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
697 instead of calling phi_arg_from_edge.
699 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
702 2004-11-24 Ben Elliston <bje@au.ibm.com>
704 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
705 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
706 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
709 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
711 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
713 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
714 type will be remapped.
716 2004-11-24 Steven Bosscher <stevenb@suse.de>
718 * c-opts.c (c_common_post_options): Don't clear
719 flag_inline_functions.
720 * dojump.c (clear_pending_stack_adjust): Remove check on
721 flag_inline_functions, it's always true.
722 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
723 that can never trigger.
724 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
725 flag_inline_trees, now that flag_inline_functions is never
727 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
728 flag_inline_functions at optimization levels greater than
729 or equal to 3. This is already done by default.
731 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
733 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
734 instead to find the PHI argument. Do not take I as an
736 (eliminate_phi): Adjust the call to eliminate_build. Do not
737 take I as an argument.
738 (rewrite_trees): Adjust the call to eliminate_phi.
740 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
742 * optabs.h (force_expand_binop): Declare.
743 * optabs.c (force_expand_binop): Export.
744 * stmt.c (shift_return_value): Delete.
745 (expand_return): Don't call it.
746 * expr.h (shift_return_value): Declare.
747 * calls.c (shift_returned_value): Delete in favor of...
748 (shift_return_value): ...this new function. Leave the caller to check
749 for non-BLKmode values passed in the msb of a register. Take said mode
750 and a shift direction as argument. Operate on the hard function value,
752 (expand_call): Adjust accordingly.
753 * function.c (expand_function_start): If a non-BLKmode return value
754 is padded at the last significant end of the return register, use the
755 return value's natural mode for the DECL_RESULT, not the mode of the
757 (expand_function_end): Shift the same sort of return values left by
758 the appropriate amount.
760 2004-11-24 Matt Austern <austern@apple.com>
762 * recog.c (recog_memoized_1): Remove.
763 * recog.h (recog_memoized_1): Remove declaration.
764 (recog_memoized): Change from macro to inline function.
766 2004-11-24 Devang Patel <dpatel@apple.com>
769 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
770 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
772 2004-11-24 Devang Patel <dpatel@apple.com>
774 * gcc.c (process_command): Supply -v to linker.
776 2004-11-24 David Edelsohn <edelsohn@gnu.org>
777 Paolo Bonzini <bonzini@gnu.org>
779 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
780 vector modes without ALTIVEC_ABI. Use GCC vector instead of
782 (rs6000_pass_by_reference): Split conditional into pieces. Use
783 GCC vector instead of synthetic vector.
785 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
787 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
788 thread-local variable is invariant.
790 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
792 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
793 Handle TYPE_REF_CAN_ALIAS_ALL.
794 (print_declaration): Print array dimensions like dump_generic_node.
796 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
797 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
799 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
801 * bitmap.c (INLINE): Do not define.
802 (bitmap_elem_to_freelist, bitmap_element_free,
803 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
804 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
806 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
808 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
809 find the index of a PHI argument. Use e->dest_idx instead.
810 Replace hint with index.
812 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
815 2004-11-24 Diego Novillo <dnovillo@redhat.com>
817 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
820 2004-11-24 Joseph Myers <joseph@codesourcery.com>
822 * config/i386/i386.c (optimization_options): Use
823 SUBTARGET_OPTIMIZATION_OPTIONS.
824 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
825 (TARGET_SUBTARGET_DEFAULT): Don't include
826 MASK_OMIT_LEAF_FRAME_POINTER.
828 2004-11-24 Mark Mitchell <mark@codesourcery.com>
830 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
833 2004-11-24 Joseph Myers <joseph@codesourcery.com>
835 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
836 Use amd64 instead of 64.
838 2004-11-24 Mark Mitchell <mark@codesourcery.com>
839 Joseph Myers <joseph@codesourcery.com>
841 * crtstuff.c (IN_LIBGCC2): Define it.
842 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
843 instead of HAVE_LD_RO_RW_SECTION_MIXING.
844 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
845 * dwarf2out.c (named_section_eh_frame_section): Check
846 EH_TABLES_CAN_BE_READ_ONLY.
847 * except.c (default_exception_section): Likewise.
848 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
849 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
851 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
853 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
854 index of a PHI argument.
856 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
857 find_edge to find the index of a PHI argument.
859 2004-11-24 Steven Bosscher <stevenb@suse.de>
861 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
862 and LABELED_BLOCK_EXPR.
863 * gimplify.c (gimplify_labeled_block_expr): Remove.
864 (gimplify_exit_block_expr): Remove.
865 (gimplify_expr): Don't call them.
866 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
867 and LABELED_BLOCK_EXPR.
868 (estimate_num_insns_1): Likewise.
869 (walk_tree): Likewise.
870 * tree-pretty-print.c (dump_generic_node): Don't handle
871 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
872 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
873 (LABELED_BLOCK_EXPR): Likewise.
874 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
875 (LABELED_BLOCK_BODY): Likewise.
876 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
877 (EXIT_BLOCK_RETURN): Removed.
879 2004-11-24 Steven Bosscher <stevenb@suse.de>
881 * cfgrtl.c (rtl_delete_block): Fix comment.
882 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
883 or BLOCK_END insn notes.
884 * jump.c (squeeze_notes): Likewise.
885 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
886 EH_REGION_END notes, we never have them to begin with.
887 * sched-deps.c (sched_analyze_insn): When updating loop notes,
888 verify that we have indeed only recorded loop notes.
889 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
890 Only record loop notes.
892 * cfgexpand.c (tree_expand_cfg): Fix comment.
894 * passes.c (rest_of_compilation): Don't do a second call to
895 convert_from_eh_region_ranges from here, it's already called
897 * except.c (resolve_fixup_regions): Remove.
898 (remove_fixup_regions): Remove.
899 (convert_from_eh_region_ranges_1): Remove.
900 (convert_from_eh_region_ranges): Remove the case where EH is
901 not already lowered at the tree level. We always lower there.
903 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
906 * tree.c (make_vector_type): Move qualifiers to the vector type,
907 use the inner type's main variant and build a main variant for
908 the vector type if necessary.
909 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
911 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
913 * target.h (late_rtl_prologue_epilogue): Remove.
914 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
915 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
916 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
918 (rest_of_handle_flow2): ...here.
919 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
920 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
922 2004-11-23 Mark Mitchell <mark@codesourcery.com>
924 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
925 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
926 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
928 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
930 * config/i386/i386.c (override_options): Move
931 SUBTARGET_OVERRIDE_OPTIONS before defaulting
932 flag_omit_frame_pointer.
934 2004-11-23 Richard Henderson <rth@redhat.com>
936 * rtl.h (validate_subreg): Declare.
937 * emit-rtl.c (validate_subreg): New.
938 (gen_rtx_SUBREG): Use it.
939 * simplify-rtx.c (simplify_subreg): Likewise.
940 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
941 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
942 fallback whenever gen_realpart/gen_imagpart would not be able to
945 2004-11-23 Richard Henderson <rth@redhat.com>
947 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
948 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
951 2004-11-23 Diego Novillo <dnovillo@redhat.com>
953 PR tree-optimization/18618
954 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
955 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
956 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
958 (stmts_to_rescan): Likewise.
959 (const_and_copies_stack): Likewise.
960 (nonzero_vars_stack): Likewise.
961 (vrp_variables_stack): Likewise.
963 2004-11-23 Richard Henderson <rth@redhat.com>
965 * cse.c (record_jump_cond_subreg): New.
966 (record_jump_cond): Use it instead of gen_lowpart.
968 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
969 Joseph Myers <joseph@codesourcery.com>
971 * config/sol2-c.c (solaris_register_pragmas): Use
972 c_register_pragma_with_expansion.
973 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
974 * c-pragma.c (c_register_pragma): Update call to
976 (c_register_pragma_with_expansion): New function.
977 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
978 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
979 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
981 * doc/tm.texi (c_register_pragma_with_expansion,
982 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
984 2004-11-23 Richard Henderson <rth@redhat.com>
986 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
987 as mode sizes into local temporaries. Unify failure path.
989 2004-11-23 Richard Henderson <rth@redhat.com>
991 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
992 * caller-save.c (mark_set_regs): Use subreg_regno instead.
993 * final.c (alter_subreg): Likewise.
994 * local-alloc.c (reg_is_born): Likewise.
996 2004-11-23 Richard Henderson <rth@redhat.com>
998 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
999 instead of using a SUBREG temporary.
1001 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1003 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1006 2004-11-23 Zack Weinberg <zack@codesourcery.com>
1008 * function.h (struct function): Remove calls_longjmp.
1009 (current_function_calls_longjmp): Delete.
1010 * tree.h (ECF_LONGJMP): Delete.
1011 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1012 (ECF_LIBCALL_BLOCK): Everybody slide down one.
1013 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1014 * builtins.c (expand_builtin_longjmp): Don't set
1015 current_function_calls_longjmp.
1016 * calls.c (special_function_p): Mark longjmp and siglongjmp
1017 with ECF_NORETURN, not ECF_LONGJMP.
1018 (emit_call_1, expand_call, emit_library_call_value_1):
1019 Don't check for ECF_LONGJMP.
1020 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1021 (need_fake_edge_p): Likewise.
1023 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1024 * system.h: Poison NON_SAVING_SETJMP.
1025 * function.c (use_register_for_decl)
1026 * gcse.c (compute_hash_table_work, compute_store_table)
1027 * postreload-gcse.c (record_opr_changes)
1028 * reload.c (find_equiv_reg)
1029 * reload1.c (reload)
1030 * config/i386/i386.c (ix86_can_use_return_insn_p):
1031 Remove code conditional on NON_SAVING_SETJMP.
1032 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1034 * config/i386/sysv3.h: Delete file.
1035 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1037 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1039 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1040 the vectorization factor is greater than the iteration count.
1041 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1042 iteration count is known.
1044 (vect_build_symbol_bound): Removed. Its functionality moved to
1045 vect_generate_tmps_on_preheader.
1046 (vect_generate_tmps_on_preheader): Moved content of
1047 vect_build_symbol_bound here instead of calling it. Changed some
1050 (vect_build_loop_niters): We don't expect a new_bb to be generated -
1052 (vect_gen_niters_for_prolog_loop): Likewise.
1053 (vect_gen_niters_for_prolog_loo): Likewise.
1055 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1056 (slpeel_add_loop_guard): Likewise.
1057 (slpeel_tree_peel_loop_to_edge): Likewise.
1058 (vect_do_peeling_for_alignment): Likewise.
1060 (vect_get_first_index): Missing space.
1062 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
1064 * config/s390/s390.md ("*iordi3"): Mark commutative.
1065 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1067 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1069 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1070 greater than PHI_ARG_CAPACITY.
1071 (reserve_phi_args_for_new_edge): Initialize the new PHI
1072 argument to NULL_TREE. Increment PHI_NUM_ARGS.
1073 (add_phi_arg): Add a PHI argument to the slot given by
1075 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1076 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1077 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1078 argument by looking at PHI_ARG_DEF.
1079 (verify_phi_args): Check for a missing PHI argument. Remove
1080 the check for duplicate PHI arguments.
1081 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1082 (phi_arg_d): Remove e.
1084 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1085 by restricting to the case with two outgoing edges.
1087 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
1089 * config/s390/s390.c (s390_backchain_string): Removed.
1090 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1091 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1092 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1093 TARGET_KERNEL_BACKCHAIN to reflect the new options.
1094 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1095 (TARGET_KERNEL_BACKCHAIN): Removed.
1096 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1097 (TARGET_PACKED_STACK): New macro.
1098 (TARGET_SWITCHES): New switches added.
1099 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1101 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1102 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1103 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1104 the change in target switch semantics.
1105 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1106 (TARGET_DEFAULT): MASK_BACKCHAIN added.
1107 * doc/invoke.texi: Added documentation for the new/changed options.
1109 2004-11-23 Uros Bizjak <uros@kss-loka.si>
1111 PR rtl-optimization/18614
1112 * simplify-rtx.c (simplify_binary_operation): Do not
1113 simplify inner elements of constant arguments of
1116 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1118 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1121 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1123 * tree-phinode.c (make_phi_node): Use a new variable,
1124 capacity, to receive the return value of ideal_phi_node_len.
1126 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1128 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1129 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1130 __gthread_recursive_mutex_init_function.
1131 (__gthread_key_create): Properly cast -1.
1132 (__gthread_recursive_mutex_init_function): New function.
1133 (__gthread_recursive_mutex_lock): Rewrite.
1134 (__gthread_recursive_mutex_trylock): Likewise.
1135 (__gthread_recursive_mutex_unlock): Likewise.
1137 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1139 * config/c4x/t-rtems: New.
1140 * config.gcc: Reflect having added c4x/t-rtems.
1142 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1146 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1147 lang_hooks.types.type_for_size instead of integer_type_node for the
1150 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1152 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1154 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1156 * config/arm/t-rtems: New.
1157 * config.gcc: Reflect having added arm/t-rtems.
1159 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1161 * tree-cfg.c (tree_execute_on_growing_pred): New.
1162 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1163 * tree-flow.h: Add a prototype for
1164 reserve_phi_args_for_new_edge.
1165 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1166 (add_phi_arg): Don't resize a PHI array.
1168 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1170 * config.gcc: Add avr-*-rtems*.
1171 * config/avr/t-rtems: New.
1172 * config/avr/rtems.h: New.
1174 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1176 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1177 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
1178 Add comment to function.
1180 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1183 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1185 PR rtl-optimization/14838
1186 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1188 (get_last_nonnote_insn): Don't assume last insn is a note.
1190 2004-11-22 Roger Sayle <roger@eyesopen.com>
1192 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1193 to fold_binary_to_constant.
1194 (nondestructive_fold_unary_to_constant): Likewise, rename to
1195 fold_unary_to_constant.
1196 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1197 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1198 (nondestructive_fold_unary_to_constant): Likewise.
1199 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1200 and fold_binary_to_constant.
1201 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1202 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1203 and EXEC_UNARY with calls to fold_*nary_to_constant.
1204 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1205 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1206 fold_binary_to_constant.
1208 2004-11-22 Nick Clifton <nickc@redhat.com>
1210 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1211 initialisation of 'e'.
1213 2004-11-22 Roger Sayle <roger@eyesopen.com>
1215 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1216 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1217 automatically for targets without TARGET_80387.
1218 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1219 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1220 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1221 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1222 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1223 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1224 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1225 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1226 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1227 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1228 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1229 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1230 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1231 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1232 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1233 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1234 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1235 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1236 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1237 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1239 2004-11-22 Dale Johannesen <dalej@apple.com>
1241 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1242 properly and comment.
1244 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1246 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1247 (sparc_init_builtins): New function.
1248 (sparc_init_vis_builtins): Create builtin functions for VIS
1250 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1251 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1252 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1253 (def_builtin): New macro for creating builtin functions.
1254 (P): New mode macro for pointer types.
1255 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1256 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1257 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1258 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1259 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1260 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1261 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1263 2004-11-22 Devang Patel <dpatel@apple.com>
1265 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1267 2004-11-22 Devang Patel <dpatel@apple.com>
1269 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1270 (if_convertible_phi_p): ... new name.
1271 (if_convertable_modify_expr_p): Rename to ...
1272 (if_convertible_modify_expr_p): ... new name.
1273 (if_convertable_stmt_p): Rename to ...
1274 (if_convertible_stmt_p): ... new name.
1275 (if_convertable_bb_p): Rename to ...
1276 (if_convertible_bb_p): ... new name.
1277 (if_convertable_loop_p): Rename to ...
1278 (if_convertible_loop_p): ... new name.
1280 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1283 * configure.ac (threading): Accept 'posix95'.
1284 * configure: Regenerate.
1285 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1286 include sol26.h and default to posix95 threads if have_pthread_h.
1287 (sparc-*-solaris2*): Likewise.
1288 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1289 * gthr-posix95.h: New file.
1290 * config/sol26.h: New file.
1291 * doc/install.texi (--enable-threads): Document 'posix95'.
1293 2004-11-23 Ben Elliston <bje@au.ibm.com>
1295 * pointer-set.h (pointer_set_contains): Remove.
1296 * pointer-set.c (pointer_set_contains): Likewise.
1298 2004-11-22 Dale Johannesen <dalej@apple.com>
1300 * calls.c (expand_call): Do not call preserve_temp_slots.
1302 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1304 * tree-flow.h: Remove the prototype for remove_phi_arg.
1305 Add a prototype for remove_phi_args.
1306 * tree-phinodes.c (remove_phi_arg): Remove.
1307 (remove_phi_args): New.
1308 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1311 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1312 after making an edge.
1313 (remove_edge): Call execute_on_shrinking_pred before removing
1315 (redirect_edge_succ): Call execute_on_growing_pred and
1316 execute_on_shrinking_pred.
1317 * cfghooks.c (execute_on_growing_pred): New.
1318 (execute_on_shrinking_pred): Likewise.
1319 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1320 execute_on_shrinking_pred.
1321 Add prototypes for execute_on_growing_pred and
1322 execute_on_shrinking_pred.
1323 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1324 execute_on_growing_pred and execute_on_shrinking_pred.
1325 (cfg_layout_rtl_cfg_hook): Likewise.
1326 * tree-cfg.c (tree_cfg_hooks): Likewise.
1328 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1329 (tree_cfg_hooks): Use it.
1330 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1331 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1333 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1334 * tree-flow.h: Remove the corresponding prototype.
1336 * tree-ssa.c (ssa_remove_edge): Remove.
1337 * tree-flow.h: Remove the corresponding prototype.
1338 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1339 * basic-block.h: Likewise.
1340 * tree-if-conv.c: Likewise.
1341 * tree-ssa-threadupdate.c: Likewise.
1343 2004-11-23 Ben Elliston <bje@au.ibm.com>
1345 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1346 @table to list the BSI methods. Use individual @findex directives
1347 instead of one with a comma-separated list of index entries.
1349 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
1351 PR tree-optimization/18529
1352 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1353 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
1354 (fold): Call fold_to_nonsharp_ineq_using_bound.
1355 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1356 (number_of_iterations_cond): Fold the expressions before futher
1358 (tree_simplify_using_condition): Handle case when cond or expr is
1359 an EQ_EXPR specially.
1361 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1363 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1364 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1366 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1367 Fariborz Jahanian <fjahanian@apple.com>
1369 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1371 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1372 Align 16 byte and larger vectors like Altivec.
1373 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1374 (function_arg): Same.
1375 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1377 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1380 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1383 2004-11-22 Richard Henderson <rth@redhat.com>
1385 * function.c (assign_parm_setup_block): Revert 11-13 change to
1386 forcably re-mode a (possibly BLKmode) hard register.
1388 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1390 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1392 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1394 * config/rs6000/power4.md: Remove delay between dispatch and issue
1395 associated with dispatch group slots 3 and 4.
1396 * config/rs6000/power5.md: Same.
1398 2004-11-21 Jeff Law <law@redhat.com>
1400 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1402 * cfgbuild.c (make_edges): Likewise.
1403 * cfghooks.c (can_duplicate_block_p): Likewise.
1404 * cfgloop.c (loop_latch_edge): Likewise.
1405 * cfgloopmanip.c (force_single_succ_latches): Likewise.
1406 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1407 * predict.c (predict_loops, propagate_freq): Likewise.
1408 * tracer.c (tail_duplicate): Likewise.
1409 * tree-cfg.c (disband_implicit_edges): Likewise.
1410 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1412 2004-11-22 Nick Clifton <nickc@redhat.com>
1414 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1415 initialisation of 'e'.
1417 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1419 PR rtl-optimization/18599
1420 * regrename.c (copyprop_hardreg_forward): Speed up by putting
1421 BB_VISITED flags on basic blocks as we process them.
1423 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1426 * config/rs6000/altivec.md (VI_char): New mode attribute.
1427 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1428 (add<mode>3): ... this.
1429 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1430 (sub<mode>3): ... this.
1431 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1432 (smax<mode>3): ... this.
1433 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1434 (smin<mode>3): ... this.
1435 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1436 (umax<mode>3): ... this.
1437 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1438 (umin<mode>3): ... this.
1439 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1440 (and<mode>3): ... this.
1441 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1442 (ior<mode>3): ... this.
1443 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1444 (xor<mode>3): ... this.
1445 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1446 (and<mode>3): ... this.
1447 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1448 (ior<mode>3): ... this.
1449 (altivec_vnor): Replace with ...
1450 (altivec_nor<mode>): ... this.
1451 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1452 (one_cmpl<mode>2): ... this.
1453 (altivec_vandc): New expander.
1454 (*andc<mode>3): New insn.
1455 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1457 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1460 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1461 creating iv instead of integer_type.
1462 (vect_build_loop_niters): Remove redundant code.
1463 (vect_transform_loop_bound): Removed (duplicates functionality of
1464 make_loop_iterate_ntimes.
1465 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1466 lang_hooks.types.type_for_size to create a type of the required size.
1467 Use that type instead of integer_type. Remove redundant code.
1468 (vect_update_niters_after_peeling): Use type of niters instead of
1470 (vect_transform_loop): Unify handling of known and unknown loop bound
1471 cases. Call make_loop_iterate_ntimes instead of
1472 vect_transform_loop_bound.
1474 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1477 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1480 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1483 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1485 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1487 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1489 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1490 m32r/libgcc-glibc.ver.
1491 * config/m32r/libgcc-glibc.ver: Add New file.
1493 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1495 * bitmap.h (struct bitmap_obstack): New obstack type.
1496 (struct bitmap_head_def): Replace using_obstack with obstack
1498 (bitmap_default_obstack): New.
1499 (bitmap_initialize): Make inline, does not do allocation.
1500 (bitmap_release_memory): Remove.
1501 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1502 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1503 bitmap_obstack_free, bitmap_malloc_free): Declare.
1504 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1505 (BITMAP_FREE): Replace with ...
1506 (BITMAP_OBSTACK_FREE): ... this.
1507 (BITMAP_XFREE): Adjust.
1508 (BITMAP_INIT_ONCE): Remove.
1509 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1510 (bitmap_default_obstack): New.
1511 (bitmap_elem_to_freelist): Adjust.
1512 (bitmap_element_allocate): Adjust. Break initialization into ...
1513 (bitmap_obstack_initialize): ... here.
1514 (bitmap_release_memory): Replace with ...
1515 (bitmap_obstack_release): ... this.
1516 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1517 bitmap_obstack_free, bitmap_malloc_free): New.
1518 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1520 (bitmap_initialize): Move to bitmap.h.
1521 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1522 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1523 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1524 (INITIALIZE_REG_SET): Remove.
1525 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1526 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1527 (flow_obstack): Do not declare.
1528 (reg_obstack): Declare.
1529 * regs.h: Include obstack.h.
1530 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1531 release bitmap obstack here.
1532 * bb-reorder.c: #include regs, not basic-block.
1533 (fix_crossing_conditional_branches): Allocate regsets from
1535 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1537 * caller-save.c: Include regs.h earlier.
1538 * cfg.c: Do not include basic-block.h or obstack.h.
1539 (reg_obstack): Define.
1540 * cfganal.c: Include obstack.h
1541 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1543 * cfglayout.c: Do not include obstack.h.
1544 (flow_obstack): Remove declaration.
1545 (cfg_layout_duplicate_bb): Use reg_obstack.
1546 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1547 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1548 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1549 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1550 (cfg_layout_split_edge): Use reg_obstack.
1551 * cse.c: Include regs.h earlier.
1552 * ddg.c: Do not include basic-block.h.
1553 * dominance.c: Inlude obstack.h.
1554 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1555 (calculate_global_regs_live): Likewise.
1556 (allocate_bb_life_data): Use reg_obstack.
1557 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1558 * global.c: Do not include basic-block.h.
1559 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1560 * graph.c: Include obstack.h.
1561 * haifa-sched.c: Do not include basic-block.h.
1562 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1563 * local-alloc.c: Do not include basic-block.h.
1564 * loop-init.c, loop-invariant.c: Include obstack.h.
1565 * loop-iv.c: Likewise.
1566 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1568 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1569 * modulo-sched.c: Do not include basic-block.h.
1570 * passes.c (rest_of_handle_final): Do not call
1571 regset_release_memory.
1572 * ra-debug.c: Include regs.h earlier. Do not include
1574 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1575 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1576 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1577 (regset_release_memory): Remove.
1578 * resource.c: Do not include basic-block.h.
1579 * rtlanal.c: Do not include basic-block.h.
1580 * sbitmap.c: Include obstack.h.
1581 * sched-deps.c: Do not include basic-block.h.
1582 (reg_pending_sets_head, reg_pending_clobbers_head,
1583 reg_pending_uses_head): Remove.
1584 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1585 * sched-ebb.c: Do not include basic-block.h.
1586 * sched-rgn.c: Likewise.
1587 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1589 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1590 * tree-sra.c (decide_instantiations): Adjust bitmap
1592 * tree-ssa-dce.c: Include obstack.h.
1593 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1594 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1595 (bitmap_set_new): Likewise.
1596 (init_pre): Initialize bitmap obstack.
1597 (fini_pre): Release bitmap obstack.
1598 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1599 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1600 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1601 (marked_ssa_names): Likewise.
1602 (init_ssanames): Use BITMAP_XMALLOC.
1603 (fini_ssanames): Use BITMAP_XFREE.
1604 * web.c: Include obstack.h
1606 2004-11-22 Nick Clifton <nickc@redhat.com>
1608 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1609 predecessor in the first for-loop.
1611 2004-11-21 Stan Shebs <shebs@apple.com>
1613 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1615 (function_arg): Move darwin test up, sniff mode first for
1616 efficiency, test for union type.
1618 2004-11-21 Dale Johannesen <dalej@apple.com>
1620 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1622 2004-11-21 Jeff Law <law@redhat.com>
1624 * tree-ssa.c (verify_use): Fix comment.
1625 (verify_phi_args): Check that the number of incoming edges matches
1626 the number of PHI arguments. Check that each PHI argument is
1627 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1628 dead or duplicated edges. Clear e->aux earlier and avoid separate
1629 loop to clear e->aux and test for missed edges.
1630 (verify_ssa): Remove first walk over statements. Move checking
1631 of PHI args into verify_phi_args. Move checking of statements
1632 with aliased stores and V_MAY_DEFS into the remaining loop over
1633 the statements. Register defs by walking through the formal
1636 2004-11-21 Roger Sayle <roger@eyesopen.com>
1639 * dojump.c (compare_from_rtx): Clarify mode argument in function
1640 description. Correct order of mode/cmp_mode arguments in call to
1641 simplify_relational_operation. Check "tem" for COMPARISON_P.
1643 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
1644 David Edelsohn <edelsohn@gnu.org>
1647 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1648 synthetic vectors in memory.
1649 (function_arg_boundary): Align large synthetic vectors.
1650 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1652 2004-11-21 Jeff Law <law@redhat.com>
1654 * cfg.c (update_bb_profile_for_threading): Do not rescale the
1655 successor probabilities if they are not going to change. Pull
1656 division out of loop if we do need to rescale successor probabilities.
1658 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1659 index of the destination block for the hash value rather than
1662 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
1664 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
1665 checks for neither argument being an array or pointer (swapping
1666 the arguments if necessary), the array argument being a pointer to
1667 or array of functions and for -Wchar-subscripts warnings upfront.
1669 2004-11-20 Jeff Law <law@redhat.com>
1671 * regrename.c (copyprop_hardreg_forward): Only search for a
1672 previously processed block if the current block only has one
1675 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
1677 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1679 * config/arm/arm.c: Follow spelling conventions.
1681 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
1683 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1684 a bit in tune_flags.
1685 (const_double_needs_minipool): Likewise. Split most of the code out
1687 (arm_const_double_inline_cost): ... new function here.
1688 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1689 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1690 word constants of length 2, 3 and 4 insns respectively.
1691 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1692 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1693 constraints. Set insn lenghts accordingly.
1695 2004-11-19 Jeff Law <law@redhat.com>
1697 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1698 a hash table. Extensive modifications throughout to support
1701 (struct local_info): New.
1702 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1704 (redirection_data): Now a hashtable.
1705 (redirection_data_hash, redirection_data_eq): New.
1706 (lookup_redirection_data, create_duplicates): New.
1707 (create_edge_and_update_destionation_phis): New.
1708 (fixup_template_block, redirect_edges): New.
1709 (thread_block): Use hash table traversals instead of loops over
1710 varray entries or incoming edge vectors.
1712 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1714 * basic-block.h (edge_def): Add dest_idx.
1715 * cfg.c (unchecked_make_edge): Initialize dest_idx.
1716 (remove_edge): Simplify the disconnection of an edge from its
1718 (redirect_edge_succ): Likewise.
1719 * cfghooks.c (verify_flow_info): Check the consistency of
1720 dest_idx for each edge.
1722 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
1724 * simplify-rtx.c (simplify_ternary_operation): Use
1727 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1729 * tree-cfg.c (reinstall_phi_args): New.
1730 (tree_split_edge): Use it after redirecting an edge. Don't
1731 modify PHI_ARG_EDGE.
1733 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1735 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1736 if checking is enabled.
1738 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
1740 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1741 too many nested scopes.
1743 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1746 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1747 changed to suppoer uses-after-loop and to void creating flow paths
1748 that shouldn't exist.
1749 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1750 Modified to fit the new peeling scheme. Avoid quadratic behavior.
1751 (slpeel_add_loop_guard): Takes additional argument.
1752 (slpeel_verify_cfg_after_peeling): New function.
1753 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1754 documentation. Use 'exit-bb' instead of creating 'new-bb'.
1755 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1756 the new peeling scheme.
1757 (copy_phi_nodes): Function removed. Its functionality moved to
1758 update_phis_for_duplicate_loop.
1759 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1760 moved here. Added documentation. Modified to fit the new peeling scheme.
1761 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1762 needed - done in slpeel_tree_peel_loop_to_edge.
1763 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1764 (vect_do_peeling_for_loop_bound): Add documentation. Call
1765 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1766 with additional argument.
1767 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1769 (vect_finish_stmt_generation): Avoid 80 column oveflow.
1771 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1773 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1775 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1776 without last two arguments. Update single_exit of loops.
1777 (vect_update_niters_after_peeling): Removed. Its functionality was
1778 moved to vect_do_peeling_for_alignment.
1779 (vect_do_peeling_for_loop_bound): New name for function previously
1780 called vect_transform_for_unknown_loop_bound.
1781 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1782 instead of code that duplicates the same functionality.
1783 (vect_do_peeling_for_alignment): Functionality of
1784 vect_update_niters_after_peeling moved here.
1785 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1786 previously named vect_transform_for_unknown_loop_bound - for both known
1787 and unknown loop bound cases.
1789 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1791 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1792 previously called verify_loop_for_duplication. All conditions compacted
1793 into one compound condition. Removed debug dumps.
1794 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1795 functionality moved to vect_can_advance_ivs_p, and some to
1796 vect_analyze_loop_form.
1797 (vect_can_advance_ivs_p): New function. Contains functionality that was
1798 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1799 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1800 (vect_analyze_operations): Call vect_can_advance_ivs_p and
1801 slpeel_can_duplicate_loop_p.
1802 (vect_get_loop_niters): Added documentation.
1803 (vect_analyze_loop_form): Check the loop entry always - not only in case
1804 of unknown loop bound. Create preheader and exit bb if necessary. Apply
1805 a check that used to take place in
1806 vect_analyze_loop_with_symbolic_num_of_iters.
1807 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
1808 Remove redundant call to rewrite_into_loop_closed_ssa.
1809 (vect_compute_data_refs_alignment): Removed obsolete comment.
1811 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1813 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
1814 function previously called tree_duplicate_loop_to_edge.
1815 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
1816 previously called tree_duplicate_loop_to_edge_cfg.
1817 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
1819 (slpeel_update_phi_nodes_for_guard): Likewise.
1820 (slpeel_make_loop_iterate_ntimes): Likewise.
1821 (slpeel_add_loop_guard): Likewise.
1822 (allocate_new_names, free_new_names): Function declaration moved to top
1824 (rename_use_op, rename_def_op): Likewise.
1825 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
1826 (vect_generate_tmps_on_preheader): Function declaration moved.
1827 (vect_transform_for_unknown_loop_bound): Added missing function
1830 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
1833 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
1834 Define a VEC(tree_on_heap) for head.
1835 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1836 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1837 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
1838 the VEC(tree_on_heap) function. Also free it before returning.
1839 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1840 for block_defs_stack.
1841 (restore_currdefs_to_original_value): Use VEC_length instead of
1842 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1843 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1844 for block_defs_stack.
1845 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1846 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1847 for block_defs_stack.
1848 (ssa_register_new_def): Likewise.
1849 (ssa_rewrite_initialize_block): Likewise.
1850 (rewrite_finalize_block): Use VEC_length instead of
1851 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1852 (ssa_rewrite_finalize_block): Likewise.
1853 (register_new_def): Change second argument to be a VEC(tree_on_heap).
1854 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
1855 (rewrite_blocks): Initialize block_defs_stack with
1856 the VEC(tree_on_heap) function. Also free it before returning.
1857 (rewrite_ssa_into_ssa): Likewise.
1859 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
1861 * config/darwin.c (machopic_data_defined_p): return 1 for
1862 MACHOPIC_DEFINED_FUNCTION.
1864 2004-11-19 Jeff Law <law@redhat.com>
1866 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
1869 2004-11-19 Paul Brook <paul@codesourcery.com>
1872 * varasm.c (default_assemble_integer): Allow pointer-sized values.
1875 2004-11-19 Nick Clifton <nickc@redhat.com>
1877 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
1878 zero_extension and lshiftrt insns.
1879 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
1881 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
1882 to handle bp and bn insn patterns with a zero_extend rtx
1885 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
1887 * config/arm/arm.md (generic_sched): Make const.
1889 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1891 * emit-rtl.c (classify_insn): Make it static.
1892 * rtl.h: Remove the corresponding prototype.
1894 * integrate.c (has_func_hard_reg_initial_val,
1895 get_func_hard_reg_initial_val): Make them static.
1896 * integrate.h: Remove the corresponding prototypes.
1898 2004-11-19 Ben Elliston <bje@au.ibm.com>
1900 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
1901 (dw2_asm_output_delta_sleb128): Likewise.
1902 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
1903 (dw2_asm_output_delta_sleb128): Likewise.
1905 2004-11-19 Adam Nemet <anemet@lnxw.com>
1907 * tree-ssa-alias.c: Fix comment.
1909 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1911 * tree-outof-ssa.c: Fix a comment typo.
1913 2004-11-19 Ben Elliston <bje@au.ibm.com>
1915 * predict.h (predict_insn): Remove extern declaration.
1916 * predict.c (predict_insn): Make static.
1918 2004-11-19 Alan Modra <amodra@bigpond.net.au>
1920 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
1922 2004-11-18 Nicolas Pitre <nico@cam.org>
1924 * config/arm/arm.c (const_double_needs_minipool): New function to
1925 determine if a CONST_DOUBLE should be pushed to the minipool.
1926 (note_invalid_constants): Use it.
1928 2004-11-18 Paul Brook <paul@codesourcery.com>
1930 * config/arm/arm.c (target_float_switch): New variable..
1931 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
1932 target_float_switch.
1933 * config/arm/arm.h (target_float_switch): Declare.
1934 (ARM_FLAG_SOFT_FLOAT): Remove.
1935 (TARGET_SWITCHES): Remove hard-float and soft-float.
1936 (TARGET_OPTIONS): Add hard-float and soft-float.
1937 (TARGET_DEFAULT_FLOAT_ABI): Define.
1938 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
1939 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
1940 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
1941 * config/arm/netbsd-elf.h: Ditto.
1942 * config/arm/netbsd.h: Ditto.
1943 * config/arm/pe.h: Ditto.
1944 * config/arm/unknown-elf.h: Ditto.
1945 * config/arm/wince-pe.h: Ditto.
1946 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1947 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1948 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1950 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
1952 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
1953 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
1954 altivec_lvx_4sf): Rename and replace with ...
1955 (altivec_lvx_<mode>): ... mode macro version.
1956 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
1957 altivec_stvx_4sf): Rename and replace with ...
1958 (altivec_stvx_<mode>): ... mode macro version.
1959 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
1960 (mov<mode>): ... mode macro version.
1961 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
1962 *movv4sf_internal1): Replace with ...
1963 (*mov<mode>_internal): ... mode macro version.
1964 (get_vrsave_internal, *set_vrsave_internal, *save_world,
1965 *restore_world): Unquote output statements.
1966 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
1967 altivec_expand_st_builtin): Adjust insn names.
1969 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
1971 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
1973 (rs6000_override_options): Likewise.
1974 (spe_build_register_parallel): Handle complex doubles on e500v2.
1975 (rs6000_spe_function_arg): Likewise.
1976 (function_arg): Likewise.
1977 (rs6000_function_value): Likewise.
1978 (rs6000_libcall_value): Likewise.
1980 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
1982 * ifcvt.c (find_if_block): Move the check for the number of edges
1983 above the loops checking for complex edges.
1984 Remove the counting of edges as we use EDGE_COUNT now.
1986 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1988 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1989 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
1991 2004-11-18 Andreas Schwab <schwab@suse.de>
1993 * config/i386/i386.md (define_peephole2): Revert last change.
1995 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1997 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1998 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2000 2004-11-18 Diego Novillo <dnovillo@redhat.com>
2002 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2005 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
2007 * Makefile.in (macro_list): Depend on s-macro_list.
2008 (s-macro_list): New target.
2010 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2013 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2014 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2015 (fold_range_test): Adjust.
2016 (fold_truthop): Use it.
2017 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2018 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2020 2004-11-18 Uros Bizjak <uros@kss-loka.si>
2022 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2023 insn split constraint.
2024 (define_peephole2): Remove unneeded "&& 1" from peephole2
2027 2004-11-18 Ben Elliston <bje@au.ibm.com>
2029 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2030 element for bsi_prev; use @findex instead.
2032 2004-11-18 Ben Elliston <bje@au.ibm.com>
2034 * opts.h (add_input_filename): Remove extern declaration.
2035 * opts.c (add_input_filename): Make static.
2037 2004-11-17 Mark Mitchell <mark@codesourcery.com>
2039 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2042 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2044 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2045 * system.h: Poison it.
2046 * doc/tm.texi: Delete its documentation.
2048 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2049 Mark Mitchell <mark@codesourcery.com>
2051 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2052 * config/i386/i386.c (i386_solaris_elf_named_section): New
2054 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2055 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2057 (ASM_QUAD): Don't undefine for biarch targets.
2058 * config/i386/t-sol2: Introduce multilib support.
2060 2004-11-18 Ben Elliston <bje@au.ibm.com>
2062 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2064 2004-11-18 Ben Elliston <bje@au.ibm.com>
2066 * cgraph.h: Replace "it's" with "its" throughout.
2068 2004-11-18 Ben Elliston <bje@au.ibm.com>
2070 * doc/rtl.texi (Flags): Grammar fix.
2072 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2074 * expmed.c (alg_code): Add alg_unknown.
2075 (alg_hash_entry): New.
2076 (NUM_ALG_HASH_ENTRIES): Likewise.
2077 (alg_hash): Likewise.
2078 (synth_mult): Cache the result into alg_hash.
2080 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2082 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2083 config/rs6000/libgcc-ppc64.ver.
2085 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2087 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2088 checking if an unconditional return is followed by a barrier.
2090 * jump.c (condjump_p): Remove unreachable code.
2092 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2093 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2094 tree-ssa-live.h, tree.h: Remove unused prototypes.
2096 2004-11-17 Jeff Law <law@redhat.com>
2098 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2099 (edge_to_cases_elt): Renamed from edge_to_case_leader.
2100 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2101 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2102 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2103 (get_cases_for_edge): New function.
2104 (start_recording_case_labels, end_recording_case_labels): Similarly.
2105 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
2106 chain equivalent CASE_LABEL_EXPRs together.
2107 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2108 (make_switch_expr_edges): Do not record edge/cases here.
2109 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2110 (split_critical_edges): Record cases around the edge splitting code.
2111 (cleanup_dead_labels): Use CASE_LABEL again.
2112 (tree_redirect_edge_and_branch): If we have a mapping from edge
2113 to cases, use it to handle redirections. Else do it the slow way.
2114 * tree.h (CASE_LEADER_OR_LABEL): Kill.
2115 (CASE_LABEL): Revert to just looking at the tree's second operand.
2116 * tree.c (get_case_label): Kill.
2118 2004-11-17 Diego Novillo <dnovillo@redhat.com>
2120 PR tree-optimization/18307
2121 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2122 'orig' are the same node.
2123 (collect_points_to_info_r): Do not call merge_pointed_to_info
2124 when the PHI argument is identical to the LHS.
2126 2004-11-17 Steven Bosscher <stevenb@suse.de>
2128 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2129 to insert the exit or entry block.
2130 (ssa_prop_init): Use add_control_edge to seed the algorithm.
2132 2004-11-16 Zack Weinberg <zack@codesourcery.com>
2134 * mkmap-flat.awk, mkmap-symver.awk: If the last version
2135 assigned to a symbol was '%exclude', do not emit it anywhere.
2136 If leading_underscore is true, prefix all symbols from the
2137 version scripts with a leading underscore before comparing
2138 them with nm output or emitting them. Remove support for dot
2140 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2141 (SHLIB_MAPFILES): Use libgcc-std.ver.
2142 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2143 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2144 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2145 libgcc-excl.ver and libgcc-glibc.ver.
2147 * config/sh/libgcc-excl.ver: New file.
2148 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2150 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2152 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2153 the test when the edge has the opposite meaning, not when
2154 the first argument is invariant.
2156 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
2158 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2160 (rs6000_complex_function_value): Handle e500 v2 variant.
2162 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2164 Fix PR tree-optimization/18519
2166 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2167 * tree-pass.h: Add TODO_cleanup_cfg.
2168 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2169 (ccp_finalize): Remove call to cleanup_cfg.
2170 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2171 (pass_cd_dce): Ditto.
2172 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2173 dump_function_to_file.
2174 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2176 (pass_ch): Add TODO_cleanup_cfg.
2177 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2179 (pass_loop_done): Add TODO_cleanup_cfg.
2180 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2181 (tree_ssa_phiopt): Remove call to cleanup_cfg.
2183 2004-11-16 Devang Patel <dpatel@apple.com>
2185 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2187 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2189 * expmed.c, ra-colorize.c: Fix comment typos.
2191 * doc/tm.texi: Fix typos.
2193 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2194 Mark Mitchell <mark@codesourcery.com>
2197 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2200 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2202 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2203 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2205 2004-11-16 Devang Patel <dpatel@apple.com>
2207 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2209 2004-11-16 Eric Christopher <echristo@redhat.com>
2211 * config/mips/mips.c: Use rtl _P predicates.
2212 * config/mips/mips.h: Ditto.
2213 * config/mips/mips.md: Ditto.
2215 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2217 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2220 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2222 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2223 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2225 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2228 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2229 before and after the insns for getting GOT address in non-PIC
2230 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2233 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2235 * gcc/cse.c (struct change_cc_mode_args): New structure.
2236 (cse_change_cc_mode_insn): New function.
2237 (cse_change_cc_mode): Use validate_change to perfom changes.
2238 (cse_change_cc_mode_insns, cse_condition_code_reg):
2239 Call cse_change_cc_mode_insn.
2241 2004-11-16 Steven Bosscher <stevenb@suse.de>
2245 2004-11-16 Steven Bosscher <stevenb@suse.de>
2247 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2249 2004-11-15 Dale Johannesen <dalej@apple.com>
2251 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2253 2004-11-15 Dale Johannesen <dalej@apple.com>
2255 * profile.c (compute_branch_probabilities): Prevent
2256 crash with EH in RTL-based profiling.
2258 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2260 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2262 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2263 * tree-ssa-dom.c (thread_across_edge): Likewise.
2264 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2265 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2268 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2269 (tree_flow_call_edges_add): Update the call to
2270 bsi_commit_edge_inserts.
2271 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2272 * profile.c (branch_prob): Likewise.
2273 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2274 * tree-sra.c (scalarize_function): Likewise.
2275 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2276 * tree-ssa-pre.c (fini_pre): Likewise.
2277 * tree-flow.h: Update the prototype for
2278 bsi_commit_edge_inserts.
2280 2004-11-15 Eric Christopher <echristo@redhat.com>
2282 * sched-deps.c (set_sched_group_p): Delete.
2283 (delete_all_dependencies): New function.
2284 (fixup_sched_groups): Use. New function.
2285 (sched_analyze_insn): Use.
2287 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2289 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2290 RROTATE_EXPR or unknown code.
2291 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2292 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2293 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2296 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2299 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2300 after processing the declarator.
2302 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2304 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2306 (altivec_vspltb): Same.
2307 (altivec_vspltw): Same.
2308 (altivec_vspltisb): Same.
2309 (altivec_vspltish): Same.
2310 (altivec_vspltisw): Same.
2311 (altivec_vspltisw_v4sf): Same.
2312 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2314 Move "End of vector xor's" comment to the right place.
2316 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2318 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2319 instead of nonimmediate_operand.
2321 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2323 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2324 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2325 * config/sol2.c (solaris_output_init_fini): Update calls to
2326 ASM_OUTPUT_CALL. Include "rtl.h".
2328 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2330 * config/sol2-c.c (cmn_err_char_table): Add "p".
2332 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2334 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2335 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2337 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2339 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2340 within the multilib directory.
2342 2004-11-15 Nick Clifton <nickc@redhat.com>
2344 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2345 builtin assert of cpu=xstormy16.
2347 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2349 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2352 2004-11-14 Richard Henderson <rth@redhat.com>
2355 * calls.c (struct arg_data): Add parallel_value.
2356 (precompute_register_parameters): Set it.
2357 (load_register_parameters): Use it.
2358 (store_one_arg): Also set it here.
2360 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2362 PR tree-optimization/18431
2363 * fold-const.c (associate_trees): Do not produce x + 0.
2364 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2366 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2368 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2369 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2371 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2373 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2375 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2377 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2378 value-prof.c: Fix comment typos.
2380 2004-11-14 Stan Shebs <shebs@apple.com>
2382 Basic ABI changes for passing structs by value in 64-bit Darwin.
2383 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2384 (rs6000_override_options): Set it for 64-bit Darwin.
2385 (rs6000_parse_abi_options): Add testing options to change it.
2386 (rs6000_return_in_memory): Test whether the type is one
2387 that can be passed in registers.
2388 (darwin64_function_arg_advance): New.
2389 (function_arg_advance): Call it, plus add recursion depth
2390 argument and test when counting off arguments.
2391 (rs6000_darwin64_function_arg): New.
2392 (function_arg): Call it.
2393 (setup_incoming_varargs): Add argument to function_arg_advance.
2394 (rs6000_darwin64_function_value): New.
2395 (rs6000_function_value): Call it.
2396 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2397 * config/rs6000/rs6000-protos.h: Update decl of
2398 function_arg_advance.
2400 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
2403 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2404 support TImode before adding __int128_t and __uint128_t types.
2406 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2409 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2410 (vect_transform_loop_bound): Set loop->nb_iterations.
2412 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2413 Andrew Pinski <pinskia@physics.uc.edu>
2416 * tree-vectorize.c (vect_build_loop_niters): Do not insert
2417 NULL into the instruction stream. Initialize new_bb to NULL.
2418 (vect_update_ivs_after_vectorizer): Likewise.
2419 (vect_gen_niters_for_prolog_loop): Likewise.
2421 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2423 PR tree-optimization/18431
2424 * tree-flow.h (stmt_references_memory_p): Declare.
2425 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2426 * tree-ssa.c (stmt_references_memory_p): New function.
2428 2004-11-14 Andreas Schwab <schwab@suse.de>
2430 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2433 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2435 * c-common.c (walk_stmt_tree): Remove.
2436 * c-common.h: Remove the corresponding prototype.
2438 * emit-rtl.c (push_to_full_sequence): Remove.
2439 * rtl.h: Remove the corresponding prototype.
2441 * cselib.c, expr.c: Fix comment typos.
2443 2004-11-13 Richard Henderson <rth@redhat.com>
2445 * calls.c (precompute_register_parameters): Force all PARALLELs
2446 into pseudo registers.
2447 (load_register_parameters): Copy PARALLELs into hard registers.
2448 * function.c (assign_parm_setup_block): Copy PARALLELS into
2449 pseudo registers. Do emit_group_store in conversion_insns.
2450 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2451 tmps as an argument. Move final copy loop ...
2452 (emit_group_load): ... here. New function.
2453 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2454 * expr.h: Declare them.
2456 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2458 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2459 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2460 with PHI_CHAIN where appropriate.
2462 2004-11-13 Dale Johannesen <dalej@apple.com>
2464 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2465 (tree_block_label): Ditto.
2466 (flush_pending_stmts): Ditto.
2467 (insert_edge_copies): Ditto.
2468 (expr_invariant_in_loop_p): Ditto.
2469 (TDF_USE_OPS): Parenthesize definition.
2470 (TDF_USE_VOPS): Ditto.
2472 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2474 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2475 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2477 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2479 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2481 * config/i386/i386.c (override_options): Move loop to set default
2482 tuning to correct place.
2484 2004-11-13 Zak Kipling <zak@transversal.com>
2487 * config/i386/i386.c (classify_argument): Fix infinite loop when
2488 passing object with 3 or more base classes by value.
2490 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2492 * doc/md.texi (constraints) <% modifier>: Mention that it is
2493 useless when the two alternatives are strictly identical.
2495 2004-11-13 Richard Henderson <rth@redhat.com>
2497 * expmed.c (extract_split_bit_field): Temporarily disable call to
2498 extract_force_align_mem_bit_field.
2500 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2502 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2505 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2506 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2507 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2509 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2511 * doc/install.texi (automake): Correctly document that everything now
2512 will use automake 1.9.3.
2514 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2517 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2518 TImode. Sorry for other non-complex larger-than-64-bit modes.
2519 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2521 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2523 * doc/install.texi (automake): Document that everything now uses 1.9.
2525 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2527 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2530 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2532 * tree.h: Fix comment typos.
2534 2004-11-13 Steven Bosscher <stevenb@suse.de>
2536 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2537 HARD_REGISTER_NUM_P.
2539 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2540 * flow.c (mark_set_1): Likewise.
2542 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2543 duplicate_eh_regions): Remove.
2544 * except.h (duplicate_eh_regions): Remove prototype.
2545 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2546 global_const_equiv_varray): Remove.
2547 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2548 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2549 extern declaration, and #define.
2550 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2551 (struct inline_remap): Remove.
2552 * varray.c (struct element): Remove entry for const_equiv_data.
2553 * varray.h (struct const_equiv_data): Remove.
2554 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2555 (union varray_data_tag) <const_equiv>: Remove.
2556 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2557 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2559 * regstack.c (record_label_references): Remove unused function.
2561 * rtl.def (VALUE): Update comment.
2562 (LABEL_REF): Remove unused operand 2.
2563 * rtl.h (struct rtx_def): Update for removed accessor macros.
2564 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2565 REG_LOOP_TEST_P): Remove.
2566 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2567 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2568 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2570 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2571 Eric Botcazou <ebotcazou@libertysurf.fr>
2574 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2576 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2577 (V32I): New macro for 32-bit modes.
2578 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2579 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2580 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2581 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2582 one_cmpldi_sp64): Use V64I instead of DI.
2583 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2584 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2585 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2586 (nandv64i_vis, nandv32i_vis): New patterns.
2588 2004-11-12 Mike Stump <mrs@apple.com>
2590 * Makefile.in: Add html support.
2591 * java/Make-lang.in: Likewise.
2592 * fortran/Make-lang.in: Likewise.
2593 * treelang/Make-lang.in: Likewise.
2594 * doc/install.texi: Likewise.
2595 * doc/makefile.texi: Likewise.
2596 * doc/sourcebuild.texi: Likewise.
2598 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2600 * tree-ssa-loop-manip.c: Fix a comment typo.
2602 2004-11-12 Mike Stump <mrs@apple.com>
2604 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2605 renaming this node to Concept Index.
2606 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2607 to more closely match gcc.texi.
2609 2004-11-12 Jeff Law <law@redhat.com>
2611 * tree-cfg.c (hashtab.h): Include.
2612 (struct edge_to_case_leader_elt): New structure.
2613 (edge_to_case_leader): New.
2614 (edge_to_case_leader_hash): New hashtable hasing function.
2615 (edge_to_case_leader_eq): New hashtable equality function.
2616 (record_switch_edge): New function.
2617 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2618 (make_switch_expr_edges): Build the edge-to-case-leader
2619 hash table. Tear down the hash table when we're done.
2620 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2622 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2623 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2624 to use new concept of case leaders to reduce overhead of
2625 redirecting outgoing edges from switch statements.
2626 * tree.c (get_case_label): New function.
2627 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2628 (CASE_LEADER_OR_LABEL): Define.
2630 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2632 * varasm.c (output_addressed_constants): For CONST_DECLs,
2633 output the initializer if present.
2635 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2637 * config/rs6000/darwin.h: Fix confusing typo in comment.
2639 2004-11-12 Devang Patel <dpatel@apple.com>
2641 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2643 2004-11-12 Devang Patel <dpatel@apple.com>
2645 * tree-if-conv.c (clean_predicate_lists): Use loop header
2648 2004-11-12 Richard Henderson <rth@redhat.com>
2651 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2652 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2653 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2654 * config/i386/i386-modes.def (XF): Use it.
2656 2004-11-11 Geoffrey Keating <geoffk@apple.com>
2658 * Makefile.in (macro_list): Use move-if-change to avoid spurious
2661 2004-11-12 Mark Mitchell <mark@codesourcery.com>
2664 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2665 when deciding whether to pass a variable to
2666 cgraph_varpool_finalize_decl or assemble_variable.
2667 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2669 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
2671 * tree-vectorizer.c: Fix a comment typo.
2673 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2675 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2677 2004-11-12 Diego Novillo <dnovillo@redhat.com>
2679 * tree-scalar-evolution.c (analyzable_condition): Remove
2680 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2682 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2684 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2685 Remove m505/roe multilib variant.
2687 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2689 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2690 to load from the stack.
2692 2004-11-12 Richard Henderson <rth@redhat.com>
2694 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2695 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2696 * toplev.h (FL2T__): Remove.
2697 (CLZ_HWI): Rename from FL2T_CLZ__.
2699 (floor_log2): Simplify.
2702 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2704 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2705 compute the first overlapping iterations.
2707 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2710 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2711 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2713 2004-11-12 Steven Bosscher <stevenb@suse.de>
2715 PR tree-optimization/18419
2716 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2717 pointer set instead of a bitmap.
2718 (walk_use_def_chains): Create, pass and clean up that pointer_set.
2720 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2722 (init_alias_info): Allocate and zero it here.
2723 (delete_alias_info): Delete it here.
2724 (collect_points_to_info_for): Use it.
2726 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2728 * alias.c (record_alias_subset, addr_side_effect_eval):
2730 * alias.h: Remove the prototype for record_alias_subset.
2731 * expr.h: Remove the commented-out prototype for
2732 record_alias_subset.
2733 * rtl.h: Remove the prototype for addr_side_effect_eval.
2735 * cfglayout.c (choose_inner_scope): Make it static.
2736 * rtl.h: Remove the corresponding prototype.
2738 * cfgloopmanip.c (update_single_exits_after_duplication,
2739 unloop): Make them static.
2740 * cfgloop.h: Remove the corresponding prototypes.
2742 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2744 * c-tree.h: Remove the corresponding prototypes.
2746 * explow.c (round_push): Make it static.
2747 * expr.h: Remove the corresponding prototype.
2749 * varasm.c (get_named_section_flags, decl_tls_model): Make
2751 * output.h: Remove the prototype for get_named_section_flags.
2752 * tree.h: Remove the prototype for decl_tls_model.
2754 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2756 * function.c (expand_function_end): Remove an "if" statement
2757 that always triggers.
2758 * stmt.c (expand_null_return_1): Likewise.
2760 2004-11-11 James E. Wilson <wilson@specifixinc.com>
2762 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2763 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2764 CLASS_MAX_NREGS): Likewise.
2766 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
2768 PR tree-optimization/17742
2769 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2770 MINUS_EXPR correctly.
2772 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
2774 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2775 Give up as soon as the evolution is known not computable.
2777 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2780 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2781 mask64_1or2_operand.
2782 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2783 to spot rlwinm opportunities.
2784 (and64_2_operand): Use mask_1or2_operand.
2785 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2787 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
2789 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2790 (vect_update_ivs_after_vectorizer): Update function documentation.
2791 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2793 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2795 * config/arm/arm.c: Fix a comment typo.
2797 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2799 * bitmap.h (nBITMAP_WORD_BITS): Remove.
2800 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
2801 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
2803 (bitmap_first_set_bit): Return unsigned, use ctzl.
2804 (bitmap_last_set_bit): Remove.
2805 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
2807 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
2808 remove special case code for two word elements.
2809 (bitmap_last_set_bit): Remove.
2810 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
2811 bitmap_first_set_bit with bitmap_empty_p.
2812 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
2813 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
2814 bitmap_last_bit_set.
2816 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2819 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
2822 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
2823 unsigned equality compare when we know the operands are unsigned.
2825 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
2827 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
2828 __PIC__ and __pic__ only if TARGET_ABICALLS.
2829 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
2830 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
2831 -KPIC only if not -mno-abicalls.
2833 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
2834 * config/sparc/linux.h, config/sparc/linux64.h
2835 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
2837 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
2838 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
2839 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
2840 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
2842 2004-11-11 Paul Brook <paul@codesourcery.com>
2844 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
2845 register if current_function_uses_pic_offset_table is set.
2847 2004-11-10 David Edelsohn <edelsohn@gnu.org>
2849 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
2850 Change multi-instruction sequences to new attribute.
2851 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
2852 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
2853 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
2855 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
2857 * tree-data-ref.c (build_classic_dist_vector): If either loop
2858 is outside of the nest we asked about, the dependence can't
2860 (build_classic_dir_vector): Ditto.
2862 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
2864 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
2866 (force_var_cost): Determine cost of addition and multiplication more
2868 (get_computation_cost_at): Add cost for computing address elements to
2871 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
2872 one of the arguments of MINUS_EXPR is an address.
2873 (split_address_to_core_and_offset): New function.
2874 (ptr_difference_const): Handle case when one of the operands is a
2876 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
2877 (ptr_difference_cost): Pass addresses instead of objects to
2878 ptr_difference_const.
2880 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
2882 * tree.c (tree_check_failed): Emit general error if the list of
2883 node types is empty.
2885 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
2887 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
2888 argument. When the union is passed in the 6th slot, build a
2889 PARALLEL with only one element.
2890 (function_arg): Adjust call to function_arg_union_value.
2891 (function_value): Likewise.
2893 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
2895 PR tree-optimization/17892
2896 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
2897 MINUS_EXPR operator.
2899 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
2902 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
2903 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
2905 2004-11-10 Steven Bosscher <stevenb@suse.de>
2907 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
2908 (struct basic_block_def): Remove local_set and cond_local_set
2909 fields. Update comment for global_live_at_start.
2910 * flow.c (calculate_global_regs_live): Allocate local_sets and
2911 cond_local_sets here as arrays of bitmaps previously stored in
2912 bb->local_set and bb->cond_local_set. Use xmalloc instead of
2913 obstack allocated bitmaps.
2915 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
2918 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
2921 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
2923 2004-11-09 Jeff Law <law@redhat.com>
2925 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
2926 argument holding last unvisited block. Start search for
2927 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
2928 (connect_infinite_loops_to_exit): Supply last unvisited block
2929 to flow_dfs_compute_reverse_execute.
2931 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
2933 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
2935 (floatunssidf2): Same.
2937 ("extendsfdf2"): New expander.
2938 (*extendsfdf2_fpr): Rename.
2939 (*truncdfsf2_fpr): Same.
2940 (*negdf2_fpr): Same.
2941 (*absdf2_fpr): Same.
2942 (*nabsdf2_fpr): Same.
2943 (*adddf3_fpr): Same.
2944 (*subdf3_fpr): Same.
2945 (*muldf3_fpr): Same.
2946 (*divdf3_fpr): Same.
2948 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
2949 ("spe_fix_truncdfsi2"): Same.
2950 (spe_floatunssidf2): Same.
2951 (spe_floatsidf2): Same.
2953 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
2956 * c-common.c (fname_decl): Don't use line number of decl in
2959 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
2961 * config/s390/s390-protos.h (s390_pool_operand): Remove.
2962 * config/s390/s390.c (s390_pool_operand): Likewise.
2963 (s390_extra_constraint_str): Handle 'B' constraints.
2964 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
2965 * config/s390/s390.md: Document 'B' constraints.
2966 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
2967 s390_pool_operand to prevent insns with two literal pool
2968 references. Make pattern commutative.
2969 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
2970 'B' constraint instead of s390_pool_operand.
2972 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2974 * tree-cfg.c (create_bb): Remove unnecessary memset.
2976 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2978 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
2979 (thread_block): Call flush_pending_stmt instead of
2982 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2984 * loop-iv.c (iv_number_of_iterations): Make it static.
2985 * cfgloop.h: Remove the corresponding prototype.
2987 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2989 * function.c (combine_temp_slots, assign_parms,
2990 expand_pending_sizes): Make them static.
2991 * tree.h: Remove the corresponding prototypes.
2993 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
2995 * emit-rtl.c (copy_most_rtx): Remove.
2996 * rtl.h: Remove the corresponding prototype.
2998 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3000 * cfgloop.c (flow_loops_update): Remove.
3001 * cfgloop.h: Remove the corresponding prototype.
3003 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3005 * conflict.c (mark_reg, conflict_graph_compute): Remove.
3006 * basic-block.h: Remove the prototype for
3007 conflict_graph_compute.
3009 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3011 * tree-if-conv.c (add_to_dst_predicate_list): Change the
3012 second argument to basic_block.
3013 (tree_if_convert_cond_expr): Update call sites.
3015 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3017 * fold-const.c (pedantic_non_lvalue): Make it static.
3018 * tree.h: Remove the corresponding prototype.
3020 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3022 * optabs.c (prepare_operand): Make it static.
3023 * optabs.h: Remove the corresponding prototype.
3025 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3027 * reload1.c (reloads_conflict, gen_reload): Make them static.
3028 * reload.h: Remove the corresponding prototypes.
3030 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3032 * reload.c (refers_to_mem_for_reload_p,
3033 refers_to_regno_for_reload_p): Make them static.
3034 * reload.h: Remove the corresponding prototypes.
3036 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3037 Eric Botcazou <ebotcazou@libertysurf.fr>
3040 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3041 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3042 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3043 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3044 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3045 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3046 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3047 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3048 MODE_VECTOR_INT modes.
3049 (sparc_extra_constraint_check): Add new constraint 'Y'.
3050 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3051 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3052 (V64): New mode macro for 64-bit modes.
3053 (movsf): Use V32 for mode instead of SF.
3054 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
3055 alongside 'G' constraint.
3056 (movdf): Use V64 for mode instead of DF.
3057 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3058 of DF. Add 'Y' constraint alongside 'G' constraint.
3059 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3062 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3064 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3065 integer NEG and ABS.
3066 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3067 ("*negdi2_31"): Reimplement using a splitter.
3068 ("*negdi2_cc", "*negdi2_cconly"): New insns.
3069 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3070 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3071 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3072 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3073 ("*absdi2_cc", "*absdi2_cconly"): New insns.
3074 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3075 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3076 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3077 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3078 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3079 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3080 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3081 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3082 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3084 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3086 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3087 when eliminating an UNSPEC_CMPINT.
3088 (s390_secondary_input_reload_class): Fix test for CC register reload.
3089 (s390_secondary_output_reload_class): Likewise.
3090 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
3091 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3092 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3093 insn patterns with splitters.
3095 2004-11-09 David Edelsohn <edelsohn@gnu.org>
3097 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3098 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3100 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3102 * tree-phinodes.c (phi_reverse): New.
3103 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3105 * tree-flow.h: Add a prototype for phi_reverse.
3107 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3109 * tree-ssa-loop-ivopts.c: Fix a comment typo.
3111 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3114 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
3117 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3119 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
3120 instead of "arg" in diagnostics.
3122 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3124 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
3125 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
3126 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
3127 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
3128 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
3129 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
3130 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
3131 config/iq2000/iq2000.c, config/m32r/m32r.c,
3132 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
3133 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
3134 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
3135 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
3136 config/sh/symbian.c, config/stormy16/stormy16.c,
3137 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
3138 and %> as appropriate. Use %' as apostrophe in diagnostics where
3139 applicable. Use %< and %> in place of '' quotes where applicable.
3140 Use %qs in place of %<%s%>. Consistently quote __builtin function
3143 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
3145 * gdbinit.in (pbb, pbm): New macros.
3147 2004-11-08 Jeff Law <law@redhat.com>
3149 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
3150 implementing it inline.
3152 * cfganal.c (find_edge): Search pred->succs or succ->preds,
3153 whichever is shorter.
3155 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3157 * passes.c (rest_of_handle_jump): Remove dead code.
3159 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3161 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
3162 the last used element in the worklist.
3164 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3166 * tree-inline.c (remap_save_expr): Make it static.
3167 * tree-inline.h: Remove the corresponding prototype.
3169 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3171 * tree-ssa-loop-niter.c (upper_bound_in_type,
3172 lower_bound_in_type): Make them static.
3173 * tree.h: Remove the corresponding prototypes.
3175 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3177 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
3179 * tree-ssa-live.h: Remove the corresponding prototypes.
3181 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3183 * tree-if-conv.c (tree_if_conversion): Make it static.
3184 * tree-flow.h: Remove the corresponding prototype.
3186 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3188 * tree-ssa-operands.c (build_ssa_operands): Make it static.
3189 * tree-flow.h: Remove the corresponding prototype.
3191 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
3194 * tree-inline.c (copy_body_r): Change "t = t" to empty
3195 statement instead of "t".
3197 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3199 * modulo-sched.c (create_partial_schedule,
3200 free_partial_schedule, reset_partial_schedule,
3201 ps_add_node_check_conflicts, rotate_partial_schedule): Make
3204 2004-11-08 Richard Henderson <rth@redhat.com>
3206 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
3209 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3211 * sched-deps.c (add_insn_mem_dependence): Make it static.
3212 * sched-int.h: Remove the corresponding prototypes.
3214 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3216 * flow.c (allocate_bb_life_data): Make it static.
3217 * basic-block.h: Remove the corresponding prototype.
3219 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3221 * calls.c (split_complex_values, split_complex_types): Make
3223 * expr.h: Remove the corresponding prototypes.
3225 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
3227 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
3228 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3230 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3232 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
3233 statements that always trigger.
3235 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3237 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
3238 tree-scalar-evolution.c, tree-ssa-loop-im.c,
3239 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
3240 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
3243 2004-11-08 Ben Elliston <bje@au.ibm.com>
3245 * cgraph.h (cgraph_calls_p): Remove.
3246 * cgraph.c (cgraph_calls_p): Likewise.
3248 * varray.h (varray_copy): Remove.
3249 * varray.c (varray_copy): Likewise.
3251 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
3254 * config/darwin.c (machopic_indirect_data_reference):
3255 Call gen_macho_high and gen_macho_low instead of
3256 checking the mode and calling gen_macho_high_di directly.
3257 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3258 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
3260 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
3261 load_macho_picbase, macho_low, macho_high): Removed.
3262 (builtin_setjmp_receiver): Call gen_macho_high and
3263 gen_macho_low instead of checking the mode and calling
3264 gen_macho_high_di directly.
3265 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
3266 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
3267 Moved from rs6000.md.
3268 (macho_high): New expander.
3269 (macho_high_si): Renamed version of macho_high from rs6000.md.
3270 (macho_low): New expander.
3271 (macho_low_si): Renamed version of macho_low from rs6000.md.
3272 (load_macho_picbase): New expander.
3273 (load_macho_picbase_si): Renamed version of load_macho_picbase
3275 (macho_correct_pic): New expander.
3276 (macho_correct_pic_si): Renamed version of macho_correct_pic
3279 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3281 * c-decl.c (finish_struct): Use complete sentences for diagnostic
3282 for structures or unions with no members or named members.
3284 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3286 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
3287 taking address of bit-field by assertion.
3289 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3291 * config/s390/s390.md (attribute "op_type"): Default to "NN".
3292 (attribute "atype"): Default to "agen".
3293 (attribute "length"): Default to 6.
3294 (define_asm_attibutes): Remove.
3295 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3296 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
3297 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
3298 Do not set type attribute to "cs" where already default.
3299 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
3301 Do not set type attribute to "other" where already default.
3302 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
3303 "*strlendi", "*strlensi",
3304 "*movmem_long_64", "*movmem_long_31",
3305 "*clrmem_long_64", "*clrmem_long_31",
3306 "*cmpmem_long_64", "*cmpmem_long_31",
3307 "*cmpint_si", "*cmpint_di",
3308 "addti3", "*adddi3_31z", "*adddi3_31",
3309 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3310 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3311 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3312 "*pool_entry", "pool_align", "pool_section_start",
3313 "pool_section_end", "main_pool", "reload_base_31", "pool"):
3314 Do not set op_type attribute to "NN" where already default.
3315 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3316 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3317 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3318 Do not set atype attribute to "agen" where already default.
3319 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3321 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3323 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3325 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3328 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3329 R3000 and R4000 macros on IRIX.
3331 2004-11-06 Andreas Schwab <schwab@suse.de>
3334 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3337 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3339 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3341 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3343 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
3344 matches no insns already matched by other reservations.
3345 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
3346 matches no insns already matched by other reservations.
3347 ("x_ss"): Remove, replace by ...
3348 ("x_cs"): ... this new reservation. Check type instead of op_type.
3349 Update bypasses to use x_cs instead of x_ss.
3350 ("x_nn"): Remove, replace by ...
3351 ("x_other"): ... this new reservation. Check type instead of op_type.
3352 Add x_other and x_branch to bypasses.
3353 ("x_vs"): New reservation.
3354 * config/s390/s390.md (attribute "type"): Default according to op_type.
3355 ("*execute"): Set type to "cs".
3357 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3359 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
3360 if we are in GIMPLE.
3362 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
3364 PR rtl-optimization/17933
3365 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
3366 (covers_regno_p): New function. Handle SETs of PARALLEL,
3367 and defer the rest to...
3368 (covers_regno_no_parallel_p): New function.
3370 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3372 * config/sparc/sparc.c (function_arg_record_value_1): Skip
3373 fields with zero length.
3374 (function_arg_record_value_2): Likewise.
3375 (function_arg_record_value_3): Use smallest_mode_for_size
3376 instead of mode_for_size.
3377 (function_arg_union_value): Return naked register for unions
3380 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3382 * config/sparc/sparc.c (scan_record_type): Handle vector types.
3383 (function_arg_slotno): Handle vector types specially.
3384 (function_arg_record_value_1): Split fields with vector type and
3385 BLKmode into their subparts.
3386 (function_arg_record_value_2): Likewise. Be prepared to handle
3387 more than 2 registers per field.
3388 (function_arg_union_value): Increment regno inside the loop.
3389 (function_arg_vector_value): New function.
3390 (function_arg): Use it to split fields with vector type and
3391 BLKmode into their subparts and build a PARALLEL. Treat
3392 other vector types like floats.
3393 (function_value): Likewise.
3394 (sparc_pass_by_reference): Handle vector types.
3395 (sparc_return_in_memory): Likewise.
3397 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3399 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
3400 statement that never triggers.
3402 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3404 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
3405 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
3406 ("x_fdivd"): Use also for fsqrtd type.
3407 ("x_fdivs"): Use also for fsqrts type.
3408 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
3409 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
3410 ("fix_truncdfsi2_ibm"): Set type to "other".
3411 ("floatdidf2", "floatdisf2"): Do not clobber CC.
3412 ("floatsidf2", "floatsidf2_ieee"): Likewise.
3413 ("floatsisf2", "floatsisf2_ieee"): Likewise.
3414 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
3415 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
3417 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
3418 ("sqrtdf2"): Set type to "fsqrtd".
3419 ("sqrtsf2"): Set type to "fsqrts".
3421 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3423 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
3424 pointer to the last PHI node in the new PHI chain.
3426 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
3428 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
3429 for non-PIC TLS_MODEL_INITIAL_EXEC case.
3431 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3433 * expmed.c: Fix a comment typo.
3435 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3438 * config/i386/cygming.h
3439 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3441 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3443 * config/sh/sh4a.md: Fix copyright.
3445 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3447 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3450 2004-11-05 David Edelsohn <edelsohn@gnu.org>
3452 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3453 when carry not used. Suggested by Torbjorn Granlund.
3455 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3456 operand[1] unnecessarily. Suggested by Eric Christopher.
3457 (rs6000_adjust_cost): Increase latency of store to wider load.
3458 (rs6000_rtx_costs): mulli only allows 16-bit constants.
3460 2004-11-05 Stan Shebs <shebs@apple.com>
3462 * config/rs6000/rs6000.c (machopic_output_stub): Output
3463 ldu instead of lwzu for 64-bit stubs.
3465 2004-11-05 Richard Henderson <rth@redhat.com>
3467 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case