1 2006-04-22 Frank Ch. Eigler <fche@redhat.com>
4 * common.opt (flag_mudflap_threads): Overload flag_mudflap.
5 * tree-mudflap.c (flag_mudflap_threads): Derive from flag_mudflap.
7 2006-04-22 Kazu Hirata <kazu@codesourcery.com>
9 * config/soft-fp/op-common.h, double-int.h, tree-ssa-dom.c:
11 * doc/tm.texi: Fix a typo.
13 2006-04-21 Geoffrey Keating <geoffk@apple.com>
15 * dwarf2out.c (struct die_struct): Document that die_sib makes
16 a circular linked list.
17 (FOR_EACH_CHILD): New.
18 (reverse_die_lists): Delete.
19 (reverse_all_dies): Delete.
20 (add_dwarf_attr): Correct documentation.
21 (remove_child_with_prev): New.
22 (remove_child_TAG): Update for change to die_struct, use
23 remove_child_with_prev.
24 (add_child_die): Update for change to die_struct.
25 (splice_child_die): Use remove_child_with_prev and add_child_die.
26 (print_die): Use FOR_EACH_CHILD.
27 (die_checksum): Likewise.
28 (assign_symbol_names): Likewise.
29 (output_location_lists): Likewise.
30 (build_abbrev_table): Likewise.
31 (calc_die_sizes): Likewise.
32 (mark_dies): Likewise.
33 (unmark_dies): Likewise.
34 (unmark_all_dies): Likewise.
35 (output_die): Likewise.
36 (prune_unused_types_mark): Likewise.
37 (prune_unused_types_walk): Likewise.
38 (same_die_p): Update for change to die_struct.
39 (break_out_includes): Likewise.
40 (prune_unused_types_prune): Likewise.
41 (add_sibling_attributes): Use FOR_EACH_CHILD, simplify logic.
42 (prune_unmark_dies): Use FOR_EACH_CHILD, don't clear die_mark if
44 (dwarf2out_finish): Don't call reverse_all_dies.
46 2006-04-21 Eric Christopher <echristo@apple.com>
48 * df-core.c, tree-outof-ssa.c, config/i386/i386.c: Fix typos
49 in comments and function names.
51 2006-04-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
54 * c-typeck.c (digest_init): Robustify.
56 * c-typeck.c (pop_init_level): Simplify.
58 2006-04-21 Steve Ellcey <sje@cup.hp.com>
60 * config/pa/t-pa64: Add dependencies on $(GCC_PASSES).
62 2006-04-21 Paul Brook <paul@codesourcery.com>
64 * config/arm/arm.c (arm_override_options): Error on iWMMXt and
65 hardware floating point.
67 2006-04-21 David Edelsohn <edelsohn@gnu.org>
69 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Add sfp to
72 2006-04-21 Nick Clifton <nickc@redhat.com>
74 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Include
77 2006-04-21 Alan Modra <amodra@bigpond.net.au>
80 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
81 C++ lang type in traceback table for Objective-C++.
83 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Update comment.
85 2006-04-20 H.J. Lu <hongjiu.lu@intel.com>
87 * config/i386/i386.c (asm_preferred_eh_data_format): Reformat.
89 2006-04-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
92 * tree-mudflap.c (mudflap_finish_file): Skip function when there
93 were errors. Remove check for erroneous objects.
95 2006-04-20 Jeff Law <law@redhat.com>
97 PR tree-optimization/26854
98 * tree-ssa-dse.c (dse_optimize_stmt): Avoid num_imm_uses when
99 checking for zero or one use.
100 * tree-ssa-dom.c (propagate_rhs_into_lhs): Similarly.
101 * tree-cfgcleanup.c (merge_phi_nodes): Similarly.
102 * tree-ssa-reassoc.c (negate_value): Similarly.
103 (reassociate_bb): Similarly.
105 2006-04-20 Jakub Jelinek <jakub@redhat.com>
107 * c-pretty-print.c (pp_c_direct_abstract_declarator): Print
108 TYPE_MAX_VALUE (TYPE_DOMAIN (t)) + 1 for ARRAY_TYPE rather
109 than plain TYPE_MAX_VALUE (TYPE_DOMAIN (t)).
111 2006-04-20 Alan Modra <amodra@bigpond.net.au>
113 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Consume all
114 fp regs if the last fp arg doesn't fit in regs.
116 2006-04-20 Kaz Kojima <kkojima@gcc.gnu.org>
119 * config/sh/sh.md (movsicc_true+3): Tweak condition for the case
120 that the last insn has the REG_INC note.
122 2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
123 Nathan Sidwell <nathan@codesourcery.com>
126 * stor-layout.c (update_alignment_for_field): Do not align
128 (place_union_field): Place union field at the start of the union.
129 (place_field): Move ERROR_MARK check later, and use the current
130 allocation position to maintain monotonicity.
132 2006-04-19 Zdenek Dvorak <dvorakz@suse.cz>
134 * dominance.c: Include timevar.h.
135 (calculate_dominance_info): Use TV_DOMINANCE.
136 * timevar.def (TV_DOMINANCE): New timevar.
137 * Makefile.in (dominance.o): Add TIMEVAR_H dependency.
139 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
141 PR rtl-optimization/14261
142 * ifcvt.c (noce_emit_move_insn): Call store_bit_field if the resulting
143 move would be an INSV insn.
144 (noce_process_if_block): Don't optimize if the destination is a
145 ZERO_EXTRACT which can't be handled by noce_emit_move_insn.
147 2006-04-19 Andreas Krebbel <krebbel1@de.ibm.com>
149 * config/s390/s390.md: Add comments with the instructions emitted
150 by an insn pattern if macros are used.
152 2006-04-19 Alan Modra <amodra@bigpond.net.au>
154 PR rtl-optimization/26026
155 * fold-const.c (fold_binary): Optimize div and mod where the divisor
156 is a known power of two shifted left a variable amount.
158 2006-04-18 Geoffrey Keating <geoffk@apple.com>
160 * dwarf2out.c (prune_unused_types_update_strings): Don't add strings
161 to hash table twice when the debug_str section has SECTION_MERGE.
163 2006-04-18 Joseph S. Myers <joseph@codesourcery.com>
165 * config/soft-fp: New directory. From glibc.
166 * config/soft-fp/t-softfp: New.
167 * config/soft-fp/README: New.
168 * mklibgcc.in: Handle LIB2FUNCS_EXCLUDE.
169 * Makefile.in (LIB2FUNCS_EXCLUDE, SFP_MACHINE): New.
170 (libgcc.mk): Pass LIB2FUNCS_EXCLUDE.
171 (LIBGCC_DEPS): Add $(SFP_MACHINE).
172 * config.gcc: Use rs6000/t-fprules-fpbit or
173 rs6000/t-fprules-softfp and soft-fp/t-softfp together with
175 * config/rs6000/sfp-machine.h: New. Based on glibc.
176 * config/rs6000/t-fprules-fpbit, config/rs6000/t-fprules-softfp:
178 * config/rs6000/t-fprules: Remove fp-bit rules.
179 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Use +=.
180 * config/rs6000/t-linux64: Likewise. Remove duplicates from
181 LIB2FUNCS_EXTRA. Remove fp-bit rules.
182 (softfp_wrap_start, softfp_wrap_end): New.
184 2006-04-18 DJ Delorie <dj@redhat.com>
186 * config/m32c/m32c.h (PTRDIFF_TYPE): Define.
188 2006-04-18 Devang Patel <dpatel@apple.com>
190 * doc/invoke.texi (-Wuninitialized): Clarify -O connection.
192 2006-04-18 Nick Clifton <nickc@redhat.com>
194 * config/sh/t-symbian: Add rule to build sh-c.o
195 * config/sh/symbian.c (sh_symbian_mark_dllexport): Replace use
196 of DECL_NON_ADDR_CONST_P with DECL_DLLIMPORT_P.
197 (sh_symbian_encode_section_info): Likewise.
199 2006-04-18 Andreas Krebbel <krebbel1@de.ibm.com>
201 * builtins.c (expand_builtin_strcmp): Cover label definition of
202 do_libcall with HAVE_cmpstrnsi.
204 2006-04-18 Kazu Hirata <kazu@codesourcery.com>
206 * function.c (temp_slots_at_level, max_slot_level): Use VEC
208 * function.h (temp_slot_p): New.
209 (function): Change the type of x_used_temp_slots to
210 VEC(temp_slot_p,gc) *.
212 2006-04-18 Nick Clifton <nickc@redhat.com>
214 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove reference to
215 flag_strength_reduce.
217 * doc/tm.texi (TARGET_SECTION_TYPE_FLAGS): Fix typo.
219 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
223 Partial revert of revision 112637
224 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
225 Dale Johannesen <dalej@apple.com>
228 * regclass.c (struct reg_pref): Update documentation.
229 (regclass): Set prefclass to NO_REGS if memory is the best option.
230 (record_reg_classes): Cope with a prefclass set to NO_REGS.
232 2006-04-18 Paolo Bonzini <bonzini@gnu.org>
234 PR tree-optimization/26821
235 * tree-ssa-math-opts.c (get_constant_one): New.
236 (insert_reciprocals): Use it.
238 2006-04-17 Geoffrey Keating <geoffk@apple.com>
240 * dwarf2out.c (free_AT): Delete.
241 (remove_AT): Update string ref counts.
242 (remove_child_TAG): Don't call free_die.
244 (break_out_includes): Don't call free_die on DW_TAG_GNU_BINCL
246 (prune_unused_types_walk_attribs): Reset string refcounts.
247 (prune_unused_types_update_strings): New.
248 (prune_unused_types_prune): Don't make unnecessary stores. Don't
249 call free_die. Do call prune_unused_types_update_strings.
250 (prune_unused_types): Empty debug_str_hash.
252 2006-04-17 Roger Sayle <roger@eyesopen.com>
254 * expr.c (expand_assignment): Optimize away no-op moves where the
255 source and destination are equal and have no side-effects.
257 2006-04-17 Richard Guenther <rguenther@suse.de>
260 * reload.c (push_reload): Guard calls to get_secondary_mem
263 2006-04-16 Kazu Hirata <kazu@codesourcery.com>
265 * alias.c (reg_base_value, old_reg_base_value): Change the
266 type to VEC(rtx,gc) *.
267 (REG_BASE_VALUE, find_base_value, record_set,
268 init_alias_analysis): Use VEC instead of VARRAY.
270 * alias.c (alias_sets): Change the type to
271 VEC(alias_set_entry,gc) *.
272 (get_alias_set_entry, new_alias_set, record_alias_subset): Use
273 VEC instead of VARRAY.
274 (last_alias_set): Remove.
276 * cgraph.h (cgraph_edge_p): New.
277 Update the prototype of cgraph_function_versioning.
278 * cgraphunit.c (cgraph_copy_node_for_versioning,
279 cgraph_function_versioning): Use VEC instead of VARRAY.
280 * ipa-cp.c (ipcp_insert_stage): Likewise.
282 2006-04-16 Roger Sayle <roger@eyesopen.com>
285 * fold-const.c (fold_ternary): When converting "A ? B : C" into either
286 "A op B" or "A op C", we may need to convert A to the type of B and C.
288 2006-04-16 Adam Nemet <anemet@caviumnetworks.com>
290 * target.h (struct gcc_target): Add mode_rep_extended.
291 * rtlanal.c (num_sign_bit_copies_in_rep): New global.
292 (init_num_sign_bit_copies_in_rep): Initialize it using
294 (truncate_to_mode): Use it.
295 (init_rtlanal): Call init_num_sign_bit_copies_in_rep.
296 * targhooks.h (default_mode_rep_extended): Declare it.
297 * targhooks.c (default_mode_rep_extended): Define it.
298 * target-def.h (TARGET_MODE_REP_EXTENDED): New macro. Default to
299 default_mode_rep_extended.
300 (TARGET_INITIALIZER): Include it.
301 * doc/tm.texi (Misc): Document it.
302 * config/mips/mips.c (TARGET_TRUNCATED_TO_MODE): Override it.
303 (mips_truncated_to_mode): New function.
305 2006-04-16 Roger Sayle <roger@eyesopen.com>
308 * expr.c (compress_float_constant): Copy the narrow constant into
309 a new pseudo before extending it to its final width.
311 2006-04-16 Roger Sayle <roger@eyesopen.com>
312 Andrew Pinski <pinskia@gcc.gnu.org>
313 Dale Johannesen <dalej@apple.com>
316 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Add
317 special case code to implement V8HImode and V16QImode with SSE2.
319 2006-04-15 Roger Sayle <roger@eyesopen.com>
321 * config/i386/i386.c (ix86_va_start): Ensure all integer constant
322 trees are constructed with a suitable tree type.
324 2006-04-15 Roger Sayle <roger@eyesopen.com>
326 * tree.c (integer_zerop): Ignore TREE_CONSTANT_OVERFLOW.
327 (integer_onep): Likewise.
328 (integer_all_onesp): Likewise.
329 (integer_pow2p): Likewise.
330 (integer_nonzerop): Likewise.
331 (real_zerop): Likewise.
332 (real_onep): Likewise.
333 (real_twop): Likewise.
334 (real_minus_onep): Likewise.
335 (int_size_in_bytes): Likewise.
336 (host_integerp): Likewise.
338 2006-04-15 Kazu Hirata <kazu@codesourcery.com>
340 * cfgcleanup.c, config/dfp-bit.c, expr.c, fold-const.c,
341 jump.c, mips-tfile.c, omp-low.c, sched-int.h,
342 tree-ssa-loop-prefetch.c, tree-vrp.c: Fix comment typos.
344 * tree-ssa-structalias.h (alias_info): Remove num_references.
346 2006-04-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
348 * pa.md (output_bb patterns): Shorten long branch alternatives by 4.
349 (output_bvb patterns): Likewise.
350 * pa.c (output_bb): Use 'bb' insn for long branch case.
351 (output_bvb): Likewise use '{bvb|bb}' for long branch case.
352 (output_dbra): Use '{comb|cmpb}' for long branch case for alternative
353 1. Correct length operand for alternatives 1 and 2.
354 (output_movb): Use '{comb|cmpb}' for long branch case for alternatives
355 1, 2 and 3. Correct length operand for alternatives 1, 2 and 3.
357 2006-04-14 Roger Sayle <roger@eyesopen.com>
359 * tree-cfg.c (make_edges, make_omp_sections_edges, move_stmt_r,
360 is_ctrl_altering_stmt): Reinstate RTH's changes from r112935 that
361 were accidentally reverted by r112959.
363 2006-04-15 Jakub Jelinek <jakub@redhat.com>
366 * except.h (eh_region_outermost): New prototype.
367 * except.c (eh_region_outermost): New function.
368 * tree-cfg.c (find_outermost_region_in_block): Use it.
370 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
372 * local-alloc.c (rest_of_handle_local_alloc): Use VEC instead
374 * reload1.c (reg_equiv_memory_loc_varray): Rename to
375 reg_equiv_memory_loc_vec. Change the type to VEC(rtx,gc) *.
376 (init_reload, reload): Use VEC instead of VARRAY.
377 * reload.h: Update the prototype for
378 reg_equiv_memory_loc_varray.
380 2006-04-14 Alexey Starovoytov <alexey.starovoytov@sun.com>
381 Eric Botcazou <ebotcazou@libertysurf.fr>
383 * config/sparc/sparc.c (emit_and_preserve): Allocate space for the
386 2005-04-13 Uros Bizjak <uros@kss-loka.si>
389 * builtins.c (expand_builtin_int_roundingfn): Use expand_normal()
390 to expand fallback builtin function call.
392 2006-04-14 Alan Modra <amodra@bigpond.net.au>
395 * builtins.c: (expand_builtin_memset): Stabilize args before expansion
396 and emit libcall here in case the builtin fails.
397 (expand_builtin_strcmp): Always emit the libcall here on failure.
399 2006-04-14 Kazu Hirata <kazu@codesourcery.com>
401 * basic-block.h (REG_BASIC_BLOCK): Use VEC instead of VARRAY.
402 * flow.c (reg_n_info): Change the type to
403 VEC(reg_info_p,heap) *.
404 * regclass.c (allocate_reg_info, free_reg_info): Use VEC
406 * regs.h (reg_info_p): New.
407 (REG_N_REFS, REG_FREQ, REG_N_SETS, REG_N_DEATHS,
408 REG_N_CALLS_CROSSED, REG_N_THROWING_CALLS_CROSSED,
409 REG_LIVE_LENGTH, REGNO_FIRST_UID, REGNO_LAST_UID): Use VEC
412 2006-04-13 Eric Botcazou <ebotcazou@adacore.com>
414 * params.def (PARAM_MAX_SCHED_READY_INSNS): New parameter,
416 * params.h (MAX_SCHED_READY_INSNS): New macro.
417 * haifa-sched.c: (queue_to_ready): Re-queue insns for the next cycle
418 past MAX_SCHED_READY_INSNS during the first scheduling pass.
419 (schedule_block): Delay insns past MAX_SCHED_READY_INSNS in
420 the ready list for 1 cycle during the first scheduling pass.
421 * doc/invoke.texi (--param): New parameter max-sched-ready-insns.
423 2006-04-13 Richard Henderson <rth@redhat.com>
426 * gimple-low.c (lower_omp_directive): Remove dead code.
427 (lower_stmt): Do nothing except for openmp, except for OMP_PARALLEL.
428 * gimplify.c (gimplify_expr): Update for OMP_RETURN, OMP_CONTINUE.
429 * omp-low.c (struct omp_region): Move to tree-flow.h.
430 (root_omp_region): Export.
431 (omp_regions, lookup_omp_region): Remove.
432 (determine_parallel_type): Update for struct omp_region changes.
433 (dump_omp_region): Dump regions with block numbers.
434 (new_omp_region): Take type and block instead of stmt; malloc
436 (free_omp_region_1, free_omp_regions): New.
437 (expand_parallel_call): Take entry_stmt as argument; update for
438 changes to omp_region.
439 (remove_exit_barrier): Rewrite to update OMP_RETURN_NOWAIT.
440 (remove_exit_barriers): New.
441 (expand_omp_parallel): Update for struct omp_region changes.
442 (expand_omp_synch): Likewise.
443 (expand_omp): Likewise.
444 (expand_omp_for_static_nochunk): Likewise; update for OMP_CONTINUE.
445 (expand_omp_for_static_chunk): Likewise.
446 (expand_omp_for): Likewise.
447 (expand_omp_for_generic): Likewise; emit the proper GOMP_loop_end call.
448 (expand_omp_sections): Similarly, with GOMP_sections_end.
449 (expand_omp_single): New.
450 (build_omp_regions_1): Update for OMP_CONTINUE.
451 (execute_expand_omp): Call remove_exit_barriers, free_omp_regions.
452 (lower_omp_sections): Expand with OMP_CONTINUE, do not collect
453 OMP_SECTIONS_SECTIONS.
454 (lower_omp_single_simple): Don't emit barrier here.
455 (lower_omp_single_copy): Likewise.
456 (lower_omp_single): Fix bindings, and lower to straightline now.
457 (lower_omp_master, lower_omp_ordered): Likewise.
458 (lower_omp_critical): Likewise.
459 (lower_omp_for): Likewise. Emit OMP_CONTINUE.
460 * tree-cfg.c (make_edges): Collect an omp_region tree, use it for
461 omp edges, free it afterward.
462 (make_omp_sections_edges): Remove.
463 (is_ctrl_altering_stmt): Don't bother checking flag_openmp.
464 (move_stmt_r): Handle OMP_CONTINUE.
465 * tree-flow.h (struct omp_region): Move from omp-low.c. Switch
466 statement pointers to basic blocks. Add type member.
467 (root_omp_region, new_omp_region, free_omp_regions): Declare.
468 * tree-gimple.c (is_gimple_stmt): Handle OMP_RETURN, OMP_CONTINUE.
469 * tree-inline.c (estimate_num_insns_1): Likewise.
470 * tree-pretty-print.c (dump_generic_node): Likewise.
471 * tree-ssa-operands.c (get_expr_operands): Likewise.
472 * tree.def (OMP_SECTIONS): Remove OMP_SECTIONS_SECTIONS operand.
473 (OMP_RETURN): Rename from OMP_RETURN_EXPR.
475 * tree.h (OMP_DIRECTIVE_P): Add OMP_CONTINUE.
476 (OMP_SECTIONS_SECTIONS): Remove.
477 (OMP_SECTION_LAST): New.
478 (OMP_RETURN_NOWAIT): New.
480 2006-04-13 Roger Sayle <roger@eyesopen.com>
482 * fold-const.c (native_encode_vector, native_interpret_real):
483 Correct obvious mistakes in the previous check-in.
485 2006-04-13 Roger Sayle <roger@eyesopen.com>
487 * fold-const.c (native_encode_expr): New function to encode
488 the target representation of an INTEGER_CST, REAL_CST, COMPLEX_CST
489 or VECTOR_CST into a specified buffer.
490 (native_encode_int): New function.
491 (native_encode_real): New function.
492 (native_encode_complex): New function.
493 (native_encode_vector): New function.
494 (native_interpret_expr): Inverse of native_encode_expr to convert
495 a target representation into an INTEGER_CST, REAL_CST etc...
496 (native_interpret_int): New function.
497 (native_interpret_real): New function.
498 (native_interpret_complex): New function.
499 (native_interpret_vector): New function.
500 (fold_view_convert_expr): New function to constant fold/evaluate
501 a VIEW_CONVERT_EXPR of a suitable constant expression.
502 (fold_unary) <VIEW_CONVERT_EXPR>: Call fold_view_convert_expr.
503 Change call of build1 to fold_build1 when constructing a
506 2006-04-13 Paolo Bonzini <bonzini@gnu.org>
507 Ulrich Weigand <uweigand@de.ibm.com>
510 * config/rs6000/rs6000.h (EASY_VECTOR_15_ADD_SELF): Require n
513 2006-04-13 Alan Modra <amodra@bigpond.net.au>
516 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
517 optimize to lo_sum for DFmode if !TARGET_FPRS.
519 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
521 * tree-ssa-alias.c (set_initial_properties, init_alias_info,
522 delete_alias_info, compute_flow_sensitive_aliasing,
523 group_aliases): Use VEC instead of VARRAY.
524 * tree-ssa-structalias.c (update_alias_info): Likewise.
525 * tree-ssa-structalias.h (alias_info): Change the type of
526 processed_ptrs to VEC(tree,heap) *.
528 2006-04-12 J"orn Rennecke <joern.rennecke@st.com>
531 * config/sh/lib1funcs.h: New file, broken out of:
532 * config/sh/lib1funcs.asm.
533 * config/sh/lib1funcs.h (DR00, DR01, DR20, DR21, DR40, DR41):
535 * config/sh/lib1funcs.asm (udivsi3_i4): Use them.
536 * config/sh/lib1funcs-Os-4-200.asm: New file.
537 * config/sh/embed-elf.h (LIBGCC_SPEC): Use -lgcc-Os-4-200.
538 * config/sh/t-sh (OPT_EXTRA_PARTS): New variable.
539 (EXTRA_MULTILIB_PARTS): Include it.
540 ($(T)sdivsi3_i4i-Os-4-200.o): New rule.
541 ($(T)udivsi3_i4i-Os-4-200.o, $(T)libgcc-Os-4-200.a): Likewise.
542 * config/sh/t-superh (EXTRA_MULTILIB_PARTS): Include OPT_EXTRA_PARTS.
543 * config/sh/sh.h (OVERRIDE_OPTIONS): Recognize -mdiv=call-table for
546 2006-04-12 Kazu Hirata <kazu@codesourcery.com>
548 * Makefile.in (TREE_SSA_LIVE_H): Add vecprim.h.
549 * tree-ssa-live.c (tpa_init, tpa_remove_partition, tpa_delete,
550 tpa_compact, root_var_init, type_var_init): Use VEC instead of
552 * tree-ssa-live.h: Include vecprim.h.
553 (tree_partition_associator_d): Change the type of
554 first_partition to VEC(int,heap) *.
555 (tpa_first_partition): Use VEC instead of VARRAY.
557 * Makefile.in (GTFILES): Move functions.h after tree.h.
558 * function.c (reset_block_changes, record_block_change,
559 check_block_change, free_block_changes): Use VEC instead of
561 * function.h (function): Change the type of
562 ib_boundaries_block to VEC(tree,gc) *.
563 * tree-inline.c (copy_cfg_body): Initialize
564 ib_boundaries_block to NULL instead of (varray_type) 0.
566 2006-04-12 Roger Sayle <roger@eyesopen.com>
568 * expr.c (emit_group_store): Correct operand order in call to
569 subreg_lowpart_offset. Always create paradoxical SUBREGs with
570 a SUBREG_BYTE of zero.
572 2006-04-12 Richard Guenther <rguenther@suse.de>
574 * profile.c (compute_branch_probabilities): Remove code
575 encapsulated in !ir_type (), which are remanents of the
576 removed RTL profiling code.
577 * rtl-profile.c: Remove.
579 2006-04-12 Alan Modra <amodra@bigpond.net.au>
581 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Update
582 magic NULL_RTX comment.
583 (function_arg): Store entire fp arg to mem if any part should go
585 (rs6000_arg_partial_bytes): Adjust for above change.
587 2006-04-11 Roger Sayle <roger@eyesopen.com>
589 * dwarf2out.c (output_call_frame_info): Create debug_frame_section
590 if it hasn't been initialized by dwarf2out_init.
592 2006-04-11 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
594 * pa.md (MAX_12BIT_OFFSET, MAX_17BIT_OFFSET): Define and use new
595 symbolic constants in branch patterns.
597 2006-04-11 Roger Sayle <roger@eyesopen.com>
599 * caller-save.c: #include "addresses.h" after #include "tm_p.h".
601 2006-04-11 Richard Sandiford <richard@codesourcery.com>
603 PR rtl-optimization/27073
604 * gcse.c (try_replace_reg): Revert last change. Continue to search
605 for both REG_EQUAL and REG_EQUIV notes, but only perform replacements
608 2006-04-11 Eric Botcazou <ebotcazou@libertysurf.fr>
610 * config/sparc/sparc.c (function_arg_slotno) <BLKmode>: Handle
611 aggregate types other than record and union types.
612 (function_arg): Likewise.
613 (function_arg_pass_by_reference): In 64-bit mode, return 0 for
615 (function_value): In 64-bit mode, return objects that require it
618 2006-04-11 Roger Sayle <roger@eyesopen.com>
620 * dwarf2out.c (premark_used_types): Remove problematic prototype.
622 2006-04-11 Jakub Jelinek <jakub@redhat.com>
624 * gcc.c (LINK_COMMAND_SPEC): Move link_gomp after %o.
626 2006-04-03 Jeff Law <law@redhat.com>
629 * tree-ssa-copy.c (may_propagate_copy): Test flow sensitive
630 alias information too.
632 2006-04-10 Mike Frysinger <vapier@gentoo.org>
634 * gcc/Makefile.in (gcc-cross): Add $(exeext) to target name.
636 2006-04-10 Aldy Hernandez <aldyh@redhat.com>
639 * dwarf2out.c (struct die_struct): Add die_perennial_p field.
640 (premark_used_types_helper): New.
641 (premark_used_types): New.
642 (gen_subprogram_die): Call premark_used_types.
643 (prune_unused_types_walk): Do not prune perennial dies.
644 * function.c (used_types_insert): New.
645 * function.h (struct function): Add used_types_hash field.
646 (used_types_insert): Add prototype.
647 * Makefile.in (FUNCTION_H): Depend on HASHTAB_H.
648 * c-parser.c (c_parser_cast_expression): Save casted types in used
651 2006-04-11 Mark Mitchell <mark@codesourcery.com>
654 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Test
655 rs6000_explicit_options.float_gprs.
657 2006-04-10 Roger Sayle <roger@eyesopen.com>
659 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Renamed
660 from ix86_expand_vector_init_low_nonzero. Take an additional
661 one_var argument indicating which element is non-zero. Support
662 one_var != 0 for V4SFmode and V4SImode by permuting the result.
663 (ix86_expand_vector_init): Call ix86_expand_vector_init_one_nonzero
664 with one_var instead of ix86_expand_vector_init_low_nonzero.
666 2006-04-10 Kazu Hirata <kazu@codesourcery.com>
668 * Makefile.in (tree-into-ssa.o, tree-outof-ssa.o,
669 tree-ssa-live.o, tree-ssa-alias.o, function.o, df-problems.o,
670 global.o, cfglayout.o, lambda-code.o, reg-stack.o,
671 build/genextract.o): Depend on vecprim.h.
672 * cfglayout.c, df-problems.c, function.c, genextract.c,
673 global.c, lambda-code.c, reg-stack.c, tree-into-ssa.c,
674 tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Include
678 2006-04-10 Geoffrey Keating <geoffk@apple.com>
680 * dwarf2out.c (struct dw_attr_struct): Remove dw_attr_next.
681 Declare VECs of this type.
682 (struct die_struct): Make field die_attr a VEC of dw_attr_struct.
683 (remove_children): Delete.
684 (add_dwarf_attr): Use VEC routines.
685 (add_AT_flag): Update for changes to add_dwarf_attr.
686 (add_AT_int): Likewise.
687 (add_AT_unsigned): Likewise.
688 (add_AT_long_long): Likewise.
689 (add_AT_vec): Likewise.
690 (add_AT_string): Likewise.
691 (add_AT_die_ref): Likewise.
692 (add_AT_fde_ref): Likewise.
693 (add_AT_loc): Likewise.
694 (add_AT_loc_list): Likewise.
695 (add_AT_addr): Likewise.
696 (add_AT_lbl_id): Likewise.
697 (add_AT_lineptr): Likewise.
698 (add_AT_macptr): Likewise.
699 (add_AT_offset): Likewise.
700 (add_AT_range_list): Likewise.
701 (get_AT): Use VEC_iterate.
702 (remove_AT): Use VEC_ordered_remove.
703 (free_die): Fold remove_children into here; have it use VEC_iterate.
704 (print_die): Use VEC_iterate on attrs.
705 (reverse_die_lists): Don't reverse attr lists.
706 (die_checksum): Use VEC_iterate on attrs.
707 (same_die_p): Likewise.
708 (output_location_lists): Likewise.
709 (build_abbrev_table): Likewise.
710 (size_of_die): Likewise.
711 (unmark_all_dies): Likewise.
712 (output_abbrev_section): Likewise.
713 (output_die): Likewise.
714 (prune_unused_types_walk_attribs): Likewise.
716 2006-04-10 Eric Botcazou <ebotcazou@libertysurf.fr>
718 * doc/install.texi (*-*-solaris2*): Point to the configure page.
720 2006-04-10 Jakub Jelinek <jakub@redhat.com>
723 * dwarf2out.c (is_symbol_die): Return true also for namespaces.
725 2006-04-09 Roger Sayle <roger@eyesopen.com>
727 * expr.c (store_constructor): Don't bother clearing target if
728 we're about to assign a vector to it using vec_init_optab.
730 2006-04-10 Daniel Berlin <dberlin@dberlin.org>
732 * tree-ssa-alias.c (lhs_may_store_to): New function.
733 (recalculate_used_alone): Handle LHS of calls.
735 2006-04-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
739 * config.gcc (hppa*64*-*-hpux11*): Add 'libgcc_stub.a' to extra_parts.
740 * pa64-hpux.h (LIB_SPEC): Correct typo. Don't append milli.a.
741 (LINK_GCC_C_SEQUENCE_SPEC): Define. Append milli.a here.
742 (PA_CXA_FINALIZE_STUB, PA_JV_REGISTERCLASSES_STUB): Delete defines.
743 (PA_INIT_FINI_HACK): Rename to PA_CRTBEGIN_HACK.
744 (PA_CRTBEGIN_HACK): Ensure __do_global_ctors_aux is placed in text
745 section. Delete PA_CXA_FINALIZE_STUB and PA_JV_REGISTERCLASSES_STUB
746 stubs. Add ".align 8" directives before all ".dword" directives.
747 (GTHREAD_USE_WEAK): Revise comment.
748 (TARGET_ATTRIBUTE_WEAK): Define.
749 * pa/t-pa64 (LIBGCCSTUB_OBJS): Add new rules for stublib.c, rfi-stub.o,
750 dfi-stub.o, cxaf-stub.o and jvrc-stub.o.
751 * stublib.c: New file.
756 * pa.md (cbranch patterns): Revise arguments used in calls to
757 output_cbranch, output_bb and output_bvd. Add long branch length
759 (fbranch patterns): Handle long branches.
760 (jump): Revise length check. Revise arguments for output_lbranch call.
761 Add long branch length attributes.
762 (decrement_and_branch_until_zero): Add long branch length attributes.
763 (output_movb, output_parallel_addb and output_parallel_movb patterns):
764 Likewise. Revise arguments for output_parallel_addb and
765 output_parallel_movb calls.
766 * pa-protos.h (output_cbranch, output_lbranch, output_bb, output_bvb,
767 output_parallel_movb and output_parallel_addb): Update prototypes.
768 * pa.c (output_cbranch): Revise arguments. Correct handling of
769 nullification in long branches.
770 (output_lbranch): Add new argument to control extraction of delay
772 (output_bb): Handle long branches.
773 (output_bvb, output_dbra, output_movb, output_parallel_movb,
774 output_parallel_addb): Likewise.
776 2006-04-09 Richard Sandiford <richard@codesourcery.com>
778 PR rtl-optimization/27073
779 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes,
782 2006-04-08 Daniel Berlin <dberlin@dberlin.org>
784 * tree.h (tree_memory_tag): Add old_used_alone.
785 (SMT_OLD_USED_ALONE): New macro.
786 * tree-ssa-alias.c (recalculate_used_alone): Stop
787 marking things for renaming unnecessarily.
789 2006-04-08 Kazu Hirata <kazu@codesourcery.com>
791 * builtins.c, config/arm/arm.c, config/i386/cygwin.h,
792 config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h,
793 config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c,
794 haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h,
795 sched-rgn.c, tree-inline.h, tree-ssa-dom.c,
796 tree-ssa-loop-prefetch.c, tree-ssa-operands.c,
797 tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow
798 spelling convensions.
799 * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi,
800 doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment
801 typos. Follow spelling conventions.
803 2006-04-07 DJ Delorie <dj@redhat.com>
805 * config/m32c/m32c.c (m32c_function_arg): Structures are always
807 (m32c_init_cumulative_args): When a function returns a structure,
808 always pass the pointer to that return area on the stack.
809 (m32c_function_arg_advance): Don't increment the parameter number
810 if we're processing the returned structure pointer.
811 (pushm_info): Reverse order of registers.
813 2006-04-07 Sebastian Pop <pop@cri.ensmp.fr>
815 * tree-ssa-loop-niter.c (inverse, number_of_iterations_ne,
816 assert_no_overflow_lt, assert_loop_rolls_lt, number_of_iterations_lt,
817 number_of_iterations_le, number_of_iterations_cond, find_loop_niter,
818 estimate_numbers_of_iterations_loop): Use build_int_cst instead of
820 * tree-chrec.c (chrec_fold_multiply_poly_poly,
821 chrec_fold_multiply): Same.
822 * tree-ssa-loop-ivopts.c (strip_offset_1, force_expr_to_var_cost,
823 force_expr_to_var_cost): Same.
824 * tree-mudflap.c (mf_xform_derefs_1): Same.
825 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Same.
827 2006-04-07 David Edelsohn <edelsohn@gnu.org>
829 * config/rs6000/rs6000.c (rs6000_rtx_costs) <CONST_DOUBLE>: Do not
830 treat CONST_DOUBLE as INTVAL. and64_2_operands require an extra
833 2006-04-07 Jan Hubicka <jh@suse.cz>
835 * ipa-inline.c (cgraph_early_inlining): Collect garbage.
837 2006-04-07 Richard Guenther <rguenther@suse.de>
839 PR tree-optimization/26135
840 * tree-ssa-copy.c (stmt_may_generate_copy): Handle memory
841 loads for store copy-prop.
842 (copy_prop_visit_stmt): Likewise.
844 2006-04-05 Robert Millan <robertmh@gnu.org>
846 * gcc/config/i386/linux.h: Add a comment to mark macros that are
847 being overriden in config/k*bsd-gnu.h.
848 * gcc/config/kfreebsd-gnu.h: Redefine GLIBC_DYNAMIC_LINKER instead of
850 * gcc/config/knetbsd-gnu.h: Ditto.
852 2006-04-06 Jan Hubicka <jh@suse.cz>
856 * coverage.c (coverage_checksum_string): Reorganize loop to not read
859 2006-04-06 Mike Stump <mrs@apple.com>
861 * builtins.c (expand_builtin_longjmp):Use #ifdef instead of #if
862 for HAVE_nonlocal_goto to be consistent.
863 (expand_builtin_nonlocal_goto): Likewise.
864 (expand_builtin_strcmp): Use #ifdef instead of #if
865 for HAVE_cmpstrnsi to be consistent.
867 2006-04-05 DJ Delorie <dj@redhat.com>
869 * config/m32c/m32c.h (INCOMING_FRAME_SP_OFFSET): Adjust for m16c
872 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
874 * config/bfin/bfin.c (bfin_legitimate_address_p): Disallow
875 got-relative addressing for anything but SImode.
877 * config/bfin/lib1funcs.asm (modsi): P1/P2 can be call-clobbered
878 even if the calling function doesn't modify them.
880 2006-04-05 Richard Guenther <rguenther@suse.de>
882 PR tree-optimization/26919
883 * ipa-inline.c (cgraph_decide_inlining_incrementally): Fix argument
884 to cgraph_estimate_size_after_inlining.
886 2006-04-05 Alan Modra <amodra@bigpond.net.au>
888 * reload.c (find_dummy_reload): Fix typo in 2006-04-03 change.
890 2006-04-05 Sebastian Pop <pop@cri.ensmp.fr>
892 PR tree-optimization/26996
893 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Don't analyze
894 VECTOR_TYPE variables.
896 2006-04-05 Richard Guenther <rguenther@suse.de>
898 PR tree-optimization/26763
899 * fold-const.c (fold_comparison): Move folding of
900 PTR + CST CMP PTR + CST ...
901 (fold_binary): ... here. Fold only for EQ_EXPR and NE_EXPR.
903 2006-04-05 Gerald Pfeifer <gerald@pfeifer.com>
905 * doc/install.texi (Prerequisites): Refine some wording on
906 bootstrapping and ksh.
907 Move the version numbers of DejaGnu here from the testing section
908 and fix casing of names.
909 Fix markup and clarify wording for autogen requirements.
910 Refer to GCJ instead of just java.
911 Refer to SVN instead of CVS.
912 Describe diffutils as useful instead of necessary.
913 (Downloading the source): Refer to SVN instead of CVS.
914 Adjust a link to our web site accordingly.
915 (Configuration): Fix casing of Bison.
916 (Building): Refer to SVN instead of CVS.
917 Fix a sentence on the use of Bison and remove duplicate (and
918 incorrect) version number of Bison requirement.
919 Remove one redundant list of packages needed for building.
920 (Specific): Avoid reference to CVS.
922 2006-04-04 Eric Christopher <echristo@apple.com>
924 * config/rs6000/rs6000.c (TARGET_MS_BITFIELD_LAYOUT_P): Define.
925 (TARGET_USE_MS_BITFIELD_LAYOUT): Ditto.
926 (rs6000_handle_struct_attribute): New.
927 (rs6000_ms_bitfield_layout_p): Ditto.
929 2006-04-04 Geoffrey Keating <geoffk@apple.com>
931 * config/darwin-crt3.c (atexit): Pass &__dso_handle rather than
932 NULL for dso parameter to atexit_common.
934 2006-04-04 Eric Christopher <echristo@apple.com>
936 * config/i386/i386.c (machopic_output_stub): Output \t
937 between instructions and operands.
939 2006-04-04 David Edelsohn <edelsohn@gnu.org>
941 * config/rs6000/rs6000.c (num_insns_constant_wide): Change
942 satisfies_constraint_[IL] to explicit tests on value.
944 2006-04-04 Sebastian Pop <pop@cri.ensmp.fr>
946 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
947 set_nb_iterations_in_loop): Use build_int_cst instead of
949 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Use
950 build_int_cst instead of convert.
952 2006-04-04 Carlos O'Donell <carlos@codesourcery.com>
954 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document
955 new value 2 for incoming.
956 * function.c (expand_function_start): Call struct_value_rtx
958 * config/sparc/sparc.md: Comment updated_return.
959 * config/sparc/sparc.opt: Add -mstd-struct-return option.
960 * config/sparc/sparc.c (sparc_struct_value_rtx): Use standard
961 struct return if sparc_std_struct_return and incoming is 2.
962 (print_operand): Do not adjust return if
963 sparc_std_struct_return.
965 2006-04-04 Roger Sayle <roger@eyesopen.com>
967 * builtins.c (fold_builtin_sprintf): Use fold_convert instead of
968 convert in the middle-end.
969 * expr.c (store_expr, store_constructor, get_inner_reference,
970 expand_expr_real_1, string_constant, try_casesi, try_tablejump):
972 * tree.c (build_range_type): Likewise.
974 2006-04-04 Tom Tromey <tromey@redhat.com>
976 * doc/install.texi (Prerequisites): Mention jar.
978 2006-04-04 Daniel Berlin <dberlin@dberlin.org>
980 * doc/tree-ssa.texi (Preserving the virtual ssa form): New
983 2006-04-04 Matthias Klose <doko@debian.org>
985 * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
987 2006-04-03 Geoffrey Keating <geoffk@apple.com>
989 * doc/extend.texi (Function Attributes): Rewrite visibility
990 attribute documentation.
991 * doc/invoke.texi (C++ Dialect Options): Rewrite
992 -fvisibility-inlines-hidden documentation to describe something
993 entirely different, although in practise compatible.
994 (Code Gen Options): Warn about system headers in -fvisibiltity=
997 * doc/extend.texi (Other Builtins): Document that
998 __builtin_nan is a compile-time constant only when its argument
1001 2006-04-03 Adam Nemet <anemet@caviumnetworks.com>
1003 * simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
1004 trying to remove TRUNCATE check if all bits outside the new mode
1005 are identical to the sign bit.
1007 2006-04-03 Jeff Law <law@redhat.com>
1009 * tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
1010 and operand scanning in some common cases.
1012 2006-04-03 Paolo Bonzini <bonzini@gnu.org>
1013 Dale Johannesen <dalej@apple.com>
1016 * regclass.c (struct reg_pref): Update documentation.
1017 (regclass): Set prefclass to NO_REGS if memory is the best option.
1018 (record_reg_classes): Cope with a prefclass set to NO_REGS.
1019 * reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
1020 into account. For non-registers, equate an empty preferred
1021 reload class to a `!' in the constraint; move the if clause to
1022 do so after those that reject the insn.
1023 (push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
1025 (find_dummy_reload): Likewise.
1026 * doc/tm.texi (Register Classes): Document what it means
1027 if PREFERRED_*_RELOAD_CLASS return NO_REGS.
1028 * config/i386/i386.c (ix86_preferred_reload_class): Force
1029 using SSE registers (and return NO_REGS for floating-point
1030 constants) if math is done with SSE.
1031 (ix86_preferred_output_reload_class): New.
1032 * config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
1033 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
1034 * config/i386/i386.md: Remove # register preferences.
1036 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
1039 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1040 chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
1041 the type of nb_iter.
1042 (instantiate_parameters_1): Convert the operands before calling
1043 chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
1044 * tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.
1046 2006-04-02 Roger Sayle <roger@eyesopen.com>
1048 * builtins.c (dummy_object): Use build_int_cst instead of convert.
1049 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
1051 * dojump.c (do_jump): Likewise.
1052 * expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
1053 * gimplify.c (gimple_boolify, gimplify_init_constructor,
1054 gimplify_boolean_expr): Likewise.
1055 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1056 * varasm.c (array_size_for_constructor): Likewise.
1057 * tree-object-size.c (compute_object_offset): Likewise.
1059 2006-04-02 Roger Sayle <roger@eyesopen.com>
1062 * expr.c (emit_group_store): Check whether simplify_gen_subreg returns
1063 NULL_RTX, indicating it couldn't create a valid paradoxical subreg.
1065 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
1067 PR tree-optimization/26939
1068 * tree-chrec.c (chrec_merge): Use eq_evolutions_p.
1070 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
1072 * tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
1073 at_stmt. Convert the type of operands before calling
1074 build_polynomial_chrec.
1075 (add_to_evolution): Pass an extra argument at_stmt. Adjust the call to
1077 (follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
1078 (instantiate_parameters_1): Convert the type of operands before calling
1079 build_polynomial_chrec.
1080 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
1081 chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
1082 reset_evolution_in_loop): Insert asserts to check the types of the
1084 (chrec_type): Moved...
1085 (eq_evolutions_p): Use operand_equal_p.
1086 * tree-chrec.h (build_polynomial_chrec): Insert an assert to check
1087 the types of the operands.
1088 (chrec_type): ...here.
1089 * tree-data-ref.c (create_data_ref): Convert the operands before
1090 calling chrec_replace_initial_condition.
1091 (same_access_functions, analyze_subscript_affine_affine,
1092 analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
1093 (compute_subscript_distance, analyze_ziv_subscript,
1094 analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
1095 analyze_miv_subscript): Convert the operands before calling
1096 chrec_fold_minus or chrec_fold_plus.
1098 2006-04-02 Sebastian Pop <pop@cri.ensmp.fr>
1100 * tree-data-ref.c (compute_all_dependences): Use a pointer to
1101 the dependence_relations vector.
1102 (compute_data_dependences_for_loop): Adjust call to
1103 compute_all_dependences.
1105 2006-04-01 Roger Sayle <roger@eyesopen.com>
1106 Richard Henderson <rth@redhat.com>
1108 * gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
1109 gimple_boolify on the condition before calling gimplify_expr.
1111 2006-03-31 Bob Wilson <bob.wilson@acm.org>
1113 * config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
1114 to leaf_entry/leaf_return. Change leaf_entry to add 16 bytes to
1115 the frame size. Update to use the new macros.
1116 * config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
1117 * config/xtensa/ieee754-df.S: Likewise.
1119 2006-03-31 Richard Henderson <rth@redhat.com>
1121 * tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
1122 (make_edges): ... here. Control fallthru creation with a local
1123 variable. Do not play with fake edges.
1124 (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
1125 (make_goto_expr_edges): Don't play with fake edges. Make for_call
1128 2006-04-01 Joseph S. Myers <joseph@codesourcery.com>
1130 * dwarf2.h (DW64_CIE_ID): Define.
1131 * dwarf2out.c (DWARF_CIE_ID): Define.
1132 (output_call_frame_info): Output 0xffffffff before standard 8-byte
1133 length header. Use DWARF_CIE_ID.
1134 (value_format): Use DW_FORM_data4 or DW_FORM_data8 for
1135 dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.
1137 2006-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
1139 * config/sh/linux-atomic.asm: New file.
1140 * config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.
1142 2006-03-31 DJ Delorie <dj@redhat.com>
1144 * config/m32c/cond.md: Set condition flags properly throughout.
1145 * config/m32c/minmax.md: Likewise.
1146 * config/m32c/prologue.md: Likewise.
1147 * config/m32c/bitops.md: Likewise.
1148 * config/m32c/muldiv.md: Likewise.
1149 * config/m32c/mov.md: Likewise.
1150 * config/m32c/addsub.md: Likewise.
1151 * config/m32c/m32c.md: Likewise.
1152 * config/m32c/jump.md: Likewise.
1153 * config/m32c/shift.md: Likewise.
1155 * config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
1156 conditionally output the pattern for this.
1157 * config/m32c/m32c.c (flags_needed_for_conditional): New.
1158 (m32c_compare_redundant): New.
1159 (m32c_output_compare): New.
1160 * config/m32c/m32c-protos.h (m32c_output_compare): New.
1162 * config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
1163 dest, not src. Allow other 4-byte modes.
1165 2006-03-30 Denis Chertykov <denisc@overta.ru>
1167 * doc/md.texi: Refer to avr/constraints.md instead of
1170 2006-03-30 Roger Sayle <roger@eyesopen.com>
1172 * expr.c (emit_group_store): Make BYTEPOS a HOST_WIDE_INT to
1173 signed vs. unsigned comparison failures on some hosts.
1175 2006-03-31 Alan Modra <amodra@bigpond.net.au>
1178 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
1179 change to FLOAT_REGS.
1181 * config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
1182 (rs6000_override_options): Use it.
1183 (rs6000_handle_option): Set it. Set rs6000_explicit_options.abi
1184 only for -mabi=spe/no-spe and -mabi=altivec.
1186 2006-03-30 Geoffrey Keating <geoffk@apple.com>
1188 * config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
1191 2006-03-30 Carlos O'Donell <carlos@codesourcery.com>
1193 * Makefile.in: Rename docdir to gcc_docdir.
1195 2006-03-30 Roger Sayle <roger@eyesopen.com>
1198 * expr.c (emit_group_store): Optimize group stores into a pseudo
1199 register by using a paradoxical subreg to initialize the destination
1200 if the first or last member of the group specifies a "low part".
1202 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1205 * rtl.def (DEPS_LIST): Change type of the second operand to 'int'.
1206 * target.h (struct gcc_target.speculate_insn): Change type of the
1207 second parameter to 'int'.
1208 * lists.c (alloc_DEPS_LIST): Change signature. Update reference to
1209 the second operand of the DEPS_LIST.
1210 (copy_DEPS_LIST_list): Update reference to the second operand of the
1212 * rtl.h (alloc_DEPS_LIST): Update signature.
1213 * sched-int.h (ds_t): Change typedef to 'int'.
1214 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
1216 2006-03-30 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1218 * haifa-sched.c (try_ready): Change condition to restore
1219 non-speculative pattern of the instruction.
1220 (process_insn_depend_be_in_spec): Code to keep probability of the
1221 speculative dependence non-decreasing.
1223 2006-03-30 Jie Zhang <jie.zhang@analog.com>
1225 * config/bfin/bfin.c (single_move_for_strmov): Renamed to...
1226 (single_move_for_movmem): ... this. Also change all uses.
1227 (bfin_expand_strmov): Renamed to...
1228 (bfin_expand_movmem): ... this. Also change all uses.
1229 * config/bfin/bfin.md (movstrsi): Renamed to...
1230 (movstrsi): ...this.
1232 2006-03-30 Paolo Bonzini <bonzini@gnu.org>
1234 PR tree-optimization/26830
1236 * tree-ssa-copy.c (copy_prop_visit_assignment): Do not check loop depth.
1237 (copy_prop_visit_stmt): Remove write-only variable ann.
1238 (init_copy_prop): Check variable loop depth here. Do not simulate
1239 memory-tag and virtual operand PHIs except for store copy prop.
1241 2006-03-30 Richard Guenther <rguenther@suse.de>
1243 * config/i386/i386.c: Remove builtins for SSE2 ABI intrinsic
1244 variants with double arguments.
1246 2006-03-29 David Edelsohn <edelsohn@gnu.org>
1248 * genpreds.c (write_tm_constrs_h): Delete variable p.
1249 * genconditions.c (write_header): Add tm-constrs.h to included
1251 * genpeep.c (main): Add toplev.h to included headers.
1252 * Makefile.in (build/gencondmd.o): Add tm-constrs.h dependency.
1253 (build/genpeep.o): Add toplev.h dependency.
1254 * config/rs6000/constraints.md: Add "W" constraint.
1256 2006-03-29 Roger Sayle <roger@eyesopen.com>
1258 * stor-layout.c (mode_for_size_tree): Remove restiction on type
1259 sizes by correctly testing whether the size fits a host integer.
1260 (initialize_sizetypes): Use set_min_and_max_values_for_integral_type
1261 to correctly set TYPE_MIN_VALUE and TYPE_MAX_VALUE to the full
1262 SImode range for the default sizetype and bitsizetype.
1264 2006-03-29 Roger Sayle <roger@eyesopen.com>
1266 * convert.c (convert_to_pointer): Preserve the TREE_OVERFLOW
1267 and TREE_CONSTANT_OVERFLOW bits of the argument. Return
1268 quickly if the argument is already of the correct type.
1269 Call fold_build1 instead of build1. Tidy up blank lines.
1271 2006-03-29 David Edelsohn <edelsohn@gnu.org>
1273 * genemit.c (main): Add tm-constrs.h to included headers.
1274 * genoutput.c (output_prologue): Add tm-constrs.h to included headers.
1275 * genpeep.c (main): Add tm-constrs.h to included headers.
1276 * genpreds.c (write_satisfies_constraint_fns): Rename to ...
1277 (write_tm_constrs_h): this and write complete file.
1278 (write_tm_preds_h): Do not emit satisfies_constraint fns.
1279 (write_insn_preds_c): Add tm-constrs.h to included headers.
1280 (gen_constrs): New variable.
1281 (parse_option): Parse "-c".
1282 (main): Invoke write_tm_constrs_h.
1283 * genrecog.c (write_header): Add tm-constrs.h to included headers.
1284 * Makefile.in (STAGECOPYSTUFF): Add tm-constrs.h.
1285 (object_out_file): Add tm-constrs.h dependency.
1286 (insn-emit.o): Same.
1287 (insn-output.o): Same.
1288 (insn-peep.o): Same.
1289 (insn-preds.o): Same.
1290 (insn-recog.o): Same.
1291 (tm-constsr.h): New target.
1292 (s-constrs-h): New target.
1294 * config/rs6000/constraints.md: New file.
1295 * config/rs6000/rs6000.c: Include tm-constrs.h.
1296 (num_insn_constant_wide): Convert to satisfies_constraint.
1297 (rs6000_rtx_costs): Convert to satisfies_constraint.
1298 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Delete.
1299 (CONST_OK_FOR_LETTER_P): Delete.
1300 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1301 (EXTRA_CONSTRAINT): Delete.
1302 (EXTRA_MEMORY_CONSTRAINT): Delete.
1303 (EXTRA_ADDRESS_CONSTRAINT): Delete.
1304 * config/rs6000/predicates.md: Convert to satisfies_constraint.
1305 * config/rs6000/rs6000.md: Include constraints.md. Convert to
1306 satisfies_constraint.
1308 * config/i386/i386.c: Include tm-constrs.h.
1310 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
1312 * tree-loop-linear.c (compute_data_dependences_for_loop): Adjust calls.
1313 * tree-data-ref.c (find_data_references_in_loop,
1314 compute_data_dependences_for_loop): Use pointers to VEC.
1315 (analyze_all_data_dependences): Adjust calls.
1316 * tree-data-ref.h (find_data_references_in_loop,
1317 compute_data_dependences_for_loop): Adjust declarations.
1318 * tree-vect-analyze.c (vect_analyze_data_refs): Adjust call to
1319 compute_data_dependences_for_loop.
1321 2006-03-29 Paul Brook <paul@codesourcery.com>
1323 * config/arm/vfp.md (movsf_vfp): Disparage w<->r alternatives.
1326 2006-03-29 Sebastian Pop <pop@cri.ensmp.fr>
1328 PR tree-optimization/26859
1329 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Avoid
1331 (convert_step): Remove TREE_OVERFLOW and TREE_CONSTANT_OVERFLOW flags
1332 for the step after fold_convert.
1334 2006-03-29 Paul Brook <paul@codesourcery.com>
1336 * reload1.c (choose_reload_regs): Check for all RTX_AUTOINC operators.
1337 (inc_for_reload): Handle PRE_MODIFY and POST_MODIFY addresses.
1339 2006-03-29 Paul Brook <paul@codesourcery.com>
1342 * targhooks.c (default_narrow_bitfield): New fuction.
1343 * targhooks.h (default_narrow_bitfield): add prototype.
1344 * target.h (gcc_target): Add narrow_volatile_bitfield.
1345 * target-def.h (TARGET_NARROW_VOLATILE_BITFIELD): Define.
1346 * stor-layout.c (get_best_mode): Use targetm.narrow_volatile_bitfield.
1347 * doc/tm.texi: Document TARGET_NARROW_VOLATILE_BITFIELDS.
1348 * config/arm/arm.c (TARGET_NARROW_VOLATILE_BITFIELD): Define.
1350 2006-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
1352 * config.gcc (s390-*-linux-*, s390x-*-linux*): Add t-dfprules to
1354 * config/s390/s390.c (S390_scalar_mode_supported_p): New function.
1355 (NR_C_MODES): Add TDmode, DDmode and SDmode.
1356 (s390_output_pool_entry, ): Accept MODE_DECIMAL_FLOAT.
1357 (s390_hard_regno_mode_ok): Disallow TDmode in integer regs.
1358 (s390_function_arg_float): Allow SDmode and DDmode values to be
1359 passed in floating point registers.
1360 (s390_function_arg_integer, s390_function_value): Replace MODE_FLOAT
1361 check with SCALAR_FLOAT_MODE_P.
1362 (TARGET_SCALAR_MODE_SUPPORTED_P): Define target macro.
1364 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
1366 PR tree-optimization/25985
1367 * tree-ssa-loop-niter.c (number_of_iterations_le,
1368 number_of_iterations_ne): Make comments more precise.
1369 (number_of_iterations_cond): Add only_exit argument. Use the
1370 fact that signed variables do not overflow only when only_exit
1372 (loop_only_exit_p): New.
1373 (number_of_iterations_exit): Pass result of loop_only_exit_p to
1374 number_of_iterations_cond.
1376 2006-03-28 Zdenek Dvorak <dvorakz@suse.cz>
1378 PR tree-optimization/26643
1379 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not handle
1382 2006-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
1384 * config/sh/sh.md (udivsi3_i4_int): Clobber MACH_REG and MACL_REG.
1385 (divsi3_i4_int): Likewise.
1387 2006-03-28 Roger Sayle <roger@eyesopen.com>
1389 * expr.c (emit_group_store): Only create a new pseudo reg if the
1390 quantity it needs to hold isn't already a suitable pseudo.
1392 2006-03-28 Jeff Law <law@redhat.com>
1394 * timevar.def (TV_TREE_PHI_CPROP): New timevar.
1395 * tree-ssa-dom.c (pass_phi_only_cprop): Use it.
1397 2006-03-28 Roger Sayle <roger@eyesopen.com>
1399 * fold-const.c (fold_binary) <BIT_XOR_EXPR>: Fold (X & Y) ^ Y as
1400 the equivalent ~X & Y, and the symmetry related transformations.
1401 (fold_binary) <BIT_AND_EXPR>: Similarly, fold (X ^ Y) & Y as
1402 ~X & Y, and symmetry related transforms.
1404 2006-03-28 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1406 Revert my 2006-03-27 patches.
1408 2006-03-28 Roger Sayle <roger@eyesopen.com>
1410 * fold-const.c (fold_unary) <NOP_EXPR>: Fold (T1)(~(T2)X) as
1411 ~(T1)X, when T1 and T2 are integer types of the same precision
1412 and (T2)X isn't an extension.
1414 2006-03-28 Jeff Law <law@redhat.com>
1416 PR tree-optimization/26796
1417 * tree-ssa-dom.c (propagate_rhs_into_lhs): Queue blocks which
1418 need EH edge cleanups rather than purging them immediately.
1419 (eliminate_degenerate_phis): Handle queued EH cleanups.
1421 2006-03-28 Daniel Berlin <dberlin@dberlin.org>
1423 * tree-ssa-alias.c (create_sft): Initially inherit TREE_ADDRESSABLE
1426 2006-03-27 Roger Sayle <roger@eyesopen.com>
1429 * fold-const.c (fold_binary) <MINUS_EXPR>: Call fold_convert to
1430 cast BIT_NOT_EXPR operand to the correct type.
1432 2006-03-27 Sebastian Pop <pop@cri.ensmp.fr>
1434 * tree-loop-linear.c: Don't include varray.h.
1435 (gather_interchange_stats, try_interchange_loops,
1436 linear_transform_loops): Use VEC instead of VARRAY.
1437 * lambda-mat.c: Don't include varray.h.
1438 * tree-chrec.c: Same.
1439 * lambda-trans.c: Same.
1440 * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info): Use
1441 VEC instead of VARRAY.
1442 * tree-vectorizer.h: Idem.
1443 * tree-data-ref.c (dump_data_references,
1444 dump_data_dependence_relations, dump_dist_dir_vectors, dump_ddrs,
1445 initialize_data_dependence_relation, finalize_ddr_dependent,
1446 compute_all_dependences, find_data_references_in_loop,
1447 compute_data_dependences_for_loop, analyze_all_data_dependences,
1448 free_dependence_relation, free_dependence_relations,
1449 free_data_refs): Idem.
1450 * tree-data-ref.h (data_reference_p, subscript_p): New.
1451 (data_dependence_relation, DDR_SUBSCRIPT, DDR_NUM_SUBSCRIPTS): Use
1452 VEC instead of VARRAY.
1453 (DDR_SUBSCRIPTS_VECTOR_INIT): Removed.
1454 (find_data_references_in_loop, compute_data_dependences_for_loop,
1455 dump_ddrs, dump_dist_dir_vectors, dump_data_references,
1456 dump_data_dependence_relations, free_dependence_relations,
1457 free_data_refs): Adjust declaration.
1458 (lambda_transform_legal_p): Move declaration here...
1459 * tree-vect-analyze.c (vect_analyze_data_ref_dependences,
1460 vect_compute_data_refs_alignment, vect_verify_datarefs_alignment,
1461 vect_enhance_data_refs_alignment, vect_analyze_data_ref_accesses,
1462 vect_analyze_data_refs): Use VEC instead of VARRAY.
1463 * lambda.h (lambda_transform_legal_p): ...from here.
1464 * lambda-code.c (lambda_transform_legal_p): Use VEC instead of VARRAY.
1465 * tree-vect-transform.c (vect_update_inits_of_drs): Idem.
1466 * Makefile.in (tree-loop-linear.o, lambda-mat.o, lambda-trans.o,
1467 tree-chrec.o): Don't depend on VARRAY_H.
1469 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1471 * rtl.def (Copyright): Update date.
1472 (DEPS_LIST): Change type of the second operand to 'int'.
1473 * target.h (Copyright): Update date.
1474 (struct gcc_target.speculate_insn): Change type of the second parameter
1476 * lists.c (Copyright): Update date.
1477 (alloc_DEPS_LIST): Change signature. Update reference to the second
1478 operand of the DEPS_LIST.
1479 (copy_DEPS_LIST_list): Update reference to the second operand of the
1481 * rtl.h (Copyright): Update date.
1482 (alloc_DEPS_LIST): Update signature.
1483 * sched-int.h (Copyright): Update date.
1484 (ds_t): Change typedef to 'int'.
1485 (DEP_STATUS, BITS_PER_DEP_STATUS): Update.
1487 2006-03-27 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1489 * haifa-sched.c (Copyright): Update date.
1490 (try_ready): Change condition to restore non-speculative pattern
1492 (process_insn_depend_be_in_spec): Code to keep probability of the
1493 speculative dependence non-decreasing.
1495 2006-03-27 Bernd Schmidt <bernd.schmidt@analog.com>
1497 * regrename.c (replace_oldest_value_addr): Initialize a variable to
1498 shut up the compiler.
1500 2006-03-27 J"orn Rennecke <joern.rennecke@st.com>
1502 * config/sh/t-sh ($(T)libic_invalidate_array_4-100.a): Fix rule
1503 to use lib prefix for target.
1504 ($(T)libic_invalidate_array_4-200.a): Likewise.
1505 ($(T)libic_invalidate_array_4a.a): Likewise.
1507 2006-03-27 Andrew Stubbs <andrew.stubbs@st.com>
1508 J"orn Rennecke <joern.rennecke@st.com>
1510 * superh.opt: New file.
1511 * sh.c (boardtype, osruntime): Remove.
1512 * superh.h (SUBTARGET_OPTIONS): Remove.
1513 * config.gcc (sh*-superh-elf): Add sh/superh.opt to extra_options.
1515 * config.gcc (sh*-*-*): Don't use c-c ranges for tr. Quote sed
1516 arguments with ^ and/or [].
1518 * config.gcc (sh-*-*): Add quoting to account for quirk of
1520 Replace == with = in enable_incomplete_targets test.
1522 * config/sh/superh.h (SUBTARGET_LINK_SPEC): Replace LITTLE_ENDIAN_BIT
1523 with MASK_LITTLE_ENDIAN.
1525 * config.gcc (sh*-superh-elf): Add sh/superh.h to tm_file.
1526 * config/sh/sh.opt: Added to some comments.
1527 * config/sh/superh.h: Removed some chaff.
1529 * config/sh/sh.opt: Add m4-[1234]00* options.
1530 * config/sh/sh.c (sh_handle_option): Likewise.
1531 * config/sh/t-sh (IC_EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Define.
1532 (ic_invalidate_array_4-100.o): New rule.
1533 ($(T)libic_invalidate_array_4-100.a): Likewise.
1534 (ic_invalidate_array_4-200.o): Likewise.
1535 ($(T)libic_invalidate_array_4-200.a): Likewise.
1536 (ic_invalidate_array_4a.o): Likewise.
1537 ($(T)libic_invalidate_array_4a.a): Likewise.
1538 * config/sh/t-elf (EXTRA_MULTILIB_PARTS): Add IC_EXTRA_PARTS.
1539 * config/sh/embed-elf.h (LIBGCC_SPEC): Add clauses for m4-100*,
1541 * config/sh/crt1.asm: Merged in profiling code.
1542 * config/sh/superh.h (STARTFILE_SPEC): Override.
1543 * config/sh/t-superh: Override EXTRA_MULTILIB_PARTS.
1544 Add rules for $(T)crt1-mmu.o, $(T)gcrt1-mmu.o and $(T)gcrt1.o.
1545 * config.gcc (sh*-superh-elf): Add t-superh to tmake_file.
1547 * t-sh (MULTILIB_MATCHES): Add sh4-[1245]00* variants.
1548 * config/sh/t-superh: Removed now-redundant MULTILIB_OPTIONS /
1549 MULTILIB_DIRNAMES / MULTILIB_MATCHES settings.
1551 * sh.opt (mpretend-cmove): New option.
1552 * sh.h (OPERRIDE_OPTIONS): Switch it off if not TARGET_SH1.
1553 * sh.md (movsicc_t_false, movsicc_t_tru): New patterns.
1554 (movsicc): Add TARGET_PRETEND_CMOVE code.
1556 2006-03-27 Andreas Krebbel <krebbel1@de.ibm.com>
1558 * config/s390/s390-protos.h (s390_hard_regno_mode_ok,
1559 s390_class_max_nregs): New function prototypes.
1560 * config/s390/s390.c (REGNO_PAIR_OK): New macro.
1561 (s390_hard_regno_mode_ok, s390_class_max_nregs): New functions.
1562 * config/s390/s390.h (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK,
1563 CLASS_MAX_NREGS): Macro bodies replaced by function calls.
1565 2006-03-26 Geoffrey Keating <geoffk@apple.com>
1567 * dwarf2out.c (add_location_or_const_value_attribute): Call
1568 tree_add_const_value_attribute if nothing else works.
1569 (reference_to_unused): New.
1570 (rtl_for_decl_init): Use reference_to_unused to decide whether
1571 to output an initializer.
1573 2006-03-27 Alan Modra <amodra@bigpond.net.au>
1576 * config/rs6000/rs6000.md (DF reg move peephole): Prevent
1577 peephole removing spe frob_di_df_2.
1579 2006-03-26 Sebastian Pop <pop@cri.ensmp.fr>
1581 * tree-data-ref.c: Rename DDR_SIZE_VECT to DDR_NB_LOOPS.
1582 (subscript_dependence_tester_1): Declared.
1583 (print_dir_vectors, print_dist_vectors): New.
1584 (debug_data_dependence_relation): New.
1585 (dump_data_dependence_relation): Print more details.
1586 (initialize_data_dependence_relation): Initialize DDR_LOOP_NEST.
1587 (analyze_subscript_affine_affine): Don't ICE when gcd_alpha_beta is 0.
1588 (save_dist_v, save_dir_v, add_outer_distances,
1589 build_classic_dist_vector_1): New.
1590 (build_classic_dist_vector): Rewrite to work on DDR_LOOP_NEST.
1591 Don't test for lambda_vector_lexico_pos.
1592 (same_access_functions, add_multivariate_self_dist,
1593 add_other_self_distances, dir_from_dist): New.
1594 (build_classic_dir_vector): Replace implementation almost identical to
1595 build_classic_dist_vector with a walk of DDR_DIST_VECTS with a call to
1597 (subscript_dependence_tester_1): New.
1598 (subscript_dependence_tester): Handle the lexicographically negative
1599 distance vectors by recomputing the dependence relation.
1600 (compute_affine_dependence): Remove parameter loop_nest_depth.
1601 (compute_self_dependence): Don't call compute_subscript_distance.
1602 (compute_all_dependences): Remove parameters nb_loops, loop_nest_depth.
1603 Add a parameter for the loop_nest.
1604 (find_loop_nest_1, find_loop_nest): New.
1605 (compute_data_dependences_for_loop): Compute the loop nest, and give
1606 up if the nest is not well formed.
1607 * tree-data-ref.h (loop_p): New.
1608 (struct data_dependence_relation): Replace size_vect field with
1609 loop_nest, a vec of loops.
1610 (DDR_SIZE_VECT): Renamed DDR_NB_LOOPS.
1611 (DDR_LOOP_NEST): New.
1612 (print_dir_vectors, print_dist_vectors,
1613 debug_data_dependence_relation): Declared.
1614 (index_in_loop_nest): New.
1615 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Use
1616 DDR_LOOP_NEST and index_in_loop_nest to determine the dependence
1619 2006-03-25 Adam Nemet <anemet@caviumnetworks.com>
1621 * simplify-rtx.c (simplify_relational_operation): Call
1622 simplify_relational_operation_1 even if mode is VOIDmode.
1624 2006-03-25 Daniel Berlin <dberlin@dberlin.org>
1626 PR tree-optimization/26804
1627 * tree.h (DECL_CALL_CLOBBERED): New macro.
1628 (tree_decl_common): Add call_clobbered_flag.
1629 * tree-flow-inline.h (is_call_clobbered): Use DECL_CALL_CLOBBERED.
1630 (mark_call_clobbered): Set DECL_CALL_CLOBBERED.
1631 (clear_call_clobbered): Clear DECL_CALL_CLOBBERED.
1632 (mark_non_addressable): Ditto.
1633 * tree-ssa.c (verify_call_clobbered): New function.
1634 (verify_alias_info): Use it.
1635 * tree-pass.h (pass_reset_cc_flags): New prototype.
1636 * tree-ssa-alias.c (pass_reset_cc_flags): New structure.
1637 (reset_cc_flags): New function.
1638 * passes.c (init_optimization_passes): Call reset_cc_flags after
1639 initializing referenced_vars.
1641 2006-03-25 Uros Bizjak <uros@kss-loka.si>
1642 Roger Sayle <roger@eyesopen.com>
1645 * fold-const.c (fold_binary) [RDIV_EXPR]: Do not optimize A / A
1646 to 1.0 for non-real operands. Implement A / A optimization for
1649 2006-03-25 H.J. Lu <hongjiu.lu@intel.com>
1651 * config/i386/i386.c (size_cost): Correct the comment for
1652 cost of storing fp registers.
1653 (i386_cost): Likewise.
1654 (i486_cost): Likewise.
1655 (pentium_cost): Likewise.
1656 (pentiumpro_cost): Likewise.
1657 (k6_cost): Likewise.
1658 (athlon_cost): Likewise.
1659 (k8_cost): Likewise.
1660 (pentium4_cost): Likewise.
1661 (nocona_cost): Likewise.
1662 (generic64_cost): Likewise.
1663 (generic32_cost): Likewise.
1665 2006-03-24 Denis Chertykov <denisc@overta.ru>
1667 * config/avr/avr-protos.h (extra_constraint): Delete.
1668 (extra_constraint_Q): New declaration.
1669 * config/avr/constraints.md: New file.
1670 * config/avr/avr.md: Include it.
1671 (REG_X, REG_Y, REG_Z, REG_W): New constants.
1672 (TMP_REGNO, ZERO_REGNO): Likewise.
1673 (UNSPEC_STRLEN, UNSPEC_INDEX_JMP): Likewise.
1674 * config/avr/avr.c (avr_reg_class_from_letter): Delete.
1675 (extra_constraint): Delete.
1676 (extra_constraint_Q): Test for memory constraint 'Q'.
1677 * config/avr/avr.h (REG_X,REG_Y,REG_Z,REG_W): Delete.
1678 (REG_CLASS_FROM_LETTER): Delete.
1679 (CONST_OK_FOR_LETTER_P): Delete.
1680 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1681 (EXTRA_CONSTRAINT): Delete.
1682 (TMP_REGNO): Delete.
1683 (ZERO_REGNO): Delete.
1685 2006-03-24 Jeff Law <law@redhat.com>
1687 * tree-ssa-dom.c (propagate_rhs_into_lhs): Don't call update_stmt
1688 directly. Call mark_new_vars_to_rename slightly earlier.
1690 2006-03-24 Geoffrey Keating <geoffk@apple.com>
1692 * dwarf2out.c (is_c_family): Understand new DWARF3 language types.
1694 (gen_compile_unit_die): Use new language types for Objective-C and
1696 (dwarf2out_decl): Use is_cxx rather than testing explicitly against
1697 DW_LANG_C_plus_plus.
1700 * config/t-darwin (crt3.o): Work around bug 26840.
1701 * config/darwin-crt3.c: Rewrite.
1702 * config/darwin.h (STARTFILE_SPEC): Don't use -l for crt3.o.
1704 2006-03-24 Carlos O'Donell <carlos@codesourcery.com>
1706 * doc/invoke.texi: Document -femit-class-debug-always
1707 * common.opt: Add -femit-class-debug-always.
1709 2006-03-24 Andreas Krebbel <krebbel1@de.ibm.com>
1711 * config/s390/s390.c (s390_decompose_address): Allow SImode for
1712 index and base register.
1713 (s390_expand_plug_operand, legitimate_address_p, preferred_la_operand_p,
1714 print_operand_address, print_operand): Replaced REG_OK_FOR_BASE_STRICT_P
1715 with REGNO_OK_FOR_BASE_P and REG_OK_FOR_INDEX_STRICT_P with
1716 REGNO_OK_FOR_INDEX_P.
1717 * config/s390/s390.h (REGNO_OK_FOR_INDEX_P): Replaced check with
1719 (REG_OK_FOR_INDEX_NONSTRICT_P, REG_OK_FOR_BASE_NONSTRICT_P,
1720 REG_OK_FOR_INDEX_STRICT_P, REG_OK_FOR_BASE_STRICT_P, REG_OK_FOR_INDEX_P,
1721 REG_OK_FOR_BASE_P): Definitions removed.
1723 2006-03-24 Jakub Jelinek <jakub@redhat.com>
1726 * gimplify.c (gimplify_bind_expr): Only call omp_add_variable on
1727 non-global variables that don't have DECL_SEEN_IN_BIND_EXPR_P bit
1728 set yet or weren't marked as local yet.
1730 2006-03-24 Bernd Schmidt <bernd.schmidt@analog.com>
1732 * regrename.c (scan_rtx_address): Initialize a variable to shut up
1735 2006-03-24 Eric Botcazou <ebotcazou@adacore.com>
1737 * config/rs6000/rs6000-protos.h (rs6000_offsettable_memref_p): Declare.
1738 (rs6000_legitimate_small_data_p): Delete.
1739 * config/rs6000/rs6000.c (rs6000_offsettable_memref_p): New predicate.
1740 (rs6000_legitimate_small_data_p): Rename to legitimate_small_data_p
1741 and make static. Add forward declaration. Update uses.
1742 (rs6000_split_multireg_move): Use rs6000_offsettable_memref_p instead
1743 of offsettable_memref_p.
1744 * config/rs6000/rs6000.md (movdf_hardfloat32): Revert 2005-08-23 fix.
1745 Use rs6000_offsettable_memref_p instead of a less accurate predicate.
1747 2006-03-24 Jeff Law <law@redhat.com>
1749 * tree-ssa-dom.c (propagate_rhs_into_lhs): Temporarily work
1750 around bug in immediate-use iterator.
1752 2006-03-24 Alan Modra <amodra@bigpond.net.au>
1755 * config/rs6000/darwin-ldouble.c: Don't compile when __NO_FPRS__
1756 or __LITTLE_ENDIAN__.
1758 2006-03-23 J"orn Rennecke <joern.rennecke@st.com>
1760 * config/sh/divtab-sh4.c, config/sh/divcost-analysis: New files.
1761 * config/sh/lib1funcs.asm (div_table): Add !__SH5__ variant.
1762 * config/sh/t-sh (LIB1ASMFUNCS): Add _div_table.
1763 * config/sh/sh.opt (mdiv=): Amend description.
1764 * config/sh/sh.h (TARGET_DIVIDE_CALL_DIV1): New macro.
1765 (TARGET_DIVIDE_CALL_FP, TARGET_DIVIDE_CALL_TABLE): Likewise.
1766 (sh_divide_strategy_e): Add new members SH_DIV_CALL_DIV1,
1767 SH_DIV_CALL_FP, SH_DIV_CALL_TABLE and SH_DIV_INTRINSIC.
1768 (OVERRIDE_OPTIONS): Also process sh_div_str for TARGET_SH1.
1769 Calculate sh_divsi3_libfunc using TARGET_DIVIDE_* macros.
1770 * config/sh/sh.md (udivsi3_i4_int, divsi3_i4_int): New patterns.
1771 (udivsi3, divsi3): Use them. Check TARGET_DIVIDE_CALL_TABLE /
1772 TARGET_DIVIDE_CALL_FP.
1774 2006-03-23 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1776 * haifa-sched.c (choose_ready): Fix type of the local variable.
1777 Move local variables. Add comment.
1778 (check_reg_live): Change signature. Make callable from debugger.
1779 * sched-int.h (check_reg_live): Update signature.
1780 * sched-ebb.c (check_reg_live): Update parameters.
1781 * sched-rgn.c (check_reg_live): Ditto.
1782 (region_head_or_leaf_p): Check pointer before dereferencing.
1783 * config/ia64/ia64.c (ia64_set_sched_flags): Disable data speculation
1784 before reload on optimization levels below 1.
1786 2006-03-23 Richard Henderson <rth@redhat.com>
1788 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject
1792 * config/alpha/predicates.md (local_symbolic_operand): Reject
1795 2006-03-23 Andrew Pinski <pinskia@physics.uc.edu>
1798 * tree-ssa-pre.c (create_value_expr_from): Don't reject
1799 expressions which have overflowed constants.
1801 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
1803 * cse.c (cse_end_of_basic_block): Do not check for LOOP_END note.
1805 2006-03-23 Zdenek Dvorak <dvorakz@suse.cz>
1807 * cfgloopmanip.c (create_loop_notes): Removed.
1808 * final.c (final_scan_insn): Do not handle loop notes.
1809 * jump.c (squeeze_notes): Ditto.
1810 * cfglayout.c (skip_insns_after_block,
1811 duplicate_insn_chain): Ditto.
1812 * cfgcleanup.c (rest_of_handle_jump2): Do not call
1814 * cfgloop.h (create_loop_notes): Declaration removed.
1816 2006-03-23 Richard Sandiford <richard@codesourcery.com>
1818 * varasm.c (output_constant_pool): Restore fnname and fndecl
1820 (assemble_start_function): Adjust call accordingly.
1821 (assemble_end_function): Likewise.
1823 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1826 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
1829 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
1831 2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1834 * system.h (ICE_EXIT_CODE): New macro.
1835 * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
1836 (diagnostic_action_after_output): Likewise.
1837 * gcc.c (fatal_ice): New function.
1838 (execute): Use it instead of fatal.
1839 (fancy_abort): Likewise.
1840 * doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
1842 2006-03-22 Jeff Law <law@redhat.com>
1844 * loop-unroll.c (analyze_iv_to_split_insn): Handle
1845 iv_analyze_result returning false.
1847 2006-03-22 Jie Zhang <jie.zhang@analog.com>
1849 * config/bfin/bfin.h (ASM_FORMAT_PRIVATE_NAME): Remove.
1851 2006-03-22 Richard Henderson <rth@redhat.com>
1854 * except.c (duplicate_eh_regions_0): New.
1855 (duplicate_eh_region_1): Duplicate the children of the node as
1856 well as the node itself. Link them up properly.
1857 (duplicate_eh_region_2): Merge into ...
1858 (duplicate_eh_regions): ... here. Take copy_region argument, and
1859 copy only a sub-tree if asked. Simplify copying and fixup.
1860 (eh_region_outer_p): New.
1861 * except.h (duplicate_eh_regions): Update decl.
1862 (eh_region_outer_p): Declare.
1863 * omp-low.c (lower_omp_single): Fix eh region placement wrt OMP_RETURN.
1864 (lower_omp_master): Likewise.
1865 (lower_omp_ordered): Likewise.
1866 * tree-cfg.c (struct move_stmt_d): Add new_label_map.
1867 (move_stmt_r): Use it to remap labels. Handle recursion vs
1868 remap_decls_p properly.
1869 (move_block_to_fn): Pass in new_label_map. Remap RESX_EXPR.
1870 (find_outermost_region_in_block): New.
1871 (new_label_mapper): New.
1872 (move_sese_region_to_fn): Copy eh information to the new function
1874 * tree-inline.c (copy_cfg_body): Update for new duplicate_eh_regions
1876 * tree-pretty-print.c (dump_generic_node): Dump RESX_EXPR region
1879 2006-03-22 Richard Sandiford <richard@codesourcery.com>
1881 * doc/md.texi (-mshared): Mention that -mshared code can be linked
1882 into shared libraries.
1884 2006-03-22 Richard Sandiford <richard@codesourcery.com>
1886 * doc/md.texi: Refer to i386/constraints.md instead of
1888 * config/i386/constraints.md: New file, extracted from...
1889 * config/i386/predicates.md: ...here.
1890 * config/i386/i386.md: Include constraints.md.
1892 2006-03-21 Jason Merrill <jason@redhat.com>
1894 * builtins.c (expand_builtin_fork_or_exec): Fix pasto.
1897 * expr.c (init_block_move_fn): Force default visibility.
1898 (init_block_clear_fn): Likewise.
1899 * builtins.c (expand_builtin_fork_or_exec): Likewise.
1900 * targhooks.c (default_external_stack_protect_fail): Likewise.
1902 2006-03-21 Richard Sandiford <richard@codesourcery.com>
1904 * config/mips/predicates.md (const_call_insn_operand): Allow direct
1905 calls to locally-defined functions if TARGET_ABSOLUTE_ABICALLS.
1906 * config/mips/mips.md (jal_macro): Test TARGET_ABSOLUTE_ABICALLS.
1907 Use TARGET_OLDABI instead of !TARGET_NEWABI.
1908 (loadgp): Use mips_current_loadgp_style.
1909 (loadgp_noshared): New pattern.
1910 (sibcall_internal): Use MIPS_CALL.
1911 (sibcall_value_internal): Likewise.
1912 (sibcall_value_multiple_internal): Likewise.
1913 (call_internal): Likewise.
1914 (call_value_internal): Likewise.
1915 (call_value_multiple_internal): Likewise.
1916 (call_split): Use MIPS_CALL and add an 'S' constraint.
1917 (call_value_split): Likewise.
1918 (call_value_multiple_split): Likewise.
1919 * config/mips/mips.opt (-mabicalls): Tweak docstring.
1920 (-mshared): New option.
1921 * config/mips/mips-protos.h (mips_loadgp_style): New enum.
1922 (mips_current_loadgp_style): Declare.
1923 * config/mips/mips.c (mips_classify_symbol): Avoid using
1924 SYMBOL_GOT_LOCAL if TARGET_ABSOLUTE_ABICALLS. Use SYMBOL_GENERAL
1925 rather than SYMBOL_GOT_GLOBAL for locally-binding symbols if
1926 TARGET_ABSOLUTE_ABICALLS.
1927 (override_options): Adjust comments. Improve the warning that is
1928 issued when -mabicalls and -G are used together.
1929 (mips_file_start): Remove comment.
1930 (mips_current_loadgp_style): New function.
1931 (mips_gnu_local_gp): New variable.
1932 (mips_emit_loadgp): Use mips_current_loadgp_style. Handle
1934 (mips_output_function_prologue): Use mips_current_laodgp_style.
1935 (mips_expand_prologue): Call mips_emit_loadgp before emitting
1936 the cprestore instruction.
1937 (mips_extra_live_on_entry): Fix reversed test. Don't make $25
1938 live for TARGET_ABSOLUTE_ABICALLS.
1939 * config/mips/mips.h (TARGET_ABSOLUTE_ABICALLS): New macro.
1940 (ASM_SPEC): Pass down -mshared and -mno-shared.
1941 (MIPS_CALL): New macro.
1942 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove __ABICALLS__
1944 * doc/invoke.texi (-mabicalls): Update documentation.
1945 (-mshared): Document.
1947 2006-03-21 Steve Ellcey <sje@cup.hp.com>
1949 * config/ia64/unwind-hpux.c: New file.
1950 * config/ia64/t-hpux: Add unwind-hpux.c to libgcc.
1952 2006-03-21 Steve Ellcey <sje@cup.hp.com>
1955 * config/pa/pa64-hpux.h (LIB_SPEC): Fix for -mt and -pthread options.
1957 2006-03-21 Jeff Law <law@redhat.com>
1959 * tree-vrp.c (extract_range_from_unary_expr): Derive ranges for
1960 type conversions of a VR_VARYING source to a wider type.
1962 2006-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
1964 * config.gcc (i[34567]86-*-solaris2*): Add config/sol2-10.h to
1965 tm_file on Solaris 10 and later.
1966 (sparc64-*-solaris2*): Likewise.
1967 (sparc-*-solaris2*): Likewise.
1968 * config/sol26.h: Rename to config/sol2-6.h.
1969 * config/sol2-10.h: New file.
1971 2006-03-21 Andrew Pinski <pinskia@physics.uc.edu>
1974 * tree-ssa-pre.c (create_component_ref_by_pieces):
1977 2006-03-21 Jakub Jelinek <jakub@redhat.com>
1980 * tree.c (get_callee_fndecl): If CALL is error_mark_node,
1981 return it immediately.
1983 2006-03-21 Michael Matz <matz@suse.de>
1985 * genautomata.c (<struct state>, num_out_arcs, presence_signature):
1987 (remove_arc, add_arc): Update num_out_arcs member.
1988 (set_out_arc_insns_equiv_num): Returns nothing instead of number
1990 (cache_presence): New function.
1991 (compare_states_for_equiv): New function.
1992 (state_is_differed): Don't take number of outargs, adjust callers.
1993 Use new invariant for speeding up.
1994 (init_equiv_class): Create initial classes based on sorted
1996 (partition_equiv_class): Don't track out_arcs_num.
1997 (evaluate_equiv_classes): Call cache_presence on all states and
2000 2006-03-21 Bernd Schmidt <bernd.schmidt@analog.com>
2002 * config/bfin/bfin-protos.h (bfin_dsp_memref_p): Declare.
2003 * config/bfin/bfin.c (bfin_dsp_memref_p): New function.
2004 (bfin_valid_reg_p): Test for pseudos explicitly and use only
2005 REGNO_MODE_CODE_OK_FOR_BASE_P. New args MODE and OUTER_CODE; all
2007 * config/bfin/bfin.h (PREG_P): Use P_REGNO_P.
2008 (IREG_P, P_REGNO_P, I_REGNO_P): New macros.
2009 (enum reg_class, REG_CLASS_CONTENTS): Add IPREGS.
2010 (BASE_REG_CLASS, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2011 REGNO_OK_FOR_BASE_STRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): Delete
2013 (IREG_POSSIBLE_P, MODE_CODE_BASE_REG_CLASS,
2014 REGNO_MODE_CODE_OK_FOR_BASE_P): New macros.
2015 (REGNO_REG_CLASS): ARGP is in PREGS.
2016 * config/bfin/bfin.md (movhi_insn): Allow for addresses containing
2018 (zero_extendhisi2, extendhisi2): Likewise; changed to define_and_split
2019 to deal with those addresses.
2020 * addresses.h: New file.
2021 * caller-save.c: Include "addresses.h".
2022 (init_caller_save): Use new base_reg_class function.
2023 * rtl-factoring.c: Include "addresses.h".
2024 (recompute_gain_for_pattern_seq): Use new function ok_for_base_p_1.
2025 * recog.c: Include "addresses.h".
2026 (preprocess_constraints): Use new base_reg_class function.
2027 * regrename.c: Include "addresses.h".
2028 (scan_rtx_address): Use new regno_ok_for_base_p and base_reg_class
2029 functions. Keep track of a new var INDEX_CODE to compute valid
2031 (replace_oldest_value_addr): Likewise.
2032 (replace_oldest_value_mem): Use base_reg_class.
2033 * reload.c: Include "addresses.h".
2034 (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Delete macros.
2035 (find_reloads): Use new base_reg_class function.
2036 (find_reloads_address): Likewise; also use regno_ok_for_base_p.
2037 (find_reloads_address_1): Likewise. New args OUTER_CODE and INDEX_CODE;
2038 all callers and prototype changed.
2039 * reload1.c: Include "addresses.h".
2040 (maybe_fix_stack_asms): Use base_reg_class.
2041 * regclass.c: Include "addresses.h".
2042 (ok_for_index_p_nonstrict, ok_for_base_p_nonstrict): New functions.
2043 (init_reg_autoinc): Use new base_reg_class function.
2044 (record_reg_classes): Likewise.
2045 (record_address_regs): Delete arg CLASS; add args CONTEXT, MODE,
2046 OUTER_CODE and INDEX_CODE. All callers and prototype changed.
2047 Use new args to compute necessary class.
2049 * Makefile.in (regclass.o, reload.o, reload1.o, caller-save.o, recog.o,
2050 regrename.o, rtl-factoring.o): Update dependencies.
2051 * doc/tm.texi (MODE_CODE_BASE_REG_CLASS): Document.
2052 (REGNO_MODE_CODE_OK_FOR_BASE_P): Likewise.
2053 (REG_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_REG_BASE_P,
2054 REG_OK_FOR_INDEX_P): Delete documentation.
2056 2006-03-21 Alexey Starovoytov <alexey.starovoytov@sun.com>
2058 * config.gcc (sparc-*-solaris2*): Change the default CPU setting
2059 from V7 to V9 for Solaris 7 and above.
2061 2006-03-21 Toon Moene <toon@moene.indiv.nluug.nl>
2063 * doc/invoke.texi: Document new flag -fargument-noalias-anything.
2064 * tree-ssa-alias.c (may_alias_p): If flag_argument_noalias > 2,
2065 argument pointers may not alias any other storage.
2066 * common.opt: Define option -fargument-noalias-anything.
2067 * tree-ssa-structalias.c (intra_create_variable_infos): Fortran
2068 alias semantics is specified by flag_argument_noalias > 2.
2070 2006-03-20 Jeff Law <law@redhat.com>
2072 * tree-pass.h (pass_phi_only_copy_prop): Delete.
2073 (pass_phi_only_cprop): Declare.
2074 * passes.c (init_optimization_passes): Replace pass_phi_only_copy_prop
2076 * tree-ssa-dom.c (degenerate_phi_result): New function.
2077 (remove_stmt_or_phi, get_lhs_or_phi_result): Likewise.
2078 (get_rhs_or_phi_arg, propagate_rhs_into_lhs): Likewise.
2079 (eliminate_const_or_copy, eliminate_degenerate_phis_1): Likewise.
2080 (eliminate_degenerate_phis): Likewise.
2081 (pass_phi_only_cprop): New pass descriptor.
2082 * tree-ssa-copy.c (init_copy_prop): Lose PHIS_ONLY argument and
2083 support code. Callers updated.
2084 (execute_copy_prop, do_copy_prop): Likewise and corresponding changes.
2085 (store_copy_prop): Likewise.
2086 (do_phi_only_copy_prop, pass_phi_only_copy_prop): Remove.
2088 2006-03-20 Jason Merrill <jason@redhat.com>
2091 * c-pragma.c (visstack): Move out of handle_pragma_visibility.
2092 (push_visibility, pop_visibility): Likewise.
2093 * c-pragma.h: Declare them.
2095 2006-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
2097 * config/sh/sh.c (untangle_mova): Initialize n_addr and n_target.
2099 * config/sh/sh.c (find_regmode_weight): Change the type of the first
2100 parameter and use get_ebb_head_tail.
2101 (sh_md_init_global): Adjust uses of find_regmode_weight.
2103 2006-03-20 Steven Bosscher <stevenb.gcc@gmail.com>
2105 * function.h (struct function) <x_tail_recursion_reentry>:
2106 Rename to x_stack_check_probe_note.
2107 (tail_recursion_reentry): Rename to stack_check_probe_note.
2108 * function.c: Replace tail_recursion_reentry with
2109 stack_check_probe_note everywhere.
2110 (expand_function_start): Only emit a note for
2111 stack_check_probe_note with -fstack-protect.
2112 * stmt.c (expand_case): Don't emit NOTE_INSN_DELETED notes.
2114 * emit-rtl.c (remove_unnecessary_notes): Remove.
2115 (pass_remove_unnecessary_notes): Remove.
2116 * rtl.h (remove_unnecessary_notes): Remove prototype.
2117 * final.c (final_start_function): Don't call remove_unnecessary_notes.
2118 * tree-pass.h (pass_remove_unnecessary_notes): Remove.
2119 * passes.c (pass_remove_unnecessary_notes): Don't run it.
2121 2006-03-20 Andrew Pinski <pinskia@physics.uc.edu>
2124 * tree-ssa-pre (phi_translate): Handle ARRAY_REF's operands.
2125 (valid_in_set): Handle ARRAY_REF.
2126 Change "if min_variant or VH" to asserts.
2127 (create_component_ref_by_pieces): Handle ARRAY_REF.
2128 (create_expression_by_pieces): Likewise.
2129 (can_PRE_operation): ARRAY_REFs can now be PRE'd.
2131 2006-03-20 David Edelsohn <edelsohn@gnu.org>
2133 * genpreds.c (write_insn_extra_address_constraint): Argument `c'
2134 is operand of switch, not str[0].
2136 2006-03-20 Alan Modra <amodra@bigpond.net.au>
2138 * config/rs6000/rs6000.c (rs6000_handle_option): Use
2139 TARGET_NO_FP_IN_TOC inside #ifdef TARGET_USES_SYSV4_OPT too.
2141 2006-03-19 David Edelsohn <edelsohn@gnu.org>
2143 * genpreds.c (write_tm_preds_h): Add semicolon and newline at
2144 end of insn_extra_address_constraint declaration.
2146 2006-03-19 David Edelsohn <edelsohn@gnu.org>
2148 * config/rs6000/rs6000.opt (no-fp-in-toc): Use Var not Mask.
2149 (no-sum-in-toc): Same.
2150 * config/rs6000/rs6000.c (rs6000_handle_option): Use new
2152 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
2153 NO_FP_IN_TOC for -fPIC instead of mask.
2155 * config/rs6000/t-aix43 (T_ADAFLAGS): Delete.
2156 (BOOT_LDFLAGS): Delete.
2158 * config/rs6000/t-aix52: Same.
2160 * config/rs6000/rs6000.md (store_multiple_power): Delete.
2161 (stmsi[345678]_power): New.
2163 2006-03-17 Steve Ellcey <sje@cup.hp.com>
2165 * config/ia64/ia64.opt: Add empty line to end of file.
2167 2006-03-17 Richard Guenther <rguenther@suse.de>
2170 * builtins.c (get_pointer_alignment): For component style references
2171 adjust alignment to the component type alignment. Make sure
2172 to adjust alignment for component access of constants.
2174 2006-03-17 David Edelsohn <edelsohn@gnu.org>
2176 * config/rs6000/rs6000.md (strlensi): Emit barrier after
2179 2006-03-17 Paul Brook <paul@codesourcery.com>
2181 * doc/install.texi: Docuemnt --with-mode.
2182 * config.gcc: Add --with-mode for arm*-*-*.
2183 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "mode".
2185 2006-03-17 J"orn Rennecke <joern.rennecke@st.com>
2187 * sh.c (max_labelno_before_reorg): New variable.
2188 (sh_reorg): Initialize it.
2189 (find_barrier): Check max_labelno_before_reorg before using
2190 label_to_alignment. Take length of explicit alignment insns
2191 into account. When seeing a UNSPECV_CONST_END, return it.
2193 * sh.c (fixup_mova): Set mode of affected label to QImode.
2194 (untangle_mova): New function.
2195 (find_barrier): Use it. Check mode of label before decrementing
2197 (sh_reorg): Likewise.
2198 Set mode of all insns back to VOIDmode.
2200 * sh.c (MOVA_LABELREF): New macro.
2201 (mova_p, fixup_mova, sh_reorg): Use it.
2202 (find_barrier, sh_reorg): Don't count num_mova back to 0 unless
2203 ADDR_DIFF_VEC matches mova.
2205 2006-03-17 Steven Bosscher <stevenb.gcc@gmail.com>
2207 * dwarf2asm.c (dw2_asm_output_offset): Mark 'base' argument
2208 with ATTRIBUTE_UNUSED.
2210 2006-03-17 Alexandre Oliva <aoliva@redhat.com>
2212 * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack
2213 pointer, instead of assuming it is possible to derive the
2214 correct args size from a call insn.
2216 2006-03-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2218 * rtl.h (CONST_INT_P): Define.
2219 * config/vax/vax.c (print_operand_address): Use CONST_INT_P()
2220 instead of GET_CODE(x) == CONST_INT.
2221 (vax_rtx_costs): Likewise.
2222 (vax_output_int_move): Likewise.
2223 (vax_output_int_add): Likewise.
2224 (legitimate_constant_address_p): Likewise.
2225 (index_term_p): Likewise.
2226 * config/vax/vax.h (PRINT_OPERAND): Likewise.
2227 * config/vax/vax.md (and<mode>3): Likewise.
2228 (ashrsi3): Likewise.
2230 (movstricthi): Likewise.
2231 (movstrictqi): Likewise.
2232 (rotrsi3): Likewise.
2233 (five unnamed insns): Likewise.
2235 2006-03-16 Geoffrey Keating <geoffk@apple.com>
2237 * doc/tm.texi (SDB and DWARF): Add extra parameter to
2238 ASM_OUTPUT_DWARF_OFFSET. Use @var to indicate metavariables.
2239 * dwarf2asm.h (dw2_asm_output_offset): Add section parameter.
2240 * dwarf2asm.c (dw2_asm_output_offset): Add base section parameter.
2241 Pass to ASM_OUTPUT_DWARF_OFFSET.
2242 * dwarf2out.c (debug_frame_section): New.
2243 (output_call_frame_info): Use debug_frame_section. Pass it to
2244 dw2_asm_output_offset.
2245 (output_die): Pass appropriate section to dw2_asm_output_offset.
2246 (output_compilation_unit_header): Likewise.
2247 (output_pubnames): Likewise.
2248 (output_aranges): Likewise.
2249 (enum dw_val_class): Break dw_val_class_lbl_offset into
2250 dw_val_class_lineptr and dw_val_class_macptr.
2251 (add_AT_lbl_offset): Delete.
2252 (add_AT_lineptr): New.
2253 (add_AT_macptr): New.
2254 (AT_lbl): Expect a lineptr or macptr.
2255 (print_die): Handle dw_val_class_lineptr and dw_val_class_macptr.
2256 (attr_checksum): Likewise.
2257 (same_dw_val_p): Likewise.
2258 (size_of_die): Likewise.
2259 (value_format): Likewise.
2260 (output_die): Likewise.
2261 (dwarf2out_finish): Call add_AT_lineptr and add_AT_macptr instead of
2263 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
2264 * config/i386/i386.c (x86_file_start): Call darwin_file_start.
2265 * config/darwin-protos.h (darwin_file_start): New.
2266 (darwin_asm_output_dwarf_offset): New.
2267 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add extra parameter.
2268 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Call
2270 * config/darwin.c (darwin_emit_unwind_label): Don't output label
2271 if not EH section; simplify.
2272 (darwin_file_start): New.
2273 (darwin_asm_output_dwarf_offset): New.
2274 * config/darwin.h (DEBUG_FRAME_SECTION): In __DWARF segment,
2276 (DEBUG_INFO_SECTION): Likewise.
2277 (DEBUG_ABBREV_SECTION): Likewise.
2278 (DEBUG_ARANGES_SECTION): Likewise.
2279 (DEBUG_MACINFO_SECTION): Likewise.
2280 (DEBUG_LINE_SECTION): Likewise.
2281 (DEBUG_LOC_SECTION): Likewise.
2282 (DEBUG_PUBNAMES_SECTION): Likewise.
2283 (DEBUG_STR_SECTION): Likewise.
2284 (DEBUG_RANGES_SECTION): Likewise.
2285 (FRAME_BEGIN_LABEL): Must start with 'L' in debug section.
2286 (ASM_OUTPUT_DWARF_OFFSET): New.
2288 2006-03-16 Joseph S. Myers <joseph@codesourcery.com>
2290 * config.gcc (tm_defines): Always add to previous value rather
2293 2006-03-16 Richard Sandiford <richard@codesourcery.com>
2295 * config/mips/predicates.md (splittable_const_int_operand): New,
2296 split from move_operand.
2297 (splittable_symbolic_operand): New.
2298 (move_operand): Add commentary. Use splittable_const_int_operand.
2299 Inline mips_atomic_symbolic_constant_p.
2300 * config/mips/mips.md: Add combine splitters for handling moves
2301 of splittable_const_int_operands and splittable_symbolic_operands.
2302 * config/mips/mips-protos.h (mips_atomic_symbolic_constant_p): Delete.
2303 (mips_split_symbol): Declare.
2304 (mips_move_integer): Declare.
2305 * config/mips/mips.c (mips_split_p): Make global.
2306 (TARGET_MIN_ANCHOR_OFFSET): Override default.
2307 (TARGET_MAX_ANCHOR_OFFSET): Likewise.
2308 (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Likewise.
2309 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Likewise.
2310 (mips_offset_within_object_p): Handle block symbols.
2311 (mips_atomic_symbolic_constant_p): Delete.
2312 (mips_cannot_force_const_mem): Return false for constants that
2313 mips_legitimize_move can handle.
2314 (mips_use_blocks_for_constant_p): New function.
2315 (mips_split_symbol): Make global.
2316 (mips_move_integer): Likewise. Add a temporary register argument.
2317 (mips_legitimize_const_move): Use splittable_const_int_operand and
2318 splittable_symbolic_operand.
2319 (mips_use_anchors_for_symbol_p): New function.
2320 * config/mips/mips.h: Protect externs with !USED_FOR_TARGET.
2321 (mips_split_p): Declare.
2323 2006-03-16 Richard Sandiford <richard@codesourcery.com>
2325 * config.gcc (mips64*-*-linux*): Keep existing tm_defines.
2326 (mips*-*-linux*): Likewise.
2328 2006-03-16 Roger Sayle <roger@eyesopen.com>
2329 Daniel Speyer <dspeyer@wam.umd.edu>
2332 * tree-dump.c (dump_real): New function.
2333 (dequeue_and_dump) <REAL_CST>: Use it to dump FP constants.
2334 * Makefile.in (REAL_H): New macro for dependencies on real.h.
2335 (tree-dump.o): Add $(REAL_H) to the dependencies.
2337 2006-03-16 Roger Sayle <roger@eyesopen.com>
2340 * real.c (real_from_string): If the mantissa is zero, don't bother
2341 parsing the exponent as the result should always be zero.
2343 2006-03-16 Andreas Krebbel <krebbel1@de.ibm.com>
2345 * simplify-rtx.c (simplify_plus_minus): Simplify within CONST terms.
2347 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2349 * config/ia64/ia64.c (stops_p): Added explicit initialization.
2350 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec,
2351 ia64_h_i_d_extended, ia64_set_sched_flags, ia64_speculate_insn,
2352 ia64_needs_block_p, ia64_gen_check, ia64_sched_init_global,
2353 ia64_sched_finish_global): New static functions to implement
2354 hooks from gcc_target.sched.
2355 (spec_check_no, max_uid, pending_data_specs): New static variables.
2356 (ia64_mode_to_int, ia64_gen_spec_insn, ia64_spec_check_p,
2357 ia64_spec_check_src_p): New static functions.
2358 (ia64_adjust_cost): Renamed to ia64_adjust_cost_2.
2359 (TARGET_SCHED_ADJUST_COST): Removed.
2360 (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_INIT_GLOBAL,
2361 TARGET_SCHED_FINISH_GLOBAL, TARGET_SCHED_H_I_D_EXTENDED,
2362 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
2363 TARGET_SCHED_GEN_CHECK,
2364 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
2365 TARGET_SCHED_SET_SCHED_FLAGS): New macros.
2366 (update_set_flags, group_barrier_needed, set_src_needs_barrier):
2367 Fixed to handle speculation checks.
2368 (rtx_needs_barrier): Fixed to handle speculative loads and
2370 (ia64_variable_issue): Added code to count speculative loads and their
2372 (ia64_first_cycle_multipass_dfa_lookahead_guard): Fixed to handle
2374 (enum SPEC_MODES, enum SPEC_GEN_LD_MAP, SPEC_GEN_CHECK_OFFSET):
2376 (SPEC_GEN_EXTEND_OFFSET, SPEC_N, SPEC_GEN_CHECK_MUTATION_OFFSET):
2378 (ia64_ld_address_bypass_p): Fixed to handle speculative loads.
2379 (ia64_reorg): Reset stops_p to NULL after it is freed.
2380 * config/ia64/ia64.md (UNSPEC_LDA, UNSPEC_LDS, UNSPEC_LDSA,
2381 UNSPEC_LDCCLR, UNSPEC_CHKACLR, UNSPEC_CHKS): New constants.
2382 (itanium_class): chk_s renamed to chk_s_i. New constants: chk_s_f,
2384 (data_speculative, control_speculative, check_load): New attributes.
2385 (mov<mode>_advanced, mov<mode>_speculative,
2386 mov<mode>_speculative_advanced, zero_extend<mode>di2_advanced,
2387 zero_extend<mode>di2_speculative,
2388 zero_extend<mode>di2_speculative_advanced): New patterns for
2389 data and control speculative loads.
2390 (mov<mode>_clr, zero_extend<mode>di2_clr): New patterns for
2392 (advanced_load_check_clr_<mode>, speculation_check_<mode>):
2393 New pattern for data and control speculation checks.
2394 (MODE, MODE_FOR_EXTEND, output_a, output_s, output_sa, output_c_clr,
2395 ld_reg_constr, ldc_reg_constr, chk_reg_constr, mem_constr,
2396 reg_pred_prefix, ld_class, chka_class, chks_class, attr_yes):
2397 Auxiliary definitions for the patterns.
2398 * config/ia64/itanium1.md (1_fldc, 1_fldpc, 1_ldc, 1_chk_s_f, 1_chk_a,
2399 1b_fldc, 1b_fldpc, 1b_ldc, 1b_chk_s_f, 1b_chk_a): New resource
2401 (1_fld, 1_fldp, 1_ld, 1b_fld, 1b_fldp, 1b_ld): Add a condition
2403 (1_chk_s, 1b_chk_s): Renamed to 1_chk_s_i, 1b_chk_s_i.
2404 * config/ia64/itanium2.md (2_flda, 2_fldc, 2_fldpc, 2_ldc, 2_chk_s_f,
2405 2_chk_a, 2b_flda, 2b_fldc, 2b_fldpc, 2b_ldc, 2b_chk_s_f, 2b_chk_a):
2406 New resource constraints.
2407 (2_fld, 2_fldp, 2_ld, 2b_fld, 2b_fldp, 2b_ld): Add a condition
2409 (2_chk_s, 2b_chk_s): Renamed to 2_chk_s_i, 2b_chk_s_i.
2410 * config/ia64/ia64.opt (msched-br-data-spec, msched-ar-data-spec,
2411 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
2412 msched-in-control-spec, msched-ldc, msched-control-ldc,
2413 msched-spec-verbose, msched-prefer-non-data-spec-insns,
2414 msched-prefer-non-control-spec-insns,
2415 msched-count-spec-in-critical-path): New flags to tune speculative
2417 * doc/invoke.texi (msched-br-data-spec, msched-ar-data-spec,
2418 msched-control-spec, msched-br-in-data-spec, msched-ar-in-data-spec,
2419 msched-in-control-spec, msched-ldc, msched-control-ldc,
2420 msched-spec-verbose, msched-prefer-non-data-spec-insns,
2421 msched-prefer-non-control-spec-insns,
2422 msched-count-spec-in-critical-path): Document new flags.
2424 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2426 * target.h (struct spec_info_def): New opaque declaration.
2427 (struct gcc_target.sched): New fields: adjust_cost_2, h_i_d_extended,
2428 speculate_insn, needs_block_p, gen_check,
2429 first_cycle_multipass_dfa_lookahead_guard_spec, set_sched_flags.
2430 * target-def.h (TARGET_SCHED_ADJUST_COST_2,
2431 TARGET_SCHED_H_I_D_EXTENDED, TARGET_SCHED_SPECULATE_INSN,
2432 TARGET_SCHED_NEEDS_BLOCK_P, TARGET_SCHED_GEN_CHECK,
2433 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
2434 TARGET_SCHED_SET_SCHED_FLAGS): New macros to initialize fields in
2436 (TARGET_SCHED): Use new macros.
2437 * rtl.h (copy_DEPS_LIST_list): New prototype.
2438 * sched-int.h (struct sched_info): Change signature of new_ready field,
2439 adjust all initializations. New fields: add_remove_insn,
2440 begin_schedule_ready, add_block, advance_target_bb, fix_recovery_cfg,
2441 region_head_or_leaf_p.
2442 (struct spec_info_def): New structure declaration.
2443 (spec_info_t): New typedef.
2444 (struct haifa_insn_data): New fields: todo_spec, done_spec, check_spec,
2445 recovery_block, orig_pat.
2446 (glat_start, glat_end): New variables declaraions.
2447 (TODO_SPEC, DONE_SPEC, CHECK_SPEC, RECOVERY_BLOCK, ORIG_PAT):
2449 (enum SCHED_FLAGS): New constants: SCHED_RGN, SCHED_EBB,
2450 DETACH_LIFE_INFO, USE_GLAT.
2451 (enum SPEC_SCHED_FLAGS): New enumeration.
2452 (NOTE_NOTE_BB_P): New macro.
2453 (extend_dependency_caches, xrecalloc, unlink_bb_notes, add_block,
2454 attach_life_info, debug_spec_status, check_reg_live): New functions.
2455 (get_block_head_tail): Change signature to get_ebb_head_tail, adjust
2456 all uses in ddg.c, modulo-sched.c, haifa-sched.c, sched-rgn.c,
2458 (get_dep_weak, ds_merge): Prototype functions from sched-deps.c .
2459 * ddg.c (get_block_head_tail): Adjust all uses.
2460 * modulo-sched.c (get_block_head_tail): Adjust all uses.
2461 (sms_sched_info): Initialize new fields.
2462 (contributes_to_priority): Removed.
2463 * haifa-sched.c (params.h): New include.
2464 (get_block_head_tail): Adjust all uses.
2465 (ISSUE_POINTS): New macro.
2466 (glat_start, glat_end): New global variables.
2467 (spec_info_var, spec_info, added_recovery_block_p, nr_begin_data,
2468 nr_be_in_data, nr_begin_control, nr_be_in_control, bb_header,
2469 old_last_basic_block, before_recovery, current_sched_info_var,
2470 rgn_n_insns, luid): New static variables.
2471 (insn_cost1): New function. Move logic from insn_cost to here.
2472 (find_insn_reg_weight1): New function. Move logic from
2473 find_insn_reg_weight to here.
2474 (reemit_notes, move_insn, max_issue): Change signature.
2475 (move_insn1): Removed.
2476 (extend_h_i_d, extend_ready, extend_global, extend_all, init_h_i_d,
2477 extend_bb): New static functions to support extension of scheduler's
2479 (generate_recovery_code, process_insn_depend_be_in_spec,
2480 begin_speculative_block, add_to_speculative_block,
2481 init_before_recovery, create_recovery_block, create_check_block_twin,
2482 fix_recovery_deps): New static functions to support
2483 generation of recovery code.
2484 (fix_jump_move, find_fallthru_edge, dump_new_block_header,
2485 restore_bb_notes, move_block_after_check, move_succs): New static
2486 functions to support ebb scheduling.
2487 (init_glat, init_glat1, attach_life_info1, free_glat): New static
2488 functions to support handling of register live information.
2489 (associate_line_notes_with_blocks, change_pattern, speculate_insn,
2490 sched_remove_insn, clear_priorities, calc_priorities, bb_note,
2491 add_jump_dependencies): New static functions.
2492 (check_cfg, has_edge_p, check_sched_flags): New static functions for
2493 consistancy checking.
2494 (debug_spec_status): New function to call from debugger.
2495 (priority): Added code to handle speculation checks.
2496 (rank_for_schedule): Added code to distinguish speculative instructions.
2497 (schedule_insn): Added code to handle speculation checks.
2498 (unlink_other_notes, rm_line_notes, restore_line_notes, rm_other_notes):
2499 Fixed to handle ebbs.
2500 (move_insn): Added code to handle ebb scheduling.
2501 (max_issue): Added code to use ISSUE_POINTS of instructions.
2502 (choose_ready): Added code to choose between speculative and
2503 non-speculative instructions.
2504 (schedule_block): Added code to handle ebb scheduling and scheduling of
2505 speculative instructions.
2506 (sched_init): Initialize new variables.
2507 (sched_finish): Free new variables. Print statistics.
2508 (try_ready): Added code to handle speculative instructions.
2509 * lists.c (copy_DEPS_LIST_list): New function.
2510 * sched-deps.c (extend_dependency_caches): New function. Move logic
2511 from create_dependency_caches to here.
2512 (get_dep_weak, ds_merge): Make global.
2513 * genattr.c (main): Code to output prototype for
2514 dfa_clear_single_insn_cache.
2515 * genautomata.c (DFA_CLEAR_SINGLE_INSN_CACHE_FUNC_NAME): New macros.
2516 (output_dfa_clean_insn_cache_func): Code to output
2517 dfa_clear_single_insn_cache function.
2518 * sched-ebb.c (target_n_insns): Remove. Adjust all users to use
2520 (can_schedule_ready_p, fix_basic_block_boundaries, add_missing_bbs):
2522 (n_insns, dont_calc_deps, ebb_head, ebb_tail, last_bb):
2523 New static variables.
2524 (begin_schedule_ready, add_remove_insn, add_block1, advance_target_bb,
2525 fix_recovery_cfg, ebb_head_or_leaf_p): Implement hooks from
2527 (ebb_sched_info): Initialize new fields.
2528 (get_block_head_tail): Adjust all uses.
2529 (compute_jump_reg_dependencies): Fixed to use glat_start.
2530 (schedule_ebb): Code to remove unreachable last block.
2531 (schedule_ebbs): Added code to update register live information.
2532 * sched-rgn.c (region_sched_info): Initialize new fields.
2533 (get_block_head_tail): Adjust all uses.
2534 (last_was_jump): Removed. Adjust users.
2535 (begin_schedule_ready, add_remove_insn, insn_points, extend_regions,
2536 add_block1, fix_recovery_cfg, advance_target_bb, region_head_or_leaf_p):
2537 Implement new hooks.
2538 (check_dead_notes1): New static function.
2539 (struct region): New fields: dont_calc_deps, has_real_ebb.
2540 (RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB): New access macros.
2541 (BB_TO_BLOCK): Fixed to handle EBBs.
2542 (EBB_FIRST_BB, EBB_LAST_BB): New macros.
2543 (ebb_head): New static variable.
2544 (debug_regions, contributes_to_priority): Fixed to handle EBBs.
2545 (find_single_block_regions, find_rgns, find_more_rgns): Initialize
2547 (compute_dom_prob_ps): New assertion.
2548 (check_live_1, update_live_1): Fixed to work with glat_start instead of
2549 global_live_at_start.
2550 (init_ready_list): New assertions.
2551 (can_schedule_ready_p): Split update code to begin_schedule_ready.
2552 (new_ready): Add support for BEGIN_CONTROL speculation.
2553 (schedule_insns): Fixed code that updates register live information
2555 (schedule_region): Fixed to handle EBBs.
2556 (init_regions): Use extend_regions and check_dead_notes1.
2557 * params.def (PARAM_MAX_SCHED_INSN_CONFLICT_DELAY,
2558 PARAM_SCHED_SPEC_PROB_CUTOFF): New parameters.
2559 * doc/tm.texi (TARGET_SCHED_ADJUST_COST_2, TARGET_SCHED_H_I_D_EXTENDED,
2560 TARGET_SCHED_SPECULATE_INSN, TARGET_SCHED_NEEDS_BLOCK_P,
2561 TARGET_SCHED_GEN_CHECK,
2562 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC,
2563 TARGET_SCHED_SET_SCHED_FLAGS): Document.
2564 * doc/invoke.texi (max-sched-insn-conflict-delay,
2565 sched-spec-prob-cutoff): Document.
2567 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2569 * sched-int.h (struct haifa_insn_data): New fields: resolved_deps,
2570 inter_tick, queue_index.
2571 (struct sched_info): Change signature of init_ready_list field.
2572 Adjust all initializations.
2573 (RESOLVED_DEPS): New access macro.
2574 (ready_add): Remove prototype.
2575 (try_ready): Add prototype.
2576 * sched-rgn.c (init_ready_list): Use try_ready.
2577 (schedule_region): Initialize
2578 current_sched_info->{sched_max_insns_priority, queue_must_finish_empty}.
2579 * sched-ebb.c (new_ready): Remove. Adjust ebb_sched_info.
2580 (init_ready_list): Use try_ready.
2581 (schedule_ebb): Initialize current_sched_info->sched_max_insns_priority.
2582 * lists.c (remove_list_elem): Remove `static'.
2583 (remove_free_INSN_LIST_elem): New function.
2584 * rtl.h (remove_list_elem, remove_free_INSN_LIST_elem): Add prototypes.
2585 * haifa-sched.c (INTER_TICK, QUEUE_INDEX): New macros.
2586 (INVALID_TICK, MIN_TICK, QUEUE_SCHEDULED, QUEUE_NOWHERE, QUEUE_READY):
2588 (readyp): New variable.
2589 (queue_remove, ready_remove_insn, fix_inter_tick, fix_tick_ready,
2590 change_queue_index, resolve_dep): New static functions.
2591 (try_ready): New function. Adjust callers in sched-rgn.c and
2592 sched-ebb.c to use it instead of ready_add.
2593 (clock_var): Move at the begining of file.
2594 (rank_for_schedule): Fix typo.
2595 (queue_insn): Add assertion. Handle QUEUE_INDEX.
2596 (ready_lastpos): Enforce assertion.
2597 (ready_add): Make it static. Handle QUEUE_INDEX. Add new argument,
2599 (ready_remove_first, ready_remove): Handle QUEUE_INDEX.
2600 (schedule_insn): Rewrite to use try_ready and resolve_dep.
2601 (queue_to_ready): Use free_INSN_LIST_list.
2602 (early_queue_to_ready): Fix typo.
2603 (schedule_block): Init readyp. Move init_ready_list call after the
2604 initialization of clock_var. Fix error in rejecting insn by
2605 targetm.sched.dfa_new_cycle. Add call to fix_inter_tick. Remove code
2606 that previously corrected INSN_TICKs. Add code for handling
2608 (set_priorities): Fix typo.
2609 (sched_init): Initialize INSN_TICK, INTER_TICK and QUEUE_INDEX.
2610 Clarify comment and code that keeps current_sched_info->next_tail
2613 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2615 * sched-rgn.c (extend_rgns): New static function.
2616 (find_rgns): Use it.
2617 (gather_region_statistics, print_region_statistics): New static
2619 * params.def (PARAM_MAX_SCHED_EXTEND_REGIONS_ITERS): New parameter.
2620 * doc/invoke.texi (max-sched-extend-regions-iters): Document.
2622 2006-03-16 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
2623 Andrey Belevantsev <abel@ispras.ru>
2625 * ddg.c (build_intra_loop_deps): Adjust add_forward_dependence call.
2626 * lists.c (unused_deps_list): New variable.
2627 (free_list): Add assertions to verify the proper distinguishing
2628 between INSN_LISTs and DEPS_LISTs.
2629 (find_list_elem, remove_list_elem, remove_list_node): New static
2631 (alloc_DEPS_LIST, free_DEPS_LIST, free_DEPS_LIST_node,
2632 remove_free_INSN_LIST_elem, remove_free_DEPS_LIST_elem,
2633 remove_free_INSN_LIST_node, remove_free_DEPS_LIST_node): New functions.
2634 (alloc_INSN_LIST): Assert that the list we're working on is indeed
2636 (free_INSN_LIST_node): Likewise.
2637 * modulo-sched.c (current_sched_info): Initialize flags field.
2638 * reg-notes.def: Exchange DEP_ANTI and DEP_OUTPUT.
2639 * rtl.def (DEPS_LIST): Define.
2640 * rtl.h: Declare new functions from lists.c.
2641 * sched-deps.c (spec_dependency_cache): New static variable.
2642 (maybe_add_or_update_back_dep_1, add_back_dep): New static functions.
2643 (add_dependence): Change return type to void. Move the logic to ...
2644 (add_or_update_back_dep_1): ... here. Handle speculative dependencies.
2645 (delete_all_dependences): Add comment about forward_dependency_cache.
2646 Handle spec_dependency_cache. Handle DEPS_LISTs.
2647 (fixup_sched_groups): Clarify the change of priority of output
2648 and anti dependencies.
2649 (sched_analyze_2): Adjust add_dependence calls to create data
2650 speculative dependence.
2651 (add_forward_dependence): Renamed to add_forw_dep, change prototype.
2652 Adjust all callers. Handle DEPS_LISTS.
2653 (compute_forward_dependences): Use add_forw_dep. Sort LOG_LINKs in
2654 presence of speculation.
2655 (init_dependency_caches, free_dependency_caches):
2656 Handle spec_dependency_cache.
2657 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep, delete_forw_dep,
2658 estimate_dep_weak, get_dep_weak, ds_merge, check_dep_status):
2659 New static functions.
2660 (add_or_update_back_dep, add_or_update_back_forw_dep,
2661 add_back_forw_dep, delete_back_forw_dep): New functions.
2662 * sched-int.h (ds_t, dw_t): New typedefs.
2663 (struct sched_info): Add new field flags.
2664 (struct haifa_insn_data): Add new bitfield has_internal_dep.
2665 Prototype new sched-deps.c functions.
2666 (HAS_INTERNAL_DEP, DEP_STATUS): New access macros.
2667 (BITS_PER_DEP_STATUS, BITS_PER_DEP_WEAK, DEP_WEAK_MASK, MAX_DEP_WEAK,
2668 MIN_DEP_WEAK, NO_DEP_WEAK, UNCERTAIN_DEP_WEAK, BEGIN_DATA, BE_IN_DATA,
2669 BEGIN_CONTROL, BE_IN_CONTROL, BEGIN_SPEC, DATA_SPEC, CONTROL_SPEC,
2670 SPECULATIVE, BE_IN_SPEC, FIRST_SPEC_TYPE, LAST_SPEC_TYPE,
2671 SPEC_TYPE_SHIFT, DEP_TRUE, DEP_OUTPUT, DEP_ANTI, DEP_TYPES, HARD_DEP):
2673 (enum SPEC_TYPES_OFFSETS, enum DEPS_ADJUST_RESULT, enum SCHED_FLAGS):
2675 * sched-rgn.c (current_sched_info): Initialize flags field.
2676 (schedule_insns): Initialize current_sched_info before the sched_init
2678 * sched-ebb.c (current_sched_info): Initialize flags field.
2679 (add_deps_for_risky_insns): Use control_flow_insn_p instead of JUMP_P.
2680 Call add_or_update_back_dep instead of add_dependence.
2681 Create control speculative dependencies.
2682 (schedule_insns): Initialize current_sched_info before the sched_init
2685 2006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
2687 * config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
2689 (sh_fallback_frame_state): Likewise.
2691 2006-03-15 Geoffrey Keating <geoffk@apple.com>
2693 * config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports.
2694 Do switch on default_use_cxa_atexit.
2695 (powerpc*-*-darwin*): Build crt2.o on powerpc.
2696 * config/darwin-crt3.o: New.
2697 * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default
2698 to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use.
2699 (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate
2701 * config/rs6000/t-darwin: Move crt2.o building to here.
2702 * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update
2703 Mac OS version for using __cxa_get_exception_ptr. Don't test versions
2706 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2708 * config/vax/vax.c (nonindexed_address_p): Change logical negation
2709 from '! xxx' to '!xxx' for coding-style conformance.
2710 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Likewise.
2711 (EXTRA_CONSTRAINT): Likewise.
2712 * config/vax/vax.md (four unnamed insns): Likewise.
2714 2006-03-15 Paul Brook <paul@codesourcery.com>
2716 * config/arm/arm.c (minipool_pad): New.
2717 (add_minipool_forward_ref): Include pool alignment padding in address
2719 (push_minipool_fix): Set minipool_pad.
2720 (minipool_pad): Ditto.
2722 2006-03-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2724 * config/vax/vax.c (split_quadword_operands): Use MEM_P()
2725 instead of GET_CODE() == MEM and REG_P() instead of
2727 (print_operand_address): Likewise.
2728 (vax_address_cost): Likewise.
2729 (vax_rtx_costs): Likewise.
2730 (vax_notice_update_cc): Likewise.
2731 (vax_output_int_add): Likewise.
2732 (INDEX_REGISTER_P): Likewise.
2733 (BASE_REGISTER_P): Likewise.
2734 (nonindexed_address_p): Likewise.
2735 (vax_mode_dependent_address_p): Likewise.
2736 * config/vax/vax.h (EXTRA_CONSTRAINT): Likewise.
2737 (PRINT_OPERAND): Likewise.
2738 * config/vax/vax.md (ashlsi3): Likewise.
2739 (ashlsi3): Likewise.
2740 (some more unnamed insns): Likewise.
2742 2006-03-15 Kazu Hirata <kazu@codesourcery.com>
2744 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Make it an
2745 iterator-style macro.
2746 (mark_control_dependent_edges_necessary): Update the use of
2747 EXECUTE_IF_CONTROL_DEPENDENT.
2749 2006-03-15 J"orn Rennecke <joern.rennecke@st.com>
2751 * config/sh/predicates.md (cache_address_operand): Special.
2752 (ua_address_operand): Likewise.
2754 2006-03-15 Zdenek Dvorak <dvorakz@suse.cz>
2756 * haifa-sched.c (unlink_other_notes, reemit_notes): Do not handle
2758 * sched-deps.c (sched_analyze_insn, sched_analyze): Ditto.
2760 2006-03-15 Andreas Schwab <schwab@suse.de>
2762 * gensupport.c (identify_predicable_attribute): Don't free p_false
2763 when it is still in use.
2765 2006-03-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2767 * config.gcc (default with_cpu setting) <sparc*-*-*>: Do not modify
2768 the default setting here.
2770 2006-03-14 Steven Bosscher <stevenb.gcc@gmail.com>
2772 * tree-pass.h (pass_cfg): Remove.
2773 * alias.c (rest_of_handle_cfg, pass_cfg): Remove.
2774 * passes.c (pass_cfg): Don't run it.
2776 2006-03-14 Kazu Hirata <kazu@codesourcery.com>
2778 * Makefile.in (reg-stack.o): Don't depend on gt-reg-stack.h.
2779 * reg-stack.c (stack_regs_mentioned_data): Change the type to
2781 (stack_regs_mentioned): Update the uses of
2782 stack_regs_mentioned_data. Don't access the array beyond its
2784 (reg_to_stack): Update the uses of stack_regs_mentioned_data.
2785 Don't include gt-reg-stack.h.
2787 * config/bfin/bfin.h (UNALIGNED_WORD_ASM_OP): Remove.
2788 * system.h (UNALIGNED_WORD_ASM_OP): Poison.
2790 * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): Remove.
2793 * reg-stack.c (stack_regs_mentioned_data): Put it undef #ifdef
2796 2006-03-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2798 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Fix typo.
2800 2006-03-14 Richard Guenther <rguenther@suse.de>
2802 PR tree-optimization/26672
2803 * tree-ssa-propagate.c (set_rhs): Don't walk DEFs if not in
2806 2006-03-14 Richard Guenther <rguenther@suse.de>
2808 PR tree-optimization/26667
2809 * ipa-inline.c (cgraph_check_inline_limits): Walk the correct
2810 node for the callees. Always allow inlining if it will shrink
2813 2006-03-14 Richard Guenther <rguenther@suse.de>
2816 * builtins.c (get_pointer_alignment): Prefer alignment
2817 information from decls over that from types.
2819 2006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
2822 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
2824 2006-03-14 Joseph S. Myers <joseph@codesourcery.com>
2826 * config/rs6000/rs6000.opt (mdlmzb): New option.
2827 (msched-prolog, msched-epilog): Use Var not Mask.
2828 * doc/invoke.texi (-mdlmzb): Document.
2829 * config/rs6000/rs6000.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2831 (rs6000_override_options): Enable -mdlmzb for 405 and 440.
2832 * config/rs6000/rs6000.md: Add dlmzb support for 405 and 440.
2834 2006-03-13 Uttam Pawar <uttamp@us.ibm.com>
2836 PR rtl-optimization/25739
2837 * bt-load.c (augment_live_range): Free tos pointer.
2839 * gensupport.c (identify_predicable_attribute): Free
2841 * gcov.c (create_file_names): Free name pointer.
2843 2006-03-13 Roger Sayle <roger@eyesopen.com>
2846 * stmt.c (emit_case_nodes): Handle the case where the index is a
2847 CONST_INT, where the comparison mode is specified by the index type.
2849 2006-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2851 * pa/pa32-linux.h (CRT_CALL_STATIC_FUNCTION): Define when CRTSTUFFS_O
2854 2006-03-13 Richard Sandiford <richard@codesourcery.com>
2856 * config/mips/mips.md (*branch_fp): Use %Z2 for the condition.
2857 (*branch_fp_inverted): Likewise.
2859 2006-03-13 Jakub Jelinek <jakub@redhat.com>
2862 * omp-low.c (expand_omp_for_generic): Mark istart0
2863 and iend0 as addressable.
2865 2006-03-13 Jie Zhang <jie.zhang@analog.com>
2867 * config/bfin/uclinux.h: Define _GNU_SOURCE in CPLUSPLUS_CPP_SPEC.
2869 2006-03-13 Jeff Law <law@redhat.com>
2871 * tree-vrp.c (stmt_interesting_for_vrp): Some statements with
2872 virtual operands are interesting.
2873 (vrp_visit_stmt): Corresponding changes.
2875 2006-03-13 Bernd Schmidt <bernd.schmidt@analog.com>
2877 * config/bfin/lib1funcs.asm (___umodsi3): Use stack to save contents
2879 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If
2880 TARGET_ID_SHARED_LIBRARY, define __ID_SHARED_LIB__.
2881 * config/bfin/crti.S: Use it instead of __PIC__.
2882 * config/bfin/crtn.S: Likewise.
2884 * config/bfin/bfin.md (call_value_symbol, sibcall_value_symbol,
2885 call_symbol, sibcall_symbol): Disallow if TARGET_ID_SHARED_LIBRARY,
2887 Lose 'G' modifier for call operand.
2888 * config/bfin/bfin.c (print_operand) <case SYMBOL_REF>: Don't
2889 recognize 'G' modifier.
2891 2006-03-13 Eric Botcazou <ebotcazou@adacore.com>
2894 * gimplify.c (gimplify_switch_expr): Discard empty ranges.
2895 * stmt.c (expand_case): Likewise.
2897 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2899 PR rtl-optimization/26254
2900 * loop-invariant.c (seq_insns_valid_p): New function.
2901 (move_invariant_reg): Only emit new code if it is valid.
2903 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2905 * cfgrtl.c (last_loop_beg_note, back_edge_of_syntactic_loop_p):
2907 (force_nonfallthru_and_redirect): Do not use last_loop_beg_note.
2908 (rtl_split_edge): Do not use back_edge_of_syntactic_loop_p.
2909 (commit_one_edge_insertion): Do not look for loop notes.
2911 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2913 * jump.c (follow_jumps): Do not check for loop notes. Move check for
2914 flag_test_coverage out of loop.
2916 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2918 * final.c (shorten_branches): Remove outdated comment, and turn
2919 the if branch that guards it to continue.
2921 2006-03-13 Zdenek Dvorak <dvorakz@suse.cz>
2923 * cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
2924 * cfgloop.h (struct loop): Remove unused fields.
2926 2006-03-13 Kazu Hirata <kazu@codesourcery.com>
2928 * doc/invoke.texi (-fdump-rtl-loop): Remove.
2929 (-dL, -fdump-rtl-loop2): Update the dump file names
2931 * doc/invoke.texi: Update dump file names.
2933 2006-03-12 Steven Bosscher <stevenb.gcc@gmail.com>
2935 * predict.c (estimate_probability): Remove.
2936 * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
2937 * basic-block.h (estimate_probability): Remove prototype.
2938 * passes.c (finish_optimization_passes): Dump branch prediction or
2939 profiling heuristics to the .profile tree dump.
2940 (init_optimization_passes): Unqueue pass_branch_prob.
2942 * doc/invoke.texi (-fdump-rtl-bp): Remove.
2944 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
2946 * rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
2947 * rtl.h (LABEL_NEXTREF): Remove field accessor.
2949 2006-03-11 Eric Botcazou <ebotcazou@adacore.com>
2951 * function.h (frame_offset_overflow): Declare.
2952 * function.c (frame_offset_overflow): New function.
2953 (assign_stack_local_1): Call it to detect that the offset overflows.
2954 * cfgexpand.c (alloc_stack_frame_space): Likewise.
2956 2006-03-11 Steven Bosscher <stevenb.gcc@gmail.com>
2958 * config/sh/sh.c: Include alloc-pool.h.
2959 (label_ref_list_pool): New alloc pool.
2960 (label_ref_list_t): New type for lists of labels.
2961 (struct pool_node): Make wend a label_ref_list_t.
2962 (add_constant): Use the new type, eradicate LABEL_NEXTREF
2964 (dump_table): Likewise.
2965 (sh_reorg): Set up the alloc pool before using add_constant and
2966 dump_table, and destroy it when finishing.
2968 2006-03-11 Richard Sandiford <richard@codesourcery.com>
2970 * config/mips/mips.c: Remove redundant comment.
2972 2006-03-10 Jason Merrill <jason@redhat.com>
2975 * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
2976 the target was declared 'register'.
2978 2006-03-10 Adam Nemet <anemet@caviumnetworks.com>
2980 * genpreds.c (write_insn_constraint_len): Change definition of
2981 insn_constraint_len to return size_t to match the declaration.
2983 2006-03-10 DJ Delorie <dj@redhat.com>
2985 * config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
2987 (m32c_expand_insv): Fix test for an AND mask.
2989 2006-03-10 Richard Guenther <rguenther@suse.de>
2992 * builtins.c (get_pointer_alignment): Handle component
2993 references for field alignment.
2995 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
2997 * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
2998 when building with libgloss.
2999 (sh*elf): Implement --without-fp option.
3000 (sh64-superh-linux*): Don't multilib.
3002 2006-03-10 J"orn Rennecke <joern.rennecke@st.com>
3004 * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
3006 2006-03-09 Andrew Pinski <pinskia@physics.uc.edu>
3008 * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
3009 Set it when one of the replacement functions returned true.
3010 Return TODO_cleanup_cfg if cfgchanged is true.
3011 (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.
3013 2006-03-09 Adam Nemet <anemet@caviumnetworks.com>
3015 * combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
3016 instead of gen_lowpart.
3018 2006-03-09 Richard Sandiford <richard@codesourcery.com>
3020 * config/mips/mips-protos.h (mips_output_conditional_branch): Change
3022 (mips_output_order_conditional_branch): Declare.
3023 * config/mips/mips.h (MIPS_BRANCH): New macro.
3024 * config/mips/mips.c (gen_conditional_branch): Use VOIDmode
3025 for the comparison. Use gen_condjump.
3026 (mips_output_conditional_branch): Rework interface to take the
3027 asm templates for a direct branch and the inverse of a direct branch.
3028 (mips_output_order_conditional_branch): New function.
3029 (mips_builtin_branch_and_move): New function.
3030 (mips_expand_builtin_compare): Use it. Use VOIDmode for the
3031 branch condition. Use gen_single_cc as the condition for
3032 __builtin_mips_upper_* or __builtin_mips_lower_*.
3033 (mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
3034 Use VOIDmode for the branch condition.
3035 * config/mips/predicates.md (order_operator): New predicate.
3036 * config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
3037 (branch_fp): Rename to...
3038 (*branch_fp): ...this. Remove mode from comparison operator.
3039 Use new mips_output_conditional_branch interface.
3040 (branch_fp_inverted): Rename to...
3041 (*branch_fp_inverted): ...this and update as for *branch_fp.
3042 (*branch_zero<mode>): Rename to...
3043 (*branch_order<mode>): ...this. Remove mode from comparison operator.
3044 Use mips_output_order_conditional_branch. Only accept ordered
3046 (*branch_zero<mode>_inverted): Rename to...
3047 (*branch_order<mode>_inverted): ...this and update as for
3048 *branch_order<mode>.
3049 (*branch_equality<mode>): Accept zero as the second operand to
3050 the equality operator. Use the new mips_output_conditional_branch
3052 (*branch_equality<mode>_inverted): Likewise.
3053 (condjump): New expander.
3054 * config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
3056 * config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
3057 (bc1any2t, bc1any2f): Likewise.
3058 (single_cc): New expander.
3059 (*branch_upper_lower, *branch_upper_lower_inverted): New patterns.
3061 2006-03-09 Richard Sandiford <richard@codesourcery.com>
3063 * doc/md.texi: Update documentation of MIPS constraints.
3064 * config/mips/constraints.md: New file.
3065 * config/mips/mips.md: Include it.
3066 * config/mips/mips.c (mips_char_to_class): Delete.
3067 (override_options): Don't initialize mips_char_to_class.
3068 * config/mips/mips.h (mips_char_to_class): Delete.
3069 (REG_CLASS_FROM_LETTER): Delete.
3070 (CONST_OK_FOR_LETTER_P): Delete.
3071 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3072 (EXTRA_CONSTRAINT_Y): Delete.
3073 (EXTRA_CONSTRAINT_STR): Delete.
3074 (CONSTRAINT_LEN): Delete.
3075 (EXTRA_MEMORY_CONSTRAINT): Delete.
3077 2006-03-09 Diego Novillo <dnovillo@redhat.com>
3079 * tree-cfg.c (move_block_to_fn): Remove the statements from the
3080 original fn's eh regions.
3082 2006-03-09 Eric Botcazou <ebotcazou@adacore.com>
3084 * fold-const.c (build_range_check): Make sure to use a valid type to
3085 apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
3088 (range_predecessor): New static function.
3089 (range_successor): Likewise.
3090 (merge_ranges): Use them to compute predecessors and successors of
3093 2006-03-09 Roger Sayle <roger@eyesopen.com>
3096 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
3097 X op C3, consider whether C3 overflows towards +Inf or -Inf.
3099 2006-03-08 DJ Delorie <dj@redhat.com>
3101 * config/m32c/addsub.md (addqi3): Disparage a0/a1.
3102 (addpsi3): Expand to include memory operands. Remove
3103 reload-specific splits.
3104 * config/m32c/bitops.md (bset_qi, bset_hi, bclr_qi): New.
3105 (andqi3_16, andhi3_16, iorqi3_16, iorhi3_16): New.
3106 (andqi3_24, andhi3_24, iorqi3_24, iorhi3_24): New.
3107 (andqi3, andhi3, iorqi3, iorhi3): Convert to expanders.
3108 (shift1_qi, shift1_hi, insv): New.
3109 * config/m32c/cond.md (cbranchqi4, cbranchhi4): Remove.
3110 (cbranch<mode>4, stzx_16, stzx_24_<mode>, stzx_reversed,
3111 cmp<mode>, b<code>, s<code>, s<code>_24, movqicc, movhicc,
3113 * config/m32c/m32c-protos.h: Update as needed.
3114 * config/m32c/m32c.c (m32c_reg_class_from_constraint): Don't
3115 default the Rcr, Rcl, Raw, and Ral constraints. Add Ra0 and Ra1.
3116 Fail for unrecognized R* constraints.
3117 (m32c_cannot_change_mode_class): Be more picky about pseudos.
3118 (m32c_const_ok_for_constraint_p): Add Imb, Imw, and I00.
3119 (m32c_extra_constraint_p2): Allow (mem (plus (plus fb int) int)).
3121 (m32c_init_libfuncs): New.
3122 (m32c_legitimate_address_p): Add debug wrapper.
3123 (m32c_rtx_costs): New.
3124 (m32c_address_cost): New.
3125 (conversions): Add 'B' prefix.
3126 (m32c_print_operand): 'h' and 'H' pick lower and upper halves of
3127 operands, or word regnames for QI operands. 'B' prints bit
3129 (m32c_expand_setmemhi): New.
3130 (m32c_expand_movmemhi): New.
3131 (m32c_expand_movstr): New.
3132 (m32c_expand_cmpstr): New.
3133 (m32c_prepare_shift): Shift counts are limited to 16 bits at a time.
3134 (m32c_expand_neg_mulpsi3): Handle non-ints.
3135 (m32c_cmp_flg_0): New.
3136 (m32c_expand_movcc): New.
3137 (m32c_expand_insv): New.
3138 (m32c_scc_pattern): New.
3139 * config/m32c/m32c.h (reg classes): Add AO_REGS and A1_REGS. Take
3140 a0/a1 out of SIregs.
3141 (STORE_FLAG_VALUE): New.
3142 * config/m32c/m32c.md: Add unspecs for string moves. Define various mode and
3145 * config/m32c/mov.md: Make constraints more liberal.
3146 (zero_extendqihi2): Optimize r0/r1 case.
3147 * config/m32c/muldiv.md (mulpsi3): Check for intvals.
3148 * config/m32c/predicates.md (m32c_any_operand): New.
3149 (m32c_nonimmediate_operand): New.
3150 (m32c_hl_operand): New.
3151 (m32c_r3_operand): New.
3154 (memsym_operand): New.
3155 (memimmed_operand): New.
3156 (a_qi_operand): New.
3157 (m32c_eqne_operator): New.
3158 (m32c_1bit8_operand): New.
3159 (m32c_1bit16_operand): New.
3160 (m32c_1mask8_operand): New.
3161 (m32c_1mask16_operand): New.
3162 * config/m32c/blkmov.md: New file.
3163 * config/m32c/t-m32c (MD_FILES): Add blkmov.
3165 2006-03-08 Andreas Tobler <a.tobler@schweiz.ch>
3167 * dwarf2out.c (expand_builtin_dwarf_sp_column): Make dwarf_regnum
3168 unsigned to fix signed/unsigned comparison issue in
3169 DWARF2_FRAME_REG_OUT.
3170 (expand_builtin_init_dwarf_reg_sizes): Make i unsigned to fix signed/
3171 unsigned comparison issue in DWARF2_FRAME_REG_OUT.
3173 * tree-ssa-operands.c (finalize_ssa_def_ops): Move the declaration
3174 of ptr into the ENABLE_CHECKING section.
3176 2006-03-08 Jeff Law <law@redhat.com>
3178 * tree-vrp.c (infer_value_range): Only count pointer uses
3179 and dereferences if -fdelete-null-pointer-checks is enabled.
3181 * tree-vrp.c (find_assert_locations): Infer value ranges for
3182 single use pointers, but do not create ASSERT_EXPRs for them.
3183 When a non-null range is inferred for a pointer, backwards
3184 propagate that range to other equivalent pointers through the
3187 2006-03-08 Paolo Bonzini <bonzini@gnu.org>
3190 * Makefile.in (dvi, html, install-info): Invoke the corresponding
3191 language hook targets.
3192 * ada/Make-lang.in, cp/Make-lang.in, objc/Make-lang.in,
3193 objcp/Make-lang.in: Create stub rules for dvi, html, install-info
3194 if language hook targets were missing.
3196 2006-03-07 Zdenek Dvorak <dvorakz@suse.cz>
3198 * tree-ssa-opfinalize.h: Removed.
3199 * Makefile.in (tree-ssa-operands.o): Remove tree-ssa-opfinalize.h
3201 * tree-ssa-operands.c: Do not include tree-ssa-opfinalize.h.
3202 (ALLOC_OPTYPE, APPEND_OP_AFTER, MOVE_HEAD_AFTER, MOVE_HEAD_TO_FREELIST,
3203 INITIALIZE_USE, add_def_op, add_use_op, add_vuse_op, add_maydef_op,
3204 add_mustdef_op, finalize_ssa_def_ops, finalize_ssa_use_ops,
3205 finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
3206 finalize_ssa_v_must_def_ops): New.
3208 2006-03-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3210 * df-scan.c: (df_bb_refs_record): Fix obvious typo with wrong
3213 2006-03-07 Geoffrey Keating <geoffk@apple.com>
3215 * varasm.c (assemble_end_function): Say that 'fnname' is unused.
3217 * config/i386/i386.c (ix86_delegitimize_address): Handle Darwin
3218 addresses with offsets; reorganize.
3220 * dwarf2out.c (DWARF2_FRAME_REG_OUT): Move up in file.
3221 (expand_builtin_dwarf_sp_column): Call DWARF2_FRAME_REG_OUT.
3222 (expand_builtin_init_dwarf_reg_sizes): Likewise.
3224 2006-03-08 David Billinghurst <David.Billinghurst@riotinto.com>
3227 * config/i386/cygwin.h (GOMP_SELF_SPECS): Define.
3229 2006-03-08 Ben Elliston <bje@au.ibm.com>
3231 * config/fp-bit.h (CMPtype): Typedef to a word mode integer.
3233 2006-03-07 Aldy Hernandez <aldyh@redhat.com>
3236 * doc/passes.texi (Tree-SSA passes): Document omp lowering and
3239 2006-03-07 Richard Guenther <rguenther@suse.de>
3241 PR tree-optimization/26587
3242 * tree-ssa-structalias.c (handle_ptr_arith): Handle MINUS_EXPR.
3244 2006-03-07 Richard Sandiford <richard@codesourcery.com>
3246 * varasm.c (assemble_variable): Fix setting of DECL_IN_TEXT_SECTION.
3248 2006-03-07 Richard Sandiford <richard@codesourcery.com>
3250 * hooks.c (hook_bool_mode_rtx_true): New function.
3251 * hooks.h (hook_bool_mode_rtx_true): Declare.
3252 * toplev.c (compile_file): Call output_shared_constant_pool.
3253 * varasm.c (shared_constant_pool): New variable.
3254 (assemble_start_function, assemble_end_function): Remove arguments
3255 from call to output_constant_pool.
3256 (create_constant_pool): New function, split out from...
3257 (init_varasm_status): ...here.
3258 (force_const_mem): Choose between the shared and per-function constant
3259 pools. Set current_function_uses_const_pool when reusing old entries
3260 as well as when creating new ones.
3261 (mark_constant): Ignore data argument.
3262 (mark_constants): Remove pool argument.
3263 (mark_constant_pool): Likewise. Use current_function_uses_const_pool
3264 to decide whether the function uses a constant pool.
3265 (output_constant_pool_contents): New function, split out from...
3266 (output_constant_pool): ...here.
3267 (output_shared_constant_pool): New function.
3268 (init_varasm_once): Initialize shared_constant_pool.
3269 * output.h (output_constant_pool): Delete.
3270 (output_shared_constant_pool): Declare.
3271 * config/s390/s390-protos.h (s390_output_constant_pool): Delete.
3272 * config/i386/i386.c (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Override.
3274 2006-03-06 Nick Clifton <nickc@redhat.com>
3276 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove reference to
3277 flag_strength_reduce.
3279 2006-03-06 Ben Elliston <bje@au.ibm.com>
3281 * config.gcc: Add t-dfprules to $tmake_file for i*86-*-linux* and
3282 x86_64-*-linux* configurations.
3284 * config/dfp-bit.h (CMPtype): Typedef to a word mode integer.
3285 (LIBGCC2_WORDS_BIG_ENDIAN): Define.
3287 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
3289 * tree-ssa-threadupdate.c (rediscover_loops_after_threading):
3291 * basic-block.h: Remove the extern for
3292 rediscover_loops_after_threading.
3294 * cfgloop.c (cancel_loop): Make it static.
3295 * cfgloop.h: Remove the prototype for cancel_loop.
3297 * flow.c (recompute_reg_usage): Make it static.
3298 * rtl.h: Remove the prototype for recompute_reg_usage.
3300 * function.c (use_return_register): Make it static.
3301 * function.h: Remove the prototype.
3303 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
3305 * recog.c (volatile_mem_p, validate_change_maybe_volatile):
3307 * recog.h: Remove the prototype for
3308 validate_change_maybe_volatile.
3310 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
3312 * rtlanal.c (replace_reg): Remove.
3313 * rtl.h: Remove the prototype for replace_reg.
3315 2006-03-05 Kazu Hirata <kazu@codesourcery.com>
3317 * regclass.c (reg_scan_update): Remove.
3318 (reg_scan_mark_refs): Remove the last argument.
3319 * rtl.h: Remove the prototype for reg_scan_update.
3321 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
3323 * builtins.c, c-pragma.h, c-typeck.c, cgraph.c, cgraphunit.c,
3324 combine.c, common.opt, config/dfp-bit.c, config/i386/i386.c,
3325 config/m68k/m68k.c, config/m68k/m68k.md, config/mt/mt.c,
3326 config/mt/mt.h, config/s390/s390.md, df-core.c, df-problems.c,
3327 df-scan.c, df.h, diagnostic.c, expr.c, function.h, gimplify.c,
3328 loop-invariant.c, omp-low.c, opts.c, passes.c,
3329 rtl-factoring.c, rtlanal.c, struct-equiv.c, tree-cfgcleanup.c,
3330 tree-ssa-loop-niter.c, tree-ssa-loop-prefetch.c,
3331 tree-ssa-structalias.c, tree-ssa-threadedge.c,
3332 tree-ssa-threadupdate.c, tree-vect-patterns.c,
3333 tree-vect-transform.c, tree-vectorizer.h, tree-vrp.c,
3334 unwind-dw2.c: Fix comment typos. Follow spelling conventions.
3336 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
3338 * dwarf2out.c (dwarf2out_add_library_unit_info): Remove.
3339 * dwarf2out.h: Remove the prototype for
3340 dwarf2out_add_library_unit_info.
3342 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
3344 * tree.c (add_var_to_bind_expr): Remove.
3345 * tree.h: Remove the prototype for add_var_to_bind_expr.
3347 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
3349 * regclass.c (n_non_fixed_regs): Remove.
3350 (init_reg_sets_1, globalize_reg): Remove all uses of
3352 * hard-reg-set.h: Remove the extern for n_non_fixed_regs.
3354 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
3356 * rtlanal.c (insns_safe_to_move_p): Remove.
3357 * rtl.h: Remove the prototype for insns_safe_to_move_p.
3359 2006-03-04 Kazu Hirata <kazu@codesourcery.com>
3361 * expmed.c (expand_mult_add): Remove.
3362 * expr.h: Remove the prototype for expand_mult_add.
3364 2006-03-04 Jakub Jelinek <jakub@redhat.com>
3366 * unwind-dw2.h (_Unwind_FrameState): Add REG_SAVED_VAL_OFFSET
3367 and REG_SAVED_VAL_EXP constants.
3368 * unwind-dw2.c (struct _Unwind_Context): Add by_value array.
3369 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
3370 Handle regs stored by value.
3371 (_Unwind_SetGRValue, _Unwind_GRByValue): New functions.
3372 (execute_cfa_program): Handle DW_CFA_val_offset,
3373 DW_CFA_val_offset_sf and DW_CFA_val_expression.
3374 (uw_update_context_1): Handle REG_SAVED_REG with regs stored by
3375 value specially. Handle REG_SAVED_VAL_OFFSET and REG_SAVED_VAL_EXP.
3376 (uw_install_context_1): Handle target regs stored by value.
3378 2006-03-03 Daniel Berlin <dberlin@dberlin.org>
3380 * tree-sra.c (tree_sra): Return todoflags;
3381 (generate_one_element): Set TODO_update_smt_usage if needed.
3382 (pass_sra): Remove TODO_update_smt_usage.
3383 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Add some
3385 (tree_ssa_forward_propagate_single_use_vars): Return
3386 TODO_update_smt_usage if we need to update SMT usage.
3387 (pass_forwprop): Remove TODO_update_smt_usage.
3389 2006-03-03 Diego Novillo <dnovillo@redhat.com>
3391 * tree-ssa-operands.c: Tidy whitespace. Fix spelling.
3392 (correct_use_link): Remove reference to get_stmt_operands.
3393 (update_stmt_operands): Likewise.
3394 (get_modify_expr_operands): New function factored out of
3395 parse_ssa_operands and get_expr_operands.
3396 Try to create V_MUST_DEFs for LHS by default.
3397 (get_expr_operands) <case MODIFY_EXPR>: Call
3398 get_modify_expr_operands.
3399 <case ARRAY_RANGE_REF>: Handle together with ARRAY_REF.
3400 <case BIT_FIELD_REF>: Clear opf_kill_def from FLAGS.
3401 (parse_ssa_operands) <case MODIFY_EXPR>: Call
3402 get_modify_expr_operands.
3404 2006-03-03 Kazu Hirata <kazu@codesourcery.com>
3406 * tree-dfa.c (referenced_var_lookup_if_exists): Remove.
3407 * tree-flow.h: Remove the prototype for
3408 referenced_var_lookup_if_exists.
3410 2006-03-03 Steve Ellcey <sje@cup.hp.com>
3412 PR rtl-optimization/26345
3414 * config/ia64/predicates.md (basereg_operand): Don't look in subregs.
3416 2006-03-03 Roger Sayle <roger@eyesopen.com>
3418 PR tree-optimization/26524
3419 * tree-scalar-evolution.c (interpret_rhs_modify_expr): Use
3420 fold_convert to create a constant of the appropriate type.
3422 2006-03-03 Richard Sandiford <richard@codesourcery.com>
3424 * doc/tm.texi: Refer to SYMBOL_REF_HAS_BLOCK_INFO_P instead of
3425 SYMBOL_REF_IN_BLOCK_P.
3426 * doc/rtl.texi: Likewise. Refer to SYMBOL_FLAG_HAS_BLOCK_INFO instead
3427 of SYMBOL_FLAG_IN_BLOCK.