1 2005-09-27 Jeff Law <law@redhat.com>
3 * passes.c (init_optimization_passes): Replace copy propagation
4 passes immediately after DOM with phi-only copy propagation
5 pases. Add phi-only copy propagation pass after first DOM pass.
6 * tree-pass.h (pass_phi_only_copy_prop): Declare.
7 * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
8 If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
9 (execute_copy_prop): Accept new PHI_ONLY argument. Pass it along
10 to init_copy_prop. Callers updated.
11 (do_phi_only_copy_prop): New function.
12 (pass_phi_only_copy_prop): New pass descriptor.
14 2005-09-27 Nick Clifton <nickc@redhat.com>
16 * libgcc2.c (__popcount_tab): Remove redundant prototype.
18 2005-09-26 Jason Merrill <jason@redhat.com>
21 * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
23 * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
25 2005-09-26 James E Wilson <wilson@specifix.com>
27 * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
28 copyright. Add gcc copyright plus libgcc exception.
29 * config/ia64/crtfastmath.asm: Remove glibc copyright. Add gcc
31 * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
33 2005-09-26 Jeff Law <law@redhat.com>
35 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
36 about when to iterate.
38 2005-09-23 Fariborz Jahanian <fjahanian@apple.com>
41 * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
42 for __complex__ double in -mcpu=G5 mode.
44 2005-09-26 Sebastian Pop <pop@cri.ensmp.fr>
46 PR tree-optimization/23942
47 * Makefile.in (SCEV_H): Depends on PARAMS_H.
48 * tree-scalar-evolution.c: Include params.h.
50 (follow_ssa_edge, follow_ssa_edge_in_rhs,
51 follow_ssa_edge_in_condition_phi_branch,
52 follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
53 Change return type to t_bool. Use a parameter to limit the size of
54 trees that are walked before stopping
55 (analyze_evolution_in_loop): Initialize the limit to 0.
56 (follow_ssa_edge): Give up by returning t_dont_know if the limit
57 exceeds PARAM_SCEV_MAX_EXPR_SIZE.
59 2005-09-26 Uros Bizjak <uros@kss-loka.si>
62 * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
63 simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
65 2005-09-26 Fariborz Jahanian <fjahanian@apple.com>
67 * combine.c (make_extraction): Check for valid use of subreg.
69 2005-09-26 Uros Bizjak <uros@kss-loka.si>
72 * config/i386/i386.md ("*fistdi2_1"): New pattern.
73 ("*fist<mode>2_1"): Use only HImode and SImode register operands.
74 ("fist<mode>2_with_temp"): Use only register operands.
76 2005-09-26 J"orn Rennecke <joern.rennecke@st.com>
78 * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
79 CALL_INSN_FUNCTION_USAGE.
81 2005-09-26 Richard Guenther <rguenther@suse.de>
84 * gcse.c: Include hashtab.h, define ldst entry hashtable.
85 (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
86 (ldst_entry): Use the hashtable instead of list-walking.
87 (find_rtx_in_ldst): Likewise.
88 (free_ldst_entry): Free the hashtable.
89 (compute_ld_motion_mems): Create the hashtable.
90 (trim_ld_motion_mems): Remove entry from hashtable if
91 removing it from list.
92 (compute_store_table): Likewise^2.
93 (store_motion): Free hashtable in case we did not see
96 2005-09-25 Kazu Hirata <kazu@codesourcery.com>
98 * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
99 and arg1 if we are passing them to fold_build2.
101 2005-09-25 Dan Nicolaescu <dann@ics.uci.edu>
104 * config/i386/i386.c (ix86_function_regparm): Fix the test for
107 2005-09-25 Richard Henderson <rth@redhat.com>
109 * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
110 SYMBOL_REF_TLS_MODEL to be correct.
112 2005-09-24 Richard Henderson <rth@redhat.com>
114 * ipa-type-escape.c (discover_unique_type): Remove dead code at
115 end of function. Reindent.
117 2005-09-24 Ian Lance Taylor <ian@airs.com>
119 * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
120 NEGATE_EXPR/BIT_NOT_EXPR case.
122 2005-09-24 Richard Henderson <rth@redhat.com>
124 * c-common.c (handle_mode_attribute): When not modifying in place,
125 create subtypes for enumerations.
126 (sync_resolve_return): Use TYPE_MAIN_VARIANT.
127 * gimplify.c (create_tmp_from_val): Likewise.
129 2005-09-24 Alexandre Oliva <aoliva@redhat.com>
131 * config/i386/i386.md (*tls_global_dynamic_64,
132 *tls_local_dynamic_base_64): Add missing mode to call.
133 (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
135 2005-09-24 Jan Hubicka <jh@suse.cz>
137 * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
138 (cgraph_clone_node): Likewise.
139 * cgraph.h (cgraph_clone_edge): Update prototype.
140 (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
141 duplicated prototypes; add updating argument.
142 * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
143 * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
145 (cgraph_mark_inline_edge): Likewise.
146 (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
147 (cgraph_flatten_node): Likewise.
148 (cgraph_decide_recursive_inlining): Likewise.
149 (cgraph_decide_inlining_of_small_function): Likewise.
150 * tree-optimize.c (tree_rest_of_compilation): Likewise.
152 2005-09-23 David Edelsohn <edelsohn@gnu.org>
153 Pete Steinmetz <steinmtz@us.ibm.com>
155 * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
156 (rldic.): Set type to "compare".
158 (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR. Set type to
159 mfjmpr for MFCTR/MFLR.
160 (movdf_hardfloat64): Same.
161 (movdf_softfloat64): Same. Correct order of store and move types.
162 (movti_string): Set type to store_ux/load_ux.
163 (load_multiple): Set type to load_ux.
164 (store_multiple): Set type to store_ux.
165 (movmemsi): Set type to store_ux.
166 (output_cbranch direct_return): Set type to jmpreg.
167 (stmw): Set type to store_ux.
168 (lmw): Set type to load_ux.
169 * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
170 * config/rs6000/440.md (ppc440-store): Increase latency to 6.
171 * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
172 * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
173 * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
174 * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
175 (rios1-fpstore): Increase latency to 3.
176 * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
177 * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
179 2005-09-23 David Edelsohn <edelsohn@gnu.org>
180 Andrew Pinski <pinskia@physics.uc.edu>
182 * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
183 operand2 constraint to "b".
184 (sync_<fetchop_name>di_internal): Same.
185 (sync_old_<fetchop_name>si_internal): Change operand3 constraint
187 (sync_old_<fetchop_name>di_internal): Same.
188 (sync_new_<fetchop_name>si_internal): Same.
189 (sync_new_<fetchop_name>di_internal): Same.
191 2005-09-23 J"orn Rennecke <joern.rennecke@st.com>
194 * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
195 case, define as macros.
197 PR rtl-optimization/23837
198 * optabs.c (no_conflict_move_test): Don't set must_stay for a
199 clobber / clobber match between dest and p->first.
201 * optabs.c (emit_libcall_block): Use no_conflict_move_test.
202 (no_conflict_move_test): Update comments.
204 2005-09-22 Ranjit Mathew <rmathew@gcc.gnu.org>
206 * doc/install.texi: Update URL for Jacks.
207 * doc/sourcebuild.texi: Likewise.
209 2005-09-22 David Edelsohn <edelsohn@gnu.org>
212 * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
213 registers when choosing register preferences.
214 (movdf_hardfloat64): Same.
216 2005-09-22 Andreas Krebbel <krebbel1@de.ibm.com>
218 * expmed.c (expand_shift): Don't use the target of the rotate as
219 target for the first expanded shift insn.
220 * testsuite/gcc.dg/20050922-1.c: Testcase added.
222 2005-09-21 Zdenek Dvorak <dvorakz@suse.cz>
224 PR tree-optimization/22438
225 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
226 preserved iv rhs rewriting specially.
228 2005-09-21 Daniel Berlin <dberlin@dberlin.org>
230 * tree-data-ref.c (analyze_array_indexes): Only estimate when
231 estimate_only is true.
232 * tree-flow.h (ref_contains_indirect_ref): New prototype.
233 * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
234 tree-ssa-structalias.c
235 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
236 ref_contains_indirect_ref.
237 * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
239 2005-09-21 DJ Delorie <dj@redhat.com>
241 * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
243 (mn10300_return_in_memory): Support variable size types also.
244 (mn10300_pass_by_reference): Likewise.
245 (mn10300_function_value): New.
246 * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
247 (FUNCTION_OUTGOING_VALUE): Likewise.
248 * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
249 * doc/invoke.texi: Document it.
251 2005-09-21 Uros Bizjak <uros@kss-loka.si>
254 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
255 force integer op1 into register for XFmode compares.
257 2005-09-21 Kazu Hirata <kazu@codesourcery.com>
260 * expmed.c (alg_code): Add alg_impossible.
261 (alg_hash_entry): Add cost.
262 (synth_mult): Record alg_impossible in the hash table if
263 multiplication by a given integer is impossble within the
264 limit. Speed up using alg_impossible.
266 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
268 * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
269 argument. Allow and set any offset if needs_anyoffset is passed
271 (get_constraint_for): Add argument here too.
273 (do_structure_copy): Pass NULL to get_constraint_for.
274 (handle_ptr_arith): Ditto.
275 (find_func_aliases): Ditto.
277 2005-09-20 J"orn Rennecke <joern.rennecke@st.com>
279 PR rtl-optimization/23898
280 * output.h (get_attr_min_length): Declare.
281 * final.c (get_attr_length_1): New function, broken out of:
283 (get_attr_min_length): New function.
284 * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
285 (duplicate_computed_gotos): Likewise.
286 * genattr.c (insn_min_length): Generate declaration.
287 * genattrtab.c (min_fn, min_attr_value): New functions.
288 (make_length_attrs): Generate insn_min_length.
290 2005-09-20 Steve Ellcey <sje@cup.hp.com>
292 * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
294 2005-09-20 Richard Henderson <rth@redhat.com>
296 * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
299 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
301 * c.opt (fextended-identifiers): New.
302 * c-opts.c (c_common_handle_option): Handle
303 -fextended-identifiers.
304 * doc/cpp.texi: Update documentation of extended identifiers.
305 * doc/cppopts.texi (-fextended-identifiers): Document.
307 2005-09-20 Jakub Jelinek <jakub@redhat.com>
309 PR tree-optimization/23929
310 * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
313 PR tree-optimization/23818
314 * tree-stdarg.c (execute_optimize_stdarg): Call
315 calculate_dominance_info.
317 2005-09-20 Daniel Berlin <dberlin@dberlin.org>
319 * tree-data-ref.c (get_number_of_iters_for_loop): New function.
320 (analyze_siv_subscript_cst_affine): Add weak SIV test.
321 (compute_overlap_steps_for_affine_1_2): Use
322 get_number_of_iters_for_loop.
323 (analyze_subscript_affine_affine): Check whether difference is
325 Use get_number_of_iters_for_loop.
326 Check whether overlap occurs outside of bounds.
327 (analyze_miv_subscript): Use get_number_of_iters_for_loop.
329 2005-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
331 * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
332 base register if possible.
334 2005-09-20 Zdenek Dvorak <dvorakz@suse.cz>
336 PR tree-optimization/18463
337 * tree-chrec.c (chrec_convert): Return fold_converted chrec if
338 converting it directly is not possible.
339 (chrec_convert_aggressive): New function.
340 * tree-chrec.h (chrec_convert_aggressive): Declare.
341 * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
342 Fold chrec conversions aggressively if asked to.
343 (instantiate_parameters): Modified because of changes in
344 instantiate_parameters_1.
346 2005-09-19 Richard Henderson <rth@redhat.com>
348 * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
349 (reduc_splus_v2df): New.
351 2005-09-19 Richard Sandiford <richard@codesourcery.com>
353 * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
354 (ADDITIONAL_REGISTER_NAMES): Add missing comma. Remove final comma.
356 2005-09-19 Richard Henderson <rth@redhat.com>
358 * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
361 2005-09-19 Richard Henderson <rth@redhat.com>
363 * config/ia64/ia64.c (ia64_expand_widen_sum): New.
364 (ia64_expand_dot_prod_v8qi): New.
365 * config/ia64/ia64-protos.h: Update.
366 * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
367 widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
368 sdot_prodv8qi, sdot_prodv4hi): New.
369 (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
371 2005-09-19 Richard Henderson <rth@redhat.com>
374 * real.c (exact_real_truncate): Return false if the format cannot
375 represent the number as a normal.
377 * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
380 2005-09-19 Dorit Nuzman <dorit@il.ibm.com>
382 * tree-ssa-operands.c (swap_tree_operands): Export.
383 * tree.h (swap_tree_operands): Declare.
384 * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
385 Call swap_tree_operands.
387 2005-09-19 Richard Henderson <rth@redhat.com>
389 * tree-flow.h (merge_alias_info): Declare.
390 * tree-ssa-copy.c (merge_alias_info): Export.
391 * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
392 (vect_create_data_ref_ptr): Use create_iv directly.
393 (vectorizable_load): Use correct types for integer constants.
394 (vect_generate_tmps_on_preheader): Likewise.
395 (vect_gen_niters_for_prolog_loop): Likewise.
397 2005-09-19 Steven Bosscher <stevenb@suse.de>
399 PR rtl-optimization/23943
400 * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
402 2005-09-18 Jan Hubicka <jh@suse.cz>
404 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
406 2005-09-18 Eric Botcazou <ebotcazou@adacore.com>
408 * varasm.c (output_constant): Do not abort on conversions to union
409 types between different sizes.
411 2005-09-18 Richard Guenther <rguenther@suse.de>
414 * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
417 2005-09-18 Paul Brook <paul@codesourcery.com>
419 * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
421 2005-09-17 Richard Henderson <rth@redhat.com>
423 * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
424 * tree-ssa-loop.c (pass_vect_dce): Remove.
425 * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
428 2005-09-17 Richard Henderson <rth@redhat.com>
430 * tree-pass.h (pass_vect_dce): Declare.
431 * passes.c (init_optimization_passes): Add it.
432 * tree-flow.h (tree_ssa_dce): Declare.
433 * tree-ssa-dce.c (tree_ssa_dce): Export.
434 * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
435 (gate_tree_vectorize): ... here.
436 (pass_vect_dce): New.
438 2005-09-17 Jan Hubicka <jh@suse.cz>
440 * except.c (struct eh_status): Turn region_array into vec.
441 (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
442 convert_from_eh_region_ranges, find_exception_handler_labels,
443 current_function_has_exception_handlers, assign_filter_values,
444 build_post_landing_pads, dw2_build_landing_pads,
445 sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
446 sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
447 foreach_reachable_handler, can_throw_internal_1,
448 convert_to_eh_region_ranges, verify_eh_tree): Update uses of
450 (duplicate_eh_region_1): Update region_array.
451 (duplicate_eh_regions): Resize region_array and avoid recomputing.
453 2005-09-17 David Edelsohn <edelsohn@gnu.org>
456 * expmed.c (expand_mult): Substitute simple register for op0 when
459 2005-09-17 Richard Henderson <rth@redhat.com>
461 * expr.c (emit_move_via_integer): Add force argument, pass it on
462 to emit_move_change_mode. Update callers.
463 (emit_move_complex): Pass true to new force argument.
464 * function.c (expand_function_end): Move expand_eh_return call
465 earlier. Merge sub-word complex values into a pseudo before
466 copying to the return hard register.
468 2005-09-17 Eric Botcazou <ebotcazou@adacore.com>
470 * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
471 between different sizes.
473 2005-09-16 Paolo Bonzini <bonzini@gnu.org>
477 * passes.c (init_optimization_passes): Register dump files for
480 2005-09-16 Andreas Krebbel <krebbel1@de.ibm.com>
482 * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
483 * config/s390/s390.c (s390_overlap_p): New function.
484 * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
485 peephole2, "*xc" peephole2): Added overlap check to the peephole2
488 2005-09-16 Richard Guenther <rguenther@suse.de>
490 * ipa-pure-const.c (static_execute): Free auxiliar information.
491 * ipa-type-escape.c (discover_unique_type): Free temporary key.
492 * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
494 2005-09-15 DJ Delorie <dj@redhat.com>
496 * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
498 2005-09-15 Paolo Bonzini <bonzini@gnu.org>
500 * optabs.c (expand_binop): Use swap_commutative_operands_with_target
502 (swap_commutative_operands_with_target): New.
504 2005-09-15 Daniel Berlin <dberlin@dberlin.org>
506 * tree-data-ref.c (analyze_array_indexes): Add estimate_only
509 (estimate_iters_using_array): New function.
510 * tree-data-ref.h (estimate_iters_using_array): Prototype
511 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
512 Use estimate_iters_using_array instead of analyze_array.
514 2005-09-15 Eric Botcazou <ebotcazou@adacore.com>
516 * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
519 2005-09-15 Michael Matz <matz@suse.de>
521 * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
523 2005-09-14 Daniel Berlin <dberlin@dberlin.org>
525 PR tree-optimization/23835
526 * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
527 (create_name_tags): Rewrite to be not O(num_ssa_names^2).
529 2005-09-14 Richard Henderson <rth@redhat.com>
531 * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
532 (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
534 2005-09-14 Andrew Pinski <pinskia@physics.uc.edu>
536 * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
537 in the ARRAY_TYPE case.
539 2005-09-14 Eric Botcazou <ebotcazou@adacore.com>
541 * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
543 2005-09-14 Uros Bizjak <uros@kss-loka.si>
546 * tree-vect-transform.c (vectorizable_operation): Return false for
547 scalar shift operations and for vector shift operations with
548 non-invariant shift arguments. Use scalar tree operand op1 as
549 a shift operand when vector shift insn pattern uses scalar shift
551 * Makefile.in (tree-vect-transform.o): Depend on recog.h.
553 2005-09-14 Olivier Hainque <hainque@adacore.com>
555 * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
556 value if it has side-effects.
558 2005-09-14 David Edelsohn <edelsohn@gnu.org>
561 * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
563 2005-09-14 Alan Modra <amodra@bigpond.net.au>
565 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
566 passed as NAME as if it were label at start of function code.
568 2005-09-13 Kaz Kojima <kkojima@gcc.gnu.org>
570 * config/sh/sh.md (*movv4sf_i): Add general register cases to
573 2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
575 * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
576 as early clobber. Rewrite so the PIC register is not implicitly used.
578 2005-09-13 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
580 * tree.c (annotate_with_file_line): Compare line numbers before
583 2005-09-13 Uros Bizjak <uros@kss-loka.si>
586 * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
587 (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
589 2005-09-13 Ian Lance Taylor <ian@airs.com>
591 * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
592 than a HOST_WIDEST_INT to gen_doloop_begin.
594 2005-09-13 Diego Novillo <dnovillo@redhat.com>
596 * tree-dfa.c (dump_variable): Guard against NULL annotations.
598 2005-09-13 Zdenek Dvorak <dvorakz@suse.cz>
600 PR tree-optimize/23817
601 * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
603 2005-09-13 Alan Modra <amodra@bigpond.net.au>
606 * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
607 word before changing the stack pointer. Use gen_frame_mem for MEMs.
608 Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
609 (restore_stack_nonlocal): Likewise.
610 (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
612 2005-09-12 Ian Lance Taylor <ian@airs.com>
615 * c.opt (ffriend-injection): New C++ option.
616 * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
617 (C++ Dialect Options): Document -ffriend-injection.
619 2005-09-12 Josh Conner <jconner@apple.com>
622 * ipa-reference.c (static_execute): Don't mark variables in
623 named sections TREE_READONLY.
625 2005-09-12 Alan Modra <amodra@bigpond.net.au>
627 * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
630 2005-09-12 Andrew Pinski <pinskia@physics.uc.edu>
632 * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
633 V_MUST_DEF instead of just the first_use_p.
634 Don't mark the virtual variables for renaming on the statement which
636 (pass_dse): Remove TODO_update_ssa.
638 2005-09-12 J"orn Rennecke <joern.rennecke@st.com>
641 * stor-layout.c (compute_record_mode): For records with a single
642 field, actually check the field's mode size against the type size.
644 * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
645 registers for TARGET_SHMEDIA.
646 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
647 GENERAL_FP_REGS to GENERAL_DF_REGS. Add GENERAL_FP_REGS as union
648 of GENERAL_REGS and FP_REGS.
650 2005-09-12 Bernd Schmidt <bernd.schmidt@analog.com>
652 * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
654 2005-09-12 Alan Modra <amodra@bigpond.net.au>
656 * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
657 CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
658 are omitted. Exclude stack_tie insn too.
660 2005-09-11 David Edelsohn <edelsohn@gnu.org>
662 PR rtl-optimization/23098
663 * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
665 * config/rs6000/rs6000.md (movdf splitter): Use
666 const_double_operand predicate for TARGET_POWERPC64.
667 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
668 SYMBOL_REF method to ABI_V4.
670 * config/rs6000/altivec.md (build_vector_mask_for_load): Use
671 replace_equiv_address.
672 * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
673 rs6000_sr_alias_set and MEM_NOTRAP.
674 (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
676 2005-09-11 Eric Botcazou <ebotcazou@adacore.com>
678 * tree.c (contains_placeholder_p) <tcc_expression>: Properly
679 handle CALL_EXPR again.
681 2005-09-11 Richard Earnshaw <richard.earnshaw@arm.com>
683 * arm/predicates.md (alignable_memory_operand): Delete.
685 2005-09-10 Richard Henderson <rth@redhat.com>
688 * dbxout.c (dbxout_expand_expr): New.
689 (dbxout_symbol): Use it.
691 2005-09-10 Richard Earnshaw <richard.earnshaw@arm.com>
693 * arm.c (arm_gen_rotated_half_load): Delete.
694 (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
695 (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
696 (thumb_set_return_address): Likewise.
697 (thumb_load_double_from_address): Use adjust_address.
698 * arm.md (splits calling arm_gen_rotated_half_load): Delete.
699 (extendhsisi2_mem, movhi_bytes): Use change_address.
700 (movhi): Use widen_memory_access.
701 (reload_out_df): Use replace_equiv_address.
702 * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
704 2005-09-09 Richard Henderson <rth@redhat.com>
707 * dbxout.c: Include expr.h.
708 (dbxout_global_decl): Don't suppress for DECL_RTL unset.
709 (dbxout_symbol): Handle DECL_VALUE_EXPR.
710 * Makefile.in (dbxout.o): Add EXPR_H.
712 2005-09-09 Zdenek Dvorak <dvorakz@suse.cz>
714 PR tree-optimization/23509
715 * tree-cfg.c (replace_uses_by): Use replace_exp.
716 * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
717 pointers have name_mem_tag or type_mem_tag set.
719 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
721 * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
722 CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
723 of wrongly accessing operands.
725 2005-09-09 Sebastian Pop <pop@cri.ensmp.fr>
727 * Makefile.in (tree-chrec.o): Depends on SCEV_H.
728 * tree-chrec.c: Include tree-scalar-evolution.h.
729 (chrec_convert): Instantiate the base and step before calling
730 scev_probably_wraps_p that would fail on parametric evolutions.
731 Collect all the fails into a single section failed_to_convert,
732 print a diagnostic, and return chrec_dont_know instead of calling
734 * tree-scalar-evolution.c (loop_closed_phi_def): New.
735 (instantiate_parameters_1): Avoid instantiation of loop closed ssa
737 (scev_const_prop): Don't replace the definition of a loop closed ssa
738 phi node by itself, or by another loop closed ssa phi node.
739 * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
740 that base and step are defined.
742 2005-09-09 Richard Guenther <rguenther@suse.de>
745 * fold-const.c (fold_ternary): Check truth_value_p before
746 calling invert_truthvalue.
748 2005-09-09 Nick Clifton <nickc@redhat.com>
750 * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
751 * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
752 dimension of these arrays.
753 * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
755 * longlong.h: Only provide a prototype for the __clz_tab[] array
756 if this header has not been included from libgcc2.h.
757 * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
759 Provide prototypes for exported functions.
760 Use the __clz_tab[] and __popcount_tab[] arrays provided by
763 2005-09-08 Josh Conner <jconner@apple.com>
767 * expr.c (expand_expr_addr_expr_1): Don't invoke
768 expand_simple_binop for EXPAND_INITIALIZER.
770 2005-09-08 Richard Henderson <rth@redhat.com>
773 * toplev.c (wrapup_global_declaration_1): Split out ...
774 (wrapup_global_declaration_2): ... from ...
775 (wrapup_global_declarations): ... here. Return bool.
776 (check_global_declaration_1): Split out ...
777 (check_global_declarations): from here.
778 (emit_debug_global_declarations): New.
779 * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
780 check_global_declaration_1, emit_debug_global_declarations): Declare.
781 * c-decl.c (c_write_global_declarations_1): Don't create a vector
782 of decls. Call wrapup_global_declaration_1,
783 wrapup_global_declaration_2, check_global_declaration_1 directly.
784 (c_write_global_declarations_2): New.
786 (c_write_global_declarations): Call c_write_global_declarations_2.
787 * langhooks.c (write_global_declarations): Call
788 emit_debug_global_declarations.
790 * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
791 remove decls that have DECL_RTL_SET_P.
792 * passes.c (rest_of_decl_compilation): Invoke
793 cgraph_varpool_finalize_decl for all but functions.
795 2005-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
797 * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
798 the result of a conversion if the new min and max cannot be compared.
800 2005-09-08 Andreas Krebbel <krebbel1@de.ibm.com>
802 * config/s390/s390.c (s390_sr_alias_set): Variable removed.
803 (override_options): Setting s390_sr_alias_set removed.
804 (save_fpr, save_gprs): Set alias set to vararg or frame.
805 (restore_fpr, restore_gprs, s390_emit_prologue): Replace
806 s390_sr_alias_set with get_frame_alias_set ().
807 (s390_gimplify_va_arg): Replace s390_sr_alias_set with
808 get_varargs_alias_set ().
810 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
814 * c-parser.c (c_parser_objc_method_definition): If the next
815 token is not "{", error out and don't start the function.
817 2005-09-08 Andrew Pinski <pinskia@physics.uc.edu>
819 * tree-vrp.c (extract_range_from_expr): Move the check for non
820 nullness after the check for gimple invariant.
822 2005-09-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
824 * tree.c (host_integerp, tree_low_cst): Correct function comment.
826 2005-09-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
829 * config/m32r.md (movmemsi_internal): Canonicalize order of
830 operands in PLUS component of template.
832 2005-09-07 Andreas Krebbel <krebbel1@de.ibm.com>
834 * reload1.c (fixup_eh_region_note): Remove assertion.
835 (fixup_abnormal_edges): Reverted removal of call to
836 find_many_sub_basic_blocks made on 2005-08-31.
838 2005-09-07 Richard Henderson <rth@redhat.com>
840 * function.c (ARG_POINTER_CFA_OFFSET): Move ...
841 * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
842 (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
843 * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
844 rearrange for better packing.
845 (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
846 (lookup_cfa_1): Remove inline marker.
847 (cfa_equal_p): Split out of ...
848 (def_cfa_1): ... here. Use INVALID_REGNUM.
849 (build_cfa_loc): Handle !cfa->indirect.
850 (frame_pointer_cfa_offset): New.
851 (dbx_reg_number): Assert register elimination performed; do
852 leaf register remapping.
853 (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
854 (eliminate_reg_to_offset): New.
855 (based_loc_descr): Remove can_use_fbreg argument. Use fbreg only
856 for verifiably local stack frame addresses; re-base to CFA.
857 (mem_loc_descriptor): Remove can_use_fbreg argument.
858 (concat_loc_descriptor, loc_descriptor): Likewise.
859 (containing_function_has_frame_base): Remove.
860 (rtl_for_decl_location): Don't do register elimination or
861 leaf register remapping here.
862 (secname_for_decl): Split out from ..
863 (add_location_or_const_value_attribute): ... here.
864 (convert_cfa_to_loc_list): New.
865 (compute_frame_pointer_to_cfa_displacement): New.
866 (gen_subprogram_die): Use them.
867 * tree.h (frame_base_decl): Remove.
868 * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
869 (prologue_stack_adjust): Remove.
870 (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
871 (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
872 (set_frame_base_location): Remove.
873 (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
874 (dump_attrs_list, dump_dataflow_set): Use string concatenation.
875 (vt_add_function_parameters): Don't eliminate_regs.
876 (vt_initialize): Don't create frame_base_decl.
878 2005-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
880 * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
881 version of GNU binutils for 4.x and later.
883 2005-09-06 Mark Mitchell <mark@codesourcery.com>
885 * ggc-page.c (ggc_push_context): Remove.
886 (ggc_pop_context): Likewise.
887 * ggc.h (ggc_push_context): Remove.
888 (ggc_pop_context): Likewise.
890 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
893 * config/arc/arc.c (arc_output_function_epilogue): Update flags while
894 returning from an interrupt handler.
896 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
899 * config/arc/arc.c (output_shift): Add check for loop count when
902 2005-09-06 Steven Bosscher <stevenb@suse.de>
904 * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
906 (abs_replacement): Likewise.
907 (pass_phiopt): Remove TODO_update_ssa.
909 2005-09-06 Jakub Jelinek <jakub@redhat.com>
912 * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
913 if "return with no value, in function returning non-void" warning
915 * tree-cfg.c (execute_warn_function_return): Don't look at
916 RETURN_EXPRs with TREE_NO_WARNING set.
919 * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
920 for internal functions doesn't use registers used by global registers
921 variables. Use fewer register parameters if there are global register
924 2005-09-06 Olivier Hainque <hainque@adacore.com>
925 Eric Botcazou <ebotcazou@adacore.com>
928 * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
929 when we would be extracting outside its bit span (bitpos+bitsize
930 larger than its mode), possible with some VIEW_CONVERT_EXPRs from
931 Ada unchecked conversions.
933 2005-09-06 Steven Bosscher <stevenb@suse.de>
935 * tree-ssa-pre.c (try_look_through_load): New function.
936 (compute_avail): Use it to try to look through loads for some
937 more useful expressions.
939 2005-09-06 Saurabh Verma <saurabh.verma@codito.com>
941 * simplify-rtx.c (simplify_binary_operation_1): Correct the
942 condition for detecting cases like (a&a) and (a^a).
944 2005-09-06 Keith Besaw <kbesaw@us.ibm.com>
946 * common.opt: Add option ftree-vect-loop-version.
947 * params.def: Add --param vect-max-version-checks.
948 * doc/invoke.texi: Document ftree-vect-loop-version and
949 --param vect-max-version-checks.
950 * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
951 may_misalign_stmts and defines for accessors.
952 * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
953 LOOP_VINFO_MAY_MISALIGN_STMTS.
954 (destroy_loop_vec_info): VEC_free for
955 LOOP_VINFO_MAY_MISALIGN_STMTS.
956 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
957 Update documentation.
958 (vect_update_misalignment_for_peel): New.
959 (vect_enhance_data_refs_alignment): Update to choose loop
960 peeling or loop versioning if appropriate for the (potentially)
961 unaligned data references in the loop.
962 (vect_analyze_data_refs_alignment): Remove call to
963 vect_enhance_data_refs_alignment so the checks can be done
965 (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
966 and move up call to vect_analyze_data_refs_alignment.
967 * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
968 (vect_transform_loop): Add call to loop_version.
970 2005-09-06 Jakub Jelinek <jakub@redhat.com>
972 PR rtl-optimization/23098
973 * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
974 * simplify-rtx.c (constant_pool_reference_p): New function.
975 * rtl.h (constant_pool_reference_p): New prototype.
976 * config/i386/i386.md (pushf split, mov[sdx]f split): Use
977 constant_pool_reference_p in condition and
978 avoid_constant_pool_reference in preparation statements.
980 2005-09-06 Andreas Krebbel <krebbel1@de.ibm.com>
982 * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
983 STRICT_LOW_PART SETs.
985 2005-09-06 Alan Modra <amodra@bigpond.net.au>
988 * except.c (sjlj_emit_function_enter): Find the function begin
989 note even when it's not in first basic block.
991 2005-09-06 Kelley Cook <kcook@gcc.gnu.org>
993 * acinclude.m4: Renamed from aclocal.m4. Delete AM_LANGINFO_CODESET,
994 AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
995 * aclocal.m4: Regenerate.
997 2005-09-05 DJ Delorie <dj@redhat.com>
999 * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
1002 2005-09-06 Kazu Hirata <kazu@codesourcery.com>
1004 * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
1005 config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
1006 config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
1007 Follow spelling conventions.
1008 * doc/invoke.texi: Follow spelling conventions.
1010 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
1012 * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
1013 * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
1014 * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
1016 2005-09-05 J"orn Rennecke <joern.rennecke@st.com>
1019 * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
1020 (output_stack_adjust): Use gen_tmp_stack_mem.
1021 (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
1022 (sh_set_return_address, sh_allocate_initial_value): Likewise.
1023 (sh_get_pr_initial_val): Likewise.
1024 (sh_builtin_saveregs): Use gen_frame_mem and change_address.
1025 (sh_initialize_trampoline): Likewise. Also use adjust_address.
1026 * sh.md (divsi_inv_m0): Use gen_const_mem.
1027 (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
1028 (movdf_i4+1): Use gen_tmp_stack_mem.
1029 (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
1030 (fpu_switch+2): Likewise.
1031 (movv4sf_i, movv16sf_i): Use adjust_address.
1032 (symGOT_load): Set MEM_NOTRAP_P bit.
1034 2005-09-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1037 * pa.c (emit_move_sequence): Fix typo in last change.
1039 2005-09-03 Jakub Jelinek <jakub@redhat.com>
1041 PR rtl-optimization/23454
1042 * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
1045 2005-09-03 Richard Henderson <rth@redhat.com>
1046 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1049 * pa.c (emit_move_sequence): Use replace_equiv_address instead of
1052 2005-09-02 Nicolas Pitre <nico@cam.org>
1054 * config/arm/arm.c (arm_legitimize_address): Limit the value passed
1055 to bit_count to 32 bits.
1057 2005-08-31 Mark Mitchell <mark@codesourcery.com>
1060 * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
1061 generating synthetic loads from volatile lvalues.
1063 005-09-02 Nick Clifton <nickc@redhat.com>
1065 * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
1066 __ctzhi2, __clzhi2): New functions.
1068 2005-09-02 Andrew Pinski <pinskia@physics.uc.edu>
1071 * tree-nested.c (struct var_map_elt): Mark with GTY.
1072 (struct nesting_info): Mark with GTY. Mark var_map's param is struct
1074 (lookup_field_for_decl): Allocate new element in GC memory.
1075 (lookup_tramp_for_decl): Likewise.
1076 (convert_nl_goto_reference): Likewise
1077 (create_nesting_tree): Allocate info in GC memory. Likewise for
1079 (free_nesting_tree): Free with ggc_free instead of free.
1080 (root): New static variable.
1081 (lower_nested_functions): Remove root as local variable. And zero out
1082 root at the end of the function.
1084 2005-09-02 J"orn Rennecke <joern.rennecke@st.com>
1086 PR rtl-optimization/20365
1087 * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
1088 to short. New member ix.
1089 (simplify_plus_minus_op_data_cmp): Break ties using ix member.
1090 (simplify_plus_minus): Initialize ix members before calling qsort.
1092 2005-09-02 Zdenek Dvorak <dvorakz@suse.cz>
1094 PR tree-optimization/23626
1095 * tree-cfg.c (replace_uses_by): Clean up eh info.
1097 2005-09-01 DJ Delorie <dj@redhat.com>
1099 * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
1102 2005-09-01 David Edelsohn <edelsohn@gnu.org>
1104 * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
1105 (rs6000_split_multireg_move): Use replace_equiv_address instead of
1108 2005-09-01 Craig Rodrigues <rodrigc@gcc.gnu.org>
1110 * c-decl.c (diagnose_mismatched_decls): With -Wredundant-decls,
1111 do not issue warning for a variable definition following
1114 2005-09-01 Richard Henderson <rth@redhat.com>
1117 * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
1118 conversion to CONST_VECTOR.
1120 2005-09-01 Richard Henderson <rth@redhat.com>
1123 * reload1.c (reload_as_needed): Check !CALL_P before calling
1124 fixup_eh_region_note.
1125 * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
1127 2005-09-01 DJ Delorie <dj@redhat.com>
1129 * varasm.c (output_constant): Let the target resolve
1130 conversions of addresses to non-default pointer sizes.
1132 2005-09-01 Nicolas Pitre <nico@cam.org>
1134 * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
1135 to alow matching ARM pre-indexed addressing mode.
1136 (arm_override_options): Remove now irrelevant comment.
1138 2005-09-01 Phil Edwards <phil@codesourcery.com>
1140 * config.gcc (i*86-wrs-vxworks): Update. Split out vxworksae target.
1141 * config/i386/t-vxworks: Update multilibs for VxWorks 6 and RTP mode.
1142 * config/i386/vxworks.h: Likewise.
1143 * config/i386/t-vxworksae: New file, for VxWorks AE.
1144 * config/i386/vxworksae.h: Likewise.
1146 2005-09-01 Sebastian Pop <pop@cri.ensmp.fr>
1148 PR tree-optimization/23410
1149 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
1150 sequence is not wrapping during the first step.
1152 2005-09-01 Jakub Jelinek <jakub@redhat.com>
1155 * dwarf2out.c (base_type_die): Compare char_type_node with
1156 TYPE_MAIN_VARIANT (type), not type.
1158 2005-09-01 Richard Guenther <rguenther@suse.de>
1160 PR tree-optimization/15366
1161 * common.opt: Add -finline-functions-called-once.
1162 Put -fearly-inlining in alphabetically ordered place.
1163 * doc/invoke.texi: Document new option.
1164 * ipa-inline.c (cgraph_decide_inlining): Honour
1165 flag_inline_functions_called_once.
1167 2005-09-01 Jakub Jelinek <jakub@redhat.com>
1169 PR rtl-optimization/23478
1170 * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
1171 (alloc_qty): Initialize it.
1172 (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
1173 (combine_regs): Combine also n_throwing_calls_crossed fields.
1174 (find_free_reg): Don't attempt to caller-save pseudos crossing
1175 calls that might throw.
1176 * global.c (struct allocno): Add throwing_calls_crossed field.
1177 (global_alloc): Revert 2005-08-22 change. Initialize
1178 throwing_calls_crossed.
1179 (find_reg): Don't attempt to caller-save pseudos crossing calls that
1182 2005-09-01 Alan Modra <amodra@bigpond.net.au>
1185 * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
1186 (mask64_operand): Reinstate code prior to 2005-06-11 change.
1187 (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
1188 (and64_2_operand): Tweak to use predicate.
1189 (and_operand): Adjust for mask_operand changes.
1190 * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
1191 (print_operand): Likewise.
1192 (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
1193 (mask64_1or2_operand): Delete.
1194 * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
1195 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
1196 (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
1197 (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
1198 * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
1199 (rotldi3_internal4): Likewise.
1200 (rotldi3_internal5, rotldi3_internal5 split): Likewise.
1201 (rotldi3_internal6, rotldi3_internal6 split): Likewise.
1202 (ashldi3_internal7): Likewise.
1203 (ashldi3_internal8, ashldi3_internal8 split): Likewise.
1204 (ashldi3_internal, ashldi3_internal9 split): Likewise.
1205 (anddi3 split): Don't match mask64_operand.
1206 (anddi3_internal2): Add rlwinm. Modify 't' splitter predicate.
1207 (anddi3_internal3): Add rlwinm. Use and64_2_operand in non-cr0
1208 splitter and match TARGET_64BIT not TARGET_POWERPC64. Modify
1209 't' splitter predicate.
1210 (movdi_internal64 + 2): Revert 2005-06-11 change.
1212 2005-08-31 DJ Delorie <dj@redhat.com>
1214 * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
1215 (m32c_asm_integer): Add support for 32 bit pointers.
1217 2005-08-31 Richard Henderson <rth@redhat.com>
1219 * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
1220 component-like references for setting MEM_NOTRAP_P.
1222 * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
1223 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1225 2005-08-31 Richard Henderson <rth@redhat.com>
1227 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
1228 into a pseudo before applying gen_lowpart.
1230 2005-08-31 Geoffrey Keating <geoffk@apple.com>
1232 * doc/install.texi (Specific): Update cctools version required
1233 for full functionality.
1234 * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
1235 linkers as -macosx_version_min.
1237 2005-08-31 J"orn Rennecke <joern.rennecke@st.com>
1240 * sh.c (print_operand, %R and %S): Add handling of floating point
1241 registers, memory, constants and invalid operands.
1243 2005-08-31 Daniel Berlin <dberlin@dberlin.org>
1245 * ipa-pure-const.c: Change dump name.
1247 2005-08-31 Uros Bizjak <uros@kss-loka.si>
1250 * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
1251 to "reg_or_0_operand".
1252 (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
1254 2005-08-31 Dale Johannesen <dalej@apple.com>
1256 * loop-iv.c (iv_number_of_iterations): Fix overflow check for
1257 loops that count down.
1259 2005-08-31 Richard Henderson <rth@redhat.com>
1262 * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
1263 (fixup_eh_region_note): New.
1264 (reload_as_needed): Call it.
1265 (fixup_abnormal_edges): Allow all throwing insns to be deleted;
1266 don't call find_many_sub_basic_blocks; call verify_flow_info.
1267 * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
1268 (keep_stack_depressed): Likewise.
1269 (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
1271 2005-08-31 Richard Henderson <rth@redhat.com>
1273 * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
1276 2005-08-31 Fariborz Jahanian <fjahanian@apple.com>
1278 * expr.c (expand_expr_real_1): Compare size of address
1279 mode to target's address mode size in deciding expansion of
1280 the constant address.
1282 2005-08-31 Richard Guenther <rguenther@suse.de>
1285 * expr.c (all_zeros_p): New function.
1286 (expand_expr_real_1): Handle the case of an all-zero
1287 non-addressable constructor separately.
1289 2005-08-31 Adrian Straetling <straetling@de.ibm.com>
1291 * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
1292 arguments, adjust all callers.
1293 (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
1295 2005-08-30 Richard Henderson <rth@redhat.com>
1298 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
1299 whenever the mode sizes match.
1301 2005-08-31 Alan Modra <amodra@bigpond.net.au>
1303 * calls.c (load_register_parameters): Fix comment typo.
1304 * expr.c (emit_push_insn): Comment formatting.
1306 2005-08-30 Ian Lance Taylor <ian@airs.com>
1308 * config/i386/x-cygwin (host-cygwin): Change dependency from
1309 hosthooks-def.h to $(HOSTHOOKS_DEF_H).
1311 2005-08-29 Geoffrey Keating <geoffk@apple.com>
1313 * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
1316 2005-08-29 Andrew Pinski <pinskia@physics.uc.edu>
1319 * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
1320 call to ggc_collect.
1322 2005-08-29 Paolo Bonzini <bonzini@gnu.org>
1325 * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
1326 beginning. Remove $(INCLUDES) from all the rules, if following
1327 $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
1329 2005-08-29 Jakub Jelinek <jakub@redhat.com>
1332 * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
1333 fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
1334 not constant, but maxlen is, don't set len to maxlen, rather
1335 set maxlen to len if len is a constant.
1337 2005-08-29 Zdenek Dvorak <dvorakz@suse.cz>
1339 PR tree-optimization/23475
1340 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
1343 2005-08-28 Daniel Berlin <dberlin@dberlin.org>
1345 Fix PR middle-end/22455
1347 * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
1348 Checksum only the parts of the tree that exist for the tree code.
1350 2005-08-28 Dale Johannesen <dalej@apple.com>
1352 * config/i386/i386.c (nocona_cost): Increase MOVE_RATIO.
1354 2005-08-28 Andrew Pinski <pinskia@physics.uc.edu>
1356 * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
1358 2005-08-28 Richard Henderson <rth@redhat.com>
1360 * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
1361 * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
1364 2005-08-28 Jakub Jelinek <jakub@redhat.com>
1367 * builtins.c (get_memory_rtx): Don't strip nops
1368 in between COMPONENT_REFs.
1370 2005-08-27 Andrew Pinski <pinskia@physics.uc.edu>
1373 * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
1375 (gimplify_modify_expr): Check for zero sized types and gimplify the
1376 rhs and lhs as statements.
1378 2005-08-27 John David Anglin <dave.anflin@nrc-cnrc.gc.ca>
1381 * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
1382 state for return address column of signal frames.
1384 2005-08-27 David Edelsohn <edelsohn@gnu.org>
1387 * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
1388 bytes >= 2 not bytes == 2.
1389 (expand_block_move): Same.
1391 2005-08-27 Richard Guenther <rguenther@suse.de>
1394 * config/i386/sse.md (sse2_movsd): Add missing closing
1397 2005-08-27 Paul Brook <paul@codesourcery.com>
1399 * genrecog.c (enum decision_type): Add DT_num_insns.
1400 (struct decision_test): Add u.num_insns.
1401 (add_to_sequence): Add DT_num_insns test.
1402 (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
1403 (write_cond, debug_decision_2): Ditto.
1404 (change_state): Assume peep2_next_insn never fails.
1405 Remove "afterward" argument.
1406 (write afterward, write_tree): Update to match.
1407 * recog.c (peep2_current_count): New variable.
1408 (peep2_next_insn): Check it.
1409 (peephole2_optimize): Set peep2_current_count.
1410 * recog.h (peep2_current_count): Declare.
1412 2005-08-26 Josh Conner <jconner@apple.com>
1415 * ipa-pure-const.c (check_tree): Check for volatile-ness
1416 when considering a dereference.
1418 2005-08-27 Jakub Jelinek <jakub@redhat.com>
1420 * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
1422 2005-08-26 Jakub Jelinek <jakub@redhat.com>
1424 PR rtl-optimization/23561
1425 * builtins.c (get_memory_rtx): Add LEN argument. If MEM_EXPR is
1426 a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
1427 at most LEN bytes long memory fits into the field.
1428 (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
1429 expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
1430 expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
1432 2005-08-26 Richard Henderson <rth@redhat.com>
1435 * loop.c (biased_biv_may_wrap_p): New.
1436 (maybe_eliminate_biv_1): Use it to suppress non-equality
1437 comparison transformations. Delete disabled code.
1439 2005-08-26 Ian Lance Taylor <ian@airs.com>
1441 * combine.c (make_extraction): Avoid reference outside object.
1443 2005-08-26 J"orn Rennecke <joern.rennecke@st.com>
1445 * stor-layout.c (finalize_type_size): Restore behaviour for
1446 non-aggregate types to the status quo ante of the patch for
1447 pr 23467. Document why it matters.
1449 2005-08-26 Jakub Jelinek <jakub@redhat.com>
1452 * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
1453 array by one element, initialize the BT_LAST element with NULL.
1455 2005-08-26 David Edelsohn <edelsohn@gnu.org>
1457 * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
1458 optimizing for size.
1460 (compare_plus_eqsi): Same.
1461 (plus_eqsi_compare): Same.
1462 (neg_eq0<mode>): Same.
1463 (neg_eq<mode>): Same.
1465 * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
1468 2005-08-26 Nick Clifton <nickc@redhat.com>
1470 * config/v850/v850.c (ep_memory_operand): Return FALSE if
1471 TARGET_EP is not defined.
1472 * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
1473 TARGET_EP is enabled.
1474 (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
1475 * config/v850/v850.md (save_all_interrupt): Only use the EP
1476 register if TARGET_EP is defined.
1477 (restore_all_interrupt): Likewise.
1478 * config/v850/lib1funcs.asm: Update functions so that the EP
1479 register is only used if __EP__ is defined.
1481 2005-08-26 David Ung <davidu@mips.com>
1483 * config/mips/mips.c (mips_expand_prologue): Handle case when
1484 generating for MIPS16 and the outgoing argument area is more than
1485 SMALL_OPERAND. Use the frame pointer as temporary to generate the
1488 2005-08-26 Paul Woegerer <paul.woegerer@nsc.com>
1490 * config/crx/crx.md: Make doloop_end pattern usage controllable
1491 via mloop-nesting=<max-nesting> command line switch. Make sure
1492 the combiner cannot use doloop_end_<mode> in an illegal way.
1493 * config/crx/crx.c: Use regs up to r6 for argument passing.
1494 Refine crx_address_cost (non cst4 displacements are expensive).
1495 * config/crx/crx.opt: Add switch for mloop-nesting=.
1497 2005-08-26 Adrian Straetling <straetling@de.ibm.com>
1499 * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
1500 (UNSPEC_MVST): New constant.
1502 2005-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1504 * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
1505 Reject operands containing eliminable registers.
1506 * testsuite/gcc.dg/20050825-1.c: New testcase.
1508 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1509 Jan Hubicka <jh@suse.cz>
1511 * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
1513 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1515 PR tree-optimization/23546
1516 * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
1519 2005-08-24 Pete Steinmetz <steinmtz@us.ibm.com>
1521 * params.def (PARAM_MIN_SPEC_PROB): New.
1522 * sched-rgn.c (MIN_PROBABILITY): Delete.
1523 (compute_trg_info): Convert to PARAM_VALUE.
1524 * doc/invoke.texi (param): Document min-spec-prob.
1526 2005-08-24 Fariborz Jahanian <fjahanian@apple.com>
1528 * config/darwin.h: define __PIC__
1529 * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
1530 TARGET_OS_CPP_BUILTINS macro.
1532 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1534 * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
1537 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
1539 * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
1541 * cfghooks.c (duplicate_block): Added position where to place
1542 new block as argument.
1543 * cfghooks.h (duplicate_block): Declaration changed.
1544 * cfglayout.c (copy_bbs): Add argument after. Pass it to
1546 * cfglayout.h (copy_bbs): Declaration changed.
1547 * cfgloop.h (loop_version): Declaration changed.
1548 * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
1549 position to copy_bbs.
1550 (loop_version): Pass position to duplicate_loop_to_header_edge.
1551 Add place_after argument and position new blocks according to
1553 * modulo-sched.c (sms_schedule): Pass place_after argument
1555 * tracer.c (tail_duplicate): Pass argument to duplicate_block.
1556 * tree-cfg.c (split_edge_bb_loc): New function.
1557 (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
1558 to determine position of new blocks.
1559 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
1561 * tree-ssa-threadupdate.c (create_block_for_threading): Pass
1562 argument to duplicate_block.
1563 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1564 Pass position to copy_bbs.
1566 2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
1568 * fold-const.c (ptr_difference_const): Use
1569 cst_and_fits_in_hwi instead of host_integerp.
1571 2005-08-24 Paolo Bonzini <bonzini@gnu.org>
1573 * config/darwin.c (gen_pic_offset): New.
1574 (machopic_indirect_data_reference, machopic_legitimize_pic_address):
1577 2005-08-23 Zdenek Dvorak <dvorakz@suse.cz>
1579 PR tree-optimization/23486
1580 * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
1582 2005-08-23 Phil Edwards <phil@codesourcery.com>
1584 * config.gcc (*-*-vxworks*): Update tm_file, add extra_options,
1585 remove use_collect2.
1586 (powerpc-wrs-vxworks): Update, split out *-*-vxworksae target.
1588 * target-def.h (TARGET_HAVE_CTORS_DTORS): Allow target
1589 configuration files to override the default value.
1591 * config/t-vxworks: Remove INSTALL_ASSERT_H. Define STMP_FIXPROTO,
1592 EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
1593 * config/vx-common.h: New file, split out from...
1594 * config/vxworks.h: here. Update for VxWorks 6.x and RTP mode.
1595 * config/vxworksae.h: New file, for VxWorks AE.
1596 * config/vxworks.opt: New file.
1597 * config/vxlib.c: Update for VxWorks 6.
1599 * config/rs6000/t-vxworks (MULTILIB_OPTIONS): New list. Adjust
1600 other MULTILIB_* variables appropriately.
1601 (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS): Correct from t-ppccomm.
1602 * config/rs6000/t-vxworksae: New file, adjust multilibs for AE.
1603 * config/rs6000/vxworks.h: Update for VxWorks 6.
1604 * config/rs6000/vxworksae.h: New file, mostly placeholder for now.
1606 2005-08-23 Andrew Pinski <pinskia@physics.uc.edu>
1609 * config/darwin.c (machopic_select_section): Remove the hack to
1610 mark "::operator new" and "::operator delete" for coalescing
1611 even though they are not weak.
1613 2005-08-24 Alan Modra <amodra@bigpond.net.au>
1615 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
1616 * configure: Regenerate.
1618 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
1621 * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
1623 * convert.c (convert_to_integer, convert_to_vector): Likewise.
1624 * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
1627 2005-08-23 Paolo Bonzini <bonzini@gnu.org>
1629 * config/rs6000/predicates.md (equality_operator): New.
1630 * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
1631 comparison with a large constant.
1633 2005-08-23 Mark Mitchell <mark@codesourcery.com>
1635 * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
1637 2005-08-23 J"orn Rennecke <joern.rennecke@st.com>
1639 * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
1640 registers is even, and we have a hardware double precision fp,
1642 (sh_gimplify_va_arg_expr): For floating point arguments, consider
1643 size of current argument when checking if argument was passed in
1646 * sh.c (sh_attr_renesas_p): Handle error_mark_node.
1649 * stor-layout.c (finalize_type_size): Dont override
1650 existing alignment with a smaller alignment from the mode.
1652 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
1654 * lambda-code.c (lambda_vector_lexico_pos): Moved...
1655 * lambda.h (lambda_vector_lexico_pos): ... here.
1656 * tree-data-ref.c (build_classic_dist_vector): Return false when
1657 the distance vector is lexicographically negative.
1659 2005-08-23 Sebastian Pop <pop@cri.ensmp.fr>
1661 PR tree-optimization/23511
1662 * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
1663 handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
1665 2005-08-23 Jakub Jelinek <jakub@redhat.com>
1667 PR tree-optimization/22043
1668 * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
1669 * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
1670 If ALLOW_FLEXARR, handle types ending with flexible array member.
1671 Pass false as second argument to recursive count_type_elements calls.
1672 (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
1673 argument to count_type_elements call.
1674 * tree-sra.c (decide_block_copy): Likewise.
1675 * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
1676 for a constant-sized object, set cleared as well. Pass true as
1677 second argument to count_type_elements call.
1679 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1682 * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
1683 from legitimate_small_data_p, and make global. Update use.
1684 Remove forward declaration.
1685 * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
1687 * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
1689 2005-08-23 David Edelsohn <edelsohn@gnu.org>
1691 * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
1692 of scratch intermediates.
1693 (eq<mode>_compare): Same.
1694 (neg_eq0<mode>): New.
1695 (neg_eq<mode>): Convert to define_insn_and_split.
1697 2005-08-23 Alan Modra <amodra@bigpond.net.au>
1700 * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
1701 stdarg functions, set/clear the fp marker even when no variable
1703 * config/rs6000/sysv4.opt (mprototype): Describe.
1705 2005-08-22 Jakub Jelinek <jakub@redhat.com>
1707 PR rtl-optimization/23478
1708 * regs.h (reg_info): Add throw_calls_crossed.
1709 (REG_N_THROWING_CALLS_CROSSED): Define.
1710 * flow.c (allocate_reg_life_data): Initialize
1711 REG_N_THROWING_CALLS_CROSSED.
1712 (propagate_one_insn, attempt_auto_inc): Update
1713 REG_N_THROWING_CALLS_CROSSED.
1714 * global.c (global_alloc): Don't allocate pseudos across
1715 calls that may throw.
1717 2005-08-22 Andrew Pinski <pinskia@physics.uc.edu>
1720 * c-common.c (c_do_switch_warnings): Look for a node where the enum's
1721 value is inbetween the range if we did not find an exact match.
1723 2005-08-22 Aldy Hernandez <aldyh@redhat.com>
1725 * doc/invoke.texi (Option Summary): Add ms1 options.
1726 * doc/extend.texi: Document interrupt handler attribute for ms1.
1727 * doc/md.texi: Document ms1 constraints.
1728 * config.gcc: Add ms1-*-elf.
1729 * config/ms1/ms1.h: New.
1730 * config/ms1/ms1.c: New.
1731 * config/ms1/ms1.md: New.
1732 * config/ms1/ms1-protos.h: New.
1733 * config/ms1/ABI.txt: New.
1734 * config/ms1/crti.asm: New.
1735 * config/ms1/crtn.asm: New.
1736 * config/ms1/lib2extra-funcs.c: New.
1737 * config/ms1/t-ms1: New.
1738 * config/ms1/ms1.opt: New.
1740 2005-08-22 Ira Rosen <irar@il.ibm.com>
1742 * config/rs6000/altivec.md (xorv4sf3): New.
1743 (negv4sf2, neg<mode>2): Likewise.
1745 2005-08-21 H.J. Lu <hongjiu.lu@intel.com>
1748 * config/ia64/ia64.md (divsi3): Check divide by zero.
1749 (udivsi3): Likewise.
1751 (udivdi3): Likewise.
1753 2005-08-21 Jakub Jelinek <jakub@redhat.com>
1755 * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
1756 up to elem_bitsize bits, not max_bitsize.
1758 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
1760 PR tree-optimization/23433
1761 * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
1762 REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
1764 2005-08-21 Sebastian Pop <pop@cri.ensmp.fr>
1766 PR tree-optimization/23434
1767 * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
1768 the iteration bound is not an INTEGER_CST.
1770 2005-08-21 Dorit Nuzman <dorit@il.ibm.com>
1772 * tree-vect-transform.c (get_initial_def_for_reduction): Set
1773 need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
1774 NULL if need_epilog_adjust is false.
1775 (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
1776 Case 3 always peels first itration, not just for PLUS case, and no need
1777 to use scalar_initial_def here. Create an epilog adjustment only if
1778 scalar_initial_def is not NULL.
1780 (vectorizable_reduction): Remove assert.
1782 2005-08-20 H.J. Lu <hongjiu.lu@intel.com>
1785 * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
1786 (__moddi3): Likewise.
1787 (__udivdi3): Likewise.
1788 (__umoddi3): Likewise.
1789 (__divsi3): Likewise.
1790 (__modsi3): Likewise.
1791 (__udivsi3): Likewise.
1792 (__umodsi3): Likewise.
1794 2005-08-20 Jakub Jelinek <jakub@redhat.com>
1796 * tree-pass.h (TDF_GRAPH): Define.
1797 * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
1798 * passes.c (finish_optimization_passes): Only call
1799 finish_graph_dump_file if TDF_GRAPH is set.
1800 (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
1801 NULL. Set TDF_GRAPH bit.
1802 (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
1804 2005-08-20 Richard Earnshaw <richard.earnshaw@arm.com>
1806 * arm.h (arm_stack_offsets): Add locals_base field.
1807 * arm.c (arm_get_frame_offsets): Compute it.
1808 (thumb_compute_initial_elimination offset): Make the Thumb frame
1809 pointer point to the base of the local variables.
1810 (thumb_expand_prologue): Update accordingly.
1811 (thumb_expand_epilogue): Likewise.
1813 * arm.md (thumb_movhi_clobber): Make this insn a define_expand. Change
1814 mode of clobbered scratch to DImode. Handle a case that's known to
1817 2005-08-19 David Edelsohn <edelsohn@gnu.org>
1819 * config/rs6000/rs6000.md (gt0<mode>): Delete.
1820 (gt0<mode>_compare): Delete.
1821 (neg_gt0<mode>): Delete.
1823 2005-08-19 Eric Christopher <echristo@apple.com>
1825 * optabs.h: Change CTI_ to COI_.
1828 2005-08-19 James E Wilson <wilson@specifix.com>
1830 * builtins.c (expand_builtin_return_addr): Set
1831 current_function_accesses_prior_frames when count != 0. Use
1832 frame_pointer_rtx when count == 0.
1833 * function.h (struct function): Add accesses_prior_frames field.
1834 (current_function_accesses_prior_frames): Define.
1835 * reload1.c (init_elim_table): Check
1836 current_function_accesses_prior_frames.
1837 * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
1839 2005-08-19 Diego Novillo <dnovillo@redhat.com>
1841 * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
1842 indicator. Return true if the flowgraph changed during
1845 2005-08-19 Diego Novillo <dnovillo@redhat.com>
1848 * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
1849 conditional expression before testing its value.
1851 2005-08-19 Diego Novillo <dnovillo@redhat.com>
1853 * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
1855 2005-08-19 Devang Patel <dpatel@apple.com>
1857 PR tree-optimization/23048
1858 * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
1859 third parameter. Check whether latch is dominated by exit
1861 (if_convertible_loop_p): Supply exit block itself to
1862 if_convertible_bb_p.
1864 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
1867 * arm.md (arm_load_pic_register): Change argument to the mask of
1868 saved registers. Call thumb_find_work_register if we need a
1869 scratch register on Thumb.
1870 (arm_expand_prologue): Pass empty register set to
1871 arm_load_pic_register.
1872 (thumb_expand_prologue): Pass live_regs_mask directly to
1873 arm_load_pic_register.
1874 * arm-protos.h (arm_load_pic_register): Update prototype.
1876 2005-08-19 J"orn Rennecke <joern.rennecke@st.com>
1878 * sh.c (find_sole_member): New function.
1879 (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
1880 if the record's alignment is larger than the size of its only member.
1882 2005-08-19 Richard Earnshaw <richard.earnshaw@arm.com>
1885 * arm.c (thumb_legitimize_reload_address): New function.
1886 * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
1887 * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
1889 2005-08-19 Paul Woegerer <paul.woegerer@nsc.com>
1891 * config/crx/crx.c: Implement crx_decompose_address. Reject
1892 symbolic displacements since CRX register relative adressing
1893 mode can't handle unsigned 32-bit values as displacements.
1894 * config/crx/crx.h: Simplify definitions, remove redundant
1895 parenthesis and obsolete macros.
1896 * config/crx/crx.opt: Add new switch for debugging addresses.
1897 * config/crx/crx-protos.h: Add new declarations for above.
1899 2005-08-19 Andrew Pinski <pinskia@physics.uc.edu>
1902 * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
1905 2005-08-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1907 * collect2.c (dup2): Delete.
1908 * configure.ac: Don't check for dup2.
1910 * config.in, configure: Regenerate.
1912 2005-08-18 J"orn Rennecke <joern.rennecke@st.com>
1914 * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
1915 record with the type of its only member.
1917 2005-08-18 David Edelsohn <edelsohn@gnu.org>
1919 * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
1920 define_insn_and_split.
1921 (plus_ltu<mode>_compare): Same.
1922 (gtu<mode>_compare): Same.
1923 (plus_gtu<mode>_compare): Same.
1925 2005-08-18 Dorit Nuzman <dorit@il.ibm.com>
1927 PR tree-optimization/22228
1928 * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
1930 * tree-vect-transform.c (vect_transform_loop): Mark the variables that
1931 are recorded in vect_vnames_to_rename for renaming.
1932 * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
1933 (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
1934 in vect_vnames_to_rename.
1935 (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
1936 * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
1938 2005-08-18 Jan Hubicka <jh@suse.cz>
1941 * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
1942 info only for local statics, not for member variables.
1944 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1946 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
1948 2005-08-18 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1950 * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
1952 2005-08-18 Andrew Pinski <pinskia@physics.uc.edu>
1955 * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
1957 2005-08-17 James E Wilson <wilson@specifix.com>
1959 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1962 2005-08-17 David Edelsohn <edelsohn@gnu.org>
1964 * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
1965 (leu<mode>_compare): Same.
1966 (plus_leu<mode>): Same.
1967 (neg_leu<mode>): Same.
1968 (and_neg_leu<mode): Same.
1969 (ltu<mode>_compare): Same.
1970 (plus_ltu<mode>): Same.
1972 (geu<mode>_compare): Same.
1973 (plus_geu<mode>): Same.
1974 (neg_geu<mode>): Same.
1975 (and_neg_geu<mode>): Same.
1976 (plus_gt<mode>): Same.
1977 (gtu<mode>_compare): Same.
1978 (plus_gtu<mode>): Same.
1980 2005-08-17 Erik Christiansen <erik@dd.nec.com.au>
1982 * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
1983 Move call_table_data to end. Delete spurious .text.
1984 (callt_save_all_interrupt): Fix comment typo.
1986 2005-08-17 James E Wilson <wilson@specifix.com>
1987 Kevin Winchester <winchester@amirix.com>
1990 * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
1992 2005-08-17 Uros Bizjak <uros@kss-loka.si>
1995 * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
1996 ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
1998 2005-08-17 J"orn Rennecke <joern.rennecke@st.com>
2000 * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
2001 record with the type of its only member if the modes don't match.
2003 * varasm.c (decode_reg_name): Skip empty additional register names.
2005 2005-08-16 Zdenek Dvorak <dvorakz@suse.cz>
2007 * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
2008 lsm_tmp_name_length): New.
2009 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
2010 (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
2012 2005-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2013 Andreas Krebbel <krebbel1@de.ibm.com>
2015 * config.gcc: Added z9-109 switch.
2016 * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
2017 "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
2018 "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
2019 "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
2020 "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
2021 for "z9_109" cpu attribute.
2022 * config/s390/s390.c (z9_109_cost): New processor cost structure.
2023 (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
2024 (s390_handle_arch_option): Added z9-109 switch.
2025 (override_options): Set respective cost function for z9-109.
2026 (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
2027 (legitimate_reload_constant_p): Accept extended immediates.
2028 (print_operand): Three new output modifiers added: k, m and o.
2029 (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
2030 (s390_output_mi_thunk): Use extended immediate when possible.
2031 * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
2032 (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
2033 (CONSTRAINT_LEN): Added length of O constraint.
2034 (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
2035 * config/s390/s390.md ("cpu"): New value z9_109 added.
2036 ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
2037 "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
2038 "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
2039 "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
2040 "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
2041 ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
2042 "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
2043 "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
2044 ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
2045 "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
2046 "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
2047 "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
2048 "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
2049 "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
2050 "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
2052 ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
2053 "zero_extend<mode>si2"): Allow memory operands and don't manually emit
2054 insns for TARGET_EXTIMM.
2056 2005-08-17 Andreas Krebbel <krebbel1@de.ibm.com>
2058 * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
2060 2005-08-17 Nick Clifton <nickc@redhat.com>
2062 * config/stormy16/stormy16.c (xstormy16_encode_section_info):
2063 Call default_encode_section_info.
2065 2005-08-17 Steven Bosscher <stevenb@suse.de>
2067 PR tree-optimization/21574
2068 * tree-ssa-ccp.c (likely_value): If the right hand side is a
2069 constant, return CONSTANT.
2070 (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
2071 (ccp_fold, visit_assignment): Likewise.
2072 (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
2074 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
2076 * c-typeck.c (build_function_call): Call fold_buildN_initializer or
2077 fold_buildN instead of buildN then fold_initializer or fold.
2078 (build_unary_op): Likewise.
2079 (build_binary_op): Likewise.
2080 * fold-const.c (fold_initializer): Remove.
2081 (fold_build1_initializer): New function.
2082 (fold_build2_initializer): New function.
2083 (fold_build3_initializer): New function.
2084 * tree.h (fold_initializer): Remove.
2085 (fold_build1_initializer): New function.
2086 (fold_build2_initializer): New function.
2087 (fold_build3_initializer): New function.
2089 2005-08-16 James A. Morrison <phython@gcc.gnu.org>
2091 * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
2092 (try_move_mult_to_index): Call fold_build2 instead of build2.
2093 (fold_binary): Don't call fold after calls to try_move_mult_to_index.
2094 * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
2095 fold_binary_to_constant.
2096 (infer_loop_bounds_from_undefined): Call fold_build2 instead of
2098 * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
2099 check if A == gcd (A, B). Remove TYPE argument.
2100 (analyze_offset) Use fold_build2 instead of fold (build.
2101 (create_data_ref): Likewise.
2102 (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
2103 * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
2106 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2108 * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
2109 ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
2111 2005-08-16 Andrew Pinski <pinskia@physics.uc.edu>
2114 * gimplify.c (zero_sized_type): New function.
2115 (gimplify_modify_expr_rhs): If we have a zero sized type,
2116 replace the statement with an empty statement.
2118 2005-08-16 H.J. Lu <hongjiu.lu@intel.com>
2120 * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
2123 2005-08-16 Ian Lance Taylor <ian@airs.com>
2125 * doc/tm.texi (Label Output): Correct typo.
2127 2005-08-16 Steven Bosscher <stevenb@suse.de>
2130 * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
2131 force_operand will work later on using have_insn_for.
2133 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2135 * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
2137 2005-08-16 Ian Lance Taylor <ian@airs.com>
2140 * gimplify.c (gimplify_init_ctor_eval): If we see an element of
2141 vector type, don't try to construct it element by element. Add an
2142 assertion that we use a FIELD_DECL when building a COMPONENT_REF.
2144 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2146 * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
2148 2005-08-16 Geoffrey Keating <geoffk@apple.com>
2150 * doc/invoke.texi (Precompiled Headers): Document some more options
2151 which are known to be safe.
2153 2005-08-16 James E Wilson <wilson@specifix.com>
2155 PR tree-optimization/21105
2156 * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
2157 TREE_OVERFLOW check.
2159 2005-08-16 David Edelsohn <edelsohn@gnu.org>
2161 * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
2162 (neg_ltu<mode>): Same.
2164 (neg_gtu<mode>): Same.
2166 2005-08-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2168 * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
2169 (fold_builtin_isdigit): Use fold_buildN.
2170 (build_function_call_expr): Likewise.
2171 * c-typeck.c (c_finish_loop): Likewise.
2173 2005-08-16 J"orn Rennecke <joern.rennecke@st.com>
2174 Richard Shann <rshann@superh.com>
2176 PR middle-end/20396:
2177 * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
2179 2005-08-16 Sebastian Pop <pop@cri.ensmp.fr>
2181 * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
2183 2005-08-15 Richard Earnshaw <richard.earnshaw@arm.com>
2186 * arm.c (thumb_compute_save_reg_mask): Use similar logic to
2187 arm_compure_save_reg0_reg12_mask to determine when the PIC register
2190 2005-08-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2193 * fold-const.c (build_range_check): Disable optimization for function
2194 pointer expressions on targets that require function pointer
2197 2005-08-15 Ulrich Weigand <uweigand@de.ibm.com>
2199 * simplify-rtx.c (simplify_const_relational_operation): When
2200 extracting arguments of a COMPARE, recompute the mode as well.
2202 2005-08-15 Ian Lance Taylor <ian@airs.com>
2204 * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
2206 2005-08-15 DJ Delorie <dj@redhat.com>
2208 * config/m32c/mov.md (movqi_op): Immediates can't be moved to
2210 (movsi_splittable): Allow, but split, moves to the stack.
2211 * config/m32c/m32c.c (m32c_split_move): Always split moves to the
2214 2005-08-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2216 * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
2217 * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
2218 * system.h (HOST_PTR_PRINTF): Don't define, poison it.
2220 * bitmap.c, c-decl.c, config/i386/i386-interix.h,
2221 config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
2222 Delete HOST_PTR_PRINTF.
2224 * configure, config.in: Regenerate.
2226 2005-08-15 David Edelsohn <edelsohn@gnu.org>
2228 * config/rs6000/rs6000.md (QHSI): New mode macro.
2229 (wd): Extend mode attr for QImode and HImode
2230 (dbits): New mode attr.
2231 (zero_extend<mode>di2): Convert to mode macro.
2233 2005-08-15 Steve Ellcey <sje@cup.hp.com>
2236 * doc/invoke.texi (-mgnu-ld): Update description.
2239 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
2242 * Makefile.in (tree-chrec.o): Depends on real.h.
2243 * tree-chrec.c: Include real.h.
2244 (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
2245 chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
2246 * tree-scalar-evolution.c (add_to_evolution_1,
2247 interpret_rhs_modify_expr): Ditto.
2249 2005-08-15 Sebastian Pop <pop@cri.ensmp.fr>
2252 * tree-data-ref.c (estimate_niter_from_size_of_data): When
2253 step is negative compute the estimation from init downwards to zero.
2255 2005-08-14 James A. Morrison <phython@gcc.gnu.org>
2257 * fold-const (fold_binary): Call fold_build2 instead of fold (build.
2259 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2261 * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
2263 (legitimate_reload_constant_p): Fix handling of lliXX operands.
2264 Accept double-word constants that can be split.
2265 * config/s390/s390.md ("movti"): Use 'P' constraint.
2266 ("*movdi_31", "*movdf_31"): Likewise.
2268 2005-08-14 Daniel Berlin <dberlin@dberlin.org>
2270 Fix PR tree-optimization/22615
2272 * tree-ssa-structalias.c (solution_set_add): Handle
2273 first_vi_for_offset returning NULL.
2274 (do_da_constraint): Ditto.
2275 (do_sd_constraint): Ditto.
2276 (do_ds_constraint): Ditto
2277 (find_func_aliases): Ditto.
2278 (build_constraint_graph): RHS is allowed be ANYTHING.
2279 (first_vi_for_offset): Return NULL if we couldn't find anything at
2282 2005-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2284 * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
2285 over memory as first operand.
2287 2005-08-14 H.J. Lu <hongjiu.lu@intel.com>
2290 * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
2291 available for setting it.
2293 2005-08-14 Ira Rosen <irar@il.ibm.com>
2295 PR tree-optimization/23320
2296 * tree-data-ref.c (base_addr_differ_p): Add comment. Check
2297 data-refs' types instead of base object nullness. Add check for
2298 pointer type data-refs before first location comparison. Remove
2301 2005-08-14 Andreas Schwab <schwab@suse.de>
2303 * doc/md.texi (Machine Constraints): Fix misplaced @end table.
2305 2005-08-13 James E Wilson <wilson@specifix.com>
2307 * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
2308 * doc/invoke.texi (-Wstack-protector, -fstack-protector,
2309 -fstack-protector-all, --param ssp-buffer-size): Document.
2310 (-Wvariadic-macros): Alphabetize.
2311 (-fsched-stalled-insns-dep): Add missing 'f'.
2313 * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
2316 2005-08-13 David Edelsohn <edelsohn@gnu.org>
2318 * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
2319 or indirect address operand.
2320 (EXTRA_ADDRESS_CONSTRAINT): New.
2321 * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
2323 2005-08-13 Sebastian Pop <pop@cri.ensmp.fr>
2325 PR tree-optimization/22236
2326 * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
2327 successors and predecessors.
2328 * tree-chrec.c (chrec_convert): Before converting, check that
2329 sequences don't wrap.
2330 * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
2331 (analyze_array): Extern.
2332 (find_data_references_in_loop): Remove call to
2333 compute_estimated_nb_iterations.
2334 * tree-data-ref.h (analyze_array): Declared.
2335 * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
2336 single_ssa_def_operand, zero_ssa_operands): Fix documentation.
2337 * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
2338 * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
2340 * tree-ssa-loop-ivcanon.c: Fix documentation.
2341 * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
2342 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
2343 (infer_loop_bounds_from_undefined): New.
2344 (estimate_numbers_of_iterations_loop): Use
2345 infer_loop_bounds_from_undefined.
2346 (used_in_pointer_arithmetic_p): New.
2347 (scev_probably_wraps_p): Pass an extra parameter. Call
2348 used_in_pointer_arithmetic_p. Check that AT_STMT is not null.
2349 (convert_step): Fix documentation.
2350 * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
2351 Use initial_condition_in_loop_num and evolution_part_in_loop_num
2352 instead of CHREC_LEFT and CHREC_RIGHT. Adjust the call to
2353 scev_probably_wraps_p.
2355 2005-08-13 Ulrich Weigand <uweigand@de.ibm.com>
2357 * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
2358 (s390_register_info): Ignore clobbered_regs information for fixed
2359 registers, and only fixed registers.
2360 (s390_init_frame_layout): Remove redundant call.
2362 2005-08-12 Gerald Pfeifer <gerald@pfeifer.com>
2364 * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
2365 description of -Wold-style-casts.
2367 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2368 Jakub Jelinek <jakub@redhat.com>
2370 * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2371 * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
2372 * config/s390/s390.c (print_operand): New output modifier 'G' added.
2373 (get_thread_pointer): Renamed to s390_get_thread_pointer.
2374 * config/s390/s390.md (stack_protect_set, stack_protect_test): If
2375 TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
2376 (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
2377 (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
2378 ("stack_protect_set", "stack_protect_test"): New expanders.
2379 ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
2380 "stack_protect_testdi"): New insn definitions.
2382 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2384 * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
2386 2005-08-12 Paul Brook <paul@codesourcery.com>
2388 * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
2390 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2392 * config/s390/predicates.md (setmem_operand): New predicate.
2393 (shift_count_operand): Accept ANDs with special constants as
2395 * config/s390/s390.c (print_shift_count_operand): Skip ANDs
2396 with special constants.
2397 * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
2398 shift_count_operand with setmem_operand.
2400 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2402 * config/s390/s390.c (s390_extract_part, s390_single_part):
2404 (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
2405 (s390_output_mi_thunk): Don't use lg on 31 bit.
2406 * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
2407 ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
2409 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2411 * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
2412 (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
2413 s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
2414 s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
2415 with one of the new macros.
2417 2005-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2419 * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
2420 Don't set save_return_addr_p.
2421 (s390_register_info): Make clobbered_regs not depending on
2424 2005-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
2426 * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
2427 (LINK_COMMAND_SPEC): Add space after %(link_ssp).
2429 2005-08-11 James E. Wilson <wilson@specifix.com>
2431 * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
2433 2005-08-11 Jakub Jelinek <jakub@redhat.com>
2435 * dwarf2out.c (add_location_or_const_value_attribute): Prefer
2436 locations gathered by var-tracking in single entry loc_list
2437 over loc_descriptor_from_tree.
2439 * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
2440 pass it down to loc_descriptor.
2441 (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
2442 (containing_function_has_frame_base): Move earlier in the file.
2443 (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
2444 instead of always assuming fbreg can't be used.
2446 2005-08-11 David Edelsohn <edelsohn@gnu.org>
2448 * config/rs6000/altivec.md: Change constraint "m" to "Z".
2449 * config/rs6000/predicates.md (indexed_or_indirect_operand):
2450 Accept address wrapped in AND for Altivec.
2451 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
2452 Strip AND wrapping offset address for Altivec.
2454 2005-08-11 Richard Henderson <rth@redhat.com>
2457 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
2458 before using TYPE_IS_SIZETYPE.
2460 2005-08-11 Richard Henderson <rth@redhat.com>
2463 * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
2464 insn types not present on ev4.
2465 (alphaev5_insn_pipe): Similarly.
2467 2005-08-11 Richard Earnshaw <richard.earnshaw@arm.com>
2470 * arm.c (arm_override_options): If the user has selected callee-super-
2471 interworking, then enable normal interworking.
2473 2005-08-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2475 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
2478 2005-08-11 Wu Zhou <woodzltc@cn.ibm.com>
2480 * doc/rtl.texi: Fix two typos.
2482 2005-08-11 Richard Guenther <rguenther@suse.de>
2485 * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
2486 cases where we call to/from functions returning void.
2488 2005-08-10 James A. Morrison <phython@gcc.gnu.org>
2491 * tree.c (build_pointer_type_for_mode): Robustify.
2493 2005-08-10 James E Wilson <wilson@specifix.com>
2495 * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
2496 (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
2498 * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
2501 2005-08-10 Eric Christopher <echristo@apple.com>
2503 * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
2504 * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
2507 2005-08-10 Andrew Pinski <pinskia@physics.uc.edu>
2510 * config/darwin.c (machopic_indirect_data_reference): Use a new register
2511 for the high part when generating dynamic-no-pic code.
2513 2005-08-10 H.J. Lu <hongjiu.lu@intel.com>
2515 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
2516 (x86_64-*-linux*): Likewise.
2518 * config/i386/crtfastmath.c: New file.
2519 * config/i386/t-crtfm: Likewise.
2521 * config/i386/linux.h (ENDFILE_SPEC): New.
2522 * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
2524 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
2527 2005-08-10 Dorit Nuzman <dorit@il.ibm.com>
2529 * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
2530 (vec_shl, vec_shr): Document new operations.
2531 * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
2533 2005-08-10 David Edelsohn <edelsohn@gnu.org>
2535 * config/rs6000/predicates.md (indexed_or_indirect_address): New.
2536 * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
2537 change predicate to indexed_or_indirect_address.
2539 2005-08-10 Richard Sandiford <richard@codesourcery.com>
2541 * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
2542 * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
2543 __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
2544 and __aeabi_uwrite8.
2545 * config/arm/unaligned-funcs.c: New file.
2546 * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
2548 2005-08-09 Paolo Bonzini <bonzini@gnu.org>
2550 * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
2552 * cfglayout.c (pass_insn_locators_initialize): Add dump.
2553 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
2555 * except.c (pass_convert_to_eh_region_ranges): Add dump.
2556 * final.c (pass_shorten_branches): Add dump.
2557 * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
2558 (pass_life): Rename dump.
2559 (rest_of_handle_flow2): Remove initial verify_flow_info.
2560 * function.c (pass_instantiate_virtual_regs): Add dump.
2561 * integrate.c (pass_initial_value_sets): Add dump.
2562 * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
2563 * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
2564 (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
2565 pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
2566 (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
2567 gate_rtl_unrool_and_peel_loops): New.
2568 (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
2569 rtl_doloop): Do not look at flags.
2570 * mode-switching.c (pass_mode_switching): Add dump.
2571 * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
2572 pass_split_before_regstack): Add dump.
2573 * regmove.c (pass_stack_adjustments): Add dump.
2574 * tree-optimize.c (pass_fixup_cfg): Add dump.
2576 2005-08-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2579 * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
2580 deciding which instruction sequence to use.
2582 2005-08-09 Dorit Nuzman <dorit@il.ibm.com>
2584 * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
2585 BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
2587 2005-08-09 Richard Guenther <rguenther@suse.de>
2589 * c-common.c (builtin_function_2): Remove.
2590 (def_builtin_1): New function.
2591 (c_common_nodes_and_builtins): Use def_builtin_1 to
2592 build builtin functions.
2594 2005-08-09 Jie Zhang <jie.zhang@analog.com>
2596 * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
2597 * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2598 * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
2601 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
2603 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
2604 fold_binary instead of fold_build2 since we don't care about the
2606 (loop_niter_by_eval): Likewise.
2607 (compare_trees): Likewise.
2608 (proved_non_wrapping_p): Likewise.
2610 2005-08-09 James A. Morrison <phython@gcc.gnu.org>
2614 * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
2615 if the if is really empty.
2617 2005-08-09 Steven Bosscher <stevenb@suse.de>
2619 PR tree-optimization/23234
2620 * tree-ssa-math-opts.c (place_reciprocal): New enum.
2621 (execute_cse_reciprocals_1): Replace the 'phi' argument with an
2622 argument of the new enum.
2623 (execute_cse_reciprocals): Add reciprocals for function arguments
2624 on the unique successor edge of the entry block. Update other calls
2625 to execute_cse_reciprocals_1.
2627 2005-08-08 Richard Henderson <rth@redhat.com>
2630 * gimplify.c (gimplify_one_sizepos): Preserve the original type.
2632 2005-08-08 Bob Wilson <bob.wilson@acm.org>
2634 * expr.c (write_complex_part): Return after handling MEM.
2636 2005-08-08 Josh Conner <jconner@apple.com>
2638 PR rtl-optimization/23241
2639 * combine.c (simplify_comparison): Fix error in determining
2640 whether to lift a subreg from comparison.
2642 2005-08-08 David Edelsohn <edelsohn@gnu.org>
2645 * config/rs6000/altivec.md (vec_init<mode>): New.
2646 (vec_set<mode>): New.
2647 (vec_extract<mode>): New.
2648 * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
2649 (rs6000_expand_vector_set): New.
2650 (rs6000_expand_vector_extract): New.
2651 (rs6000_legitimate_offset_address_p): Offset addresses are valid
2652 for Altivec modes before reload.
2653 (altivec_expand_vec_init_builtin): New.
2654 (get_element_number): New.
2655 (altivec_expand_vec_set_builtin): New.
2656 (altivec_expand_vec_ext_builtin): New.
2657 (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
2659 (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
2661 * config/rs6000/rs6000.h (rs6000_builtins): Add
2662 ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
2663 ALTIVEC_BUILTIN_VEC_EXT_<mode>.
2664 * config/rs6000/rs6000-protos.h: Declare new functions.
2666 2005-08-08 Jan Hubicka <jh@suse.cz>
2668 * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
2669 (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
2670 * i386.md (movdi*): Use pic_32bit_operand.
2671 * predicates.md (pic_32bit_operand): New.
2673 2005-08-08 Nathan Sidwell <nathan@codesourcery.com>
2676 * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
2678 2005-08-07 James A. Morrison <phython@gcc.gnu.org>
2680 * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
2681 (test_for_singularity): Use fold_build2.
2683 2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2685 * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
2687 2005-08-07 Danny Smith <dannysmith@users.sourceforge.net>
2689 * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
2690 (COMMON_ASM_OP) Define.
2691 * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
2692 (ix86_encode_section_info): Likewise.
2693 (TARGET_ENCODE_SECTION_INFO): Conditionally define as
2694 SUBTARGET_ENCODE_SECTION_INFO.
2696 2005-08-06 Richard Henderson <rth@redhat.com>
2699 * tree-nested.c (convert_local_reference): Save and restore val_only
2700 around component_ref and friends. Clear walk_subtrees by default.
2702 2005-08-06 Peter O'Gorman <peter@pogma.com>
2705 * gcc.c (process_command): Check the argument to -b has a dash.
2706 * doc/invoke.texi: Update -b and -V docs.
2708 2005-08-06 James E Wilson <wilson@specifix.com>
2710 * config/mips/cross64.h, config/mips/t-cross64: Delete.
2712 2005-08-06 Michael Matz <matz@suse.de>
2714 * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
2715 member only if only one insn is associated with the value.
2717 2005-08-06 Nick Clifton <nickc@redhat.com>
2719 * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
2721 (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
2722 * config/stormy16/stormy16.c (xstormy16_below100_symbol):
2723 Check symbol flags instead of symbol name mangling.
2724 (xstormy16_asm_output_aligned_common): Likewise. Also
2725 simplify code since the bss100_section cass is the only case
2726 where the below100 code will be triggered.
2727 (xstormy16_encode_section_info): Encode below100 attribute
2728 using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
2730 (xstormy16_strip_name_encoding): Delete - this function is no
2732 (TARGET_STRIP_NAME_ENCODING): Undefine.
2733 * config/stormy16/stormy16-protos.h: Delete prototype for
2734 xstormy16_strip_name_encoding.
2736 2005-08-06 Kazu Hirata <kazu@codesourcery.com>
2738 * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
2739 config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
2740 tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
2741 config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
2742 config/alpha/predicates.md, config/arc/arc.h,
2743 config/arm/arm.h, config/arm/ieee754-df.S,
2744 config/arm/ieee754-sf.S, config/bfin/bfin.c,
2745 config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
2746 config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
2747 config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
2748 config/m68hc11/m68hc11.h, config/mips/mips.c,
2749 config/mips/mips.h, config/mips/openbsd.h,
2750 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
2751 config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
2752 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2753 config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
2754 config/sparc/linux.h, config/sparc/linux64.h,
2755 config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
2756 doc/extend.texi, doc/gcov.texi, doc/install.texi,
2757 doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
2758 typos. Follow spelling conventions.
2760 2005-08-06 Joseph S. Myers <joseph@codesourcery.com>
2763 * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
2764 Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
2765 specially. Check for side effects only for COND_EXPR.
2766 * c-typeck.c (c_finish_stmt_expr): Mark statement expression
2767 return with TREE_NO_WARNING.
2769 2005-08-06 Richard Sandiford <richard@codesourcery.com>
2771 PR rtl-optimization/23233
2772 * loop.c (combine_movables): Require the modes to be the same.
2773 (move_movables): Remove handling of cases where the replacement
2774 had a different mode to the original.
2776 2005-08-05 James A. Morrison <phython@gcc.gnu.org>
2778 PR tree-optimization/23128
2779 * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
2780 subtraction wrap, and set TREE_OVERFLOW if they do.
2782 2005-08-05 Richard Henderson <rth@redhat.com>
2785 * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
2786 FORCED_LABEL labels.
2788 2005-08-05 J"orn Rennecke <joern.rennecke@st.com>
2791 * reload.c (find_reloads_subreg_address): Pass down TYPE
2792 unchanged. Change all callers except find_reloads_toplev.
2794 2005-08-05 Michael Matz <matz@suse.de>
2796 * genattrtab.c (current_alternative_string): Remove.
2797 (SIMPLIFY_ALTERNATIVE): Ditto.
2798 (attr_alt_bit_p): Ditto.
2799 (alternative_name): Make const char *.
2800 (evaluate_eq_attr): Remove use of above things.
2801 (simplify_test_exp): Ditto.
2802 (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
2803 (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
2805 2005-08-04 James E Wilson <wilson@specifix.com>
2807 * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
2808 config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
2809 config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
2810 config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
2811 (LINK_SPEC): Delete useless %{Wl,*:%*} item.
2813 2005-08-04 Richard Henderson <rth@redhat.com>
2816 * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
2817 * params.h (SRA_MAX_STRUCTURE_COUNT): New.
2818 * tree-sra.c (decide_block_copy): Use it. Disable element copy
2819 if we'd have to instantiate too many members.
2821 2005-08-04 Richard Henderson <rth@redhat.com>
2824 * tree-outof-ssa.c (coalesce_asm_operands): New.
2825 (coalesce_ssa_name): Use it. Split out ...
2826 (coalesce_phi_operands, coalesce_result_decls): ... these.
2828 2005-08-04 Paul Brook <paul@codesourcery.com>
2830 * read-rtl.c (read_quoted_string): Break if EOF.
2832 2005-08-04 Andrew Pinski <pinskia@physics.uc.edu>
2834 * tree.h (fold_build1): Change to macro and call fold_build1_stat.
2835 (fold_build2): Likewise.
2836 (fold_build3): Likewise.
2837 (fold_build1_stat): New function prototype.
2838 (fold_build2_stat): Likewise.
2839 (fold_build3_stat): Likewise.
2840 * fold-const.c (fold_build1): Rename to ..
2841 (fold_build1_stat): this. Add MEM_STAT_DECL. Pass the mem stats
2842 through to build1_stat.
2843 (fold_build2): Rename to ..
2844 (fold_build2_stat): this. Add MEM_STAT_DECL. Pass the mem stats
2845 through to build2_stat.
2846 (fold_build3): Rename to ..
2847 (fold_build3_stat): this. Add MEM_STAT_DECL. Pass the mem stats
2848 through to build3_stat.
2850 2005-08-04 David Edelsohn <edelsohn@gnu.org>
2851 Ian Lance Taylor <ian@airs.com>
2853 * function.c (assign_stack_local_1): Do not correct stack slot
2854 address if allocation size is smaller than mode size.
2856 2005-08-04 Diego Novillo <dnovillo@redhat.com>
2859 * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
2860 (tree_merge_blocks): Propagate anything allowed by
2862 Clarify documentation.
2863 * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
2864 SSA form, schedule an update if necessary.
2866 2005-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2868 * doc/install.texi (Binaries): Remove broken link to
2869 Sinix/Reliant Unix binaries.
2871 2005-08-03 Richard Henderson <rth@redhat.com>
2874 * function.c (stack_protect_epilogue): Export.
2875 * tree.h (stack_protect_epilogue): Declare.
2876 * calls.c (expand_call): Call it.
2878 2005-08-03 Eric Christopher <echristo@apple.com>
2880 * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
2881 * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
2884 2005-08-04 Jan Hubicka <jh@suse.cz>
2886 * profile.c (branch_prob): Split edges with goto locus on them
2887 to get proper line counts.
2888 * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
2890 2005-08-03 Paul Brook <paul@codesourcery.com>
2892 * function.c (assign_parms): Round current_function_args_size
2893 to PARM_BOUNDARY, not STACK_BOUNDARY.
2895 2005-08-03 Geoffrey Keating <geoffk@apple.com>
2897 * config/i386/i386.c (x86_elf_aligned_common)
2898 (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
2900 2005-08-03 Zdenek Dvorak <dvorakz@suse.cz>
2902 PR tree-optimization/23157
2903 * tree-scalar-evolution.c (scev_const_prop): Unshare trees
2904 before emitting them.
2906 2005-08-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2908 PR tree-optimization/19899
2909 * Makefile.in (tree-scalar-evolution.o): Add real.h.
2910 * tree-scalar-evolution.c: Include real.h.
2911 (add_to_evolution): Build constant -1 of correct type.
2913 2005-08-03 Jan Hubicka <jh@suse.cz>
2915 * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
2916 * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
2917 profile updating for complette unrolling.
2918 * loop-unroll.c (peel_loop_completely): Use it.
2919 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2920 (tree_unroll_loops_completely): Disable code growing unrolling of cold
2923 2005-08-03 Paul Brook <paul@codesourcery.com>
2925 * combine.c (can_change_dest_mode): New function.
2926 (try_combine, simplify_set): Use it.
2928 2005-08-03 Eric Botcazou <ebotcazou@adacore.com>
2930 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
2933 2005-08-03 Gerald Pfeifer <gerald@pfeifer.com>
2935 * doc/install.texi (Specific): Adjust link to openavr.org.
2936 (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
2937 (Binaries): Adjust HP-UX Porting Center link.
2938 (Binaries): Adjust Free Software Foundation ordering link.
2940 2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
2942 * convert.c (convert_to_integer): Use fold_build1 instead of
2943 build1 when converting an integer to an integer.
2945 2005-08-02 Richard Henderson <rth@redhat.com>
2947 * combine.c (combine_instructions): Don't use reg_equal/equiv
2948 results if the mode doesn't match.
2950 2005-08-02 Mark Mitchell <mark@codesourcery.com>
2952 * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
2953 * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
2955 2005-08-02 Richard Henderson <rth@redhat.com>
2958 * explow.c (memory_address): Remove special-case for
2959 virtual_stack_vars_rtx and virtual_incoming_args_rtx.
2961 2005-08-02 Diego Novillo <dnovillo@redhat.com>
2964 * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
2965 number of calls to cleanup_tree_cfg_1.
2967 2005-08-02 Martin Reinecke <martin@mpa-garching.mpg.de>
2969 * doc/invoke.texi: document file extensions .F90 and .F95
2971 2005-08-02 Richard Guenther <rguenther@suse.de>
2973 * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
2974 positive if its first argument is positive.
2976 2005-08-02 Richard Guenther <rguenther@suse.de>
2978 PR tree-optimization/23177
2979 * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
2982 2005-08-02 James A. Morrison <phython@gcc.gnu.org>
2984 PR tree-optimization/23129
2985 * tree-vrp.c (extract_range_from_binary_expr): Set value range to
2986 varying for divisions with anti-ranges.
2988 2005-08-02 Jan Hubicka <jh@suse.cz>
2990 * tree-ssa-dom.c (thread_across_edge): Remove updating here.
2991 * tree-ssa-threadupdate.c (thread_block): Add it here.
2993 2005-08-01 James E Wilson <wilson@specifix.com>
2995 * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
2996 TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
2997 * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
2999 * config/mips/predicates.md (const_call_insn_operand): Add check for
3000 SYMBOL_REF_LONG_CALL_P.
3001 * doc/extend.texi (long_call): Document the new attribute.
3003 2005-08-01 Ian Lance Taylor <ian@airs.com>
3004 Richard Henderson <rth@redhat.com>
3006 * Makefile.in (RTL_BASE_H): Add real.h.
3007 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
3009 * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
3011 * rtl.c (rtl_check_failed_code_mode): New.
3012 * rtl.h (struct rtx_def): Add u.rv.
3013 (XCMWINT, XCNMPRV): New.
3014 (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
3015 (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
3017 2005-08-01 Richard Henderson <rth@redhat.com>
3019 * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
3020 with auto-inc codes.
3022 * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
3024 2005-08-01 Jan Hubicka <jh@suse.cz>
3026 * i386-protos.h (asm_preferred_eh_data_format): Declare.
3027 * i386.c: Include dwarf2.h
3028 (asm_preferred_eh_data_format): New.
3029 * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
3031 2005-08-01 Ian Lance Taylor <ian@airs.com>
3033 * config/host-linux.c (linux_gt_pch_get_address): Add new name
3034 randomize_va_space for virtual address randomization control.
3036 2005-08-01 Steven Bosscher <stevenb@suse.de>
3038 * common.opt (flag_ipa_cp): Put in right place to maintain
3041 2005-08-01 Jan Hubicka <jh@suse.cz>
3043 * profile.c (compute_value_histograms): Fix thinko.
3044 * value-prof.c: Include toplev.h
3045 (check_counter): New function.
3046 (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
3047 tree_mod_subtract_transform): Add sanity check.
3049 2005-08-01 Richard Guenther <rguenther@suse.de>
3051 PR tree-optimization/23133
3052 * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
3053 current functions parameter decls to find defs to cse
3056 2005-08-01 Richard Guenther <rguenther@suse.de>
3058 PR tree-optimization/23109
3059 * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
3060 If trapping math is in effect, use post-dominator information
3061 to check if we'd in any case reach a trapping point before
3062 doing the reciprocal insertion.
3063 (execute_cse_reciprocals): Compute post-dominators, if necessary.
3064 * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
3065 expressions are invariant only if trapping math is not in effect.
3067 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
3069 * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
3070 cgraph_function_versioning): New declarations.
3071 * cgraphunit.c: Add include to ipa-prop.h.
3072 (update_call_expr, cgraph_copy_node_for_versioning,
3073 cgraph_function_versioning): New functions.
3074 * integrate.c (copy_decl_for_inlining): Remove.
3075 * ipa-prop.h (ipa_replace_map): New struct.
3076 (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
3077 * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
3078 ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
3079 ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
3080 ipcp_iterate_stage, ipcp_method_scale_print,
3081 ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
3082 ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
3083 ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
3084 ipcp_update_bb_counts, ipcp_update_profiling,
3085 ipcp_update_edges_counts): New functions.
3086 (ipcp_method_cval_init): Remove restriction regarding local methods.
3087 (ipcp_init_stage): Add ipcp_method_compute_scale.
3088 (ipcp_insert_stage): Add versioning.
3089 (ipcp_structures_print): Add ipcp_method_scale_print.
3090 (ipcp_driver): Dump profiling info.
3091 * Makefile.in: Remove integrate.h dependency from tree-inline.o.
3092 Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
3093 * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
3094 (struct inline_data): Add versioning_p, ipa_info, new fields.
3095 (remap_decl, mark_local_for_remap_r, setup_one_parameter,
3096 declare_return_variable): Replace calls to copy_decl_for_inlining with
3098 (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
3100 (copy_decl_for_dup): Rename from copy_decl_for_inlining.
3101 Add argument VERSIONING.
3102 (copy_arguments_for_versioning, copy_static_chain,
3103 function_versionable_p, tree_versionable_function_p,
3104 tree_function_versioning, replace_ref_tree): New functions.
3105 * tree-inline.h: Include varray.h.
3106 (tree_versionable_function_p, tree_function_versioning,
3107 tree copy_decl_for_dup): New declarations.
3109 2005-08-01 Razya Ladelsky <razya@il.ibm.com>
3111 * ipa-cp.c: New file. Contains IPCP specific functionality.
3112 * ipa-prop.h: New file. Contains structures/definitions that can be
3113 used by several interprocedural data flow optimizations (and also IPCP).
3114 * ipa-prop.c: New file.
3115 * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
3116 * common.opt: Add ipa-cp flag.
3117 * timevar.def: Add IPCP optimization.
3118 * tree-optimize.c (init_tree_optimization_passes): Schedule
3120 * tree-pass.h (pass_ipa_cp): Declare.
3122 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
3124 * dwarf2out.c, fold-const.c, ipa-type-escape.c,
3125 loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
3126 tree-sra.c, config/arm/arm.c, config/crx/crx.c,
3127 config/i386/i386.c, config/mips/mips.h,
3128 config/rs6000/rs6000.h, config/sh/sh.c,
3129 config/stormy16/stormy16.c: Fix comment typos.
3131 2005-08-01 Joseph S. Myers <joseph@codesourcery.com>
3134 * c-typeck.c (build_binary_op): Use common_type wrapper on
3136 (common_type): Update comment.
3138 2005-07-31 Steven Bosscher <stevenb@suse.de>
3141 * common.opt (flag_gcse_after_reload): Don't initialize to 2.
3142 (flag_rerun_cse_after_loop): Initialize this to 2 instead.
3143 * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
3145 2005-07-31 Jan Hubicka <jh@suse.cz>
3147 * pretty-print.h (pp_widest_integer): New macro.
3148 * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
3151 2005-07-31 Jan Hubicka <jh@suse.cz>
3153 * output.h (enum section_category): Export from varasm.c
3154 (categorize_decl_for_section): Likewise.
3155 * varasm.c (enum section_category): Kill.
3156 (categorize_decl_for_section): Make global.
3157 * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
3159 * i386.c (ix86_section_threshold): New static variable.
3160 (ix86_in_large_data_p, ix86_encode_section_info,
3161 x86_64_elf_unique_section,
3162 x86_64_elf_select_section): New functions.
3163 (TARGET_ENCODE_SECTION_INFO): Define
3164 (override_options): Enable medium model for PIC.
3165 (ix86_expand_prologue): Expand gen_set_got_rex64.
3166 (legitimate_constant_p): Handle new UNSPECs.
3167 (legitimate_pic_address_disp_p): Likewise.
3168 (legitimize_pic_address): Lower MEDIUM model addressing.
3169 * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
3170 (enum cmodel): Add MEDIUM_PIC.
3171 (SYMBOL_REF_FAR_ADDR_P): New macro.
3172 (SYMBOL_FLAG_FAR_ADDR): New flag.
3173 * i386.md (movdi): Support medium model.
3174 (set_got_rex64): New pattern.
3175 * i386.opt (mlarge-data-threshold): New flag.
3176 * predicates.md (zext_operand/sext_operand): Deal with medium model.
3177 * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
3178 (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
3179 TARGET_ASM_UNIQUE_SECTION): New.
3181 * invoke.texi (-mlarge_data_threshold): Document
3183 2005-07-31 Jan Hubicka <jh@suse.cz>
3185 * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
3186 (coalesce_vars): Likewise.
3187 * tree-ssa-live.c (coalesce_cost): New.
3188 (build_tree_conflict_graph): Use coalesce_cost.
3189 * tree-ssa-live.h (coalesce_cost): Declare.
3191 2005-07-30 Richard Earnshaw <richard.earnshaw@arm.com>
3193 * arm.md (all peepholes for post-increment operations): Delete.
3194 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
3195 (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
3196 (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
3197 (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
3198 (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
3200 2005-07-30 James A. Morrison <phython@gcc.gnu.org>
3202 * fold-const.c (tree_expr_nonnegative_p): Always return true for
3205 2005-07-29 Wolfgang Bangerth <bangerth@dealii.org>
3208 * doc/invoke.texi: Document -rdynamic.
3210 2005-07-30 Joseph S. Myers <joseph@codesourcery.com>
3213 * c-parser.c (c_parser_parms_list_declarator): Call
3214 mark_forward_parm_decls.
3215 * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
3216 decls with visibility structure.
3218 2005-07-30 Paul Brook <paul@codesourcery.com>
3220 * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
3222 2005-07-30 Paul Brook <paul@codesourcery.com>
3224 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
3226 * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
3228 * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
3230 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3233 * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
3234 nested function declarators.
3235 (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
3236 (grokparms): Call warn_if_shadowing for parameters used within the
3238 (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
3239 not used within the parameter list.
3240 (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
3242 2005-07-30 Jan Hubicka <jh@suse.cz>
3244 * expr.c (expand_expr_real_1): Do not load mem targets into register.
3245 * i386.c (ix86_fixup_binary_operands): Likewise.
3246 (ix86_expand_unary_operator): Likewise.
3247 (ix86_expand_fp_absneg_operator): Likewise.
3248 * optabs.c (expand_vec_cond_expr): Validate dest.
3250 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3253 * real.c (real_from_string): Also set last bit if there is a
3254 nonzero hex digit beyond GCC's internal precision after ".".
3256 2005-07-29 David Edelsohn <edelsohn@gnu.org>
3258 * config/rs6000/altivec.md: Convert UNSPEC numerical values to
3259 define_constants. Change duplicate values to unassigned numbers.
3260 Change UNSPEC_SUBS to UNSPEC_VSUBS.
3261 (*altivec_vspltsf): New.
3262 (altivec_vperm_v4sf): Delete.
3263 (altivec_vperm_<mode>): Use mode macro V.
3264 (altivec_vsldoi_<mode>): Convert to mode macro pattern.
3265 (altivec_predicate_v4sf): Delete.
3266 (altivec_predicate_<mode>): Use mode macro V.
3267 (*altivec_lvesfx): New.
3268 (*altivec_stvesfx): New.
3269 (vec_realign_load_v4sf): Delete.
3270 (vec_realign_load_<mode>): Use mode macro V.
3271 * config/rs6000/rs6000.c (generate_set_vrsave): Use
3274 2005-07-29 Mark Mitchell <mark@codesourcery.com>
3277 * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
3279 * configure: Regenerated.
3281 2005-07-29 Paul Brook <paul@codesourcery.com>
3283 * doc/install.texi: Add link to GFortran binaries wiki page.
3285 2005-07-29 David Ung <davidu@mips.com>
3287 * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
3288 (mips_rtx_cost_data): Add costs for 5kc and 5kf.
3289 * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
3290 * config/mips/mips.md (cpu): Add 5kf name.
3291 (includes): Includes 5k.md.
3292 * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
3293 * doc/invoke.texi (MIPS Options): Updated cpu name supported with
3296 2005-07-29 Diego Novillo <dnovillo@redhat.com>
3299 * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
3300 (cleanup_tree_cfg): ... here.
3301 Call cleanup_tree_cfg_1 until there are no more cleanups to
3304 2005-07-29 James A. Morrison <phython@gcc.gnu.org>
3306 * tree-vrp.c (compare_range_with_value): Return true or false
3307 for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
3308 EQ_EXPR respectively.
3310 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
3312 * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
3315 2005-07-29 Diego Novillo <dnovillo@redhat.com>
3317 * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
3318 (tree_ssa_dominator_optimize): Increment it.
3319 (dump_dominator_optimization_stats): Print it.
3321 2005-07-29 Richard Earnshaw <richard.earnshaw@arm.com>
3322 Steven Bosscher <stevenb@suse.de>
3324 PR rtl-optimization/23117
3325 * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
3326 when head == tail. Tidy comment.
3328 2005-07-28 Richard Henderson <rth@redhat.com>
3330 * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
3331 * cselib.c (rtx_equal_for_cselib_p): Likewise.
3332 * jump.c (rtx_renumbered_equal_p): Likewise.
3333 * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
3334 CONST_INT and CONST_DOUBLE.
3335 (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
3336 * reload.c (operands_match_p): Special case CONST_INT and
3337 CONST_DOUBLE; check mode earlier.
3339 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3342 * c-typeck.c (convert_for_assignment): Do not check
3343 DECL_IN_SYSTEM_HEADER on NULL fundecl.
3345 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3348 * c-typeck.c (composite_type): Prefer constant size arrays to
3351 2005-07-29 Joseph S. Myers <joseph@codesourcery.com>
3354 * real.c (real_from_string): Set last bit if there is a nonzero
3355 hex digit beyond GCC's internal precision.
3357 2005-07-28 Richard Henderson <rth@redhat.com>
3360 * cfgcleanup.c (try_forward_edges): Watch out for end of
3363 2005-07-28 James E Wilson <wilson@specifixinc.com>
3366 * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
3368 2005-07-28 Jan Hubicka <jh@suse.cz>
3370 * Makefile.in (rtl-profile.o): Kill all traces of it.
3371 * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
3372 * coverage.h (rtl_coverage_counter_ref): Kill.
3373 * opts.c (flag_speculative_prefetching_set): Kill.
3374 (flag_loop_optimize_set): New.
3375 (common_handle_option): Disable loop optimizer when profiling;
3376 do not handle speculative prefetching.
3377 * passes.c (init_optimization_passes): Replace pass_profiling combo
3378 by branch_prob pass.
3379 * profile.c (compute_value_histograms): Update for simplified value
3381 (rtl_register_profile_hooks): Kill.
3382 (pass_profiling): Kill.
3383 (rest_of_handle_branch_prob): Do not profile.
3384 * toplev.c (process_options): Remove speculative prefetching.
3385 * toplev.h (flag_tree_based_profiling): Kill.
3386 * tree-profile.c (prepare_instrumented_value,
3387 tree_gen_interval_profiler, tree_gen_pow2_profiler,
3388 tree_gen_one_value_profiler, do_tree_profiling): Update for
3389 simplified datastructures.
3390 * value-prof.c: Add comment that speculative prefetching was dropped;
3391 update rest of file for simplified datastructures.
3392 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
3393 rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
3394 find_mem_reference_1, find_mem_reference_2, find_mem_reference,
3395 rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
3396 rtl_mod_subtract, gen_speculative_prefetch,
3397 rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
3398 rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
3399 (gate_handle_value_profile_transformations,
3400 rest_of_handle_value_profile_transformations,
3401 pass_value_profile_transformations): Kill.
3402 * value-prof.h (histogram_value_t): Remove IL based unions.
3403 (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
3404 rtl_profile_hooks): Remove hooks.
3406 * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
3408 * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
3409 (cgraph_clone_node): Likewise.
3410 * cgraph.h (cgraph_clone_edge): Update prototype.
3411 (cgraph_clone_node): Likewise.
3412 * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
3414 (lookup_recursive_calls): Consider profile.
3415 (cgraph_decide_recursive_inlining): Fix updating; use new
3416 probability argument; use profile.
3417 * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
3418 * tree-inline.c (copy_bb): Update clal of clone_edge.
3419 * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
3421 * invoke.texi (min-inline-recursive-probability): Document.
3423 2005-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3425 * doc/install.texi (Configuration): Update Valgrind homepage.
3427 2005-07-28 Richard Henderson <rth@redhat.com>
3430 * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
3431 labels we want to delete.
3432 (cfg_layout_merge_blocks): Likewise.
3434 2005-07-28 Richard Henderson <rth@redhat.com>
3437 * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
3438 when expanding to nothing.
3440 2005-07-28 Josh Conner <jconner@apple.com>
3442 * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
3443 (cgraph_decide_inlining_of_small_functions): Likewise.
3445 2005-07-28 Josh Conner <jconner@apple.com>
3447 * ipa-inline.c (cgraph_edge_badness): Update comments. Invert shift
3448 direction of badness if negative.
3449 (cgraph_default_inline_p): Add reason to parameters, and assign it
3451 (cgraph_decide_inlining_of_small_functions): New parameter in call
3452 to cgraph_default_inline_p.
3453 (cgraph_decide_inlining_incrementally): Likewise.
3454 * cgraphunit.c (decide_is_function_needed): Likewise.
3455 * cgraph.h (cgraph_default_inline_p): Likewise.
3457 2005-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3459 * builtins.c: Fix comment typo(s).
3460 * genautomata.c: Likewise.
3461 * gimplify.c: Likewise.
3462 * tree-dfa.c: Likewise.
3463 * tree-flow-inline.h: Likewise.
3464 * tree-into-ssa.c: Likewise.
3465 * tree-ssa-alias.c: Likewise.
3466 * tree-ssa-ccp.c: Likewise.
3467 * tree-ssa-copy.c: Likewise.
3468 * tree-ssa-dce.c: Likewise.
3469 * tree-ssa-dom.c: Likewise.
3470 * tree-ssa-operands.c: Likewise.
3471 * tree-tailcall.c: Likewise.
3472 * tree-vectorizer.c: Likewise.
3473 * tree-vrp.c: Likewise.
3476 2005-07-28 Jeff Law <law@redhat.com>
3478 * tree-vrp.c (test_for_singularity): Extracted from ...
3479 (simplify_cond_using_ranges): Attempt to simplify a relational
3480 test to NE_EXPR. Dump information when a COND_EXPR is simplified.
3482 2005-07-28 Dorit Nuzman <dorit@il.ibm.com>
3484 PR tree-optimization/22506
3485 * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
3486 phis whose argument is constant.
3488 2005-07-28 J"orn Rennecke <joern.rennecke@st.com>
3490 PR rtl-optimization/18992
3491 Back out this patch:
3492 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3493 PR optimization/12142
3494 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
3495 uses of the register in the SET_SRC. Remove unnecessary argument.
3497 Replace it with this:
3498 * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
3499 if flag_non_call_exceptions is set and the insn may trap, pass
3500 pc_rtx as dest for recursion.
3501 In SET_SRC part of SET case, if dest is already set, pass it down
3504 2005-07-28 Jan Hubicka <jh@suse.cz>
3506 * cfg.c (update_bb_profile_for_threading): Use RDIV.
3507 (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
3508 (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
3510 * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
3511 profile when available.
3513 2005-07-28 Jan Beulich <jbeulich@novell.com>
3515 * config/ia64/ia64.c (ia64_load_pair_ok): New.
3516 (ia64_print_operand): Describe and handle 'X'.
3517 (ia64_register_move_cost): Also handle FP_REGS.
3518 (ia64_preferred_reload_class): Likewise.
3519 (ia64_secondary_reload_class): Likewise.
3520 (ia64_dependencies_evaluation_hook): New local variable c. Initialize
3521 it. Also check for ITANIUM_CLASS_FLDP.
3522 * config/ia64/ia64.h (FP_REGNO_P): New.
3523 (HARD_REGNO_MODE_OK): Remove explusion of TImode.
3524 (reg_class): Add FP_REGS.
3525 (REG_CLASS_NAMES): Adjust for it.
3526 (REG_CLASS_CONTENTS): Likewise.
3527 (REGNO_REG_CLASS): Use FP_REGS where appropriate.
3528 (REG_CLASS_FROM_LETTER): Handle 'x'.
3529 (CLASS_MAX_NREGS): Handle FP_REGS.
3530 (MEMORY_MOVE_COST): Likewise.
3531 * config/ia64/ia64.md (itanium_class): Add fldp.
3532 (type): Handle fldp.
3533 (movti_internal): More allowable operand combinations. Use ldfp8 when
3534 splitting unnecessary. Remove predicable attribute. Adjust
3535 itanium_class attribute.
3536 (smuldi3_highpart): Remove outdated comment.
3537 (mulditi3, umulditi3, rotlti3): New expanders.
3538 (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
3539 (absti2): Disabled new insn for future reference.
3540 Respective new splitters.
3541 * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
3542 * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
3543 * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
3545 2005-07-25 James A. Morrison <phython@gcc.gnu.org>
3547 PR rtl-optimization/23047
3548 * simplify-rtx.c (simplify_const_relational_operation): Respect
3549 flag_wrapv for comparisons with ABS.
3551 2005-07-27 James A. Morrison <phython@gcc.gnu.org>
3553 PR tree-optimization/22493
3554 * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
3555 VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
3557 2005-07-27 Aldy Hernandez <aldyh@redhat.com>
3559 * config/frv/frv.opt (moptimize-membar): New.
3561 * doc/invoke.texi: Document -moptimize-membar and its inverse.
3563 * config/frv/frv.h: Remove machine_function definition.
3565 * config/frv/frv.c (struct frv_io): New.
3566 (struct machine_function): Moved from frv.h. Add has_membar_p.
3567 (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
3568 (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
3569 (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
3570 (frv_optimize_membar_global, frv_optimize_membar): New functions.
3571 (frv_reorg): Call frv_optimize_membar when appropriate.
3572 (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
3573 (frv_expand_builtin): Adjust calls accordingly.
3574 (frv_io_address_cookie): New function.
3575 (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
3576 load or store rather than a special insn. Add ccnstant address and
3577 io-type operands to the membar.
3578 (frv_ifcvt_modify_tests): Unsign regno.
3579 (frv_ifcvt_modify_tests): Same.
3581 * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}. Change
3582 UNSPEC_OPTIONAL_MEMBAR constant.
3583 (builtin_read_<mode>): Delete.
3584 (builtin_write_<mode>): Delete.
3585 ("optional_membar_<mode>"): Add operand.
3587 * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
3588 * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
3589 * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
3590 * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
3591 * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
3592 * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
3593 * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
3594 * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
3595 * testsuite/gcc.target/frv/all-read-write-1.c: New.
3597 2005-07-28 Kaz Kojima <kkojima@gcc.gnu.org>
3599 * df.c (df_uses_record): Handle SCRATCH.
3601 2005-07-28 Steven Bosscher <stevenb@suse.de>
3604 * passes.c (rest_of_decl_compilation): If decl is a type and
3605 we have encountered errors, don't emit debug information.
3607 2005-07-27 Kenneth Zadeck <zadeck@naturalbridge.com>
3609 * params.def: Fixed comment.
3611 2005-07-27 Bjoern Haase <bjoern.m.haase@web.de>
3614 * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
3615 (TARGET_ASM_UNALIGNED_HI_OP): Add.
3616 (TARGET_ASM_UNALIGNED_SI_OP): Add.
3618 2005-07-27 Steven Bosscher <stevenb@suse.de>
3621 * varasm.c (assemble_start_function): Don't do anything that may
3622 require a CFG if the current function is a thunk.
3624 2005-07-25 Geoffrey Keating <geoffk@apple.com>
3626 * doc/install.texi (Prerequisites): Mention that perl is needed
3627 to do export control in libstdc++ targetting Darwin.
3629 2005-07-27 Steven Bosscher <stevenb@suse.de>
3631 PR rtl-optimization/17808
3632 * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
3633 (sched_insns_conditions_mutex_p): Split out from...
3634 (add_dependence): ...here. But don't call it from here.
3635 (add_dependence_list): Check sched_insns_conditions_mutex_p
3636 before calling add_dependence.
3637 (add_dependence_list_and_free): Likewise.
3638 (fixup_sched_groups): Likewise.
3639 (sched_analyze_1): Likewise.
3640 (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
3641 (sched_analyze): Likewise.
3642 (sched_analyze_insn): Likewise.
3643 * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3644 * sched-rgn.c (add_branch_dependences): Likewise. Also, add
3645 dependencies on all COND_EXEC insns to jumps ending basic blocks
3646 when doing intrablock scheduling.
3647 * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
3649 2005-07-27 Jeff Law <law@redhat.com>
3651 * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
3652 meeting a VR_ANTI_RANGE with a VR_RANGE. When intersecting
3653 equivalency sets, correctly handle the case were vr0 has an
3654 equivalency set, but vr1 does not.
3656 2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
3658 PR tree-optimization/23073
3659 * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
3660 vect_print_dump_info before fprintf.
3662 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3664 PR tree-optimize/22348
3665 * tree-ssa-loop-niter.c (number_of_iterations_cond):
3666 Fold the partial computation.
3668 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3670 PR tree-optimization/22325
3671 * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
3673 * tree-scalar-evolution.c (scev_const_prop): Add generic final
3675 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
3676 (force_var_cost): ... this function.
3677 (compute_phi_arg_on_exit): Export.
3679 2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
3681 PR tree-optimization/20773
3682 * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
3685 2005-07-27 Richard Guenther <rguenther@suse.de>
3687 * tree-ssa-structalias.c (push_fields_onto_fieldstack):
3688 Avoid pushing again if current struct contains only
3689 fields we decomposed.
3691 2005-07-27 Jan Hubicka <jh@suse.cz>
3693 PR tree-optimization/22574
3694 * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
3697 * tree-tailcall.c (decrease_profile): New function.
3698 (eliminate_tail_call): Use it.
3700 * cgraphunit.c (cgraph_function_and_variable_visibility): Set
3701 visibility flags correctly in whole program mode.
3703 2005-07-26 Steve Ellcey <sje@cup.hp.com>
3705 PR rtl-optimization/22472
3706 * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
3708 2005-07-26 Steven Bosscher <stevenb@suse.de>
3710 PR tree-optimization/22504
3711 * tree-complex.c (expand_complex_addition): Use 'code' instead
3712 of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
3714 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
3716 * config.gcc (cpu_type): Add frv case.
3717 (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
3718 (supported_defaults): Add fr550 case.
3720 2005-07-26 Diego Novillo <dnovillo@redhat.com>
3723 * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
3724 whether a pointer of type T * may point to objects of type T *.
3726 2005-07-26 DJ Delorie <dj@redhat.com>
3728 * configure: Regenerate.
3730 2005-07-26 Dale Johannesen <dalej@apple.com>
3732 * postreload-gcse.c (alloc_mem): Start CUID numbering at 1.
3734 2005-07-26 Mark Mitchell <mark@codesourcery.com>
3736 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
3737 Clarify use of "build" in name.
3739 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
3741 * doc/extend.texi (Raw read/write Functions): New section.
3742 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
3743 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
3744 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
3745 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
3746 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
3747 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
3748 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
3749 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
3750 * config/frv/frv.c: Add bdesc_loads global.
3751 Add bdesc_stores global.
3752 (frv_init_builtins): Add support for __builtin_{read/write}*.
3753 (frv_volatile_memref): New.
3754 (frv_expand_load_builtin): New.
3755 (frv_expand_store_builtin): New.
3756 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
3757 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
3758 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
3759 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
3760 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
3761 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
3762 (builtin_read_<mode>): New.
3763 (builtin_write_<mode>): New.
3764 (builtin_write64): New.
3765 (optional_membar_<mode>): New.
3767 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
3769 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
3770 (rather than units) against HOST_BITS_PER_WIDE_INT.
3772 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
3774 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
3775 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
3776 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
3777 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
3780 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
3781 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
3782 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
3784 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
3786 2005-07-26 Richard Guenther <rguenther@suse.de>
3788 PR tree-optimization/22486
3789 * fold-const.c (fold_unary): Fold away useless component
3790 references of the form (T *)&T.x, if the address
3793 2005-07-25 James E Wilson <wilson@specifixinc.com>
3795 * dwarf2out.c (add_call_src_coords_attributes): New.
3796 (gen_inlined_subroutine_die): Call it.
3797 (maybe_emit_file, init_file_table): Add comments.
3798 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
3800 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
3801 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
3802 * tree.h (BLOCK_SOURCE_LOCATION): New.
3803 (struct tree_block): New field locus.
3805 2005-07-26 Andreas Schwab <schwab@suse.de>
3807 PR rtl-optimization/23043
3808 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
3809 when allocating a struct unoccr.
3811 2005-07-25 Richard Henderson <rth@redhat.com>
3814 * tree-complex.c (gate_no_optimization): True if errors.
3815 * Makefile.in (tree-complex.o): Update dependencies.
3817 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
3819 * config/frv/predicates.md (integer_register_operand): Use
3822 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
3825 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
3827 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
3829 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
3831 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
3832 types when flag_unsafe_math_optimizations is true.
3834 2005-07-25 Mark Mitchell <mark@codesourcery.com>
3836 * gcc.c (option_map): Add --sysroot.
3837 (process_command): Handle --sysroot.
3838 (display_help): Document it.
3839 * doc/cppopts.tex (-isysroot): Document.
3840 * doc/invoke.texi (--sysroot): Document.
3841 * doc/install.texi (--with-build-sysroot): Document.
3843 * Makefile.in (inhibit_libc): New variable.
3844 (INHIBIT_LIBC_CFLAGS): Likewise.
3845 (LIBGCC2_CFLAGS): Include
3846 $(INHIBIT_LIBC_CFLAGS).
3847 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
3848 ($(T)crtbegin.o): Do not use @inhibit_libc@.
3849 ($(T)crtend.o): Likewise.
3850 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
3851 ($(T)crtendS.o): Likewise.
3852 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
3853 ($(T)crtendT.o): Likewise.
3854 (stmp-fixinc): Do not complain about missing headers if
3856 * configure.ac (inhibit_libc): Set it to true/false.
3857 (--with-build-sysroot): New option. Use it to set
3859 * configure: Regenerated.
3861 2005-07-25 Manfred Hollstein <mh@suse.com>
3863 * calls.c (store_one_arg): Fix unsigned comparison warning.
3865 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
3868 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
3869 (ggc_print_statistics): Initialize variable before use.
3871 2005-07-25 Richard Guenther <rguenther@suse.de>
3873 * tree-dfa.c (mark_new_vars_to_rename): Protect against
3874 calling with a PHI_NODE argument.
3876 * tree-flow-inline.h (overlap_subvar): Protect against
3879 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
3881 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
3882 * configure: Regenerate.
3884 2005-07-25 Ira Rosen <irar@il.ibm.com>
3886 * expr.c (highest_pow2_factor): Make extern.
3887 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
3888 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
3889 record_array_differ_p, array_ptr_differ_p): Likewise.
3890 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
3891 additional cases. Call the above functions.
3892 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
3893 base_object_differ_p when there are two base objects. Otherwise, compare
3894 base address and offset. Call may_alias_p.
3895 (dump_data_reference): Use a correct field name.
3896 (analyze_array): Make static. Initialize new data-ref fields.
3897 (analyze_indirect_ref): New function.
3898 (init_data_ref): Initialize new data-ref fields.
3899 (strip_conversion): Moved from tree-vect-analyze.c.
3900 (analyze_offset_expr, get_ptr_offset, address_analysis,
3901 object_analysis): Likewise.
3902 (analyze_offset): New function.
3903 (create_data_ref): Likewise.
3904 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
3905 dimensions for ARRAY_REFs only.
3906 (build_classic_dist_vector): Make static.
3907 (access_functions_are_affine_or_constant_p): Call macro to get the
3908 address of access functions.
3909 (compute_all_dependences): Add new parameter
3910 compute_self_and_read_read_dependences. Compute self and read-read
3911 dependences if it is true.
3912 (find_data_references_in_loop): Call create_data_ref. Initialize new
3914 (compute_data_dependences_for_loop): Add new parameter
3915 compute_self_and_read_read_dependences. Remove parameter nb_loops,
3916 compute nb_loops. Call compute_all_dependences,
3917 build_classic_dist_vector and build_classic_dir_vector with correct
3919 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
3920 with correct parameters. Compare dimensions for ARRAY_REFs only.
3921 (free_data_refs): Call macro to free access functions.
3922 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
3923 fields from stmt_vinfo.
3924 (struct base_object_info): New structure.
3925 (struct data_reference): Move fields to base_object_info. Add fields
3926 first_location and object_info for above structures. Move fields from
3927 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
3928 aligned_to. Add macros to access the new fields.
3929 Update functions declarations.
3930 * tree-flow.h (is_aliased_with): Declare.
3931 * tree-loop-linear.c (linear_transform_loops): Call
3932 compute_data_dependences_for_loop with correct parameters.
3933 * tree-ssa-alias.c (is_aliased_with): New function.
3934 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
3935 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
3936 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
3937 vect_base_addr_differ_p, compute_subscript_distance and
3938 build_classic_dist_vector. Add printings. Check absolute value of
3940 (vect_analyze_data_ref_dependences): Go through ddrs instead of
3942 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
3943 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
3944 to bytes. Add printing.
3945 (vect_compute_data_refs_alignment): Go through loads and stores in one
3947 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
3948 vect_analyze_data_ref_access): Likewise.
3949 (vect_analyze_pointer_ref_access): Remove.
3950 (vect_address_analysis, vect_object_analysis): Likewise.
3951 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
3952 and analyze data-refs in the loop.
3953 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
3954 fields of data-ref instead of stmt. Add init to the offset from the
3956 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
3957 (vect_update_init_of_dr): Likewise.
3958 (vect_update_inits_of_drs): Go through loads and stores in one loop.
3959 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
3961 (new_loop_vec_info): Initialize new fields.
3962 (destroy_loop_vec_info): Free new fields.
3963 (vect_strip_conversion): Remove.
3964 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
3965 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
3966 datarefs. Add new field ddrs.
3967 Add macros for the new fields access.
3968 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
3969 base_aligned_p, misalignment, memtag, ptr_info and subvars.
3970 Remove their macros.
3971 * tree.h (highest_pow2_factor): Declare.
3973 2005-07-25 Jakub Jelinek <jakub@redhat.com>
3975 * calls.c (store_one_arg): Check for sibling call MEM arguments
3976 from already clobbered incoming argument area.
3978 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3980 * c-common.c (check_missing_format_attribute): New.
3981 * c-common.h (check_missing_format_attribute): Likewise.
3982 * c-typeck.c (convert_for_assignment): Use it.
3984 2005-07-24 Andreas Schwab <schwab@suse.de>
3986 * config/m68k/m68k.md ("extendqidi2"): When source is an address
3987 register use a word move. Correct operand of ext.w in 68000 code.
3989 2005-07-23 Mark Mitchell <mark@codesourcery.com>
3991 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
3992 variables as declarations, rather than definitions.
3994 2005-07-24 Ira Rosen <irar@il.ibm.com>
3996 PR tree-optimization/22526
3997 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
4000 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4002 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
4003 that C99 reserve for future use. Use it to define clog10,
4004 clog10f and clog10l.
4006 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4008 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
4009 * configure.ac: Check for -Wmissing-format-attribute.
4011 * configure: Regenerate.
4013 2005-07-23 Richard Henderson <rth@redhat.com>
4015 PR tree-optimization/22623
4016 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
4018 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
4021 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
4023 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4025 * Makefile.in (C_TREE_H): Update dependencies.
4026 * c-tree.h: Include toplev.h.
4027 * diagnostic.h (diagnostic_set_info): Add format attribute.
4028 * rtl-error.c (diagnostic_for_asm): Likewise.
4030 2005-07-23 Chao-ying Fu <fu@mips.com>
4032 * config/mips/mips-dsp.md: New file.
4033 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
4034 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
4036 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
4037 MIPS_BUILTIN_BPOSGE32.
4038 (mips_expand_builtin_direct): Add one parameter to indicate that
4039 builtin functions need to return a value.
4040 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
4042 (mips_regno_to_class): Add classes for 12 new DSP registers.
4043 (mips_subword): Change to check four HI registers.
4044 (mips_output_move): Output move to and from 6 new DSP accumulators.
4045 (override_options): Make sure -mdsp and -mips16 are not used together.
4046 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
4048 (mips_conditional_register_usage): Disable 6 new DSP accumulators
4050 (print_operand): Add 'q' for printing DSP accumulators.
4051 (mips_cannot_change_mode_class): Check ACC_REGS.
4052 (mips_secondary_reload_class): Check ACC_REGS.
4053 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
4054 (mips_register_move_cost): Check ACC_REGS.
4055 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
4056 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
4057 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
4058 (dsp_bdesc): New array.
4059 (bdesc_arrays): Add DSP builtin function table.
4060 (mips_prepare_builtin_arg): Check predicate again after
4062 (mips_expand_builtin): Add one more parameter to
4063 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
4064 MIPS_BUILTIN_BPOSGE32.
4065 (mips_init_builtins): Initialize new function types.
4066 (mips_expand_builtin_direct): Check if builtin functions need to
4067 return a value and pass operands properly.
4068 (mips_expand_builtin_bposge): New function.
4069 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
4070 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
4071 (FIRST_PSEUDO_REGISTER): Increase to 188.
4072 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
4073 Update for 12 new DSP registers.
4074 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
4075 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
4076 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
4077 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
4078 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
4079 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
4080 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
4081 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
4082 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
4083 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
4084 (REGISTER_NAMES): Add names for 12 new DSP registers.
4085 * config/mips/mips.md: Include mips-dsp.md.
4086 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4087 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4088 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4089 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4090 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4091 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4092 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4093 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4094 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4095 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4096 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4097 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4098 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4099 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4100 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4101 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4102 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4103 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4104 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4105 (UNSPEC_RDDSP): New constants.
4106 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
4107 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
4109 * config/mips/mips.opt (-mdsp): New option.
4110 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
4111 (reg_imm10_operand): New predicates.
4112 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
4113 * doc/invoke.texi (-mdsp): Document new option.
4115 2005-07-22 DJ Delorie <dj@redhat.com>
4117 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
4119 * tree-inline.c (inlinable_function_p): Likewise.
4121 2005-07-22 Mark Mitchell <mark@codesourcery.com>
4124 * toplev.c (check_global_declarations): Do not mark undefined
4125 variables as DECL_IGNORED_P.
4126 * varasm.c (first_global_object_name): GTY it.
4127 (weak_global_object_name): Likewise.
4128 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
4129 a string to go into {weak,first}_global_object_name.
4131 2005-07-22 DJ Delorie <dj@redhat.com>
4133 * c-format.c (check_function_format): Change warning control
4134 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
4136 2005-07-22 Diego Novillo <dnovillo@redhat.com>
4138 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
4139 &PTR->FLD a dereference of PTR.
4140 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
4141 a potential dereference of PTR.
4143 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
4145 PR rtl-optimization/20370
4146 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
4147 call allocate_reg_info if necessary.
4149 PR rtl-optimization/21848
4150 * calls.c (emit_library_call_value_1): For const functions, add
4151 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
4153 PR rtl-optimization/22445
4154 * cselib.c (target.h): Include.
4155 (rtx_equal_for_cselib_p): Allow commutative matches.
4156 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
4157 Remove MODE parameter. Changed all callers.
4159 PR rtl-optimization/22258
4160 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
4162 (try_combine): Use likely_spilled_retval_p.
4164 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
4166 * config.gcc: Add crx-elf support.
4168 * doc/contrib.texi: Mention crx.
4169 * doc/extend.texi: Document crx extensions.
4170 * doc/install.texi: Document crx install.
4171 * doc/invoke.texi: Document crx options.
4172 * doc/md.texi: Document crx constraints.
4174 * config/crx/crx-protos.h: New file.
4175 * config/crx/crx.c: New file.
4176 * config/crx/crx.h: New file.
4177 * config/crx/crx.md: New file.
4178 * config/crx/crx.opt: New file.
4179 * config/crx/t-crx: New file.
4181 2005-07-22 Manfred Hollstein <mh@suse.com>
4183 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
4185 (int_add_graph_edge): Likewise.
4186 (collapse_nodes): Likewise.
4187 (process_unification_queue): Likewise.
4189 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4190 Laurent GUERBY <laurent@guerby.net>
4192 PR tree-optimization/22336
4193 * function.c (record_block_change): Check for
4194 cfun->ib_boundaries_block.
4196 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
4198 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
4199 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
4201 2005-07-21 DJ Delorie <dj@redhat.com>
4203 * toplev.c (warn_deprecated_use): Add warning control to warning
4205 * c-typeck.c (parser_build_binary_op): Likewise.
4206 (c_finish_if_stmt): Likewise.
4207 * c-common.c (check_function_sentinel): Likewise.
4208 (check_nonnull_arg): Likewise.
4210 2005-07-21 Richard Henderson <rth@redhat.com>
4213 * tree-complex.c (complex_ssa_name_components): New.
4214 (cvc_lookup): Allow entry not found.
4215 (create_components): Remove.
4216 (create_one_component_var, get_component_var): New.
4217 (get_component_ssa_name, set_component_ssa_name): New.
4218 (extract_component): Use get_component_ssa_name.
4219 (update_complex_components): Use set_component_ssa_name.
4220 (update_complex_components_on_edge): Likewise.
4221 (update_phi_components): Create new PHI nodes directly, instead
4222 of adding insns to edges.
4223 (tree_lower_complex): Allocate and free complex_variable_components
4224 and complex_ssa_name_components here.
4226 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
4228 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
4229 revert to returning false.
4231 2005-07-21 Uros Bizjak <uros@kss-loka.si>
4234 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
4236 2005-07-21 Uros Bizjak <uros@kss-loka.si>
4239 * config/i386/i386.md (cmpxf): Change operand constraints
4240 to "nonmemory_operand".
4242 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
4244 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
4246 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
4249 * fold-const.c (fold_build1): Add checksum for the operands.
4250 (fold_build2): Likewise.
4251 (fold_build3): Likewise.
4253 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
4256 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
4258 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
4260 * common.opt (-fforward-propagate): Committed by mistake,
4263 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
4265 * reg-stack.c: Fix comment typo(s).
4266 * tree-ssa-operands.c: Likewise.
4267 * tree-vectorizer: Likewise.
4269 2005-07-21 Nick Clifton <nickc@redhat.com>
4271 * config/sh/symbian.c: Replace C++ style line comments with C
4272 style line comments.
4273 (symbian_add_attribute): Do not use a ? operator on the LHS of
4275 (sh_symbian_handle_dll_attribute): Change the type of the
4276 method vector to "VEC(tree,gc)*" and use vector accessor
4277 macros to walk over the elements.
4278 (symbian_export_vtable_and_rtti_p): Likewise.
4279 (symbian_class_needs_attribute_p): Likewise.
4281 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
4284 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
4285 initialize targetm.resolve_overloaded_builtin here.
4286 (altivec_expand_overloaded_builtin): Make it non-static.
4287 * config/rs6000/rs6000-protos.h
4288 (altivec_expand_overloaded_builtin): New prototype.
4289 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
4290 targetm.resolve_overloaded_builtin here.
4291 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
4293 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
4294 Zdenek Dvorak <dvorakz@suse.cz>
4296 PR tree-optimization/19210
4297 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
4299 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
4300 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
4301 rely on unproven assumptions.
4302 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
4303 * tree-flow.h (number_of_iterations_exit): Add final parameter.
4304 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
4305 to number_of_iterations_exit.
4306 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
4307 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
4308 * tree-ssa-loop-niter.c (find_loop_niter,
4309 estimate_numbers_of_iterations_loop): Likewise.
4310 (number_of_iterations_exit): Honor the new options.
4311 * doc/invoke.texi (Wunsafe-loop-optimizations,
4312 funsafe-loop-optimizations): Document them.
4314 2005-07-21 Richard Sandiford <richard@codesourcery.com>
4316 PR rtl-optimization/22167
4317 * gcse.c (hoist_code): Fix hoist_exprs[] check.
4319 2005-07-20 Adam Nemet <anemet@lnxw.com>
4321 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
4322 __do_global_dtors_aux longcall.
4324 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
4326 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
4327 (old_special_pred_table): Don't reference
4328 SPECIAL_MODE_PREDICATES.
4329 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
4330 * config/arc/arc.h: Don't mention PREDICATE_CODES.
4331 * config/sh/predicates.h: Don't mention
4332 SPECIAL_MODE_PREDICATES.
4333 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
4336 2005-07-20 DJ Delorie <dj@redhat.com>
4338 * config.gcc: Add m32c-elf support.
4340 * doc/contrib.texi: Mention m32c.
4341 * doc/extend.texi: Document m32c extensions.
4342 * doc/install.texi: Mention m32c.
4343 * doc/invoke.texi: Document m32c options.
4344 * doc/md.texi: Document m32c constraints.
4346 * config/m32c/addsub.md: New file.
4347 * config/m32c/bitops.md: New file.
4348 * config/m32c/cond.md: New file.
4349 * config/m32c/jump.md: New file.
4350 * config/m32c/m32c-lib1.S: New file.
4351 * config/m32c/m32c-lib2.c: New file.
4352 * config/m32c/m32c-modes.def: New file.
4353 * config/m32c/m32c-pragma.c: New file.
4354 * config/m32c/m32c-protos.h: New file.
4355 * config/m32c/m32c.abi: New file.
4356 * config/m32c/m32c.c: New file.
4357 * config/m32c/m32c.h: New file.
4358 * config/m32c/m32c.md: New file.
4359 * config/m32c/m32c.opt: New file.
4360 * config/m32c/minmax.md: New file.
4361 * config/m32c/mov.md: New file.
4362 * config/m32c/muldiv.md: New file.
4363 * config/m32c/predicates.md: New file.
4364 * config/m32c/prologue.md: New file.
4365 * config/m32c/shift.md: New file.
4366 * config/m32c/t-m32c: New file.
4368 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
4370 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
4371 (stack_protect_set, stack_protect_test): New expanders.
4372 (stack_protect_set_si, stack_protect_set_si_media,
4373 stack_protect_set_di_media, stack_protect_test_si,
4374 stack_protect_test_si_media, stack_protect_test_di_media):
4377 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
4379 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
4381 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
4383 * tree.h (tree_expr_nonzero_p): Export.
4384 * fold-const.c (tree_expr_nonzero_p): Likewise.
4385 Return true for CALL_EXPRs that are alloca calls.
4386 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
4388 * tree-flow.h (expr_computes_nonzero): Remove.
4389 * tree-vrp.c (expr_computes_nonzero): Remove.
4390 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
4391 (extract_range_from_unary_expr): Likewise.
4392 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
4393 tree_expr_nonzero_p.
4395 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
4397 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
4398 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
4399 extra arg "picreg" and use it instead of pic_offset_table_rtx.
4400 All callers changed.
4401 (frame_related_constant_load): New arg "related" which controls
4402 setting of RTX_FRAME_RELATED_P. All callers changed.
4403 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
4404 (bfin_expand_prologue): Add stack limit checking.
4405 * config/bfin/bfin.md (trapifcc): New pattern.
4407 * config/bfin/bfin.c: Include "langhooks.h".
4408 (def_builtin): Go through lang_hooks to call builtin_function.
4410 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
4411 * config/bfin/predicates.md (symbol_ref_operand): New.
4412 (call_insn_operand): Delete. All callers changed to use
4413 register_no_elim_operand.
4414 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
4416 (function_arg): Use it to generate the call's operand 2.
4417 (bfin_longcall_p): New function.
4418 (bfin_expand_call): Extra arg "cookie". All callers and declaration
4419 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
4420 determine if the address needs to be in a REG.
4421 (bfin_handle_longcall_attribute): New function.
4422 (bfin_attribute_table): Add "longcall" and "shortcall".
4423 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
4424 (CUMULATIVE_ARGS): New member call_cookie.
4425 (PREDICATE_CODES): Add symbol_ref_operand.
4426 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
4427 extra USE to the pattern.
4428 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
4429 New patterns, split off call_insn, sibcall_insn, call_value_insn and
4430 sibcall_value_insn; now the new patterns handle direct calls and the
4431 old ones indirect calls.
4432 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
4434 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
4436 * doc/trouble.texi: Update section on handling of empty loops.
4438 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
4440 * config.gcc: Remove support for sparc-*-openbsd*,
4441 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
4443 * config.host: Remove support for i860-*-sysv4* as a host.
4444 * config/i860/*, config/ip2k/*, config/ns32k/*,
4445 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
4446 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
4447 mention obsolete ports.
4449 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
4451 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
4453 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
4454 of frame_pointer_rtx.
4455 (sh_expand_epilogue): Likewise.
4456 (sh_set_return_address): Likewise.
4457 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
4458 instead of FRAME_POINTER_REGNUM if needed. Add elimination
4459 offsets from FRAME_POINTER_REGNUM.
4460 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
4461 (sh_register_names): Add initializer for sfp.
4462 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
4463 (VALID_REGISTER_P): Likewise.
4464 (FIRST_PSEUDO_REGISTER): Update.
4465 (DWARF_FRAME_REGISTERS): Define.
4466 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
4467 (HARD_FRAME_POINTER_REGNUM): Define.
4468 (FRAME_POINTER_REGNUM): Redefine.
4469 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
4470 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
4471 from FRAME_POINTER_REGNUM.
4472 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
4473 FRAME_POINTER_REGNUM.
4474 (REG_CLASS_CONTENTS): Add sfp.
4475 (REG_ALLOC_ORDER): Likewise.
4476 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
4477 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
4478 of frame_pointer_rtx.
4479 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
4481 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
4483 * fold-const.c (tree_expr_nonnegative_p): Only return true for
4484 ABS_EXPR when flag_wrapv is false because of INT_MIN.
4485 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
4487 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
4490 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
4492 Make CONSTRUCTOR use VEC to store initializers.
4493 * c-common.c (complete_array_type): Update to cope with VEC in
4495 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
4496 (pp_c_constructor_elts): New function.
4497 * c-pretty-print.h (pp_c_constructor_elts): Declare.
4498 * c-typeck.c (build_function_call, build_c_cast, digest_init,
4499 struct constructor_stack, struct initializer_stack,
4500 constructor_elements, push_init_level, pop_init_level,
4501 add_pending_init, find_init_member, output_init_element): Update to
4502 cope with VEC in CONSTRUCTOR_ELTS.
4503 * coverage.c (build_fn_info_value, build_ctr_info_value,
4504 build_gcov_info): Likewise.
4505 * expr.c (categorize_ctor_elements_1, store_constructor,
4506 expand_expr_real_1): Likewise.
4507 * fold-const.c (fold_ternary): Likewise.
4508 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
4509 gimplify_init_constructor, gimplify_expr): Likewise.
4510 * tree-dump.c (dequeue_and_dump): Likewise.
4511 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
4513 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
4515 * tree-sra.c (generate_element_init_1): Likewise.
4516 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4517 * tree-ssa-operands.c (get_expr_operands): Likewise.
4518 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4519 * tree-vect-transform.c (vect_get_vec_def_for_operand):
4520 (get_initial_def_for_reduction): Likewise.
4521 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
4522 value handle in annotations.
4523 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
4524 tree_node_structure): Add support for constr_kind.
4525 (build_vector_from_ctor, build_constructor_single,
4526 build_constructor_from_list): New functions.
4527 (build_constructor): Update to take a VEC instead of a TREE_LIST.
4528 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
4529 Update to cope with VEC in CONSTRUCTOR_ELTS.
4530 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
4531 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
4532 CONSTRUCTOR_APPEND_ELT): New macros.
4533 (struct constructor_elt, struct tree_constructor): New data types.
4534 (union tree_node): Add tree_constructor field.
4535 * treestruct.def: Define TS_CONSTRUCTOR.
4536 * varasm.c (const_hash_1, compare_constant, copy_constant,
4537 compute_reloc_for_constant, output_addressed_constants,
4538 initializer_constant_valid_p, output_constant,
4539 array_size_for_constructor, output_constructor): Update to cope with
4540 VEC in CONSTRUCTOR_ELTS.
4541 * vec.h (VEC_empty, VEC_copy): New macros.
4543 2005-07-19 Devang Patel <dpatel@apple.com>
4545 * dbxout.c (dbxout_type): Check Objective-C++ lang.
4547 2005-07-19 Richard Henderson <rth@redhat.com>
4550 * gimplify.c (gimplify_expr): Use main variant type for the temp
4551 destination for a discarded volatile read.
4552 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
4553 casts between non-void types that change volatility.
4555 2005-07-15 DJ Delorie <dj@redhat.com>
4557 * toplev.h: Add comment about the first parameter for warning().
4558 * errors.h: Likewise.
4560 * c.opt (Wpragmas): New.
4561 * doc/invoke.texi: Document it.
4563 * function.c (do_warn_unused_parameter): Add warning control to
4565 * c-decl.c (warn_if_shadowing): Likewise.
4566 * c-lex.c (cb_def_pragma): Likewise.
4567 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
4568 (pop_alignment): Likewise.
4569 (handle_pragma_pack): Likewise.
4570 (apply_pragma_weak): Likewise.
4571 (handle_pragma_weak): Likewise.
4572 (handle_pragma_redefine_extname): Likewise.
4573 (add_to_renaming_pragma_list): Likewise.
4574 (handle_pragma_extern_prefix): Likewise.
4575 (maybe_apply_renaming_pragma): Likewise.
4576 (handle_pragma_visibility): Likewise.
4578 * config/c4x/c4x-c.c (BAD): Likewise.
4579 (c4x_parse_pragma): Likewise.
4580 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
4581 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
4582 (rs6000_pragma_longcall): Likewise.
4583 * config/v850/v850-c.c (pop_data_area): Likewise.
4584 (ghs_pragma_section): Likewise.
4585 (ghs_pragma_section): Likewise.
4586 (ghs_pragma_interrupt): Likewise.
4587 (ghs_pragma_starttda): Likewise.
4588 (ghs_pragma_startsda): Likewise.
4589 (ghs_pragma_startzda): Likewise.
4590 (ghs_pragma_endtda): Likewise.
4591 (ghs_pragma_endsda): Likewise.
4592 (ghs_pragma_endzda): Likewise.
4594 2005-07-19 Danny Berlin <dberlin@dberlin.org>
4595 Kenneth Zadeck <zadeck@naturalbridge.com>
4597 * Makefile.in: Removed tree-promote-statics.c
4598 * tree-promote-statics.c: Removed.
4599 * common.opt: Removed flag-promote-statics.
4601 * passes.c: Removed tree-promote-statics pass.
4602 * tree-pass.h: Ditto.
4603 * timevar.def: Removed TV_PROMOTE_STATICS.
4606 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
4608 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
4610 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
4612 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4615 * c-common.c (check_function_arguments): Call
4616 'check_function_format' if either -Wformat or
4617 -Wmissing-format-attribute are specified.
4618 * c-format.c (check_function_format): Check -Wformat before
4619 calling 'check_format_info'.
4620 * c-opts.c (c_common_post_options): Don't warn for
4621 -Wmissing-format-attribute without -Wformat.
4622 * c-typeck.c (convert_for_assignment): Detect additional cases for
4623 -Wmissing-format-attribute.
4624 * doc/invoke.texi (-Wmissing-format-attribute): Document new
4627 2005-07-19 Richard Guenther <rguenther@suse.de>
4629 * config/i386/i386.md (lrint<mode>2): Use temporary
4630 instead of clobbering non-existent memory.
4632 2005-07-19 Nick Clifton <nickc@redhat.com>
4634 * config/avr/avr.c (legitimate_address_p): Fix debugging print
4635 statement to avoid displaying ASCII control characters.
4637 2005-07-19 Ben Elliston <bje@au.ibm.com>
4639 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
4640 * cfganal.c (find_edge_index): Ditto.
4641 * combine.c (combine_instructions): Ditto.
4642 * ddg.c (create_scc): Ditto.
4643 (find_successors): Ditto.
4644 (find_predecessors): Ditto.
4645 (find_nodes_on_paths): Ditto.
4646 (longest_simple_path): Ditto.
4647 * flow.c (update_life_info): Ditto.
4648 (count_or_remove_death_notes): Ditto.
4649 (clear_log_links): Ditto.
4650 * modulo-sched.c (generate_reg_moves): Ditto.
4651 (find_max_asap): Ditto.
4652 (find_max_hv_min_mob): Ditto.
4653 (find_max_dv_min_mob): Ditto.
4654 * sbitmap.c (sbitmap_first_set_bit): Ditto.
4655 * sched-rgn.c (extract_edgelst): Ditto.
4656 * tree-into-ssa.c (prepare_names_to_update): Ditto.
4657 (dump_update_ssa): Ditto.
4658 (ssa_names_to_replace) Ditto.
4659 (switch_virtuals_to_full_rewrite): Ditto.
4660 (update_ssa): Ditto.
4661 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
4663 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
4665 Fix PR tree-optimization/22483
4667 * tree-complex.c (create_components): Use
4668 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
4669 * tree-flow-inline.h (fill_referenced_var_vec): New function.
4670 * tree-flow.h (safe_referenced_var_iterator): New structure.
4671 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
4672 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
4673 safe_referenced_var iterator.
4674 (add_type_alias): Ditto.
4676 2005-07-19 Steven Bosscher <stevenb@suse.de>
4678 * loop-init.c (rest_of_handle_loop2): Remove.
4679 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
4680 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
4681 (pass_rtl_loop_init, pass_rtl_loop_done,
4682 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
4683 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
4684 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
4685 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
4686 pass_tree_loop_done, and pass_tree_unswitch.
4687 (gate_loop): Rename to gate_tree_loop.
4688 * passes.c (init_optimization_passes): Update for renamed tree
4689 loop passes. Add the new loop2 passes as subpasses of loop2.
4690 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
4691 Update for the renamed tree loop passes.
4693 2005-07-18 Ian Lance Taylor <ian@airs.com>
4696 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
4697 blocks when optimizing.
4699 2005-07-18 Steve Ellcey <sje@cup.hp.com>
4701 * common.opt (frename-registers): Initialize to 2.
4703 (fgcse-after-reload): Ditto.
4704 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
4705 (process_options): Only change flag_web, flag_rename_registers,
4706 and flag_rerun_cse_after_loop if not explicitly set by user.
4708 2005-07-18 Jan Beulich <jbeulich@novell.com>
4710 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
4711 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
4712 in 64-bit mode the same as DImode in 32-bit mode.
4713 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
4714 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
4715 mode. Add new mode parameter.
4716 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
4717 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
4718 x86_64_shift_adj): New expanders.
4719 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
4720 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
4722 Respective new splitters. Use renamed shift splitter helpers in 32-bit
4723 DImode shift splitters.
4724 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
4725 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
4728 2005-07-18 Jan Beulich <jbeulich@novell.com>
4730 * i386.md (movdi_extzv_1): New.
4731 (zero_extendhidi2): Combine alternatives and never force use of
4733 (zero_extendqidi2): Likewise. Don't restrict input selection.
4735 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
4737 Fix PR tree-optimization/22531
4738 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
4741 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
4743 * tree-promote-statics.c (pass_promote_statics): Change dump file
4746 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
4748 * tree-optimize.c (init_tree_optimization_passes): Add
4749 pass_eliminate_useless_stores pass.
4750 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
4751 * tree-ssa-pre.c (is_copy_stmt): New function.
4752 (follow_copies_till_vuse): Ditto.
4753 (do_eustores): Ditto.
4754 (gate_eustores): Ditto.
4756 2005-07-16 Richard Henderson <rth@redhat.com>
4758 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
4760 2005-07-16 Danny Berlin <dberlin@dberlin.org>
4761 Kenneth Zadeck <zadeck@naturalbridge.com>
4763 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
4764 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
4765 ipa-type-escape.h, tree-promote-statics.c
4766 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
4767 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
4768 tree-promote-statics.c: new files.
4769 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
4770 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
4771 int nonlocal_set_p, mark_constant_function): Deleted.
4772 (rest_of_handle_cfg): Removed call to mark_constant_function.
4773 (nonoverlapping_component_refs_p): Added calls to support
4774 type based aliasing.
4775 * tree-ssa-alias.c (may_alias_p,
4776 compute_flow_insensitive_aliasing): Ditto.
4777 * calls.c (flags_from_decl_or_type): Removed reference to
4779 * c-typeck.c (convert_arguments): Make builtins tolerant of having
4780 too many arguments. This is necessary for Spec 2000.
4781 * cgraph.h (const_function, pure_function): Removed.
4782 * common.opt: Added "fipa-pure-const", "fipa-reference",
4783 "fipa-type-escape", and "ftree-promote-static".
4785 * passes.c: Added ipa and tree-promote-statics passes.
4786 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
4787 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
4788 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
4789 * tree-flow.h: Added exposed sra calls and addition of
4790 reference_vars_info field for FUNCTION_DECLS.
4791 * tree-pass.h: Added passes.
4792 * tree-sra.c: (sra_init_cache): New function.
4793 (sra_insert_before, sra_insert_after) Made public.
4794 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
4796 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
4797 aliasing. (may_alias_p): Added code to use type escape analysis to
4799 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
4800 code to prune clobbers of static variables based on information
4801 produced in ipa-reference pass. Changed call clobbering so that
4802 statics are not marked as clobbered if the call does not clobber
4805 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
4807 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
4810 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
4812 * doc/install.texi (*-*-solaris2*): Document recommended version
4813 of GNU binutils and mention GNU linker problem on Solaris 10.
4815 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
4818 * c-decl.c (c_build_bitfield_integer_type): New function.
4819 (finish_struct): Call it.
4820 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
4822 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4824 * c-typeck.c (digest_init): Call 'convert_for_assignment'
4827 2005-07-16 Jan Hubicka <jh@suse.cz>
4829 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
4830 (scale_bbs_frequencies_int): Watch roundoff errors.
4831 * predict.c (return_prediction): Initialize return_stmt.
4833 2005-07-16 Jan Hubicka <jh@suse.cz>
4835 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
4836 after RTL profiling.
4838 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
4841 * fold-const.c (build_range_check): Convert high/low to etype
4842 if we are only comparing against exp.
4844 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
4846 Fix PR tree-optimization/22376
4847 * tree-ssa-structalias.c (build_constraint_graph): We really meant
4849 (need_to_solve): New function.
4850 (compute_points_to_sets): Use it.
4852 2005-07-15 Jan Hubicka <jh@suse.cz>
4854 * cfg.c (update_bb_profile_for_threading): More diagnostic.
4855 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
4857 2005-07-15 Richard Guenther <rguenther@suse.de>
4859 * c-common.c (handle_flatten_attribute): New function.
4860 Add flatten function attribute.
4861 * doc/extend.texi: Document flatten function attribute.
4862 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
4863 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
4865 (cgraph_decide_inlining): Handle functions with flatten
4868 2005-07-14 David Edelsohn <edelsohn@gnu.org>
4870 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
4871 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
4872 UNSPEC_XCHG, UNSPEC_AND): New.
4873 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
4874 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
4875 * config/rs6000/sync.md (FETCHOP): New code macro.
4876 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
4878 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
4879 (sync_compare_and_swap<mode>): Same.
4880 (sync_lock_test_and_set<mode>): Same.
4881 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
4882 for QImode and HImode, and not PPC405.
4883 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
4884 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
4885 (sync_<fetchop>{si,di}_internal): New.
4886 (sync_nand{si,di}_internal): New.
4887 (sync_old_<fetchop>{si,di}_internal): New.
4888 (sync_old_nand{si,di}_internal): New
4889 (sync_new_<fetchop>{si,di}_internal): New.
4890 (sync_new_nand{si,di}_internal): New.
4891 (atomic_and{si,di}): New.
4892 (sync_new_nand{si,di}_internal): New.
4893 (atomic_and{si,di}): New.
4894 (sync_add<mode>_internal): Delete.
4895 (sync_addshort_internal): Use unspec instead of unspec_volatile.
4896 (sync_sub<mode>_internal): Delte.
4897 (sync_subshort_internal): New.
4898 (sync_andsi_internal): Use unspec instead of unspec_volatile.
4899 (sync_anddi_internal): Delete.
4900 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
4901 (sync_booldi_internal): Delete.
4902 (sync_boolc<mode>_internal): Delete.
4903 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
4904 (sync_boolc<mode>_internal2): Delete.
4905 (sync_boolcc<mode>_internal): Delete.
4906 (isync, lwsync): Use unspec instead of unspec_volatile.
4907 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
4908 Revert UNSPEC_VOLATILE.
4909 (rs6000_split_atomic_op): New.
4910 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
4912 2005-07-14 Eric Christopher <echristo@redhat.com>
4914 * config/mips/mips.c (mips_canonicalize_comparison): Cast
4915 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
4917 2005-07-14 Eric Christopher <echristo@redhat.com>
4919 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
4921 2005-07-14 Steven Bosscher <stevenb@suse.de>
4923 PR tree-optimization/22230
4924 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
4925 the computation of the four cross productions for "range op range".
4927 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
4928 Ulrich Weigand <uweigand@de.ibm.com>
4931 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
4934 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4936 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
4938 2005-07-14 Steve Ellcey <sje@cup.hp.com>
4940 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
4942 2005-07-14 Richard Guenther <rguenther@suse.de>
4945 * config/i386/i386-protos.h (ix86_function_value): Change
4946 prototype to match new target hook.
4947 * config/i386/i386.c (ix86_value_regno): Change prototype
4948 to take extra type argument.
4949 (TARGET_FUNCTION_VALUE): Define.
4950 (ix86_function_ok_for_sibcall): Pass extra argument to
4951 ix86_value_regno, check return slot rtx for exact match.
4952 (ix86_function_value): Take extra parameter. Dispatch to
4953 ix86_value_regno with fndecl/fntype as provided.
4954 (ix86_value_regno): Handle extra type argument.
4955 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
4957 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
4958 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
4959 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
4960 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
4961 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
4963 2005-07-14 Richard Guenther <rguenther@suse.de>
4965 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
4966 * calls.c (expand_call): Pass fntype to hard_function_value.
4967 (emit_library_call_value_1): Likewise.
4968 * explow.c: Include target.h.
4969 (hard_function_value): Take extra argument, the fntype.
4970 Use new target hook for function_value.
4971 * expr.h (hard_function_value): Change prototype.
4972 * function.c (aggregate_value_p): Pass 0 as fntype to
4973 hard_function_value.
4974 (assign_parms): Use new target hook for function_value.
4975 Pass 0 as fntype to hard_function_value.
4976 (expand_function_end): Likewise.
4977 * reg-stack.c: Include target.h.
4978 (stack_result): Use new target hook for function_value.
4979 * target-def.h: New target hook function_value.
4980 * target.h: Likewise.
4981 * targhooks.c (default_function_value): New function.
4982 * targhooks.h (default_function_value): Declare.
4984 2005-07-13 Ian Lance Taylor <ian@airs.com>
4986 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
4988 2005-07-14 Jan Hubicka <jh@suse.cz>
4990 * tree-dfa.c (dump_variable): Use default_def function.
4991 * tree-ssa-alias.c (dump_points_to_info): Likewise.
4992 * tree-ssa.c (verify_use): Likewise.
4993 * tree-ssanames.c (release_ssa_name): Likewise.
4994 * tree-tailcall.c (eliminate_tail_call): Likewise.
4995 (tree_optimize_tail_calls_1): Likewise.
4996 * tree-vrp.c (get_value_range): Likewise.
4998 2005-07-14 Ben Elliston <bje@au.ibm.com>
5000 * gcc.c (main): Compare language[0] with '*' when iterating over
5003 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
5005 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
5006 "s390_emit_compare". Add handling of CCZ1mode.
5007 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
5008 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
5010 (s390_branch_condition_mask): Add CCZ1mode handling.
5011 * config/s390/s390.md: ("seq", "*seq"): New pattern.
5012 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
5013 Use CCZ1mode instead of CCZmode.
5014 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
5016 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
5018 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
5020 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
5022 2005-07-13 Eric Christopher <echristo@redhat.com>
5024 * config/mips/mips.c (mips_canonicalize_comparison): New.
5025 (mips_emit_int_relational): Use.
5027 2005-07-13 Eric Christopher <echristo@redhat.com>
5029 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
5031 * config/s390/s390.md: Include tpf.md. Move tpf specific
5033 * config/s390/tpf.md: To here.
5034 * config/s390/s390.opt: Move tpf specific options...
5035 * config/s390/tpf.opt: to here. Add mmain option.
5036 * config/s390/tpf-unwind.h: Remove unnecessary defines.
5037 * config/s390/tpf.h: Rewrite.
5039 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
5041 * doc/tm.texi: Remove @xref{Cross-profiling}.
5043 2005-07-13 Jeff Law <law@redhat.com>
5045 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
5046 expressions, test their _DECL operands for pointer equality rather
5047 than using operand_equal_p.
5049 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
5051 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
5052 (TARGET_POSIX_IO): This.
5053 * config/darwin.h: Likewise.
5054 * config/freebsd.h: Likewise.
5055 * config/linux.h: Likewise.
5056 * config/lynx.h: Likewise.
5057 * config/netbsd.h: Likewise.
5058 * config/rs6000/linux64.h: Likewise.
5059 * config/rs6000/linux.h: Likewise.
5060 * config/s390/tpf.h: Likewise.
5061 * config/sh/embed-elf.h: Likewise.
5062 * config/sparc/linux64.h: Likewise.
5063 * config/sparc/linux.h: Likewise.
5064 * config/svr4.h: Likewise.
5065 * gcov-io.h: Likewise.
5067 * doc/tm.texi: Updated.
5069 * libgcov.c (create_file_directory): Defined only if
5070 TARGET_POSIX_IO is defined.
5071 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
5074 2005-07-13 Jan Hubicka <jh@suse.cz>
5076 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
5078 2005-07-13 David Edelsohn <edelsohn@gnu.org>
5080 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
5081 structure as argument.
5083 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
5085 PR tree-optimization/21921
5086 * tree-iterator.c (tsi_link_before): Support the case when
5087 tsi_end_p (tsi) == true.
5089 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
5091 PR tree-optimization/22442
5092 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
5095 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
5097 PR rtl-optimization/20376
5098 * toplev.c (process_options): Enable -fweb and -frename-registers when
5100 * doc/invoke.texi: Update the information about when -fweb and
5101 -frename-registers are enabled.
5103 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
5106 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
5107 if *rhs_p is not a SSA_NAME.
5109 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
5111 Fix PR tree-optimization/22422
5112 * tree-ssa-structalias.c (struct variable_info): Add flag for
5114 (get_varinfo): Now a static function.
5115 (new_varinfo): init has_union and is_special_var to false.
5116 (solution_set_add): Check has_union.
5117 (do_da_constraint): Move temporary variable so it gets reset
5119 Also check for special variable.
5120 (do_ds_constraint): Ditto.
5121 (do_sd_constraint): Ditto.
5122 (do_structure_copy): Check for special variable.
5123 (find_func_aliases): Ditto.
5124 (init_base_vars): Set special vars properly.
5126 2005-07-13 Jan Hubicka <jh@suse.cz>
5128 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
5131 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
5132 (get_expr_operands): Fix thinko wrt flags and subvars.
5134 PR tree-optimize/22379
5135 * tree-inline.c (expand_call_inline): Do not output sorry in early
5138 2005-07-12 Dale Johannesen <dalej@apple.com>
5140 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
5142 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
5145 * host-linux.h: Include limits.h.
5147 2005-07-12 Dale Johannesen <dalej@apple.com>
5149 * expr.c (compress_float_constant): Add cost check.
5150 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
5152 2005-07-12 Dale Johannesen <dalej@apple.com>
5154 * gcc.target/i386/compress-float-sse.c: New.
5155 * gcc.target/i386/compress-float-sse-pic.c: New.
5156 * gcc.target/i386/compress-float-387.c: New.
5157 * gcc.target/i386/compress-float-387-pic.c: New.
5158 * gcc.dg/compress-float-ppc.c: New.
5159 * gcc.dg/compress-float-ppc-pic.c: New.
5161 2005-07-12 Eric Christopher <echristo@redhat.com>
5163 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
5165 * config/s390/s390.md: Include tpf.md. Move tpf specific
5167 * config/s390/tpf.md: To here.
5168 * config/s390/s390.opt: Move tpf specific options...
5169 * config/s390/tpf.opt: to here. Add mmain option.
5170 * config/s390/tpf-unwind.h: Remove unnecessary defines.
5171 * config/s390/tpf.h: Rewrite.
5173 2005-07-12 Eric Christopher <echristo@redhat.com>
5175 * gcc.c (struct infile): Update comment for language.
5176 (main): Rewrite input file resetting code.
5178 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
5181 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
5182 requiring a cast in a non RHS of modify_expr. Add a cast when required.
5183 (lookup_avail_expr): Use constant_boolean_node instead
5184 of boolean_false_node/boolean_true_node.
5186 2005-07-12 Ben Elliston <bje@au.ibm.com>
5188 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
5189 and use it when printing num_edges.
5191 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
5193 * doc/extend.texi (Blackfin Built-in Functions): New section.
5194 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
5197 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
5199 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
5200 s/cmpstrsi/cmpstrnsi
5201 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
5203 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
5204 (init_optabs): Initialize cmpstrn_optab.
5205 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
5206 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
5207 * expr.c: (enum insn_code cmpstrn_optab): Declare.
5208 * config/i386/i386.md: s/cmpstr/cmpstrn
5209 * config/c4x/c4x.md: s/cmpstr/cmpstrn
5210 * doc/md.texi: Update documentation.
5212 2005-07-11 Richard Henderson <rth@redhat.com>
5214 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
5215 build_va_arg_indirect_ref.
5216 (alpha_gimplify_va_arg): Likewise.
5217 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
5218 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
5219 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
5220 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5221 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5222 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
5224 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5226 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
5228 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
5229 * passes.c (init_optimization_passes): Add pass_empty_loop.
5230 * tree-pass.h (pass_empty_loop): Declare.
5231 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
5232 try_remove_empty_loop, remove_empty_loops): New functions.
5233 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
5234 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
5236 2005-07-12 Peter Barada <peter@the-baradas.com>
5240 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
5241 in address registers.
5242 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
5243 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
5244 alternative of addsi3_5200.
5246 2005-07-11 Ian Lance Taylor <ian@airs.com>
5248 * config/mips/mips.md (ffs<mode>2): Remove.
5250 2005-07-11 Ian Lance Taylor <ian@airs.com>
5252 * doc/tree-ssa.texi (Cleanups): Improve description of
5254 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
5256 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
5258 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
5259 * tree.h (DECL_ARGUMENT_FLD): New macro.
5261 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
5263 Fix PR tree-optimization/22404
5265 * tree-ssa-structalias.c (create_variable_info_for): Use
5268 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
5270 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
5271 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
5272 for second comparison operand.
5273 * config/bfin/predicates.md (reg_or_const_int_operand): New.
5275 * config/bfin/bfin.md (define_attr "type"): Add "sync".
5276 (define_insn_reservation "alu"): Likewise.
5277 (csync, ssync): Now of type sync.
5278 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
5279 -mcsync-anomaly -mspecld-anomaly.
5280 * config/bfin/bfin.opt (mcsync): Remove.
5281 (mcsync-anomaly, mspecld-anomaly): Add.
5282 * config/bfin/bfin.c: Include "insn-codes.h".
5283 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
5284 (TARGET_DEFAULT_TARGET_FLAGS): New.
5285 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
5287 2005-07-11 Steven Bosscher <stevenb@suse.de>
5289 * basic-block.h: Give the BB flags enum a name, bb_flags.
5290 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
5291 * cfgcleanup.c (enum bb_flags): Remove here.
5292 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
5293 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
5294 (update_forwarder_flag): Likewise.
5295 (thread_jump): Likewise.
5296 (try_forward_edges): Likewise.
5297 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
5298 forwarder flags. Don't clear bb->aux for all basic blocks. Only
5299 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
5301 2005-07-11 Richard Guenther <rguenther@suse.de>
5303 * config/i386/i386.opt: New target option -msseregparm.
5304 * config/i386/i386.c (override_options): Error out for
5305 -msseregparm but no SSE support.
5306 (ix86_function_sseregparm): Check for global sseregparm.
5307 * doc/invoke.texi: Document -msseregparm.
5309 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5311 * config.gcc (m32r-*-linux*): Use the default extra_parts.
5312 (m32rle-*-linux*): Ditto.
5314 2005-07-11 Jakub Jelinek <jakub@redhat.com>
5316 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
5317 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
5320 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5324 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
5325 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
5327 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
5329 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
5330 (varmap): Heapify varmap.
5331 (constraints): Heapify constraints.
5332 (struct constraint_graph): Heapify succs and preds.
5333 (constraint_vec_find): Update for heapification.
5334 (constraint_set_union): Ditto.
5335 (insert_into_complex): Ditto.
5336 (constraint_edge_vec_find): Ditto.
5337 (erase_graph_self_edge): Ditto.
5338 (add_graph_edge): Ditto.
5339 (get_graph_weights): Ditto.
5340 (merge_graph_nodes): Ditto.
5341 (build_constraint_graph): Ditto.
5342 (topo_visit): Ditto.
5343 (solve_graph): Ditto.
5344 (create_variable_info_for): Ditto.
5345 (init_base_vars): Ditto.
5346 (delete_points_to_sets): Free graph, varmap, and complex constraints.
5347 (condese_varmap_nodes): Free complex vector.
5348 (clear_edges_for_node): Clear succs and preds vector.
5350 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
5352 * tree-ssa-structalias.c (update_alias_info): Change counting of
5353 references to not include vdefs.
5355 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
5357 * tree-ssa-alias.c (free_used_part_map): Add missing free.
5360 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5362 * pa.c (pa_commutative_p): Make PLUS commutative when
5363 TARGET_NO_SPACE_REGS is true.
5365 2005-07-09 Diego Novillo <dnovillo@redhat.com>
5367 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
5368 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
5369 * tree-dfa.c (dump_subvars_for): New.
5370 (debug_subvars_for): New.
5371 (dump_variable): Show subvariables if VAR has them.
5372 * tree-flow-inline.h (get_subvar_at): New.
5373 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
5374 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
5376 (struct subvar): Change fields offset and size to unsigned
5378 (dump_subvars_for): Declare.
5379 (debug_subvars_for): Declare.
5380 (get_subvar_at): Declare.
5381 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
5382 to unsigned HOST_WIDE_INT *.
5383 (overlap_subvar): Likewise.
5384 * tree-gimple.c (is_gimple_reg): Always return false for
5385 SFTs and memory tags.
5386 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
5388 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
5389 (compute_may_aliases): Call compute_points_to_sets.
5390 (collect_points_to_info_for): Remove.
5391 (compute_points_to_and_addr_escape): Remove.
5392 (delete_alias_info): Call delete_points_to_sets.
5393 (compute_flow_sensitive_aliasing): If the call to
5394 find_what_p_points_to returns false, call set_pt_anything.
5395 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
5396 (set_pt_anything): Clear pi->pt_vars.
5397 (set_pt_malloc): Remove.
5398 (merge_pointed_to_info): Remove.
5399 (add_pointed_to_expr): Remove.
5400 (add_pointed_to_var): Remove.
5401 (collect_points_to_info_r): Remove.
5402 (is_escape_site): Make extern.
5404 (create_overlap_variables_for): Call it.
5405 * tree-ssa-copy.c (merge_alias_info): Never merge
5406 flow-sensitive alias information.
5407 * tree-ssa-operands.c (get_expr_operands): Adjust variables
5408 offset and size to be unsigned HOST_WIDE_INT.
5409 (add_to_addressable_set): Rename from note_addressable.
5410 Set TREE_ADDRESSABLE as the variables are added to the set.
5412 (add_stmt_operand): Do not try to micro-optimize unmodifiable
5413 operands into VUSEs when adding V_MAY_DEFs for members in an
5415 * tree-ssa-operands.h (add_to_addressable_set): Declare.
5416 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
5417 (struct variable_info): Add bitfield is_heap_var.
5418 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
5419 (new_var_info): Initialize is_heap_var.
5420 (get_constraint_for): Add HEAP variables to the symbol table.
5421 Mark them with is_heap_var.
5422 (update_alias_info): New. Taken mostly from the old
5423 compute_points_to_and_addr_escape.
5424 (handle_ptr_arith): New.
5425 (find_func_aliases): Call update_alias_info.
5426 Call handle_ptr_info for tcc_binary expressions.
5427 Call mark_stmt_modified.
5428 (create_variable_info_for): If DECL has subvars, do not create
5429 variables for its subvars. Always add all the fields.
5430 (set_uids_in_ptset): If the solution includes ANYOFFSET and
5431 SFTs, then add all the SFTs of the structure.
5432 If VI->DECL is an aggregate with subvariables, add the SFT at
5434 (find_what_p_points_to): If VI is an artificial variable,
5435 translate to bitfields in SSA_NAME_PTR_INFO.
5436 If the solution is empty, set pi->pt_vars to NULL
5437 (init_base_vars): Create ANYOFFSET.
5438 (compute_points_to_sets): Rename from create_alias_vars.
5440 (pass_build_pta): Remove.
5441 (delete_points_to_sets): Rename from delete_alias_vars.
5442 (pass_del_pta): Remove.
5443 * tree-ssa-structalias.h (struct alias_info): Move from
5445 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
5446 NUM_REFERENCES_SET): Likewise.
5447 (compute_points_to_sets, delete_points_to_sets): Declare.
5449 2005-07-09 Richard Henderson <rth@redhat.com>
5451 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
5452 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
5453 alpha_split_lock_test_and_set_12): New functions.
5454 * config/alpha/alpha-protos.h: Update.
5455 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
5456 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
5457 * config/alpha/sync.md (I12MODE): New.
5458 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
5459 (sync_<fetchop_name><I48MODE>): Likewise.
5460 (sync_nand<I48MODE>): Likewise.
5461 (sync_old_<fetchop_name><I48MODE>): Likewise.
5462 (sync_new_<fetchop_name><I48MODE>): Likewise.
5463 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
5464 (sync_compare_and_swap<I48MODE>): Likewise.
5465 (sync_lock_test_and_set<I48MODE>): Likewise.
5466 (sync_compare_and_swap<I12MODE>): New.
5467 (sync_compare_and_swap<I12MODE>_1): New.
5468 (sync_lock_test_and_set<I12MODE>): New.
5469 (sync_lock_test_and_set<I12MODE>_1): New.
5471 2005-07-09 Diego Novillo <dnovillo@redhat.com>
5475 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
5477 2005-07-09 Jakub Jelinek <jakub@redhat.com>
5479 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
5480 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
5482 2005-07-09 Richard SAndiford <richard@codesourcery.com>
5485 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
5487 2005-07-08 David Edelsohn <edelsohn@gnu.org>
5489 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
5490 memory_operand constraint.
5491 (store_conditional_<mode>): Same.
5492 (sync_compare_and_swap<mode>): Same.
5493 (sync_lock_test_and_set<mode>): Same.
5495 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
5497 Rewrite PIC support to more closely model actual instructions.
5498 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
5499 (cris_symbol): Remove prototypes for removed functions.
5500 (cris_pic_symbol_type_of, cris_valid_pic_const)
5501 (cris_expand_pic_call_address): Prototypes for new functions.
5502 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
5504 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
5506 <case ':'>: Add case for new punctuation character.
5507 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
5508 emitting (extra) PIC modifier.
5509 <case UNSPEC>: Do not assert for PLT.
5510 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
5511 (cris_expand_prologue, cris_expand_epilogue): Check
5512 for pic_offset_table_rtx usage instead of taking
5513 current_function_uses_pic_offset_table as the final word.
5514 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
5515 Remove flag_pic difference.
5516 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
5517 the moral equivalents of...
5518 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
5520 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
5521 (cris_handle_option): Mark ARG as unused.
5522 (cris_expand_pic_call_address): New worker function for "call",
5524 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
5525 output PIC constructs here.
5526 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
5527 as symbol-specific modifers, not whole or part of operands.
5528 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
5529 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
5530 constants and flag_pic.
5531 (CONSTANT_INDEX_P): Adjust for new functions.
5532 (enum cris_pic_symbol_type): New helper type.
5533 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
5534 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
5535 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
5537 ("movsi"): Emit actual instructions for GOT and relative access.
5538 ("*movsi_got_load"): New pattern to set up the register holding
5540 ("*movsi_internal"): Operand 1 is not a plain general_operand.
5541 Adjust FIXME for 'S'.
5542 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
5543 Use "movs" for -fpic cases.
5544 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
5545 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
5546 ("call", "call_value"): Just call cris_expand_pic_call_address for
5548 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
5549 Remove special pattern.
5550 ("*expanded_call_side", "*expanded_call_value_side"): New
5552 (gotplt-to-plt, gotplt-to-plt-side-call)
5553 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
5555 * config/cris/cris/predicates.md
5556 ("cris_general_operand_or_gotless_symbol"): Remove unused
5558 ("cris_general_operand_or_symbol"): Adjust for new functions.
5560 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
5562 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
5564 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
5566 * Makefile.in (TREE_H): Add treestruct.def.
5567 (c-decl.o): Add pointer-set.h
5568 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
5569 visibility on regular DECL's.
5570 (merge_decls): Fix the copying of decl nodes of various types for
5571 the new structures. Don't update RTL, section name, weak status,
5572 etc, on DECL's without RTL.
5573 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
5574 Don't check volatile on non-variable types.
5575 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
5576 to check whether we have seen arguments.
5577 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
5578 flag is checked before field (flag is common, field is not).
5579 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
5580 TS_DECL_COMMON could have an origin.
5581 (add_location_or_const_value_attribute): Don't check section name
5582 on non-var/function decls.
5583 (dwarf2out_var_location): Reverse order of tests.
5584 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
5585 with DECL_WRTL_CHECK.
5586 * expmed.c (make_tree): rtl is now in decl_with_rtl.
5587 * fold-const.c (fold_binary): Don't check weakness on
5588 non-var/function decls.
5589 (tree_expr_nonzero_p): Ditto.
5590 (fold_checksum_tree): Use tree_decl_extra as sizeof
5592 * ggc-page.c (extra_order_size_table): Add sizes for
5593 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
5595 * gimplify.c (gimplify_bind_expr): Only set
5596 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
5597 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
5599 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
5600 * langhooks.h (init_ts). New langhook.
5601 * passes.c (rest_of_decl_compilation): Reverse order of tests.
5602 * print-tree.c (print_node): Update to only print fields that
5603 exist in the structures the passed decl has.
5604 * toplev.c (wrapup_global_declarations): Don't reset
5605 DECL_DEFER_OUTPUT on DECL's that don't contain it.
5606 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
5607 * tree-inline.c (remap_decl): Ditto.
5608 * tree-outof-ssa.c (create_temp): Reverse order of tests.
5609 * tree-pretty-print.c (print_declaration): Don't print
5610 DECL_REGISTER on things that don't contain it.
5611 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
5612 non-var/function decls.
5613 * tree.c (tree_contains_struct): New structure.
5614 (init_priority_for_decl): New hashtable.
5615 (tree_int_map): New structure.
5616 (tree_int_map_eq): New function.
5617 (tree_int_map_marked_p): Ditto.
5618 (tree_int_map_hash): Ditto.
5619 (tree_map): Move to tree.h.
5620 (tree_map_eq): Externalize.
5621 (tree_map_hash): Ditto.
5622 (tree_map_marked_p): Ditto.
5623 (init_ttree): Set up tree_contains_struct and call langhook.
5624 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
5625 (tree_code_size): Update for new structures.
5626 (tree_node_structure): Update for new structures.
5627 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
5629 (copy_node_stat): Copy init priority.
5630 (build_decl_stat): Ditto for visibility.
5631 (ts_enum_names): New.
5632 (tree_contains_struct_check_failed): New function.
5633 (decl_init_priority_lookup): Ditto.
5634 (decl_init_priority_insert): Ditto.
5635 * treestruct.def: New file.
5636 * tree.h (CODE_CONTAINS_STRUCT): New macro.
5637 (CONTAINS_STRUCT_CHECK): Ditto.
5638 (tree_contains_struct_check_failed): New prototype.
5639 (DECL_CHECK): Removed.
5640 (DECL_MINIMAL_CHECK): New.
5641 (DECL_COMMON_CHECK): Ditto.
5642 (DECL_WRTL_CHECK): Ditto.
5643 (DECL_NON_COMMON_CHECK): Ditto.
5644 (DECL_WITH_VIS_CHECK): Ditto.
5645 (VAR_OR_FUNCTION_DECL_P): Ditto
5646 (struct tree_decl_minimal): New structure.
5647 (struct tree_decl_common): Ditto.
5648 (struct tree_decl_with_rtl): Ditto.
5649 (struct tree_decl_with_vis): Ditto.
5650 (struct tree_decl_non_common): Ditto.
5651 (struct tree_field_decl): Ditto.
5652 (struct tree_parm_decl): Ditto.
5653 (struct tree_var_decl): Ditto.
5654 (struct tree_function_decl): Ditto.
5655 (struct tree_const_decl): Ditto.
5656 (struct tree_result_decl): Ditto.
5657 (union tree_node): Add new structures.
5658 * var-tracking.c (track_expr_p): Reverse order of tests.
5660 * doc/c-tree.texi: Add documentation on DECL node internal structure.
5662 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
5664 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
5665 * system.h: Poison FINALIZE_PIC.
5666 * doc/tm.texi (FINALIZE_PIC): Remove.
5668 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
5671 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
5672 to the correct type if we have a MODIFY_EXPR.
5674 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
5676 PR tree-optimization/22360
5677 * tree.c (upper_bound_in_type): Fix calculations for casting
5678 to a non-wider signed type and casting a signed value to a
5679 wider unsigned type.
5680 (lower_bound_in_type): Fix calculations for casting to a
5681 non-wider signed type.
5683 PR tree-optimization/20139
5684 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
5686 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
5687 fold_cond_expr_cond.
5688 * tree-ssanames.c (release_defs): Assert in_ssa_p.
5689 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
5691 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
5694 * tree-complex.c (expand_complex_libcall): Produce
5695 REALPART_EXPR/IMAGPART_EXPR with the correct type.
5697 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
5699 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5700 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
5701 b" assert and inserted fastpath code for this case.
5702 (bitmap_ior): Removed "a != b" assert.
5704 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5706 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
5707 (ENDFILE_SPEC): Likewise.
5708 * config/m32r/m32r.h (ASM_SPEC): Likewise.
5710 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
5711 a large stack frame at epilogue.
5713 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
5715 * final.c: Include sdbout.h when required.
5717 2005-07-07 Geoffrey Keating <geoffk@apple.com>
5719 * config.gcc (*-*-darwin*): Only one target-specific header file
5721 (powerpc-*-darwin*): Add version-specific header files.
5722 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
5723 * config.in: Regenerate.
5724 * configure: Regenerate.
5725 * gcc.c: Include xregex.h.
5726 (version_compare_spec_function): New.
5727 (spec_function): Add version-compare.
5728 (replace_outfile_spec_function): Reformat comment.
5729 (compare_version_strings): New.
5730 * config/darwin-c.c (version_as_macro): New.
5731 (builtin_define): New.
5732 (darwin_cpp_builtins): New.
5733 * config/darwin-protos.h (darwin_cpp_builtins): New.
5734 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
5735 (LIB_SPEC): Make unconditional, update comment.
5736 (TARGET_C99_FUNCTIONS): Define.
5737 * config/darwin.opt: Sort.
5738 (mmacosx-version-min=): New.
5739 * config/darwin7.h: Delete.
5740 * config/darwin8.h: Delete.
5741 * config/i386/darwin.h (): Call darwin_cpp_builtins.
5742 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
5743 (TARGET_C99_FUNCTIONS): Define.
5744 * config/rs6000/darwin7.h: New.
5745 * config/rs6000/darwin8.h: New.
5746 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
5747 (-mmacosx-version-min): Document.
5749 2005-07-07 Ian Lance Taylor <ian@airs.com>
5751 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
5753 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
5756 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
5758 2005-07-07 Khem Raj <kraj@mvista.com>
5760 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
5761 in bytes, not words.
5763 2005-07-07 Paul Brook <paul@codesourcery.com>
5765 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
5766 DEFAULT_FUNCTION_ARG_PADDING to upward.
5768 2005-07-07 Richard Henderson <rth@redhat.com>
5770 * function.c (locate_and_pad_parm): Record parameter alignment in
5771 stack_alignment_needed.
5773 2005-07-07 David Edelsohn <edelsohn@gnu.org>
5775 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
5776 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
5777 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
5778 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
5779 (define_attr "type"): Add isync, sync, load_l, store_c.
5780 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
5781 Create scratch volatile MEM.
5782 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
5784 (load_locked_<mode>): New.
5785 (store_conditional_<mode>): New.
5786 (sync_compare_and_swap<mode>): Replace with splitter.
5787 (sync_lock_test_and_set<mode>): Replace with splitter.
5788 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
5790 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
5791 is ics. Attribute isync.
5792 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
5794 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
5795 and UNSPECV_SYNC_OP.
5796 (emit_unlikely_jump): New.
5797 (emit_load_locked): New.
5798 (emit_store_conditional): New.
5799 (rs6000_split_compare_and_swap): New.
5800 (rs6000_split_lock_test_and_set): New.
5801 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
5802 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
5803 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
5804 rs6000_split_lock_test_and_set): Declare.
5805 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
5806 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
5807 store_c, isync, sync.
5809 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
5811 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
5812 filenames to gtyp-gen.h.
5813 (s-typ-gen): Use it in place of for loops.
5815 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
5817 * hooks.c (hook_bool_rtx_int_false): New function.
5818 * hooks.h (hook_bool_rtx_int_false): Declare.
5819 * target-def.h (TARGET_COMMUTATIVE_P): Define.
5820 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
5821 * target.h (struct gcc_target): Add commutative_p member.
5822 * targhooks.c (hook_bool_rtx_commutative_p): New function.
5823 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
5824 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
5825 (pa_commutative_p): New function.
5826 * jump.c (target.h): Include.
5827 (rtx_renumbered_equal_p): Use targetm.commutative_p.
5828 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
5830 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
5832 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
5833 (s390_expand_setmem): New.
5834 * config/s390/s390.c: Likewise.
5835 (print_shift_count_operand): Truncate to 12 bits instead of 6.
5837 * config/s390/s390.md: ("setmem<mode>"): Accept character as
5838 general_operand. Call new function "s390_expand_setmem".
5839 ("clrmem_long", "*clrmem_long"): Rewrite to ...
5840 ("setmem_long", "*setmem_long"): ... this.
5842 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
5844 * config/s390/s390.c: (optimization_options): Enable
5845 TARGET_MVCLE at -Os.
5846 * doc/invoke.texi: Document changes in default behaviour.
5847 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
5849 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
5851 * expr.c: (set_storage_via_setmem): Convert opchar to mode
5852 defined by back-end.
5854 2005-07-07 Jakub Jelinek <jakub@redhat.com>
5856 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
5857 all sets in the pattern.
5858 * config/rs6000/rs6000.md (stack_protect_testsi,
5859 stack_protect_testdi): Likewise.
5861 2005-07-06 Jeff Law <law@redhat.com>
5863 * tree-vrp.c (simplify_using_ranges): Kill.
5864 (vrp_finalize): Remove call to simplify_using_ranges.
5865 (simplify_stmt_using_ranges): New function extracted from
5866 simplify_using_ranges.
5867 (simplify_div_or_mod_using_ranges): Likewise.
5868 (simplify_abs_using_ranges): Likewise.
5869 (simplify_cond_using_ranges): New function.
5870 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
5871 * tree-ssa-propagate.c (substitute_and_fold): Call
5872 simplify_stmt_using_ranges if we have range information.
5874 2005-07-06 James E. Wilson <wilson@specifixinc.com>
5876 * config/ia64/ia64.c (ia64_reorg): Check optimize before
5877 ia64_flag_schedule_isns2.
5879 * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
5880 reading/writing general registers.
5881 (ia64_function_arg): Revert 2005-06-18 change.
5883 2005-07-06 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
5885 * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
5886 (legitimize_tls_address): Use gcc_unreachable instead of abort.
5888 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
5890 * function.c (expand_function_end): Revert part of 2005-06-27
5891 patch. Do sjlj_emit_function_exit_after after return_label.
5893 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
5895 * doc/install.texi (--disable-libssp): New.
5897 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
5899 * doc/invoke.texi: Update -fforce-mem documentation.
5900 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
5901 code for -fforce-mem.
5902 * expmed.c: (store_bit_field,store_fixed_bit_field,
5903 extract_bit_field): Ditto.
5904 * expr.c: (convert_move): Ditto.
5905 * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
5906 expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
5907 emit_conditional_add,expand_float,expand_fix): Ditto.
5908 * opts.c: (decode_options): Remove setting of flag_force_mem flag.
5909 (common_handle_option): Issue warning when -fforce-mem specified.
5911 2005-07-06 Paul Brook <paul@codesourcery.com>
5913 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
5915 * configure: Regenerate.
5917 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
5919 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
5921 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
5923 Fix PR tree-optimization/22319
5924 Fix PR tree-optimization/22140
5925 Fix PR tree-optimization/22310
5927 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
5928 variable sized types.
5929 Use correct type for intermediate structure on *a = *b structure
5932 2005-07-06 Jakub Jelinek <jakub@redhat.com>
5934 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
5936 (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
5937 (machine_function): Move typedef to...
5938 * config/rs6000/rs6000.c (machine_function): ... here. Add
5939 varargs_save_offset field.
5940 (rs6000_stack_t): Remove varargs_size field.
5941 (setup_incoming_varargs): Allocate varargs save area using
5942 assign_stack_local, try to make it as small as possible.
5943 Save offset from virtual_stack_vars_rtx to the save area
5944 in cfun->machine->varargs_save_offset. Use UNITS_PER_FP_WORD
5945 instead of magic 8 when fp word byte size is used.
5946 (rs6000_va_start): Use cfun->machine->varargs_save_offset
5947 instead of -RS6000_VARARGS_SIZE.
5948 (rs6000_stack_info, debug_stack_info,
5949 rs6000_initial_elimination_offset): Remove all traces of
5951 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
5952 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
5953 RS6000_VARARGS_AREA.
5955 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
5957 PR tree-optimization/21963
5958 * tree-ssa-loop-ivopts.c (get_computation_aff): Use
5959 constant_multiple_of in the same way get_computation_cost_at does.
5961 2005-07-06 Jakub Jelinek <jakub@redhat.com>
5963 * config/sparc/sparc.h (sparc_compare_emitted): New extern.
5964 * config/sparc/sparc.c (sparc_compare_emitted): New variable.
5965 (gen_compare_reg): If sparc_compare_emitted is set, clear it
5966 and return its previous value.
5967 (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
5968 * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
5970 (stack_protect_set, stack_protect_test): New expanders.
5971 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
5972 stack_protect_testdi): New insns.
5973 * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
5974 * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
5976 2005-07-06 Jeff Law <law@redhat.com>
5978 * tree-ssa-dce.c (cfg_altered): New global.
5979 (tree_dce_init): Initialize cfg_altered.
5980 (remove_dead_stmt): If we remove an edge in the CFG, then set
5982 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
5985 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
5987 * Makefile.in (stamp-collect-ld): Use
5988 $(ORIGINAL_LD_FOR_TARGET) instead of $<. Don't remove
5989 ./collect-ld if it already exists.
5990 (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
5991 Don't remove ./nm if it already exists.
5993 2005-07-05 Devang Patel <dpatel@apple.com>
5995 * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
5996 (LOOP_VINFO_LOC, LOOP_LOC): Remove.
5997 * tree-vectorizer.c (vect_loop_location): New.
5998 (vect_print_dump_info): Use vect_loop_location.
5999 (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
6000 (vectorize_loops): Set vect_loop_location.
6001 * tree-vect-analyze.c (vect_analyze_offset_expr,
6002 vect_determin_vectorization_factor, vect_analyze_operations,
6003 vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
6004 vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
6005 vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
6006 vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
6007 vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
6008 vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
6009 vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
6010 vect_analyze_loop): Adjust vect_print_dump_info API.
6011 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
6012 vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
6013 vect_finish_stmt_generation, vectorizable_assignment,
6014 vectorizable_operation, vectorizable_store, vectorizable_load,
6015 vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
6016 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
6017 vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
6018 vect_transform_loop): Same.
6019 * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
6020 vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
6023 2005-07-05 Randolph Chung <tausq@debian.org>
6025 * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
6026 * configure: Regenerate.
6027 * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
6028 (pa_tls_referenced_p): Declare.
6029 * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
6030 (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
6031 (legitimize_tls_address): New.
6032 (hppa_legitimize_address): Handle TLS addresses.
6033 (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
6034 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
6035 (emit_move_sequence): Handle TLS addresses.
6036 (pa_encode_section_info): Call default handler to handle common
6038 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
6039 (CONSTANT_ADDRESS_P): Reject TLS operands.
6040 (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
6041 * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
6042 (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
6043 (UNSPEC_TLSLE): Define new constants.
6044 (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
6045 * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
6046 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
6047 (tie_symbolic_operand, tle_symbolic_operand): New
6049 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
6051 * aclocal.m4: Update macros for autoconf 2.59 style.
6052 * configure.ac: Likewise.
6054 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6056 * pa.c (function_value): Handle small aggregates on 32-bit targets.
6057 (function_arg): Pass small aggregates in general registers on 32-bit
6059 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
6061 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
6063 * Makefile.in (final.o): Fix dependencies.
6065 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
6069 * langhooks.h (struct lang_hooks): Add expr_to_decl.
6070 * langhooks.c (lhd_expr_to_decl): New.
6071 * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
6073 (LANG_HOOKS_INITIALIZER): Update.
6074 * tree.c (recompute_tree_invarant_for_addr_expr): Call
6075 expr_to_decl langhook.
6076 * c-tree.h (c_expr_to_decl): Declare.
6077 * c-typeck.c (c_expr_to_decl): New.
6078 (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
6080 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
6082 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
6085 * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
6086 C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
6088 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
6090 * Makefile.in: Adjust dependencies.
6091 * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
6092 * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
6093 * alias.c (rest_of_handle_cfg, pass_cfg): New.
6094 * bb-reorder.c (duplicate_computed_gotos): Make it static.
6095 * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
6096 rest_of_compilation.
6098 * bb-reorder.c (gate_duplicate_computed_gotos,
6099 pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
6100 rest_of_handle_reorder_blocks, pass_reorder_blocks,
6101 gate_handle_partition_blocks, rest_of_handle_partition_blocks,
6102 pass_partition_blocks): New.
6103 * bt-load.c (gate_handle_branch_target_load_optimize,
6104 rest_of_handle_branch_target_load_optimize,
6105 pass_branch_target_load_optimize): New.
6106 * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
6108 * cfglayout.c (pass_insn_locators_initialize): New.
6109 * cfgrtl.c (pass_free_cfg): New.
6110 * combine.c (gate_handle_combine, rest_of_handle_combine,
6112 * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
6113 gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
6114 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
6115 * except.c (pass_set_nothrow_function_flags,
6116 pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
6118 * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
6119 rest_of_handle_shorten_branches, pass_shorten_branches,
6120 rest_of_clean_state, pass_clean_state): New.
6121 * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
6122 rest_of_handle_remove_death_notes, pass_remove_death_notes,
6123 rest_of_handle_life, pass_life, rest_of_handle_flow2,
6125 * function.c (pass_instantiate_virtual_regs, pass_init_function,
6126 rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
6127 * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
6128 pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
6130 * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
6131 * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
6132 pass_rtl_ifcvt, gate_handle_if_after_combine,
6133 rest_of_handle_if_after_combine, pass_if_after_combine,
6134 gate_handle_if_after_reload, rest_of_handle_if_after_reload,
6135 pass_if_after_reload): New.
6136 * integrate.c (pass_initial_value_sets): New.
6137 * jump.c (pass_cleanup_barriers, purge_line_number_notes,
6138 pass_purge_lineno_notes): New.
6139 * mode-switching.c (rest_of_handle_mode_switching,
6140 pass_mode_switching): New.
6141 * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
6142 * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
6144 * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
6145 pass_loop_optimize): New.
6146 * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
6148 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
6150 * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
6151 pass_postreload_cse): New.
6152 * profile.c (gate_handle_profiling, pass_profiling,
6153 rest_of_handle_branch_prob, pass_branch_prob): New.
6154 * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
6155 pass_split_before_regstack, gate_handle_split_before_regstack,
6156 gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
6157 rest_of_handle_split_all_insns, pass_split_all_insns): New.
6158 * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
6159 pass_stack_regs): New.
6160 * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
6161 gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
6162 pass_stack_adjustments): New.
6163 * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
6164 pass_regrename): New.
6165 * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
6166 pass_delay_slots, gate_handle_machine_reorg,
6167 rest_of_handle_machine_reorg, pass_machine_reorg): New.
6168 * rtl.h (extern void purge_line_number_notes): New.
6169 * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
6170 gate_handle_sched2, rest_of_handle_sched2, pass_sched,
6172 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
6174 * value-prof.c (gate_handle_value_profile_transformations,
6175 rest_of_handle_value_profile_transformations,
6176 pass_value_profile_transformations): New.
6177 * var-tracking.c (gate_handle_var_tracking,
6178 pass_variable_tracking): New.
6179 * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
6181 * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
6182 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
6183 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
6184 rest_of_handle_old_regalloc, rest_of_handle_regrename,
6185 rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
6186 rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
6187 rest_of_handle_gcse2, rest_of_handle_regmove,
6188 rest_of_handle_tracer, rest_of_handle_if_conversion,
6189 rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
6190 rest_of_handle_web, rest_of_handle_branch_prob,
6191 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
6192 rest_of_handle_jump_bypass, rest_of_handle_combine,
6193 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
6194 rest_of_handle_gcse, rest_of_handle_loop_optimize,
6195 rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
6196 rest_of_handle_mode_switching, rest_of_handle_jump,
6197 rest_of_handle_eh, rest_of_handle_stack_adjustments,
6198 rest_of_handle_flow2, rest_of_handle_jump2,
6199 rest_of_handle_peephole2, rest_of_handle_postreload,
6200 rest_of_handle_shorten_branches, rest_of_clean_state,
6201 rest_of_compilation): Remove.
6203 * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
6204 * passes.c (dump_flags, in_gimple_form, all_passes,
6205 all_ipa_passes, all_lowering_passes, register_one_dump_file,
6206 register_dump_files, next_pass_1, last_verified, execute_todo,
6207 execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
6208 from tree-optimize.c.
6209 (init_optimization_passes): Moved from tree-optimize.c,
6210 adding the RTL optimizations.
6211 * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
6212 * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
6213 all_ipa_passes, all_lowering_passes, register_one_dump_file,
6214 register_dump_files, next_pass_1, last_verified, execute_todo,
6215 execute_one_pass, execute_pass_list, execute_ipa_pass_list,
6216 init_tree_optimization_passes, ipa_passes): Delete.
6217 * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
6219 (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
6220 dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
6222 (ipa_passes): Remove.
6223 (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
6224 * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
6225 dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
6226 dump_switch_p, dump_flag_name): Moved to tree-pass.h.
6227 (dump_info_p, dump_flag): Moved to tree-dump.h.
6229 * Makefile.in: Adjust dependencies for tree-pretty-print.c,
6231 * passes.c (finish_optimization_passes): Use dump_begin
6232 and dump_end, TDI_end.
6233 (gate_rest_of_compilation): New.
6234 (pass_rest_of_compilation): Use it.
6235 (gate_postreload, pass_postreload): New.
6236 * toplev.c (general_init): Rename init_tree_optimization_passes.
6237 * toplev.h (init_tree_optimization_passes): Rename to
6238 init_optimizations_passes.
6239 * tree-dump.c (dump_flag): Make static.
6240 (dump_files): Remove RTL dumps.
6241 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
6242 pass_cleanup_cfg, pass_free_cfg_annotations,
6243 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
6244 pass_init_datastructures, pass_fixup_cfg): Make non-static.
6245 * tree-pretty-print.c: Include tree-pass.h.
6246 * cgraph.c: Include tree-dump.h.
6248 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
6250 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
6251 Only fall back to saying it points to readonly memory if
6254 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6256 * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
6257 * config/m32r/m32r.c (m32r_compute_frame_size,
6258 m32r_expand_prologue): Take current_function_profile into
6259 account whenever we reference
6260 current_function_uses_pic_offset_table.
6261 (m32r_finalize_pic): Remove.
6262 * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
6264 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
6266 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
6267 instead of $<. Don't remove ./as if it already exists.
6269 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6272 * pa.md: Remove fcpy alternative from movhi and movqi patterns.
6273 * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
6274 for complex modes when generating code for PA 1.0.
6275 (VALID_FP_MODE_P): New macro.
6276 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
6277 sets for all general and floating point modes. Align wide floating
6278 point modes to even register boundaries to comply with architectural
6280 (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
6281 * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
6282 (VALID_FP_MODE_P): New macro.
6283 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
6284 sets for all general and floating point modes. Align wide floating
6285 point modes to even register boundaries to comply with architectural
6288 2005-07-04 Diego Novillo <dnovillo@redhat.com>
6290 * tree-dump.c (dump_files): Initialize dump number for .cgraph
6293 2005-07-04 Diego Novillo <dnovillo@redhat.com>
6295 * tree-ssa-structalias.c: Don't include expr.h.
6297 2005-07-04 Diego Novillo <dnovillo@redhat.com>
6299 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
6302 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
6304 Fix PR tree-optimization/22279
6306 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
6309 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
6311 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
6313 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
6315 * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
6316 cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
6317 config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
6318 config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
6319 config/stormy16/stormy16.c, config/v850/v850.c,
6320 config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
6321 except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
6322 Avoid "." or "\n" at end of diagnostics and capital letters at
6323 start of diagnostics.
6324 * combine.c, cse.c: Don't translate dump file output.
6325 * toplev.c (print_version): Only translate output if going to
6328 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
6330 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
6331 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
6334 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6336 * pa.c (fix_range): Fix typo in comment.
6338 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
6340 * tree-vrp.c (extract_range_from_assert): Replace
6341 fold (build (...)) with fold_build2.
6343 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6345 * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
6346 gcc_gfc_char_table, init_dynamic_gfc_info): New.
6347 (format_types_orig, handle_format_attribute): Add support for
6350 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6352 * varasm.c (assemble_variable): Fix format specifier thinko.
6354 2005-07-03 Ira Rosen <irar@il.ibm.com>
6356 PR tree-optimization/22029 (and 22135)
6357 * tree-pretty-print.c (dump_generic_node): Check that the node is not
6358 a phi node before calling dump_vops.
6360 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
6362 * tree-dump.h (dump_string_field): Declare.
6363 * tree-dump.c: Use it instead of dump_string.
6364 (dump_string_field): Make non-static.
6366 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
6368 * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
6369 up the minimal CFG stuff always when optimize > 0. Call
6370 split_all_insns_noflow in PIC case if needed.
6372 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
6373 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
6376 * c-decl.c (c_write_global_declarations): Dump contents of
6378 * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
6379 <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
6380 <GOTO_EXPR>, <SWITCH_EXPR>: Add.
6381 (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
6384 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
6386 * c-common.h (GCC_DIAG_STYLE): Define.
6387 * c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
6388 version for format checking to 4.1.
6389 * c-format.c: Include toplev.h after c-common.h.
6390 (enum format_type): Add gcc_tdiag_format_type.
6391 (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
6392 gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
6393 (format_types_orig): Add gcc_tdiag.
6394 (init_dynamic_diag_info): Support gcc_tdiag formats.
6395 (handle_format_attribute): Likewise.
6396 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
6397 (GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
6398 version for format checking to 4.1.
6399 (warning0, warning, error, pedwarn, sorry): Use
6401 * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
6402 (finish_aliases_1): Do not use %qE.
6403 * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
6404 config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
6405 Correct format bugs.
6406 * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
6407 parameter to unsigned HOST_WIDE_INT.
6408 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
6410 2005-07-02 David Edelsohn <edelsohn@gnu.org>
6413 * expr.c (write_complex_part): Use adjust_address for MEM.
6414 (read_complex_part): Same.
6416 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
6418 Fix PR tree-optimization/22280
6420 * tree-sra.c (generate_element_init): Remove useless loop.
6422 2005-07-02 Richard Henderson <rth@redhat.com>
6424 * config/alpha/alpha.c (alpha_legitimize_address): Check for
6426 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
6428 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
6431 * fold-const.c (fold_binary): Handle the return value of
6432 fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
6433 Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
6435 2005-07-02 Jeff Law <law@redhat.com>
6437 * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
6438 a eliminate type conversion which feeds an equality comparison
6439 if the original type or either operand in the comparison is a
6442 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
6444 * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
6445 config/rs6000/rs6000.opt, params.def: Remove "." from end of help
6447 * config/avr/avr.c: Do not use '`' as left quote.
6448 * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
6449 Remove "." from end of diagnostics. Make diagnostics start with
6452 2005-07-02 Zack Weinberg <zack@codesourcery.com>
6453 Joseph S. Myers <joseph@codesourcery.com>
6455 * toplev.c (default_tree_printer): Handle setting location with
6457 * c-objc.common.c (c_tree_printer): Likewise.
6458 * c-format.c (gcc_diag_flag_specs): Add '+'.
6459 (gcc_cdiag_char_table): Allow '+' flag for tree formats.
6460 (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
6462 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
6463 config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
6464 config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
6465 config/v850/v850.c, function.c, stor-layout.c, toplev.c,
6466 tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
6467 instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
6468 of diagnostics. Use %q+D not %s for a decl. Do not pass excess
6469 format arguments where %J is used without %D.
6471 2005-07-02 Jakub Jelinek <jakub@redhat.com>
6473 * gcc.c (LINK_SSP_SPEC): Define.
6474 (link_ssp_spec): New variable.
6475 (LINK_COMMAND_SPEC): Add %(link_ssp).
6476 (static_specs): Add link_ssp_spec.
6477 * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
6478 * configure: Rebuilt.
6479 * config.in: Rebuilt.
6481 * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
6482 * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
6483 * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
6484 * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
6485 * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
6486 If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
6487 -0x7008(2) instead of reading __stack_chk_guard variable.
6488 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
6490 (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
6491 (stack_protect_set, stack_protect_test): Use *_tls* patterns
6492 if TARGET_THREAD_SSP_OFFSET is defined.
6493 (stack_tls_protect_set_si, stack_tls_protect_set_di,
6494 stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
6497 2005-06-27 Richard Henderson <rth@redhat.com>
6498 * libgcc-std.ver (GCC_4.1.0): New.
6499 * libgcc.h (__stack_chk_guard): Declare.
6500 (__stack_chk_fail, __stack_chk_fail_local): Declare.
6501 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
6502 * mklibgcc.in (lib2funcs): Add them.
6504 2005-07-01 Richard Henderson <rth@redhat.com>
6506 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
6507 void * before struct sigcontext *.
6508 (x86_fallback_frame_state): Likewise.
6510 2005-07-01 James E. Wilson <wilson@specifixinc.com>
6512 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
6514 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
6517 * tree-ssa-reassoc.c (should_transpose): Fix which operand
6518 we check for SSA_NAME for.
6520 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
6522 Fix PR tree-optimization/22071
6524 * tree-ssa-structalias.c (offset_overlaps_with_access): New
6526 (get_constraint_for_component_ref): Use it.
6528 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
6531 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
6532 print out the last new line.
6534 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
6536 * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
6537 Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
6538 * config/cris/cris.c (cris_conditional_register_usage): Adjust
6539 reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
6540 (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
6541 (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
6542 * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
6543 (enum reg_class): New member CC0_REGS.
6544 (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
6545 (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
6546 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
6547 (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
6548 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
6549 Adjust for register now described.
6551 2005-07-01 Jakub Jelinek <jakub@redhat.com>
6554 * config/i386/i386.md (stack_protect_test_si,
6555 stack_protect_test_di): Add earlyclobber for scratch 3.
6556 * config/rs6000/rs6000.md (stack_protect_testsi,
6557 stack_protect_testdi): Add earlyclobber for scratch 3,
6558 remove earlyclobber from scratch 4.
6560 Older entries for 2005 can be found in ChangeLog-2005.