OSDN Git Service

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