OSDN Git Service

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