1 2005-09-26 Richard Guenther <rguenther@suse.de>
4 * gcse.c: Include hashtab.h, define ldst entry hashtable.
5 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
6 (ldst_entry): Use the hashtable instead of list-walking.
7 (find_rtx_in_ldst): Likewise.
8 (free_ldst_entry): Free the hashtable.
9 (compute_ld_motion_mems): Create the hashtable.
10 (trim_ld_motion_mems): Remove entry from hashtable if
11 removing it from list.
12 (compute_store_table): Likewise^2.
13 (store_motion): Free hashtable in case we did not see
16 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
18 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
19 and arg1 if we are passing them to fold_build2.
21 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
24 * config/i386/i386.c (ix86_function_regparm): Fix the test for
27 2005-09-25 Richard Henderson <rth@redhat.com>
29 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
30 SYMBOL_REF_TLS_MODEL to be correct.
32 2005-09-24 Richard Henderson <rth@redhat.com>
34 * ipa-type-escape.c (discover_unique_type): Remove dead code at
35 end of function. Reindent.
37 2005-09-24 Ian Lance Taylor <ian@airs.com>
39 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
40 NEGATE_EXPR/BIT_NOT_EXPR case.
42 2005-09-24 Richard Henderson <rth@redhat.com>
44 * c-common.c (handle_mode_attribute): When not modifying in place,
45 create subtypes for enumerations.
46 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
47 * gimplify.c (create_tmp_from_val): Likewise.
49 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
51 * config/i386/i386.md (*tls_global_dynamic_64,
52 *tls_local_dynamic_base_64): Add missing mode to call.
53 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
55 2005-09-24 Jan Hubicka <jh@suse.cz>
57 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
58 (cgraph_clone_node): Likewise.
59 * cgraph.h (cgraph_clone_edge): Update prototype.
60 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
61 duplicated prototypes; add updating argument.
62 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
63 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
65 (cgraph_mark_inline_edge): Likewise.
66 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
67 (cgraph_flatten_node): Likewise.
68 (cgraph_decide_recursive_inlining): Likewise.
69 (cgraph_decide_inlining_of_small_function): Likewise.
70 * tree-optimize.c (tree_rest_of_compilation): Likewise.
72 2005-09-23 David Edelsohn <edelsohn@gnu.org>
73 Pete Steinmetz <steinmtz@us.ibm.com>
75 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
76 (rldic.): Set type to "compare".
78 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
79 mfjmpr for MFCTR/MFLR.
80 (movdf_hardfloat64): Same.
81 (movdf_softfloat64): Same. Correct order of store and move types.
82 (movti_string): Set type to store_ux/load_ux.
83 (load_multiple): Set type to load_ux.
84 (store_multiple): Set type to store_ux.
85 (movmemsi): Set type to store_ux.
86 (output_cbranch direct_return): Set type to jmpreg.
87 (stmw): Set type to store_ux.
88 (lmw): Set type to load_ux.
89 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
90 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
91 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
92 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
93 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
94 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
95 (rios1-fpstore): Increase latency to 3.
96 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
97 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
99 2005-09-23 David Edelsohn <edelsohn@gnu.org>
100 Andrew Pinski <pinskia@physics.uc.edu>
102 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
103 operand2 constraint to "b".
104 (sync_<fetchop_name>di_internal): Same.
105 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
107 (sync_old_<fetchop_name>di_internal): Same.
108 (sync_new_<fetchop_name>si_internal): Same.
109 (sync_new_<fetchop_name>di_internal): Same.
111 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
114 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
115 case, define as macros.
117 PR rtl-optimization/23837
118 * optabs.c (no_conflict_move_test): Don't set must_stay for a
119 clobber / clobber match between dest and p->first.
121 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
122 (no_conflict_move_test): Update comments.
124 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
126 * doc/install.texi: Update URL for Jacks.
127 * doc/sourcebuild.texi: Likewise.
129 2005-09-22 David Edelsohn <edelsohn@gnu.org>
132 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
133 registers when choosing register preferences.
134 (movdf_hardfloat64): Same.
136 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
138 * expmed.c (expand_shift): Don't use the target of the rotate as
139 target for the first expanded shift insn.
140 * testsuite/gcc.dg/20050922-1.c: Testcase added.
142 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
144 PR tree-optimization/22438
145 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
146 preserved iv rhs rewriting specially.
148 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
150 * tree-data-ref.c (analyze_array_indexes): Only estimate when
151 estimate_only is true.
152 * tree-flow.h (ref_contains_indirect_ref): New prototype.
153 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
154 tree-ssa-structalias.c
155 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
156 ref_contains_indirect_ref.
157 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
159 2005-09-21 DJ Delorie <dj@redhat.com>
161 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
163 (mn10300_return_in_memory): Support variable size types also.
164 (mn10300_pass_by_reference): Likewise.
165 (mn10300_function_value): New.
166 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
167 (FUNCTION_OUTGOING_VALUE): Likewise.
168 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
169 * doc/invoke.texi: Document it.
171 2005-09-21 Uros Bizjak <uros@kss-loka.si>
174 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
175 force integer op1 into register for XFmode compares.
177 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
180 * expmed.c (alg_code): Add alg_impossible.
181 (alg_hash_entry): Add cost.
182 (synth_mult): Record alg_impossible in the hash table if
183 multiplication by a given integer is impossble within the
184 limit. Speed up using alg_impossible.
186 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
188 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
189 argument. Allow and set any offset if needs_anyoffset is passed
191 (get_constraint_for): Add argument here too.
193 (do_structure_copy): Pass NULL to get_constraint_for.
194 (handle_ptr_arith): Ditto.
195 (find_func_aliases): Ditto.
197 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
199 PR rtl-optimization/23898
200 * output.h (get_attr_min_length): Declare.
201 * final.c (get_attr_length_1): New function, broken out of:
203 (get_attr_min_length): New function.
204 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
205 (duplicate_computed_gotos): Likewise.
206 * genattr.c (insn_min_length): Generate declaration.
207 * genattrtab.c (min_fn, min_attr_value): New functions.
208 (make_length_attrs): Generate insn_min_length.
210 2005-09-20 Steve Ellcey <sje@cup.hp.com>
212 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
214 2005-09-20 Richard Henderson <rth@redhat.com>
216 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
219 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
221 * c.opt (fextended-identifiers): New.
222 * c-opts.c (c_common_handle_option): Handle
223 -fextended-identifiers.
224 * doc/cpp.texi: Update documentation of extended identifiers.
225 * doc/cppopts.texi (-fextended-identifiers): Document.
227 2005-09-20 Jakub Jelinek <jakub@redhat.com>
229 PR tree-optimization/23929
230 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
233 PR tree-optimization/23818
234 * tree-stdarg.c (execute_optimize_stdarg): Call
235 calculate_dominance_info.
237 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
239 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
240 (analyze_siv_subscript_cst_affine): Add weak SIV test.
241 (compute_overlap_steps_for_affine_1_2): Use
242 get_number_of_iters_for_loop.
243 (analyze_subscript_affine_affine): Check whether difference is
245 Use get_number_of_iters_for_loop.
246 Check whether overlap occurs outside of bounds.
247 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
249 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
251 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
252 base register if possible.
254 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
256 PR tree-optimization/18463
257 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
258 converting it directly is not possible.
259 (chrec_convert_aggressive): New function.
260 * tree-chrec.h (chrec_convert_aggressive): Declare.
261 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
262 Fold chrec conversions aggressively if asked to.
263 (instantiate_parameters): Modified because of changes in
264 instantiate_parameters_1.
266 2005-09-19 Richard Henderson <rth@redhat.com>
268 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
269 (reduc_splus_v2df): New.
271 2005-09-19 Richard Sandiford <richard@codesourcery.com>
273 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
274 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
276 2005-09-19 Richard Henderson <rth@redhat.com>
278 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
281 2005-09-19 Richard Henderson <rth@redhat.com>
283 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
284 (ia64_expand_dot_prod_v8qi): New.
285 * config/ia64/ia64-protos.h: Update.
286 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
287 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
288 sdot_prodv8qi, sdot_prodv4hi): New.
289 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
291 2005-09-19 Richard Henderson <rth@redhat.com>
294 * real.c (exact_real_truncate): Return false if the format cannot
295 represent the number as a normal.
297 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
300 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
302 * tree-ssa-operands.c (swap_tree_operands): Export.
303 * tree.h (swap_tree_operands): Declare.
304 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
305 Call swap_tree_operands.
307 2005-09-19 Richard Henderson <rth@redhat.com>
309 * tree-flow.h (merge_alias_info): Declare.
310 * tree-ssa-copy.c (merge_alias_info): Export.
311 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
312 (vect_create_data_ref_ptr): Use create_iv directly.
313 (vectorizable_load): Use correct types for integer constants.
314 (vect_generate_tmps_on_preheader): Likewise.
315 (vect_gen_niters_for_prolog_loop): Likewise.
317 2005-09-19 Steven Bosscher <stevenb@suse.de>
319 PR rtl-optimization/23943
320 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
322 2005-09-18 Jan Hubicka <jh@suse.cz>
324 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
326 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
328 * varasm.c (output_constant): Do not abort on conversions to union
329 types between different sizes.
331 2005-09-18 Richard Guenther <rguenther@suse.de>
334 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
337 2005-09-18 Paul Brook <paul@codesourcery.com>
339 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
341 2005-09-17 Richard Henderson <rth@redhat.com>
343 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
344 * tree-ssa-loop.c (pass_vect_dce): Remove.
345 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
348 2005-09-17 Richard Henderson <rth@redhat.com>
350 * tree-pass.h (pass_vect_dce): Declare.
351 * passes.c (init_optimization_passes): Add it.
352 * tree-flow.h (tree_ssa_dce): Declare.
353 * tree-ssa-dce.c (tree_ssa_dce): Export.
354 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
355 (gate_tree_vectorize): ... here.
356 (pass_vect_dce): New.
358 2005-09-17 Jan Hubicka <jh@suse.cz>
360 * except.c (struct eh_status): Turn region_array into vec.
361 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
362 convert_from_eh_region_ranges, find_exception_handler_labels,
363 current_function_has_exception_handlers, assign_filter_values,
364 build_post_landing_pads, dw2_build_landing_pads,
365 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
366 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
367 foreach_reachable_handler, can_throw_internal_1,
368 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
370 (duplicate_eh_region_1): Update region_array.
371 (duplicate_eh_regions): Resize region_array and avoid recomputing.
373 2005-09-17 David Edelsohn <edelsohn@gnu.org>
376 * expmed.c (expand_mult): Substitute simple register for op0 when
379 2005-09-17 Richard Henderson <rth@redhat.com>
381 * expr.c (emit_move_via_integer): Add force argument, pass it on
382 to emit_move_change_mode. Update callers.
383 (emit_move_complex): Pass true to new force argument.
384 * function.c (expand_function_end): Move expand_eh_return call
385 earlier. Merge sub-word complex values into a pseudo before
386 copying to the return hard register.
388 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
390 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
391 between different sizes.
393 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
397 * passes.c (init_optimization_passes): Register dump files for
400 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
402 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
403 * config/s390/s390.c (s390_overlap_p): New function.
404 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
405 peephole2, "*xc" peephole2): Added overlap check to the peephole2
408 2005-09-16 Richard Guenther <rguenther@suse.de>
410 * ipa-pure-const.c (static_execute): Free auxiliar information.
411 * ipa-type-escape.c (discover_unique_type): Free temporary key.
412 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
414 2005-09-15 DJ Delorie <dj@redhat.com>
416 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
418 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
420 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
422 (swap_commutative_operands_with_target): New.
424 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
426 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
429 (estimate_iters_using_array): New function.
430 * tree-data-ref.h (estimate_iters_using_array): Prototype
431 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
432 Use estimate_iters_using_array instead of analyze_array.
434 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
436 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
439 2005-09-15 Michael Matz <matz@suse.de>
441 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
443 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
445 PR tree-optimization/23835
446 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
447 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
449 2005-09-14 Richard Henderson <rth@redhat.com>
451 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
452 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
454 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
456 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
457 in the ARRAY_TYPE case.
459 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
461 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
463 2005-09-14 Uros Bizjak <uros@kss-loka.si>
466 * tree-vect-transform.c (vectorizable_operation): Return false for
467 scalar shift operations and for vector shift operations with
468 non-invariant shift arguments. Use scalar tree operand op1 as
469 a shift operand when vector shift insn pattern uses scalar shift
471 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
473 2005-09-14 Olivier Hainque <hainque@adacore.com>
475 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
476 value if it has side-effects.
478 2005-09-14 David Edelsohn <edelsohn@gnu.org>
481 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
483 2005-09-14 Alan Modra <amodra@bigpond.net.au>
485 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
486 passed as NAME as if it were label at start of function code.
488 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
490 * config/sh/sh.md (*movv4sf_i): Add general register cases to
493 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
495 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
496 as early clobber. Rewrite so the PIC register is not implicitly used.
498 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
500 * tree.c (annotate_with_file_line): Compare line numbers before
503 2005-09-13 Uros Bizjak <uros@kss-loka.si>
506 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
507 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
509 2005-09-13 Ian Lance Taylor <ian@airs.com>
511 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
512 than a HOST_WIDEST_INT to gen_doloop_begin.
514 2005-09-13 Diego Novillo <dnovillo@redhat.com>
516 * tree-dfa.c (dump_variable): Guard against NULL annotations.
518 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
520 PR tree-optimize/23817
521 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
523 2005-09-13 Alan Modra <amodra@bigpond.net.au>
526 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
527 word before changing the stack pointer. Use gen_frame_mem for MEMs.
528 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
529 (restore_stack_nonlocal): Likewise.
530 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
532 2005-09-12 Ian Lance Taylor <ian@airs.com>
535 * c.opt (ffriend-injection): New C++ option.
536 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
537 (C++ Dialect Options): Document -ffriend-injection.
539 2005-09-12 Josh Conner <jconner@apple.com>
542 * ipa-reference.c (static_execute): Don't mark variables in
543 named sections TREE_READONLY.
545 2005-09-12 Alan Modra <amodra@bigpond.net.au>
547 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
550 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
552 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
553 V_MUST_DEF instead of just the first_use_p.
554 Don't mark the virtual variables for renaming on the statement which
556 (pass_dse): Remove TODO_update_ssa.
558 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
561 * stor-layout.c (compute_record_mode): For records with a single
562 field, actually check the field's mode size against the type size.
564 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
565 registers for TARGET_SHMEDIA.
566 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
567 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
568 of GENERAL_REGS and FP_REGS.
570 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
572 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
574 2005-09-12 Alan Modra <amodra@bigpond.net.au>
576 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
577 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
578 are omitted. Exclude stack_tie insn too.
580 2005-09-11 David Edelsohn <edelsohn@gnu.org>
582 PR rtl-optimization/23098
583 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
585 * config/rs6000/rs6000.md (movdf splitter): Use
586 const_double_operand predicate for TARGET_POWERPC64.
587 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
588 SYMBOL_REF method to ABI_V4.
590 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
591 replace_equiv_address.
592 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
593 rs6000_sr_alias_set and MEM_NOTRAP.
594 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
596 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
598 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
599 handle CALL_EXPR again.
601 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
603 * arm/predicates.md (alignable_memory_operand): Delete.
605 2005-09-10 Richard Henderson <rth@redhat.com>
608 * dbxout.c (dbxout_expand_expr): New.
609 (dbxout_symbol): Use it.
611 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
613 * arm.c (arm_gen_rotated_half_load): Delete.
614 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
615 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
616 (thumb_set_return_address): Likewise.
617 (thumb_load_double_from_address): Use adjust_address.
618 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
619 (extendhsisi2_mem, movhi_bytes): Use change_address.
620 (movhi): Use widen_memory_access.
621 (reload_out_df): Use replace_equiv_address.
622 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
624 2005-09-09 Richard Henderson <rth@redhat.com>
627 * dbxout.c: Include expr.h.
628 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
629 (dbxout_symbol): Handle DECL_VALUE_EXPR.
630 * Makefile.in (dbxout.o): Add EXPR_H.
632 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
634 PR tree-optimization/23509
635 * tree-cfg.c (replace_uses_by): Use replace_exp.
636 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
637 pointers have name_mem_tag or type_mem_tag set.
639 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
641 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
642 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
643 of wrongly accessing operands.
645 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
647 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
648 * tree-chrec.c: Include tree-scalar-evolution.h.
649 (chrec_convert): Instantiate the base and step before calling
650 scev_probably_wraps_p that would fail on parametric evolutions.
651 Collect all the fails into a single section failed_to_convert,
652 print a diagnostic, and return chrec_dont_know instead of calling
654 * tree-scalar-evolution.c (loop_closed_phi_def): New.
655 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
657 (scev_const_prop): Don't replace the definition of a loop closed ssa
658 phi node by itself, or by another loop closed ssa phi node.
659 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
660 that base and step are defined.
662 2005-09-09 Richard Guenther <rguenther@suse.de>
665 * fold-const.c (fold_ternary): Check truth_value_p before
666 calling invert_truthvalue.
668 2005-09-09 Nick Clifton <nickc@redhat.com>
670 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
671 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
672 dimension of these arrays.
673 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
675 * longlong.h: Only provide a prototype for the __clz_tab[] array
676 if this header has not been included from libgcc2.h.
677 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
679 Provide prototypes for exported functions.
680 Use the __clz_tab[] and __popcount_tab[] arrays provided by
683 2005-09-08 Josh Conner <jconner@apple.com>
687 * expr.c (expand_expr_addr_expr_1): Don't invoke
688 expand_simple_binop for EXPAND_INITIALIZER.
690 2005-09-08 Richard Henderson <rth@redhat.com>
693 * toplev.c (wrapup_global_declaration_1): Split out ...
694 (wrapup_global_declaration_2): ... from ...
695 (wrapup_global_declarations): ... here. Return bool.
696 (check_global_declaration_1): Split out ...
697 (check_global_declarations): from here.
698 (emit_debug_global_declarations): New.
699 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
700 check_global_declaration_1, emit_debug_global_declarations): Declare.
701 * c-decl.c (c_write_global_declarations_1): Don't create a vector
702 of decls. Call wrapup_global_declaration_1,
703 wrapup_global_declaration_2, check_global_declaration_1 directly.
704 (c_write_global_declarations_2): New.
706 (c_write_global_declarations): Call c_write_global_declarations_2.
707 * langhooks.c (write_global_declarations): Call
708 emit_debug_global_declarations.
710 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
711 remove decls that have DECL_RTL_SET_P.
712 * passes.c (rest_of_decl_compilation): Invoke
713 cgraph_varpool_finalize_decl for all but functions.
715 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
717 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
718 the result of a conversion if the new min and max cannot be compared.
720 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
722 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
723 (override_options): Setting s390_sr_alias_set removed.
724 (save_fpr, save_gprs): Set alias set to vararg or frame.
725 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
726 s390_sr_alias_set with get_frame_alias_set ().
727 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
728 get_varargs_alias_set ().
730 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
734 * c-parser.c (c_parser_objc_method_definition): If the next
735 token is not "{", error out and don't start the function.
737 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
739 * tree-vrp.c (extract_range_from_expr): Move the check for non
740 nullness after the check for gimple invariant.
742 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
744 * tree.c (host_integerp, tree_low_cst): Correct function comment.
746 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
749 * config/m32r.md (movmemsi_internal): Canonicalize order of
750 operands in PLUS component of template.
752 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
754 * reload1.c (fixup_eh_region_note): Remove assertion.
755 (fixup_abnormal_edges): Reverted removal of call to
756 find_many_sub_basic_blocks made on 2005-08-31.
758 2005-09-07 Richard Henderson <rth@redhat.com>
760 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
761 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
762 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
763 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
764 rearrange for better packing.
765 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
766 (lookup_cfa_1): Remove inline marker.
767 (cfa_equal_p): Split out of ...
768 (def_cfa_1): ... here. Use INVALID_REGNUM.
769 (build_cfa_loc): Handle !cfa->indirect.
770 (frame_pointer_cfa_offset): New.
771 (dbx_reg_number): Assert register elimination performed; do
772 leaf register remapping.
773 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
774 (eliminate_reg_to_offset): New.
775 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
776 for verifiably local stack frame addresses; re-base to CFA.
777 (mem_loc_descriptor): Remove can_use_fbreg argument.
778 (concat_loc_descriptor, loc_descriptor): Likewise.
779 (containing_function_has_frame_base): Remove.
780 (rtl_for_decl_location): Don't do register elimination or
781 leaf register remapping here.
782 (secname_for_decl): Split out from ..
783 (add_location_or_const_value_attribute): ... here.
784 (convert_cfa_to_loc_list): New.
785 (compute_frame_pointer_to_cfa_displacement): New.
786 (gen_subprogram_die): Use them.
787 * tree.h (frame_base_decl): Remove.
788 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
789 (prologue_stack_adjust): Remove.
790 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
791 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
792 (set_frame_base_location): Remove.
793 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
794 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
795 (vt_add_function_parameters): Don't eliminate_regs.
796 (vt_initialize): Don't create frame_base_decl.
798 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
800 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
801 version of GNU binutils for 4.x and later.
803 2005-09-06 Mark Mitchell <mark@codesourcery.com>
805 * ggc-page.c (ggc_push_context): Remove.
806 (ggc_pop_context): Likewise.
807 * ggc.h (ggc_push_context): Remove.
808 (ggc_pop_context): Likewise.
810 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
813 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
814 returning from an interrupt handler.
816 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
819 * config/arc/arc.c (output_shift): Add check for loop count when
822 2005-09-06 Steven Bosscher <stevenb@suse.de>
824 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
826 (abs_replacement): Likewise.
827 (pass_phiopt): Remove TODO_update_ssa.
829 2005-09-06 Jakub Jelinek <jakub@redhat.com>
832 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
833 if "return with no value, in function returning non-void" warning
835 * tree-cfg.c (execute_warn_function_return): Don't look at
836 RETURN_EXPRs with TREE_NO_WARNING set.
839 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
840 for internal functions doesn't use registers used by global registers
841 variables. Use fewer register parameters if there are global register
844 2005-09-06 Olivier Hainque <hainque@adacore.com>
845 Eric Botcazou <ebotcazou@adacore.com>
848 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
849 when we would be extracting outside its bit span (bitpos+bitsize
850 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
851 Ada unchecked conversions.
853 2005-09-06 Steven Bosscher <stevenb@suse.de>
855 * tree-ssa-pre.c (try_look_through_load): New function.
856 (compute_avail): Use it to try to look through loads for some
857 more useful expressions.
859 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
861 * simplify-rtx.c (simplify_binary_operation_1): Correct the
862 condition for detecting cases like (a&a) and (a^a).
864 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
866 * common.opt: Add option ftree-vect-loop-version.
867 * params.def: Add --param vect-max-version-checks.
868 * doc/invoke.texi: Document ftree-vect-loop-version and
869 --param vect-max-version-checks.
870 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
871 may_misalign_stmts and defines for accessors.
872 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
873 LOOP_VINFO_MAY_MISALIGN_STMTS.
874 (destroy_loop_vec_info): VEC_free for
875 LOOP_VINFO_MAY_MISALIGN_STMTS.
876 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
877 Update documentation.
878 (vect_update_misalignment_for_peel): New.
879 (vect_enhance_data_refs_alignment): Update to choose loop
880 peeling or loop versioning if appropriate for the (potentially)
881 unaligned data references in the loop.
882 (vect_analyze_data_refs_alignment): Remove call to
883 vect_enhance_data_refs_alignment so the checks can be done
885 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
886 and move up call to vect_analyze_data_refs_alignment.
887 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
888 (vect_transform_loop): Add call to loop_version.
890 2005-09-06 Jakub Jelinek <jakub@redhat.com>
892 PR rtl-optimization/23098
893 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
894 * simplify-rtx.c (constant_pool_reference_p): New function.
895 * rtl.h (constant_pool_reference_p): New prototype.
896 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
897 constant_pool_reference_p in condition and
898 avoid_constant_pool_reference in preparation statements.
900 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
902 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
903 STRICT_LOW_PART SETs.
905 2005-09-06 Alan Modra <amodra@bigpond.net.au>
908 * except.c (sjlj_emit_function_enter): Find the function begin
909 note even when it's not in first basic block.
911 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
913 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
914 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
915 * aclocal.m4: Regenerate.
917 2005-09-05 DJ Delorie <dj@redhat.com>
919 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
922 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
924 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
925 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
926 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
927 Follow spelling conventions.
928 * doc/invoke.texi: Follow spelling conventions.
930 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
932 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
933 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
934 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
936 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
939 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
940 (output_stack_adjust): Use gen_tmp_stack_mem.
941 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
942 (sh_set_return_address, sh_allocate_initial_value): Likewise.
943 (sh_get_pr_initial_val): Likewise.
944 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
945 (sh_initialize_trampoline): Likewise. Also use adjust_address.
946 * sh.md (divsi_inv_m0): Use gen_const_mem.
947 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
948 (movdf_i4+1): Use gen_tmp_stack_mem.
949 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
950 (fpu_switch+2): Likewise.
951 (movv4sf_i, movv16sf_i): Use adjust_address.
952 (symGOT_load): Set MEM_NOTRAP_P bit.
954 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
957 * pa.c (emit_move_sequence): Fix typo in last change.
959 2005-09-03 Jakub Jelinek <jakub@redhat.com>
961 PR rtl-optimization/23454
962 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
965 2005-09-03 Richard Henderson <rth@redhat.com>
966 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
969 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
972 2005-09-02 Nicolas Pitre <nico@cam.org>
974 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
975 to bit_count to 32 bits.
977 2005-08-31 Mark Mitchell <mark@codesourcery.com>
980 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
981 generating synthetic loads from volatile lvalues.
983 005-09-02 Nick Clifton <nickc@redhat.com>
985 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
986 __ctzhi2, __clzhi2): New functions.
988 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
991 * tree-nested.c (struct var_map_elt): Mark with GTY.
992 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
994 (lookup_field_for_decl): Allocate new element in GC memory.
995 (lookup_tramp_for_decl): Likewise.
996 (convert_nl_goto_reference): Likewise
997 (create_nesting_tree): Allocate info in GC memory. Likewise for
999 (free_nesting_tree): Free with ggc_free instead of free.
1000 (root): New static variable.
1001 (lower_nested_functions): Remove root as local variable. And zero out
1002 root at the end of the function.
1004 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
1006 PR rtl-optimization/20365
1007 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
1008 to short. New member ix.
1009 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
1010 (simplify_plus_minus): Initialize ix members before calling qsort.
1012 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
1014 PR tree-optimization/23626
1015 * tree-cfg.c (replace_uses_by): Clean up eh info.
1017 2005-09-01 DJ Delorie <dj@redhat.com>
1019 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
1022 2005-09-01 David Edelsohn <edelsohn@gnu.org>
1024 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
1025 (rs6000_split_multireg_move): Use replace_equiv_address instead of
1028 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
1030 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
1031 do not issue warning for a variable definition following
1034 2005-09-01 Richard Henderson <rth@redhat.com>
1037 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
1038 conversion to CONST_VECTOR.
1040 2005-09-01 Richard Henderson <rth@redhat.com>
1043 * reload1.c (reload_as_needed): Check !CALL_P before calling
1044 fixup_eh_region_note.
1045 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
1047 2005-09-01 DJ Delorie <dj@redhat.com>
1049 * varasm.c (output_constant): Let the target resolve
1050 conversions of addresses to non-default pointer sizes.
1052 2005-09-01 Nicolas Pitre <nico@cam.org>
1054 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
1055 to alow matching ARM pre-indexed addressing mode.
1056 (arm_override_options): Remove now irrelevant comment.
1058 2005-09-01 Phil Edwards <phil@codesourcery.com>
1060 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
1061 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
1062 * config/i386/vxworks.h: Likewise.
1063 * config/i386/t-vxworksae: New file, for VxWorks AE.
1064 * config/i386/vxworksae.h: Likewise.
1066 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
1068 PR tree-optimization/23410
1069 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
1070 sequence is not wrapping during the first step.
1072 2005-09-01 Jakub Jelinek <jakub@redhat.com>
1075 * dwarf2out.c (base_type_die): Compare char_type_node with
1076 TYPE_MAIN_VARIANT (type), not type.
1078 2005-09-01 Richard Guenther <rguenther@suse.de>
1080 PR tree-optimization/15366
1081 * common.opt: Add -finline-functions-called-once.
1082 Put -fearly-inlining in alphabetically ordered place.
1083 * doc/invoke.texi: Document new option.
1084 * ipa-inline.c (cgraph_decide_inlining): Honour
1085 flag_inline_functions_called_once.
1087 2005-09-01 Jakub Jelinek <jakub@redhat.com>
1089 PR rtl-optimization/23478
1090 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
1091 (alloc_qty): Initialize it.
1092 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
1093 (combine_regs): Combine also n_throwing_calls_crossed fields.
1094 (find_free_reg): Don't attempt to caller-save pseudos crossing
1095 calls that might throw.
1096 * global.c (struct allocno): Add throwing_calls_crossed field.
1097 (global_alloc): Revert 2005-08-22 change. Initialize
1098 throwing_calls_crossed.
1099 (find_reg): Don't attempt to caller-save pseudos crossing calls that
1102 2005-09-01 Alan Modra <amodra@bigpond.net.au>
1105 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
1106 (mask64_operand): Reinstate code prior to 2005-06-11 change.
1107 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
1108 (and64_2_operand): Tweak to use predicate.
1109 (and_operand): Adjust for mask_operand changes.
1110 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
1111 (print_operand): Likewise.
1112 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
1113 (mask64_1or2_operand): Delete.
1114 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
1115 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
1116 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
1117 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
1118 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
1119 (rotldi3_internal4): Likewise.
1120 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
1121 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
1122 (ashldi3_internal7): Likewise.
1123 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
1124 (ashldi3_internal, ashldi3_internal9 split): Likewise.
1125 (anddi3 split): Don't match mask64_operand.
1126 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
1127 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
1128 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
1129 't' splitter predicate.
1130 (movdi_internal64 + 2): Revert 2005-06-11 change.
1132 2005-08-31 DJ Delorie <dj@redhat.com>
1134 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
1135 (m32c_asm_integer): Add support for 32 bit pointers.
1137 2005-08-31 Richard Henderson <rth@redhat.com>
1139 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
1140 component-like references for setting MEM_NOTRAP_P.
1142 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
1143 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1145 2005-08-31 Richard Henderson <rth@redhat.com>
1147 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
1148 into a pseudo before applying gen_lowpart.
1150 2005-08-31 Geoffrey Keating <geoffk@apple.com>
1152 * doc/install.texi (Specific): Update cctools version required
1153 for full functionality.
1154 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
1155 linkers as -macosx_version_min.
1157 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
1160 * sh.c (print_operand, %R and %S): Add handling of floating point
1161 registers, memory, constants and invalid operands.
1163 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
1165 * ipa-pure-const.c: Change dump name.
1167 2005-08-31 Uros Bizjak <uros@kss-loka.si>
1170 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
1171 to "reg_or_0_operand".
1172 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
1174 2005-08-31 Dale Johannesen <dalej@apple.com>
1176 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
1177 loops that count down.
1179 2005-08-31 Richard Henderson <rth@redhat.com>
1182 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
1183 (fixup_eh_region_note): New.
1184 (reload_as_needed): Call it.
1185 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
1186 don't call find_many_sub_basic_blocks; call verify_flow_info.
1187 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
1188 (keep_stack_depressed): Likewise.
1189 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
1191 2005-08-31 Richard Henderson <rth@redhat.com>
1193 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
1196 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
1198 * expr.c (expand_expr_real_1): Compare size of address
1199 mode to target's address mode size in deciding expansion of
1200 the constant address.
1202 2005-08-31 Richard Guenther <rguenther@suse.de>
1205 * expr.c (all_zeros_p): New function.
1206 (expand_expr_real_1): Handle the case of an all-zero
1207 non-addressable constructor separately.
1209 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
1211 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
1212 arguments, adjust all callers.
1213 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
1215 2005-08-30 Richard Henderson <rth@redhat.com>
1218 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
1219 whenever the mode sizes match.
1221 2005-08-31 Alan Modra <amodra@bigpond.net.au>
1223 * calls.c (load_register_parameters): Fix comment typo.
1224 * expr.c (emit_push_insn): Comment formatting.
1226 2005-08-30 Ian Lance Taylor <ian@airs.com>
1228 * config/i386/x-cygwin (host-cygwin): Change dependency from
1229 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
1231 2005-08-29 Geoffrey Keating <geoffk@apple.com>
1233 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
1236 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
1239 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
1240 call to ggc_collect.
1242 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
1245 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
1246 beginning. Remove $(INCLUDES) from all the rules, if following
1247 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
1249 2005-08-29 Jakub Jelinek <jakub@redhat.com>
1252 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
1253 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
1254 not constant, but maxlen is, don't set len to maxlen, rather
1255 set maxlen to len if len is a constant.
1257 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
1259 PR tree-optimization/23475
1260 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
1263 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
1265 Fix PR middle-end/22455
1267 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
1268 Checksum only the parts of the tree that exist for the tree code.
1270 2005-08-28 Dale Johannesen <dalej@apple.com>
1272 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
1274 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
1276 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
1278 2005-08-28 Richard Henderson <rth@redhat.com>
1280 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
1281 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
1284 2005-08-28 Jakub Jelinek <jakub@redhat.com>
1287 * builtins.c (get_memory_rtx): Don't strip nops
1288 in between COMPONENT_REFs.
1290 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
1293 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
1295 (gimplify_modify_expr): Check for zero sized types and gimplify the
1296 rhs and lhs as statements.
1298 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
1301 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
1302 state for return address column of signal frames.
1304 2005-08-27 David Edelsohn <edelsohn@gnu.org>
1307 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
1308 bytes >= 2 not bytes == 2.
1309 (expand_block_move): Same.
1311 2005-08-27 Richard Guenther <rguenther@suse.de>
1314 * config/i386/sse.md (sse2_movsd): Add missing closing
1317 2005-08-27 Paul Brook <paul@codesourcery.com>
1319 * genrecog.c (enum decision_type): Add DT_num_insns.
1320 (struct decision_test): Add u.num_insns.
1321 (add_to_sequence): Add DT_num_insns test.
1322 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
1323 (write_cond, debug_decision_2): Ditto.
1324 (change_state): Assume peep2_next_insn never fails.
1325 Remove "afterward" argument.
1326 (write afterward, write_tree): Update to match.
1327 * recog.c (peep2_current_count): New variable.
1328 (peep2_next_insn): Check it.
1329 (peephole2_optimize): Set peep2_current_count.
1330 * recog.h (peep2_current_count): Declare.
1332 2005-08-26 Josh Conner <jconner@apple.com>
1335 * ipa-pure-const.c (check_tree): Check for volatile-ness
1336 when considering a dereference.
1338 2005-08-27 Jakub Jelinek <jakub@redhat.com>
1340 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
1342 2005-08-26 Jakub Jelinek <jakub@redhat.com>
1344 PR rtl-optimization/23561
1345 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
1346 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
1347 at most LEN bytes long memory fits into the field.
1348 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
1349 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
1350 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
1352 2005-08-26 Richard Henderson <rth@redhat.com>
1355 * loop.c (biased_biv_may_wrap_p): New.
1356 (maybe_eliminate_biv_1): Use it to suppress non-equality
1357 comparison transformations. Delete disabled code.
1359 2005-08-26 Ian Lance Taylor <ian@airs.com>
1361 * combine.c (make_extraction): Avoid reference outside object.
1363 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
1365 * stor-layout.c (finalize_type_size): Restore behaviour for
1366 non-aggregate types to the status quo ante of the patch for
1367 pr 23467. Document why it matters.
1369 2005-08-26 Jakub Jelinek <jakub@redhat.com>
1372 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
1373 array by one element, initialize the BT_LAST element with NULL.
1375 2005-08-26 David Edelsohn <edelsohn@gnu.org>
1377 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
1378 optimizing for size.
1380 (compare_plus_eqsi): Same.
1381 (plus_eqsi_compare): Same.
1382 (neg_eq0<mode>): Same.
1383 (neg_eq<mode>): Same.
1385 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
1388 2005-08-26 Nick Clifton <nickc@redhat.com>
1390 * config/v850/v850.c (ep_memory_operand): Return FALSE if
1391 TARGET_EP is not defined.
1392 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
1393 TARGET_EP is enabled.
1394 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
1395 * config/v850/v850.md (save_all_interrupt): Only use the EP
1396 register if TARGET_EP is defined.
1397 (restore_all_interrupt): Likewise.
1398 * config/v850/lib1funcs.asm: Update functions so that the EP
1399 register is only used if __EP__ is defined.
1401 2005-08-26 David Ung <davidu@mips.com>
1403 * config/mips/mips.c (mips_expand_prologue): Handle case when
1404 generating for MIPS16 and the outgoing argument area is more than
1405 SMALL_OPERAND. Use the frame pointer as temporary to generate the
1408 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
1410 * config/crx/crx.md: Make doloop_end pattern usage controllable
1411 via mloop-nesting=<max-nesting> command line switch. Make sure
1412 the combiner cannot use doloop_end_<mode> in an illegal way.
1413 * config/crx/crx.c: Use regs up to r6 for argument passing.
1414 Refine crx_address_cost (non cst4 displacements are expensive).
1415 * config/crx/crx.opt: Add switch for mloop-nesting=.
1417 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
1419 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
1420 (UNSPEC_MVST): New constant.
1422 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1424 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
1425 Reject operands containing eliminable registers.
1426 * testsuite/gcc.dg/20050825-1.c: New testcase.
1428 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1429 Jan Hubicka <jh@suse.cz>
1431 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
1433 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1435 PR tree-optimization/23546
1436 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
1439 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
1441 * params.def (PARAM_MIN_SPEC_PROB): New.
1442 * sched-rgn.c (MIN_PROBABILITY): Delete.
1443 (compute_trg_info): Convert to PARAM_VALUE.
1444 * doc/invoke.texi (param): Document min-spec-prob.
1446 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
1448 * config/darwin.h: define __PIC__
1449 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
1450 TARGET_OS_CPP_BUILTINS macro.
1452 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1454 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
1457 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
1459 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
1461 * cfghooks.c (duplicate_block): Added position where to place
1462 new block as argument.
1463 * cfghooks.h (duplicate_block): Declaration changed.
1464 * cfglayout.c (copy_bbs): Add argument after. Pass it to
1466 * cfglayout.h (copy_bbs): Declaration changed.
1467 * cfgloop.h (loop_version): Declaration changed.
1468 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
1469 position to copy_bbs.
1470 (loop_version): Pass position to duplicate_loop_to_header_edge.
1471 Add place_after argument and position new blocks according to
1473 * modulo-sched.c (sms_schedule): Pass place_after argument
1475 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
1476 * tree-cfg.c (split_edge_bb_loc): New function.
1477 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
1478 to determine position of new blocks.
1479 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
1481 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
1482 argument to duplicate_block.
1483 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1484 Pass position to copy_bbs.
1486 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
1488 * fold-const.c (ptr_difference_const): Use
1489 cst_and_fits_in_hwi instead of host_integerp.
1491 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1493 * config/darwin.c (gen_pic_offset): New.
1494 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
1497 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
1499 PR tree-optimization/23486
1500 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
1502 2005-08-23 Phil Edwards <phil@codesourcery.com>
1504 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
1505 remove use_collect2.
1506 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
1508 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
1509 configuration files to override the default value.
1511 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
1512 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
1513 * config/vx-common.h: New file, split out from...
1514 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
1515 * config/vxworksae.h: New file, for VxWorks AE.
1516 * config/vxworks.opt: New file.
1517 * config/vxlib.c: Update for VxWorks 6.
1519 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
1520 other MULTILIB_* variables appropriately.
1521 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
1522 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
1523 * config/rs6000/vxworks.h: Update for VxWorks 6.
1524 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
1526 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
1529 * config/darwin.c (machopic_select_section): Remove the hack to
1530 mark "::operator new" and "::operator delete" for coalescing
1531 even though they are not weak.
1533 2005-08-24 Alan Modra <amodra@bigpond.net.au>
1535 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
1536 * configure: Regenerate.
1538 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
1541 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
1543 * convert.c (convert_to_integer, convert_to_vector): Likewise.
1544 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
1547 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
1549 * config/rs6000/predicates.md (equality_operator): New.
1550 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
1551 comparison with a large constant.
1553 2005-08-23 Mark Mitchell <mark@codesourcery.com>
1555 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
1557 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
1559 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
1560 registers is even, and we have a hardware double precision fp,
1562 (sh_gimplify_va_arg_expr): For floating point arguments, consider
1563 size of current argument when checking if argument was passed in
1566 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
1569 * stor-layout.c (finalize_type_size): Dont override
1570 existing alignment with a smaller alignment from the mode.
1572 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
1574 * lambda-code.c (lambda_vector_lexico_pos): Moved...
1575 * lambda.h (lambda_vector_lexico_pos): ... here.
1576 * tree-data-ref.c (build_classic_dist_vector): Return false when
1577 the distance vector is lexicographically negative.
1579 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
1581 PR tree-optimization/23511
1582 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
1583 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
1585 2005-08-23 Jakub Jelinek <jakub@redhat.com>
1587 PR tree-optimization/22043
1588 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
1589 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
1590 If ALLOW_FLEXARR, handle types ending with flexible array member.
1591 Pass false as second argument to recursive count_type_elements calls.
1592 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
1593 argument to count_type_elements call.
1594 * tree-sra.c (decide_block_copy): Likewise.
1595 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
1596 for a constant-sized object, set cleared as well. Pass true as
1597 second argument to count_type_elements call.
1599 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1602 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
1603 from legitimate_small_data_p, and make global. Update use.
1604 Remove forward declaration.
1605 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
1607 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
1609 2005-08-23 David Edelsohn <edelsohn@gnu.org>
1611 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
1612 of scratch intermediates.
1613 (eq<mode>_compare): Same.
1614 (neg_eq0<mode>): New.
1615 (neg_eq<mode>): Convert to define_insn_and_split.
1617 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1620 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
1621 stdarg functions, set/clear the fp marker even when no variable
1623 * config/rs6000/sysv4.opt (mprototype): Describe.
1625 2005-08-22 Jakub Jelinek <jakub@redhat.com>
1627 PR rtl-optimization/23478
1628 * regs.h (reg_info): Add throw_calls_crossed.
1629 (REG_N_THROWING_CALLS_CROSSED): Define.
1630 * flow.c (allocate_reg_life_data): Initialize
1631 REG_N_THROWING_CALLS_CROSSED.
1632 (propagate_one_insn, attempt_auto_inc): Update
1633 REG_N_THROWING_CALLS_CROSSED.
1634 * global.c (global_alloc): Don't allocate pseudos across
1635 calls that may throw.
1637 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
1640 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
1641 value is inbetween the range if we did not find an exact match.
1643 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
1645 * doc/invoke.texi (Option Summary): Add ms1 options.
1646 * doc/extend.texi: Document interrupt handler attribute for ms1.
1647 * doc/md.texi: Document ms1 constraints.
1648 * config.gcc: Add ms1-*-elf.
1649 * config/ms1/ms1.h: New.
1650 * config/ms1/ms1.c: New.
1651 * config/ms1/ms1.md: New.
1652 * config/ms1/ms1-protos.h: New.
1653 * config/ms1/ABI.txt: New.
1654 * config/ms1/crti.asm: New.
1655 * config/ms1/crtn.asm: New.
1656 * config/ms1/lib2extra-funcs.c: New.
1657 * config/ms1/t-ms1: New.
1658 * config/ms1/ms1.opt: New.
1660 2005-08-22 Ira Rosen <irar@il.ibm.com>
1662 * config/rs6000/altivec.md (xorv4sf3): New.
1663 (negv4sf2, neg<mode>2): Likewise.
1665 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
1668 * config/ia64/ia64.md (divsi3): Check divide by zero.
1669 (udivsi3): Likewise.
1671 (udivdi3): Likewise.
1673 2005-08-21 Jakub Jelinek <jakub@redhat.com>
1675 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
1676 up to elem_bitsize bits, not max_bitsize.
1678 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
1680 PR tree-optimization/23433
1681 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
1682 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
1684 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
1686 PR tree-optimization/23434
1687 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
1688 the iteration bound is not an INTEGER_CST.
1690 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
1692 * tree-vect-transform.c (get_initial_def_for_reduction): Set
1693 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
1694 NULL if need_epilog_adjust is false.
1695 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
1696 Case 3 always peels first itration, not just for PLUS case, and no need
1697 to use scalar_initial_def here. Create an epilog adjustment only if
1698 scalar_initial_def is not NULL.
1700 (vectorizable_reduction): Remove assert.
1702 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
1705 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
1706 (__moddi3): Likewise.
1707 (__udivdi3): Likewise.
1708 (__umoddi3): Likewise.
1709 (__divsi3): Likewise.
1710 (__modsi3): Likewise.
1711 (__udivsi3): Likewise.
1712 (__umodsi3): Likewise.
1714 2005-08-20 Jakub Jelinek <jakub@redhat.com>
1716 * tree-pass.h (TDF_GRAPH): Define.
1717 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
1718 * passes.c (finish_optimization_passes): Only call
1719 finish_graph_dump_file if TDF_GRAPH is set.
1720 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
1721 NULL. Set TDF_GRAPH bit.
1722 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
1724 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
1726 * arm.h (arm_stack_offsets): Add locals_base field.
1727 * arm.c (arm_get_frame_offsets): Compute it.
1728 (thumb_compute_initial_elimination offset): Make the Thumb frame
1729 pointer point to the base of the local variables.
1730 (thumb_expand_prologue): Update accordingly.
1731 (thumb_expand_epilogue): Likewise.
1733 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
1734 mode of clobbered scratch to DImode. Handle a case that's known to
1737 2005-08-19 David Edelsohn <edelsohn@gnu.org>
1739 * config/rs6000/rs6000.md (gt0<mode>): Delete.
1740 (gt0<mode>_compare): Delete.
1741 (neg_gt0<mode>): Delete.
1743 2005-08-19 Eric Christopher <echristo@apple.com>
1745 * optabs.h: Change CTI_ to COI_.
1748 2005-08-19 James E Wilson <wilson@specifix.com>
1750 * builtins.c (expand_builtin_return_addr): Set
1751 current_function_accesses_prior_frames when count != 0. Use
1752 frame_pointer_rtx when count == 0.
1753 * function.h (struct function): Add accesses_prior_frames field.
1754 (current_function_accesses_prior_frames): Define.
1755 * reload1.c (init_elim_table): Check
1756 current_function_accesses_prior_frames.
1757 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
1759 2005-08-19 Diego Novillo <dnovillo@redhat.com>
1761 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
1762 indicator. Return true if the flowgraph changed during
1765 2005-08-19 Diego Novillo <dnovillo@redhat.com>
1768 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
1769 conditional expression before testing its value.
1771 2005-08-19 Diego Novillo <dnovillo@redhat.com>
1773 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
1775 2005-08-19 Devang Patel <dpatel@apple.com>
1777 PR tree-optimization/23048
1778 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
1779 third parameter. Check whether latch is dominated by exit
1781 (if_convertible_loop_p): Supply exit block itself to
1782 if_convertible_bb_p.
1784 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
1787 * arm.md (arm_load_pic_register): Change argument to the mask of
1788 saved registers. Call thumb_find_work_register if we need a
1789 scratch register on Thumb.
1790 (arm_expand_prologue): Pass empty register set to
1791 arm_load_pic_register.
1792 (thumb_expand_prologue): Pass live_regs_mask directly to
1793 arm_load_pic_register.
1794 * arm-protos.h (arm_load_pic_register): Update prototype.
1796 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
1798 * sh.c (find_sole_member): New function.
1799 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
1800 if the record's alignment is larger than the size of its only member.
1802 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
1805 * arm.c (thumb_legitimize_reload_address): New function.
1806 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
1807 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
1809 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
1811 * config/crx/crx.c: Implement crx_decompose_address. Reject
1812 symbolic displacements since CRX register relative adressing
1813 mode can't handle unsigned 32-bit values as displacements.
1814 * config/crx/crx.h: Simplify definitions, remove redundant
1815 parenthesis and obsolete macros.
1816 * config/crx/crx.opt: Add new switch for debugging addresses.
1817 * config/crx/crx-protos.h: Add new declarations for above.
1819 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
1822 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
1825 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1827 * collect2.c (dup2): Delete.
1828 * configure.ac: Don't check for dup2.
1830 * config.in, configure: Regenerate.
1832 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
1834 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
1835 record with the type of its only member.
1837 2005-08-18 David Edelsohn <edelsohn@gnu.org>
1839 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
1840 define_insn_and_split.
1841 (plus_ltu<mode>_compare): Same.
1842 (gtu<mode>_compare): Same.
1843 (plus_gtu<mode>_compare): Same.
1845 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
1847 PR tree-optimization/22228
1848 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
1850 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
1851 are recorded in vect_vnames_to_rename for renaming.
1852 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
1853 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
1854 in vect_vnames_to_rename.
1855 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
1856 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
1858 2005-08-18 Jan Hubicka <jh@suse.cz>
1861 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
1862 info only for local statics, not for member variables.
1864 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1866 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
1868 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1870 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
1872 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
1875 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
1877 2005-08-17 James E Wilson <wilson@specifix.com>
1879 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1882 2005-08-17 David Edelsohn <edelsohn@gnu.org>
1884 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
1885 (leu<mode>_compare): Same.
1886 (plus_leu<mode>): Same.
1887 (neg_leu<mode>): Same.
1888 (and_neg_leu<mode): Same.
1889 (ltu<mode>_compare): Same.
1890 (plus_ltu<mode>): Same.
1892 (geu<mode>_compare): Same.
1893 (plus_geu<mode>): Same.
1894 (neg_geu<mode>): Same.
1895 (and_neg_geu<mode>): Same.
1896 (plus_gt<mode>): Same.
1897 (gtu<mode>_compare): Same.
1898 (plus_gtu<mode>): Same.
1900 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
1902 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
1903 Move call_table_data to end. Delete spurious .text.
1904 (callt_save_all_interrupt): Fix comment typo.
1906 2005-08-17 James E Wilson <wilson@specifix.com>
1907 Kevin Winchester <winchester@amirix.com>
1910 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
1912 2005-08-17 Uros Bizjak <uros@kss-loka.si>
1915 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
1916 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
1918 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
1920 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
1921 record with the type of its only member if the modes don't match.
1923 * varasm.c (decode_reg_name): Skip empty additional register names.
1925 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
1927 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
1928 lsm_tmp_name_length): New.
1929 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
1930 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
1932 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1933 Andreas Krebbel <krebbel1@de.ibm.com>
1935 * config.gcc: Added z9-109 switch.
1936 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
1937 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
1938 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
1939 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
1940 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
1941 for "z9_109" cpu attribute.
1942 * config/s390/s390.c (z9_109_cost): New processor cost structure.
1943 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
1944 (s390_handle_arch_option): Added z9-109 switch.
1945 (override_options): Set respective cost function for z9-109.
1946 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
1947 (legitimate_reload_constant_p): Accept extended immediates.
1948 (print_operand): Three new output modifiers added: k, m and o.
1949 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
1950 (s390_output_mi_thunk): Use extended immediate when possible.
1951 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
1952 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
1953 (CONSTRAINT_LEN): Added length of O constraint.
1954 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
1955 * config/s390/s390.md ("cpu"): New value z9_109 added.
1956 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
1957 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
1958 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
1959 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
1960 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
1961 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
1962 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
1963 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
1964 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
1965 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
1966 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
1967 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
1968 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
1969 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
1970 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
1972 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
1973 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
1974 insns for TARGET_EXTIMM.
1976 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
1978 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
1980 2005-08-17 Nick Clifton <nickc@redhat.com>
1982 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
1983 Call default_encode_section_info.
1985 2005-08-17 Steven Bosscher <stevenb@suse.de>
1987 PR tree-optimization/21574
1988 * tree-ssa-ccp.c (likely_value): If the right hand side is a
1989 constant, return CONSTANT.
1990 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
1991 (ccp_fold, visit_assignment): Likewise.
1992 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
1994 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
1996 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
1997 fold_buildN instead of buildN then fold_initializer or fold.
1998 (build_unary_op): Likewise.
1999 (build_binary_op): Likewise.
2000 * fold-const.c (fold_initializer): Remove.
2001 (fold_build1_initializer): New function.
2002 (fold_build2_initializer): New function.
2003 (fold_build3_initializer): New function.
2004 * tree.h (fold_initializer): Remove.
2005 (fold_build1_initializer): New function.
2006 (fold_build2_initializer): New function.
2007 (fold_build3_initializer): New function.
2009 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
2011 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
2012 (try_move_mult_to_index): Call fold_build2 instead of build2.
2013 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
2014 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
2015 fold_binary_to_constant.
2016 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
2018 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
2019 check if A == gcd (A, B). Remove TYPE argument.
2020 (analyze_offset) Use fold_build2 instead of fold (build.
2021 (create_data_ref): Likewise.
2022 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
2023 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
2026 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2028 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
2029 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
2031 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
2034 * gimplify.c (zero_sized_type): New function.
2035 (gimplify_modify_expr_rhs): If we have a zero sized type,
2036 replace the statement with an empty statement.
2038 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
2040 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
2043 2005-08-16 Ian Lance Taylor <ian@airs.com>
2045 * doc/tm.texi (Label Output): Correct typo.
2047 2005-08-16 Steven Bosscher <stevenb@suse.de>
2050 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
2051 force_operand will work later on using have_insn_for.
2053 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2055 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
2057 2005-08-16 Ian Lance Taylor <ian@airs.com>
2060 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
2061 vector type, don't try to construct it element by element. Add an
2062 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
2064 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2066 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
2068 2005-08-16 Geoffrey Keating <geoffk@apple.com>
2070 * doc/invoke.texi (Precompiled Headers): Document some more options
2071 which are known to be safe.
2073 2005-08-16 James E Wilson <wilson@specifix.com>
2075 PR tree-optimization/21105
2076 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2077 TREE_OVERFLOW check.
2079 2005-08-16 David Edelsohn <edelsohn@gnu.org>
2081 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
2082 (neg_ltu<mode>): Same.
2084 (neg_gtu<mode>): Same.
2086 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2088 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
2089 (fold_builtin_isdigit): Use fold_buildN.
2090 (build_function_call_expr): Likewise.
2091 * c-typeck.c (c_finish_loop): Likewise.
2093 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
2094 Richard Shann <rshann@superh.com>
2096 PR middle-end/20396:
2097 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
2099 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
2101 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
2103 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
2106 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
2107 arm_compure_save_reg0_reg12_mask to determine when the PIC register
2110 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2113 * fold-const.c (build_range_check): Disable optimization for function
2114 pointer expressions on targets that require function pointer
2117 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
2119 * simplify-rtx.c (simplify_const_relational_operation): When
2120 extracting arguments of a COMPARE, recompute the mode as well.
2122 2005-08-15 Ian Lance Taylor <ian@airs.com>
2124 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
2126 2005-08-15 DJ Delorie <dj@redhat.com>
2128 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
2130 (movsi_splittable): Allow, but split, moves to the stack.
2131 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
2134 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2136 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
2137 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
2138 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
2140 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
2141 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
2142 Delete HOST_PTR_PRINTF.
2144 * configure, config.in: Regenerate.
2146 2005-08-15 David Edelsohn <edelsohn@gnu.org>
2148 * config/rs6000/rs6000.md (QHSI): New mode macro.
2149 (wd): Extend mode attr for QImode and HImode
2150 (dbits): New mode attr.
2151 (zero_extend<mode>di2): Convert to mode macro.
2153 2005-08-15 Steve Ellcey <sje@cup.hp.com>
2156 * doc/invoke.texi (-mgnu-ld): Update description.
2159 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
2162 * Makefile.in (tree-chrec.o): Depends on real.h.
2163 * tree-chrec.c: Include real.h.
2164 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
2165 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
2166 * tree-scalar-evolution.c (add_to_evolution_1,
2167 interpret_rhs_modify_expr): Ditto.
2169 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
2172 * tree-data-ref.c (estimate_niter_from_size_of_data): When
2173 step is negative compute the estimation from init downwards to zero.
2175 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
2177 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
2179 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2181 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
2183 (legitimate_reload_constant_p): Fix handling of lliXX operands.
2184 Accept double-word constants that can be split.
2185 * config/s390/s390.md ("movti"): Use 'P' constraint.
2186 ("*movdi_31", "*movdf_31"): Likewise.
2188 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
2190 Fix PR tree-optimization/22615
2192 * tree-ssa-structalias.c (solution_set_add): Handle
2193 first_vi_for_offset returning NULL.
2194 (do_da_constraint): Ditto.
2195 (do_sd_constraint): Ditto.
2196 (do_ds_constraint): Ditto
2197 (find_func_aliases): Ditto.
2198 (build_constraint_graph): RHS is allowed be ANYTHING.
2199 (first_vi_for_offset): Return NULL if we couldn't find anything at
2202 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2204 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
2205 over memory as first operand.
2207 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
2210 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
2211 available for setting it.
2213 2005-08-14 Ira Rosen <irar@il.ibm.com>
2215 PR tree-optimization/23320
2216 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
2217 data-refs' types instead of base object nullness. Add check for
2218 pointer type data-refs before first location comparison. Remove
2221 2005-08-14 Andreas Schwab <schwab@suse.de>
2223 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
2225 2005-08-13 James E Wilson <wilson@specifix.com>
2227 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
2228 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
2229 -fstack-protector-all, --param ssp-buffer-size): Document.
2230 (-Wvariadic-macros): Alphabetize.
2231 (-fsched-stalled-insns-dep): Add missing 'f'.
2233 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
2236 2005-08-13 David Edelsohn <edelsohn@gnu.org>
2238 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
2239 or indirect address operand.
2240 (EXTRA_ADDRESS_CONSTRAINT): New.
2241 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
2243 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
2245 PR tree-optimization/22236
2246 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
2247 successors and predecessors.
2248 * tree-chrec.c (chrec_convert): Before converting, check that
2249 sequences don't wrap.
2250 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
2251 (analyze_array): Extern.
2252 (find_data_references_in_loop): Remove call to
2253 compute_estimated_nb_iterations.
2254 * tree-data-ref.h (analyze_array): Declared.
2255 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
2256 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
2257 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
2258 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
2260 * tree-ssa-loop-ivcanon.c: Fix documentation.
2261 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
2262 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
2263 (infer_loop_bounds_from_undefined): New.
2264 (estimate_numbers_of_iterations_loop): Use
2265 infer_loop_bounds_from_undefined.
2266 (used_in_pointer_arithmetic_p): New.
2267 (scev_probably_wraps_p): Pass an extra parameter. Call
2268 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
2269 (convert_step): Fix documentation.
2270 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
2271 Use initial_condition_in_loop_num and evolution_part_in_loop_num
2272 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
2273 scev_probably_wraps_p.
2275 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2277 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
2278 (s390_register_info): Ignore clobbered_regs information for fixed
2279 registers, and only fixed registers.
2280 (s390_init_frame_layout): Remove redundant call.
2282 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
2284 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
2285 description of -Wold-style-casts.
2287 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2288 Jakub Jelinek <jakub@redhat.com>
2290 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2291 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
2292 * config/s390/s390.c (print_operand): New output modifier 'G' added.
2293 (get_thread_pointer): Renamed to s390_get_thread_pointer.
2294 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
2295 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
2296 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
2297 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2298 ("stack_protect_set", "stack_protect_test"): New expanders.
2299 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
2300 "stack_protect_testdi"): New insn definitions.
2302 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2304 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
2306 2005-08-12 Paul Brook <paul@codesourcery.com>
2308 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
2310 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2312 * config/s390/predicates.md (setmem_operand): New predicate.
2313 (shift_count_operand): Accept ANDs with special constants as
2315 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
2316 with special constants.
2317 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
2318 shift_count_operand with setmem_operand.
2320 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2322 * config/s390/s390.c (s390_extract_part, s390_single_part):
2324 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
2325 (s390_output_mi_thunk): Don't use lg on 31 bit.
2326 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
2327 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
2329 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2331 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
2332 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
2333 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
2334 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
2335 with one of the new macros.
2337 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2339 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
2340 Don't set save_return_addr_p.
2341 (s390_register_info): Make clobbered_regs not depending on
2344 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
2346 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
2347 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
2349 2005-08-11 James E. Wilson <wilson@specifix.com>
2351 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
2353 2005-08-11 Jakub Jelinek <jakub@redhat.com>
2355 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
2356 locations gathered by var-tracking in single entry loc_list
2357 over loc_descriptor_from_tree.
2359 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
2360 pass it down to loc_descriptor.
2361 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
2362 (containing_function_has_frame_base): Move earlier in the file.
2363 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
2364 instead of always assuming fbreg can't be used.
2366 2005-08-11 David Edelsohn <edelsohn@gnu.org>
2368 * config/rs6000/altivec.md: Change constraint "m" to "Z".
2369 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2370 Accept address wrapped in AND for Altivec.
2371 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2372 Strip AND wrapping offset address for Altivec.
2374 2005-08-11 Richard Henderson <rth@redhat.com>
2377 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
2378 before using TYPE_IS_SIZETYPE.
2380 2005-08-11 Richard Henderson <rth@redhat.com>
2383 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
2384 insn types not present on ev4.
2385 (alphaev5_insn_pipe): Similarly.
2387 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
2390 * arm.c (arm_override_options): If the user has selected callee-super-
2391 interworking, then enable normal interworking.
2393 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2395 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
2398 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
2400 * doc/rtl.texi: Fix two typos.
2402 2005-08-11 Richard Guenther <rguenther@suse.de>
2405 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
2406 cases where we call to/from functions returning void.
2408 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
2411 * tree.c (build_pointer_type_for_mode): Robustify.
2413 2005-08-10 James E Wilson <wilson@specifix.com>
2415 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
2416 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
2418 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
2421 2005-08-10 Eric Christopher <echristo@apple.com>
2423 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
2424 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
2427 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
2430 * config/darwin.c (machopic_indirect_data_reference): Use a new register
2431 for the high part when generating dynamic-no-pic code.
2433 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
2435 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
2436 (x86_64-*-linux*): Likewise.
2438 * config/i386/crtfastmath.c: New file.
2439 * config/i386/t-crtfm: Likewise.
2441 * config/i386/linux.h (ENDFILE_SPEC): New.
2442 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
2444 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
2447 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
2449 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
2450 (vec_shl, vec_shr): Document new operations.
2451 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
2453 2005-08-10 David Edelsohn <edelsohn@gnu.org>
2455 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
2456 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
2457 change predicate to indexed_or_indirect_address.
2459 2005-08-10 Richard Sandiford <richard@codesourcery.com>
2461 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
2462 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
2463 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
2464 and __aeabi_uwrite8.
2465 * config/arm/unaligned-funcs.c: New file.
2466 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
2468 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
2470 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
2472 * cfglayout.c (pass_insn_locators_initialize): Add dump.
2473 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
2475 * except.c (pass_convert_to_eh_region_ranges): Add dump.
2476 * final.c (pass_shorten_branches): Add dump.
2477 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
2478 (pass_life): Rename dump.
2479 (rest_of_handle_flow2): Remove initial verify_flow_info.
2480 * function.c (pass_instantiate_virtual_regs): Add dump.
2481 * integrate.c (pass_initial_value_sets): Add dump.
2482 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
2483 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
2484 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
2485 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
2486 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
2487 gate_rtl_unrool_and_peel_loops): New.
2488 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
2489 rtl_doloop): Do not look at flags.
2490 * mode-switching.c (pass_mode_switching): Add dump.
2491 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
2492 pass_split_before_regstack): Add dump.
2493 * regmove.c (pass_stack_adjustments): Add dump.
2494 * tree-optimize.c (pass_fixup_cfg): Add dump.
2496 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2499 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
2500 deciding which instruction sequence to use.
2502 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
2504 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
2505 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
2507 2005-08-09 Richard Guenther <rguenther@suse.de>
2509 * c-common.c (builtin_function_2): Remove.
2510 (def_builtin_1): New function.
2511 (c_common_nodes_and_builtins): Use def_builtin_1 to
2512 build builtin functions.
2514 2005-08-09 Jie Zhang <jie.zhang@analog.com>
2516 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
2517 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2518 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
2521 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
2523 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
2524 fold_binary instead of fold_build2 since we don't care about the
2526 (loop_niter_by_eval): Likewise.
2527 (compare_trees): Likewise.
2528 (proved_non_wrapping_p): Likewise.
2530 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
2534 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
2535 if the if is really empty.
2537 2005-08-09 Steven Bosscher <stevenb@suse.de>
2539 PR tree-optimization/23234
2540 * tree-ssa-math-opts.c (place_reciprocal): New enum.
2541 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
2542 argument of the new enum.
2543 (execute_cse_reciprocals): Add reciprocals for function arguments
2544 on the unique successor edge of the entry block. Update other calls
2545 to execute_cse_reciprocals_1.
2547 2005-08-08 Richard Henderson <rth@redhat.com>
2550 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
2552 2005-08-08 Bob Wilson <bob.wilson@acm.org>
2554 * expr.c (write_complex_part): Return after handling MEM.
2556 2005-08-08 Josh Conner <jconner@apple.com>
2558 PR rtl-optimization/23241
2559 * combine.c (simplify_comparison): Fix error in determining
2560 whether to lift a subreg from comparison.
2562 2005-08-08 David Edelsohn <edelsohn@gnu.org>
2565 * config/rs6000/altivec.md (vec_init<mode>): New.
2566 (vec_set<mode>): New.
2567 (vec_extract<mode>): New.
2568 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
2569 (rs6000_expand_vector_set): New.
2570 (rs6000_expand_vector_extract): New.
2571 (rs6000_legitimate_offset_address_p): Offset addresses are valid
2572 for Altivec modes before reload.
2573 (altivec_expand_vec_init_builtin): New.
2574 (get_element_number): New.
2575 (altivec_expand_vec_set_builtin): New.
2576 (altivec_expand_vec_ext_builtin): New.
2577 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
2579 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
2581 * config/rs6000/rs6000.h (rs6000_builtins): Add
2582 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
2583 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
2584 * config/rs6000/rs6000-protos.h: Declare new functions.
2586 2005-08-08 Jan Hubicka <jh@suse.cz>
2588 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
2589 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
2590 * i386.md (movdi*): Use pic_32bit_operand.
2591 * predicates.md (pic_32bit_operand): New.
2593 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
2596 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
2598 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
2600 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
2601 (test_for_singularity): Use fold_build2.
2603 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2605 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
2607 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2609 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
2610 (COMMON_ASM_OP) Define.
2611 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
2612 (ix86_encode_section_info): Likewise.
2613 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
2614 SUBTARGET_ENCODE_SECTION_INFO.
2616 2005-08-06 Richard Henderson <rth@redhat.com>
2619 * tree-nested.c (convert_local_reference): Save and restore val_only
2620 around component_ref and friends. Clear walk_subtrees by default.
2622 2005-08-06 Peter O'Gorman <peter@pogma.com>
2625 * gcc.c (process_command): Check the argument to -b has a dash.
2626 * doc/invoke.texi: Update -b and -V docs.
2628 2005-08-06 James E Wilson <wilson@specifix.com>
2630 * config/mips/cross64.h, config/mips/t-cross64: Delete.
2632 2005-08-06 Michael Matz <matz@suse.de>
2634 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
2635 member only if only one insn is associated with the value.
2637 2005-08-06 Nick Clifton <nickc@redhat.com>
2639 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
2641 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2642 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
2643 Check symbol flags instead of symbol name mangling.
2644 (xstormy16_asm_output_aligned_common): Likewise. Also
2645 simplify code since the bss100_section cass is the only case
2646 where the below100 code will be triggered.
2647 (xstormy16_encode_section_info): Encode below100 attribute
2648 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
2650 (xstormy16_strip_name_encoding): Delete - this function is no
2652 (TARGET_STRIP_NAME_ENCODING): Undefine.
2653 * config/stormy16/stormy16-protos.h: Delete prototype for
2654 xstormy16_strip_name_encoding.
2656 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
2658 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
2659 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
2660 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
2661 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
2662 config/alpha/predicates.md, config/arc/arc.h,
2663 config/arm/arm.h, config/arm/ieee754-df.S,
2664 config/arm/ieee754-sf.S, config/bfin/bfin.c,
2665 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
2666 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
2667 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
2668 config/m68hc11/m68hc11.h, config/mips/mips.c,
2669 config/mips/mips.h, config/mips/openbsd.h,
2670 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
2671 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
2672 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2673 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
2674 config/sparc/linux.h, config/sparc/linux64.h,
2675 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
2676 doc/extend.texi, doc/gcov.texi, doc/install.texi,
2677 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
2678 typos. Follow spelling conventions.
2680 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
2683 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
2684 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
2685 specially. Check for side effects only for COND_EXPR.
2686 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
2687 return with TREE_NO_WARNING.
2689 2005-08-06 Richard Sandiford <richard@codesourcery.com>
2691 PR rtl-optimization/23233
2692 * loop.c (combine_movables): Require the modes to be the same.
2693 (move_movables): Remove handling of cases where the replacement
2694 had a different mode to the original.
2696 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
2698 PR tree-optimization/23128
2699 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
2700 subtraction wrap, and set TREE_OVERFLOW if they do.
2702 2005-08-05 Richard Henderson <rth@redhat.com>
2705 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
2706 FORCED_LABEL labels.
2708 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
2711 * reload.c (find_reloads_subreg_address): Pass down TYPE
2712 unchanged. Change all callers except find_reloads_toplev.
2714 2005-08-05 Michael Matz <matz@suse.de>
2716 * genattrtab.c (current_alternative_string): Remove.
2717 (SIMPLIFY_ALTERNATIVE): Ditto.
2718 (attr_alt_bit_p): Ditto.
2719 (alternative_name): Make const char *.
2720 (evaluate_eq_attr): Remove use of above things.
2721 (simplify_test_exp): Ditto.
2722 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
2723 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
2725 2005-08-04 James E Wilson <wilson@specifix.com>
2727 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
2728 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
2729 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
2730 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
2731 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
2733 2005-08-04 Richard Henderson <rth@redhat.com>
2736 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
2737 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
2738 * tree-sra.c (decide_block_copy): Use it. Disable element copy
2739 if we'd have to instantiate too many members.
2741 2005-08-04 Richard Henderson <rth@redhat.com>
2744 * tree-outof-ssa.c (coalesce_asm_operands): New.
2745 (coalesce_ssa_name): Use it. Split out ...
2746 (coalesce_phi_operands, coalesce_result_decls): ... these.
2748 2005-08-04 Paul Brook <paul@codesourcery.com>
2750 * read-rtl.c (read_quoted_string): Break if EOF.
2752 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
2754 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
2755 (fold_build2): Likewise.
2756 (fold_build3): Likewise.
2757 (fold_build1_stat): New function prototype.
2758 (fold_build2_stat): Likewise.
2759 (fold_build3_stat): Likewise.
2760 * fold-const.c (fold_build1): Rename to ..
2761 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
2762 through to build1_stat.
2763 (fold_build2): Rename to ..
2764 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
2765 through to build2_stat.
2766 (fold_build3): Rename to ..
2767 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
2768 through to build3_stat.
2770 2005-08-04 David Edelsohn <edelsohn@gnu.org>
2771 Ian Lance Taylor <ian@airs.com>
2773 * function.c (assign_stack_local_1): Do not correct stack slot
2774 address if allocation size is smaller than mode size.
2776 2005-08-04 Diego Novillo <dnovillo@redhat.com>
2779 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
2780 (tree_merge_blocks): Propagate anything allowed by
2782 Clarify documentation.
2783 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
2784 SSA form, schedule an update if necessary.
2786 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2788 * doc/install.texi (Binaries): Remove broken link to
2789 Sinix/Reliant Unix binaries.
2791 2005-08-03 Richard Henderson <rth@redhat.com>
2794 * function.c (stack_protect_epilogue): Export.
2795 * tree.h (stack_protect_epilogue): Declare.
2796 * calls.c (expand_call): Call it.
2798 2005-08-03 Eric Christopher <echristo@apple.com>
2800 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
2801 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
2804 2005-08-04 Jan Hubicka <jh@suse.cz>
2806 * profile.c (branch_prob): Split edges with goto locus on them
2807 to get proper line counts.
2808 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
2810 2005-08-03 Paul Brook <paul@codesourcery.com>
2812 * function.c (assign_parms): Round current_function_args_size
2813 to PARM_BOUNDARY, not STACK_BOUNDARY.
2815 2005-08-03 Geoffrey Keating <geoffk@apple.com>
2817 * config/i386/i386.c (x86_elf_aligned_common)
2818 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
2820 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
2822 PR tree-optimization/23157
2823 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
2824 before emitting them.
2826 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2828 PR tree-optimization/19899
2829 * Makefile.in (tree-scalar-evolution.o): Add real.h.
2830 * tree-scalar-evolution.c: Include real.h.
2831 (add_to_evolution): Build constant -1 of correct type.
2833 2005-08-03 Jan Hubicka <jh@suse.cz>
2835 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
2836 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
2837 profile updating for complette unrolling.
2838 * loop-unroll.c (peel_loop_completely): Use it.
2839 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2840 (tree_unroll_loops_completely): Disable code growing unrolling of cold
2843 2005-08-03 Paul Brook <paul@codesourcery.com>
2845 * combine.c (can_change_dest_mode): New function.
2846 (try_combine, simplify_set): Use it.
2848 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
2850 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
2853 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
2855 * doc/install.texi (Specific): Adjust link to openavr.org.
2856 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
2857 (Binaries): Adjust HP-UX Porting Center link.
2858 (Binaries): Adjust Free Software Foundation ordering link.
2860 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
2862 * convert.c (convert_to_integer): Use fold_build1 instead of
2863 build1 when converting an integer to an integer.
2865 2005-08-02 Richard Henderson <rth@redhat.com>
2867 * combine.c (combine_instructions): Don't use reg_equal/equiv
2868 results if the mode doesn't match.
2870 2005-08-02 Mark Mitchell <mark@codesourcery.com>
2872 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
2873 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
2875 2005-08-02 Richard Henderson <rth@redhat.com>
2878 * explow.c (memory_address): Remove special-case for
2879 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
2881 2005-08-02 Diego Novillo <dnovillo@redhat.com>
2884 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
2885 number of calls to cleanup_tree_cfg_1.
2887 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
2889 * doc/invoke.texi: document file extensions .F90 and .F95
2891 2005-08-02 Richard Guenther <rguenther@suse.de>
2893 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
2894 positive if its first argument is positive.
2896 2005-08-02 Richard Guenther <rguenther@suse.de>
2898 PR tree-optimization/23177
2899 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
2902 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
2904 PR tree-optimization/23129
2905 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
2906 varying for divisions with anti-ranges.
2908 2005-08-02 Jan Hubicka <jh@suse.cz>
2910 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
2911 * tree-ssa-threadupdate.c (thread_block): Add it here.
2913 2005-08-01 James E Wilson <wilson@specifix.com>
2915 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
2916 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
2917 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
2919 * config/mips/predicates.md (const_call_insn_operand): Add check for
2920 SYMBOL_REF_LONG_CALL_P.
2921 * doc/extend.texi (long_call): Document the new attribute.
2923 2005-08-01 Ian Lance Taylor <ian@airs.com>
2924 Richard Henderson <rth@redhat.com>
2926 * Makefile.in (RTL_BASE_H): Add real.h.
2927 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
2929 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
2931 * rtl.c (rtl_check_failed_code_mode): New.
2932 * rtl.h (struct rtx_def): Add u.rv.
2933 (XCMWINT, XCNMPRV): New.
2934 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
2935 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
2937 2005-08-01 Richard Henderson <rth@redhat.com>
2939 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
2940 with auto-inc codes.
2942 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
2944 2005-08-01 Jan Hubicka <jh@suse.cz>
2946 * i386-protos.h (asm_preferred_eh_data_format): Declare.
2947 * i386.c: Include dwarf2.h
2948 (asm_preferred_eh_data_format): New.
2949 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
2951 2005-08-01 Ian Lance Taylor <ian@airs.com>
2953 * config/host-linux.c (linux_gt_pch_get_address): Add new name
2954 randomize_va_space for virtual address randomization control.
2956 2005-08-01 Steven Bosscher <stevenb@suse.de>
2958 * common.opt (flag_ipa_cp): Put in right place to maintain
2961 2005-08-01 Jan Hubicka <jh@suse.cz>
2963 * profile.c (compute_value_histograms): Fix thinko.
2964 * value-prof.c: Include toplev.h
2965 (check_counter): New function.
2966 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
2967 tree_mod_subtract_transform): Add sanity check.
2969 2005-08-01 Richard Guenther <rguenther@suse.de>
2971 PR tree-optimization/23133
2972 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
2973 current functions parameter decls to find defs to cse
2976 2005-08-01 Richard Guenther <rguenther@suse.de>
2978 PR tree-optimization/23109
2979 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
2980 If trapping math is in effect, use post-dominator information
2981 to check if we'd in any case reach a trapping point before
2982 doing the reciprocal insertion.
2983 (execute_cse_reciprocals): Compute post-dominators, if necessary.
2984 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
2985 expressions are invariant only if trapping math is not in effect.
2987 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
2989 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
2990 cgraph_function_versioning): New declarations.
2991 * cgraphunit.c: Add include to ipa-prop.h.
2992 (update_call_expr, cgraph_copy_node_for_versioning,
2993 cgraph_function_versioning): New functions.
2994 * integrate.c (copy_decl_for_inlining): Remove.
2995 * ipa-prop.h (ipa_replace_map): New struct.
2996 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
2997 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
2998 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
2999 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
3000 ipcp_iterate_stage, ipcp_method_scale_print,
3001 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
3002 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
3003 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
3004 ipcp_update_bb_counts, ipcp_update_profiling,
3005 ipcp_update_edges_counts): New functions.
3006 (ipcp_method_cval_init): Remove restriction regarding local methods.
3007 (ipcp_init_stage): Add ipcp_method_compute_scale.
3008 (ipcp_insert_stage): Add versioning.
3009 (ipcp_structures_print): Add ipcp_method_scale_print.
3010 (ipcp_driver): Dump profiling info.
3011 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
3012 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
3013 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
3014 (struct inline_data): Add versioning_p, ipa_info, new fields.
3015 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
3016 declare_return_variable): Replace calls to copy_decl_for_inlining with
3018 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
3020 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
3021 Add argument VERSIONING.
3022 (copy_arguments_for_versioning, copy_static_chain,
3023 function_versionable_p, tree_versionable_function_p,
3024 tree_function_versioning, replace_ref_tree): New functions.
3025 * tree-inline.h: Include varray.h.
3026 (tree_versionable_function_p, tree_function_versioning,
3027 tree copy_decl_for_dup): New declarations.
3029 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
3031 * ipa-cp.c: New file. Contains IPCP specific functionality.
3032 * ipa-prop.h: New file. Contains structures/definitions that can be
3033 used by several interprocedural data flow optimizations (and also IPCP).
3034 * ipa-prop.c: New file.
3035 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
3036 * common.opt: Add ipa-cp flag.
3037 * timevar.def: Add IPCP optimization.
3038 * tree-optimize.c (init_tree_optimization_passes): Schedule
3040 * tree-pass.h (pass_ipa_cp): Declare.
3042 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
3044 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
3045 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
3046 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
3047 config/i386/i386.c, config/mips/mips.h,
3048 config/rs6000/rs6000.h, config/sh/sh.c,
3049 config/stormy16/stormy16.c: Fix comment typos.
3051 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
3054 * c-typeck.c (build_binary_op): Use common_type wrapper on
3056 (common_type): Update comment.
3058 2005-07-31 Steven Bosscher <stevenb@suse.de>
3061 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
3062 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
3063 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
3065 2005-07-31 Jan Hubicka <jh@suse.cz>
3067 * pretty-print.h (pp_widest_integer): New macro.
3068 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
3071 2005-07-31 Jan Hubicka <jh@suse.cz>
3073 * output.h (enum section_category): Export from varasm.c
3074 (categorize_decl_for_section): Likewise.
3075 * varasm.c (enum section_category): Kill.
3076 (categorize_decl_for_section): Make global.
3077 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
3079 * i386.c (ix86_section_threshold): New static variable.
3080 (ix86_in_large_data_p, ix86_encode_section_info,
3081 x86_64_elf_unique_section,
3082 x86_64_elf_select_section): New functions.
3083 (TARGET_ENCODE_SECTION_INFO): Define
3084 (override_options): Enable medium model for PIC.
3085 (ix86_expand_prologue): Expand gen_set_got_rex64.
3086 (legitimate_constant_p): Handle new UNSPECs.
3087 (legitimate_pic_address_disp_p): Likewise.
3088 (legitimize_pic_address): Lower MEDIUM model addressing.
3089 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
3090 (enum cmodel): Add MEDIUM_PIC.
3091 (SYMBOL_REF_FAR_ADDR_P): New macro.
3092 (SYMBOL_FLAG_FAR_ADDR): New flag.
3093 * i386.md (movdi): Support medium model.
3094 (set_got_rex64): New pattern.
3095 * i386.opt (mlarge-data-threshold): New flag.
3096 * predicates.md (zext_operand/sext_operand): Deal with medium model.
3097 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
3098 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
3099 TARGET_ASM_UNIQUE_SECTION): New.
3101 * invoke.texi (-mlarge_data_threshold): Document
3103 2005-07-31 Jan Hubicka <jh@suse.cz>
3105 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
3106 (coalesce_vars): Likewise.
3107 * tree-ssa-live.c (coalesce_cost): New.
3108 (build_tree_conflict_graph): Use coalesce_cost.
3109 * tree-ssa-live.h (coalesce_cost): Declare.
3111 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
3113 * arm.md (all peepholes for post-increment operations): Delete.
3114 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
3115 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
3116 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
3117 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
3118 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
3120 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
3122 * fold-const.c (tree_expr_nonnegative_p): Always return true for
3125 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
3128 * doc/invoke.texi: Document -rdynamic.
3130 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
3133 * c-parser.c (c_parser_parms_list_declarator): Call
3134 mark_forward_parm_decls.
3135 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
3136 decls with visibility structure.
3138 2005-07-30 Paul Brook <paul@codesourcery.com>
3140 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
3142 2005-07-30 Paul Brook <paul@codesourcery.com>
3144 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3146 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
3148 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
3150 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3153 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
3154 nested function declarators.
3155 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
3156 (grokparms): Call warn_if_shadowing for parameters used within the
3158 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
3159 not used within the parameter list.
3160 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
3162 2005-07-30 Jan Hubicka <jh@suse.cz>
3164 * expr.c (expand_expr_real_1): Do not load mem targets into register.
3165 * i386.c (ix86_fixup_binary_operands): Likewise.
3166 (ix86_expand_unary_operator): Likewise.
3167 (ix86_expand_fp_absneg_operator): Likewise.
3168 * optabs.c (expand_vec_cond_expr): Validate dest.
3170 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3173 * real.c (real_from_string): Also set last bit if there is a
3174 nonzero hex digit beyond GCC's internal precision after ".".
3176 2005-07-29 David Edelsohn <edelsohn@gnu.org>
3178 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
3179 define_constants. Change duplicate values to unassigned numbers.
3180 Change UNSPEC_SUBS to UNSPEC_VSUBS.
3181 (*altivec_vspltsf): New.
3182 (altivec_vperm_v4sf): Delete.
3183 (altivec_vperm_<mode>): Use mode macro V.
3184 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
3185 (altivec_predicate_v4sf): Delete.
3186 (altivec_predicate_<mode>): Use mode macro V.
3187 (*altivec_lvesfx): New.
3188 (*altivec_stvesfx): New.
3189 (vec_realign_load_v4sf): Delete.
3190 (vec_realign_load_<mode>): Use mode macro V.
3191 * config/rs6000/rs6000.c (generate_set_vrsave): Use
3194 2005-07-29 Mark Mitchell <mark@codesourcery.com>
3197 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
3199 * configure: Regenerated.
3201 2005-07-29 Paul Brook <paul@codesourcery.com>
3203 * doc/install.texi: Add link to GFortran binaries wiki page.
3205 2005-07-29 David Ung <davidu@mips.com>
3207 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
3208 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
3209 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
3210 * config/mips/mips.md (cpu): Add 5kf name.
3211 (includes): Includes 5k.md.
3212 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
3213 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
3216 2005-07-29 Diego Novillo <dnovillo@redhat.com>
3219 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
3220 (cleanup_tree_cfg): ... here.
3221 Call cleanup_tree_cfg_1 until there are no more cleanups to
3224 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
3226 * tree-vrp.c (compare_range_with_value): Return true or false
3227 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
3228 EQ_EXPR respectively.
3230 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
3232 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
3235 2005-07-29 Diego Novillo <dnovillo@redhat.com>
3237 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
3238 (tree_ssa_dominator_optimize): Increment it.
3239 (dump_dominator_optimization_stats): Print it.
3241 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
3242 Steven Bosscher <stevenb@suse.de>
3244 PR rtl-optimization/23117
3245 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
3246 when head == tail. Tidy comment.
3248 2005-07-28 Richard Henderson <rth@redhat.com>
3250 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
3251 * cselib.c (rtx_equal_for_cselib_p): Likewise.
3252 * jump.c (rtx_renumbered_equal_p): Likewise.
3253 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
3254 CONST_INT and CONST_DOUBLE.
3255 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
3256 * reload.c (operands_match_p): Special case CONST_INT and
3257 CONST_DOUBLE; check mode earlier.
3259 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3262 * c-typeck.c (convert_for_assignment): Do not check
3263 DECL_IN_SYSTEM_HEADER on NULL fundecl.
3265 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3268 * c-typeck.c (composite_type): Prefer constant size arrays to
3271 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3274 * real.c (real_from_string): Set last bit if there is a nonzero
3275 hex digit beyond GCC's internal precision.
3277 2005-07-28 Richard Henderson <rth@redhat.com>
3280 * cfgcleanup.c (try_forward_edges): Watch out for end of
3283 2005-07-28 James E Wilson <wilson@specifixinc.com>
3286 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
3288 2005-07-28 Jan Hubicka <jh@suse.cz>
3290 * Makefile.in (rtl-profile.o): Kill all traces of it.
3291 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
3292 * coverage.h (rtl_coverage_counter_ref): Kill.
3293 * opts.c (flag_speculative_prefetching_set): Kill.
3294 (flag_loop_optimize_set): New.
3295 (common_handle_option): Disable loop optimizer when profiling;
3296 do not handle speculative prefetching.
3297 * passes.c (init_optimization_passes): Replace pass_profiling combo
3298 by branch_prob pass.
3299 * profile.c (compute_value_histograms): Update for simplified value
3301 (rtl_register_profile_hooks): Kill.
3302 (pass_profiling): Kill.
3303 (rest_of_handle_branch_prob): Do not profile.
3304 * toplev.c (process_options): Remove speculative prefetching.
3305 * toplev.h (flag_tree_based_profiling): Kill.
3306 * tree-profile.c (prepare_instrumented_value,
3307 tree_gen_interval_profiler, tree_gen_pow2_profiler,
3308 tree_gen_one_value_profiler, do_tree_profiling): Update for
3309 simplified datastructures.
3310 * value-prof.c: Add comment that speculative prefetching was dropped;
3311 update rest of file for simplified datastructures.
3312 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
3313 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
3314 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
3315 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
3316 rtl_mod_subtract, gen_speculative_prefetch,
3317 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
3318 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
3319 (gate_handle_value_profile_transformations,
3320 rest_of_handle_value_profile_transformations,
3321 pass_value_profile_transformations): Kill.
3322 * value-prof.h (histogram_value_t): Remove IL based unions.
3323 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
3324 rtl_profile_hooks): Remove hooks.
3326 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
3328 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
3329 (cgraph_clone_node): Likewise.
3330 * cgraph.h (cgraph_clone_edge): Update prototype.
3331 (cgraph_clone_node): Likewise.
3332 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
3334 (lookup_recursive_calls): Consider profile.
3335 (cgraph_decide_recursive_inlining): Fix updating; use new
3336 probability argument; use profile.
3337 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
3338 * tree-inline.c (copy_bb): Update clal of clone_edge.
3339 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
3341 * invoke.texi (min-inline-recursive-probability): Document.
3343 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3345 * doc/install.texi (Configuration): Update Valgrind homepage.
3347 2005-07-28 Richard Henderson <rth@redhat.com>
3350 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
3351 labels we want to delete.
3352 (cfg_layout_merge_blocks): Likewise.
3354 2005-07-28 Richard Henderson <rth@redhat.com>
3357 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
3358 when expanding to nothing.
3360 2005-07-28 Josh Conner <jconner@apple.com>
3362 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
3363 (cgraph_decide_inlining_of_small_functions): Likewise.
3365 2005-07-28 Josh Conner <jconner@apple.com>
3367 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
3368 direction of badness if negative.
3369 (cgraph_default_inline_p): Add reason to parameters, and assign it
3371 (cgraph_decide_inlining_of_small_functions): New parameter in call
3372 to cgraph_default_inline_p.
3373 (cgraph_decide_inlining_incrementally): Likewise.
3374 * cgraphunit.c (decide_is_function_needed): Likewise.
3375 * cgraph.h (cgraph_default_inline_p): Likewise.
3377 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3379 * builtins.c: Fix comment typo(s).
3380 * genautomata.c: Likewise.
3381 * gimplify.c: Likewise.
3382 * tree-dfa.c: Likewise.
3383 * tree-flow-inline.h: Likewise.
3384 * tree-into-ssa.c: Likewise.
3385 * tree-ssa-alias.c: Likewise.
3386 * tree-ssa-ccp.c: Likewise.
3387 * tree-ssa-copy.c: Likewise.
3388 * tree-ssa-dce.c: Likewise.
3389 * tree-ssa-dom.c: Likewise.
3390 * tree-ssa-operands.c: Likewise.
3391 * tree-tailcall.c: Likewise.
3392 * tree-vectorizer.c: Likewise.
3393 * tree-vrp.c: Likewise.
3396 2005-07-28 Jeff Law <law@redhat.com>
3398 * tree-vrp.c (test_for_singularity): Extracted from ...
3399 (simplify_cond_using_ranges): Attempt to simplify a relational
3400 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
3402 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
3404 PR tree-optimization/22506
3405 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
3406 phis whose argument is constant.
3408 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
3410 PR rtl-optimization/18992
3411 Back out this patch:
3412 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3413 PR optimization/12142
3414 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
3415 uses of the register in the SET_SRC. Remove unnecessary argument.
3417 Replace it with this:
3418 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
3419 if flag_non_call_exceptions is set and the insn may trap, pass
3420 pc_rtx as dest for recursion.
3421 In SET_SRC part of SET case, if dest is already set, pass it down
3424 2005-07-28 Jan Hubicka <jh@suse.cz>
3426 * cfg.c (update_bb_profile_for_threading): Use RDIV.
3427 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
3428 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
3430 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
3431 profile when available.
3433 2005-07-28 Jan Beulich <jbeulich@novell.com>
3435 * config/ia64/ia64.c (ia64_load_pair_ok): New.
3436 (ia64_print_operand): Describe and handle 'X'.
3437 (ia64_register_move_cost): Also handle FP_REGS.
3438 (ia64_preferred_reload_class): Likewise.
3439 (ia64_secondary_reload_class): Likewise.
3440 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
3441 it. Also check for ITANIUM_CLASS_FLDP.
3442 * config/ia64/ia64.h (FP_REGNO_P): New.
3443 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
3444 (reg_class): Add FP_REGS.
3445 (REG_CLASS_NAMES): Adjust for it.
3446 (REG_CLASS_CONTENTS): Likewise.
3447 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
3448 (REG_CLASS_FROM_LETTER): Handle 'x'.
3449 (CLASS_MAX_NREGS): Handle FP_REGS.
3450 (MEMORY_MOVE_COST): Likewise.
3451 * config/ia64/ia64.md (itanium_class): Add fldp.
3452 (type): Handle fldp.
3453 (movti_internal): More allowable operand combinations. Use ldfp8 when
3454 splitting unnecessary. Remove predicable attribute. Adjust
3455 itanium_class attribute.
3456 (smuldi3_highpart): Remove outdated comment.
3457 (mulditi3, umulditi3, rotlti3): New expanders.
3458 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
3459 (absti2): Disabled new insn for future reference.
3460 Respective new splitters.
3461 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
3462 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
3463 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
3465 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
3467 PR rtl-optimization/23047
3468 * simplify-rtx.c (simplify_const_relational_operation): Respect
3469 flag_wrapv for comparisons with ABS.
3471 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
3473 PR tree-optimization/22493
3474 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
3475 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
3477 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
3479 * config/frv/frv.opt (moptimize-membar): New.
3481 * doc/invoke.texi: Document -moptimize-membar and its inverse.
3483 * config/frv/frv.h: Remove machine_function definition.
3485 * config/frv/frv.c (struct frv_io): New.
3486 (struct machine_function): Moved from frv.h. Add has_membar_p.
3487 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
3488 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
3489 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
3490 (frv_optimize_membar_global, frv_optimize_membar): New functions.
3491 (frv_reorg): Call frv_optimize_membar when appropriate.
3492 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
3493 (frv_expand_builtin): Adjust calls accordingly.
3494 (frv_io_address_cookie): New function.
3495 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
3496 load or store rather than a special insn. Add ccnstant address and
3497 io-type operands to the membar.
3498 (frv_ifcvt_modify_tests): Unsign regno.
3499 (frv_ifcvt_modify_tests): Same.
3501 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
3502 UNSPEC_OPTIONAL_MEMBAR constant.
3503 (builtin_read_<mode>): Delete.
3504 (builtin_write_<mode>): Delete.
3505 ("optional_membar_<mode>"): Add operand.
3507 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
3508 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
3509 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
3510 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
3511 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
3512 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
3513 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
3514 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
3515 * testsuite/gcc.target/frv/all-read-write-1.c: New.
3517 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
3519 * df.c (df_uses_record): Handle SCRATCH.
3521 2005-07-28 Steven Bosscher <stevenb@suse.de>
3524 * passes.c (rest_of_decl_compilation): If decl is a type and
3525 we have encountered errors, don't emit debug information.
3527 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3529 * params.def: Fixed comment.
3531 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
3534 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
3535 (TARGET_ASM_UNALIGNED_HI_OP): Add.
3536 (TARGET_ASM_UNALIGNED_SI_OP): Add.
3538 2005-07-27 Steven Bosscher <stevenb@suse.de>
3541 * varasm.c (assemble_start_function): Don't do anything that may
3542 require a CFG if the current function is a thunk.
3544 2005-07-25 Geoffrey Keating <geoffk@apple.com>
3546 * doc/install.texi (Prerequisites): Mention that perl is needed
3547 to do export control in libstdc++ targetting Darwin.
3549 2005-07-27 Steven Bosscher <stevenb@suse.de>
3551 PR rtl-optimization/17808
3552 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
3553 (sched_insns_conditions_mutex_p): Split out from...
3554 (add_dependence): ...here. But don't call it from here.
3555 (add_dependence_list): Check sched_insns_conditions_mutex_p
3556 before calling add_dependence.
3557 (add_dependence_list_and_free): Likewise.
3558 (fixup_sched_groups): Likewise.
3559 (sched_analyze_1): Likewise.
3560 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
3561 (sched_analyze): Likewise.
3562 (sched_analyze_insn): Likewise.
3563 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3564 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
3565 dependencies on all COND_EXEC insns to jumps ending basic blocks
3566 when doing intrablock scheduling.
3567 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
3569 2005-07-27 Jeff Law <law@redhat.com>
3571 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
3572 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
3573 equivalency sets, correctly handle the case were vr0 has an
3574 equivalency set, but vr1 does not.
3576 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
3578 PR tree-optimization/23073
3579 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
3580 vect_print_dump_info before fprintf.
3582 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3584 PR tree-optimize/22348
3585 * tree-ssa-loop-niter.c (number_of_iterations_cond):
3586 Fold the partial computation.
3588 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3590 PR tree-optimization/22325
3591 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
3593 * tree-scalar-evolution.c (scev_const_prop): Add generic final
3595 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
3596 (force_var_cost): ... this function.
3597 (compute_phi_arg_on_exit): Export.
3599 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3601 PR tree-optimization/20773
3602 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
3605 2005-07-27 Richard Guenther <rguenther@suse.de>
3607 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
3608 Avoid pushing again if current struct contains only
3609 fields we decomposed.
3611 2005-07-27 Jan Hubicka <jh@suse.cz>
3613 PR tree-optimization/22574
3614 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
3617 * tree-tailcall.c (decrease_profile): New function.
3618 (eliminate_tail_call): Use it.
3620 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
3621 visibility flags correctly in whole program mode.
3623 2005-07-26 Steve Ellcey <sje@cup.hp.com>
3625 PR rtl-optimization/22472
3626 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
3628 2005-07-26 Steven Bosscher <stevenb@suse.de>
3630 PR tree-optimization/22504
3631 * tree-complex.c (expand_complex_addition): Use 'code' instead
3632 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
3634 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
3636 * config.gcc (cpu_type): Add frv case.
3637 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
3638 (supported_defaults): Add fr550 case.
3640 2005-07-26 Diego Novillo <dnovillo@redhat.com>
3643 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
3644 whether a pointer of type T * may point to objects of type T *.
3646 2005-07-26 DJ Delorie <dj@redhat.com>
3648 * configure: Regenerate.
3650 2005-07-26 Dale Johannesen <dalej@apple.com>
3652 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
3654 2005-07-26 Mark Mitchell <mark@codesourcery.com>
3656 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
3657 Clarify use of "build" in name.
3659 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
3661 * doc/extend.texi (Raw read/write Functions): New section.
3662 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
3663 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
3664 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
3665 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
3666 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
3667 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
3668 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
3669 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
3670 * config/frv/frv.c: Add bdesc_loads global.
3671 Add bdesc_stores global.
3672 (frv_init_builtins): Add support for __builtin_{read/write}*.
3673 (frv_volatile_memref): New.
3674 (frv_expand_load_builtin): New.
3675 (frv_expand_store_builtin): New.
3676 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
3677 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
3678 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
3679 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
3680 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
3681 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
3682 (builtin_read_<mode>): New.
3683 (builtin_write_<mode>): New.
3684 (builtin_write64): New.
3685 (optional_membar_<mode>): New.
3687 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
3689 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
3690 (rather than units) against HOST_BITS_PER_WIDE_INT.
3692 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
3694 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
3695 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
3696 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
3697 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
3700 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
3701 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
3702 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
3704 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
3706 2005-07-26 Richard Guenther <rguenther@suse.de>
3708 PR tree-optimization/22486
3709 * fold-const.c (fold_unary): Fold away useless component
3710 references of the form (T *)&T.x, if the address
3713 2005-07-25 James E Wilson <wilson@specifixinc.com>
3715 * dwarf2out.c (add_call_src_coords_attributes): New.
3716 (gen_inlined_subroutine_die): Call it.
3717 (maybe_emit_file, init_file_table): Add comments.
3718 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
3720 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
3721 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
3722 * tree.h (BLOCK_SOURCE_LOCATION): New.
3723 (struct tree_block): New field locus.
3725 2005-07-26 Andreas Schwab <schwab@suse.de>
3727 PR rtl-optimization/23043
3728 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
3729 when allocating a struct unoccr.
3731 2005-07-25 Richard Henderson <rth@redhat.com>
3734 * tree-complex.c (gate_no_optimization): True if errors.
3735 * Makefile.in (tree-complex.o): Update dependencies.
3737 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
3739 * config/frv/predicates.md (integer_register_operand): Use
3742 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
3745 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
3747 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
3749 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
3751 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
3752 types when flag_unsafe_math_optimizations is true.
3754 2005-07-25 Mark Mitchell <mark@codesourcery.com>
3756 * gcc.c (option_map): Add --sysroot.
3757 (process_command): Handle --sysroot.
3758 (display_help): Document it.
3759 * doc/cppopts.tex (-isysroot): Document.
3760 * doc/invoke.texi (--sysroot): Document.
3761 * doc/install.texi (--with-build-sysroot): Document.
3763 * Makefile.in (inhibit_libc): New variable.
3764 (INHIBIT_LIBC_CFLAGS): Likewise.
3765 (LIBGCC2_CFLAGS): Include
3766 $(INHIBIT_LIBC_CFLAGS).
3767 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
3768 ($(T)crtbegin.o): Do not use @inhibit_libc@.
3769 ($(T)crtend.o): Likewise.
3770 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
3771 ($(T)crtendS.o): Likewise.
3772 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
3773 ($(T)crtendT.o): Likewise.
3774 (stmp-fixinc): Do not complain about missing headers if
3776 * configure.ac (inhibit_libc): Set it to true/false.
3777 (--with-build-sysroot): New option. Use it to set
3779 * configure: Regenerated.
3781 2005-07-25 Manfred Hollstein <mh@suse.com>
3783 * calls.c (store_one_arg): Fix unsigned comparison warning.
3785 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3788 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
3789 (ggc_print_statistics): Initialize variable before use.
3791 2005-07-25 Richard Guenther <rguenther@suse.de>
3793 * tree-dfa.c (mark_new_vars_to_rename): Protect against
3794 calling with a PHI_NODE argument.
3796 * tree-flow-inline.h (overlap_subvar): Protect against
3799 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
3801 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
3802 * configure: Regenerate.
3804 2005-07-25 Ira Rosen <irar@il.ibm.com>
3806 * expr.c (highest_pow2_factor): Make extern.
3807 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
3808 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
3809 record_array_differ_p, array_ptr_differ_p): Likewise.
3810 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
3811 additional cases. Call the above functions.
3812 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
3813 base_object_differ_p when there are two base objects. Otherwise, compare
3814 base address and offset. Call may_alias_p.
3815 (dump_data_reference): Use a correct field name.
3816 (analyze_array): Make static. Initialize new data-ref fields.
3817 (analyze_indirect_ref): New function.
3818 (init_data_ref): Initialize new data-ref fields.
3819 (strip_conversion): Moved from tree-vect-analyze.c.
3820 (analyze_offset_expr, get_ptr_offset, address_analysis,
3821 object_analysis): Likewise.
3822 (analyze_offset): New function.
3823 (create_data_ref): Likewise.
3824 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
3825 dimensions for ARRAY_REFs only.
3826 (build_classic_dist_vector): Make static.
3827 (access_functions_are_affine_or_constant_p): Call macro to get the
3828 address of access functions.
3829 (compute_all_dependences): Add new parameter
3830 compute_self_and_read_read_dependences. Compute self and read-read
3831 dependences if it is true.
3832 (find_data_references_in_loop): Call create_data_ref. Initialize new
3834 (compute_data_dependences_for_loop): Add new parameter
3835 compute_self_and_read_read_dependences. Remove parameter nb_loops,
3836 compute nb_loops. Call compute_all_dependences,
3837 build_classic_dist_vector and build_classic_dir_vector with correct
3839 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
3840 with correct parameters. Compare dimensions for ARRAY_REFs only.
3841 (free_data_refs): Call macro to free access functions.
3842 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
3843 fields from stmt_vinfo.
3844 (struct base_object_info): New structure.
3845 (struct data_reference): Move fields to base_object_info. Add fields
3846 first_location and object_info for above structures. Move fields from
3847 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
3848 aligned_to. Add macros to access the new fields.
3849 Update functions declarations.
3850 * tree-flow.h (is_aliased_with): Declare.
3851 * tree-loop-linear.c (linear_transform_loops): Call
3852 compute_data_dependences_for_loop with correct parameters.
3853 * tree-ssa-alias.c (is_aliased_with): New function.
3854 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
3855 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
3856 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
3857 vect_base_addr_differ_p, compute_subscript_distance and
3858 build_classic_dist_vector. Add printings. Check absolute value of
3860 (vect_analyze_data_ref_dependences): Go through ddrs instead of
3862 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
3863 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
3864 to bytes. Add printing.
3865 (vect_compute_data_refs_alignment): Go through loads and stores in one
3867 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
3868 vect_analyze_data_ref_access): Likewise.
3869 (vect_analyze_pointer_ref_access): Remove.
3870 (vect_address_analysis, vect_object_analysis): Likewise.
3871 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
3872 and analyze data-refs in the loop.
3873 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
3874 fields of data-ref instead of stmt. Add init to the offset from the
3876 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
3877 (vect_update_init_of_dr): Likewise.
3878 (vect_update_inits_of_drs): Go through loads and stores in one loop.
3879 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
3881 (new_loop_vec_info): Initialize new fields.
3882 (destroy_loop_vec_info): Free new fields.
3883 (vect_strip_conversion): Remove.
3884 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
3885 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
3886 datarefs. Add new field ddrs.
3887 Add macros for the new fields access.
3888 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
3889 base_aligned_p, misalignment, memtag, ptr_info and subvars.
3890 Remove their macros.
3891 * tree.h (highest_pow2_factor): Declare.
3893 2005-07-25 Jakub Jelinek <jakub@redhat.com>
3895 * calls.c (store_one_arg): Check for sibling call MEM arguments
3896 from already clobbered incoming argument area.
3898 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3900 * c-common.c (check_missing_format_attribute): New.
3901 * c-common.h (check_missing_format_attribute): Likewise.
3902 * c-typeck.c (convert_for_assignment): Use it.
3904 2005-07-24 Andreas Schwab <schwab@suse.de>
3906 * config/m68k/m68k.md ("extendqidi2"): When source is an address
3907 register use a word move. Correct operand of ext.w in 68000 code.
3909 2005-07-23 Mark Mitchell <mark@codesourcery.com>
3911 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
3912 variables as declarations, rather than definitions.
3914 2005-07-24 Ira Rosen <irar@il.ibm.com>
3916 PR tree-optimization/22526
3917 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
3920 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3922 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
3923 that C99 reserve for future use. Use it to define clog10,
3924 clog10f and clog10l.
3926 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3928 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
3929 * configure.ac: Check for -Wmissing-format-attribute.
3931 * configure: Regenerate.
3933 2005-07-23 Richard Henderson <rth@redhat.com>
3935 PR tree-optimization/22623
3936 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
3938 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
3941 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
3943 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3945 * Makefile.in (C_TREE_H): Update dependencies.
3946 * c-tree.h: Include toplev.h.
3947 * diagnostic.h (diagnostic_set_info): Add format attribute.
3948 * rtl-error.c (diagnostic_for_asm): Likewise.
3950 2005-07-23 Chao-ying Fu <fu@mips.com>
3952 * config/mips/mips-dsp.md: New file.
3953 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
3954 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
3956 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
3957 MIPS_BUILTIN_BPOSGE32.
3958 (mips_expand_builtin_direct): Add one parameter to indicate that
3959 builtin functions need to return a value.
3960 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
3962 (mips_regno_to_class): Add classes for 12 new DSP registers.
3963 (mips_subword): Change to check four HI registers.
3964 (mips_output_move): Output move to and from 6 new DSP accumulators.
3965 (override_options): Make sure -mdsp and -mips16 are not used together.
3966 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
3968 (mips_conditional_register_usage): Disable 6 new DSP accumulators
3970 (print_operand): Add 'q' for printing DSP accumulators.
3971 (mips_cannot_change_mode_class): Check ACC_REGS.
3972 (mips_secondary_reload_class): Check ACC_REGS.
3973 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
3974 (mips_register_move_cost): Check ACC_REGS.
3975 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
3976 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
3977 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
3978 (dsp_bdesc): New array.
3979 (bdesc_arrays): Add DSP builtin function table.
3980 (mips_prepare_builtin_arg): Check predicate again after
3982 (mips_expand_builtin): Add one more parameter to
3983 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
3984 MIPS_BUILTIN_BPOSGE32.
3985 (mips_init_builtins): Initialize new function types.
3986 (mips_expand_builtin_direct): Check if builtin functions need to
3987 return a value and pass operands properly.
3988 (mips_expand_builtin_bposge): New function.
3989 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
3990 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
3991 (FIRST_PSEUDO_REGISTER): Increase to 188.
3992 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3993 Update for 12 new DSP registers.
3994 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
3995 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
3996 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
3997 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
3998 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
3999 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
4000 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
4001 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
4002 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
4003 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
4004 (REGISTER_NAMES): Add names for 12 new DSP registers.
4005 * config/mips/mips.md: Include mips-dsp.md.
4006 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4007 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4008 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4009 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4010 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4011 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4012 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4013 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4014 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4015 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4016 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4017 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4018 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4019 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4020 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4021 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4022 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4023 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4024 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4025 (UNSPEC_RDDSP): New constants.
4026 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
4027 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
4029 * config/mips/mips.opt (-mdsp): New option.
4030 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
4031 (reg_imm10_operand): New predicates.
4032 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
4033 * doc/invoke.texi (-mdsp): Document new option.
4035 2005-07-22 DJ Delorie <dj@redhat.com>
4037 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
4039 * tree-inline.c (inlinable_function_p): Likewise.
4041 2005-07-22 Mark Mitchell <mark@codesourcery.com>
4044 * toplev.c (check_global_declarations): Do not mark undefined
4045 variables as DECL_IGNORED_P.
4046 * varasm.c (first_global_object_name): GTY it.
4047 (weak_global_object_name): Likewise.
4048 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
4049 a string to go into {weak,first}_global_object_name.
4051 2005-07-22 DJ Delorie <dj@redhat.com>
4053 * c-format.c (check_function_format): Change warning control
4054 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
4056 2005-07-22 Diego Novillo <dnovillo@redhat.com>
4058 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
4059 &PTR->FLD a dereference of PTR.
4060 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
4061 a potential dereference of PTR.
4063 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
4065 PR rtl-optimization/20370
4066 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
4067 call allocate_reg_info if necessary.
4069 PR rtl-optimization/21848
4070 * calls.c (emit_library_call_value_1): For const functions, add
4071 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
4073 PR rtl-optimization/22445
4074 * cselib.c (target.h): Include.
4075 (rtx_equal_for_cselib_p): Allow commutative matches.
4076 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
4077 Remove MODE parameter. Changed all callers.
4079 PR rtl-optimization/22258
4080 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
4082 (try_combine): Use likely_spilled_retval_p.
4084 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
4086 * config.gcc: Add crx-elf support.
4088 * doc/contrib.texi: Mention crx.
4089 * doc/extend.texi: Document crx extensions.