OSDN Git Service

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