OSDN Git Service

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