OSDN Git Service

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