OSDN Git Service

2005-08-03 Andrew Pinski <pinskia@physics.uc.edu>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         * convert.c (convert_to_integer): Use fold_build1 instead of
4         build1 when converting an integer to an integer.
5
6 2005-08-02  Richard Henderson  <rth@redhat.com>
7
8         * combine.c (combine_instructions): Don't use reg_equal/equiv
9         results if the mode doesn't match.
10
11 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
12
13         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
14         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
15
16 2005-08-02  Richard Henderson  <rth@redhat.com>
17
18         PR 23196
19         * explow.c (memory_address): Remove special-case for 
20         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
21
22 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
23
24         PR 23164
25         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
26         number of calls to cleanup_tree_cfg_1.
27
28 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
29
30         * doc/invoke.texi: document file extensions .F90 and .F95
31
32 2005-08-02  Richard Guenther  <rguenther@suse.de>
33
34         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
35         positive if its first argument is positive.
36
37 2005-08-02  Richard Guenther  <rguenther@suse.de>
38
39         PR tree-optimization/23177
40         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
41         on TMR_TAG.
42
43 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
44
45         PR tree-optimization/23129
46         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
47         varying for divisions with anti-ranges.
48
49 2005-08-02  Jan Hubicka  <jh@suse.cz>
50
51         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
52         * tree-ssa-threadupdate.c (thread_block): Add it here.
53
54 2005-08-01  James E Wilson  <wilson@specifix.com>
55
56         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
57         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
58         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
59         New.
60         * config/mips/predicates.md (const_call_insn_operand): Add check for
61         SYMBOL_REF_LONG_CALL_P.
62         * doc/extend.texi (long_call): Document the new attribute.
63
64 2005-08-01  Ian Lance Taylor  <ian@airs.com>
65             Richard Henderson  <rth@redhat.com>
66
67         * Makefile.in (RTL_BASE_H): Add real.h.
68         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
69         instead of memcpy.
70         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
71         directly.
72         * rtl.c (rtl_check_failed_code_mode): New.
73         * rtl.h (struct rtx_def): Add u.rv.
74         (XCMWINT, XCNMPRV): New.
75         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
76         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
77
78 2005-08-01  Richard Henderson  <rth@redhat.com>
79
80         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
81         with auto-inc codes.
82
83         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
84
85 2005-08-01  Jan Hubicka  <jh@suse.cz>
86
87         * i386-protos.h (asm_preferred_eh_data_format): Declare.
88         * i386.c: Include dwarf2.h
89         (asm_preferred_eh_data_format): New.
90         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
91
92 2005-08-01  Ian Lance Taylor  <ian@airs.com>
93
94         * config/host-linux.c (linux_gt_pch_get_address): Add new name
95         randomize_va_space for virtual address randomization control.
96
97 2005-08-01  Steven Bosscher  <stevenb@suse.de>
98
99         * common.opt (flag_ipa_cp): Put in right place to maintain
100         alphabetic sort.
101
102 2005-08-01  Jan Hubicka  <jh@suse.cz>
103
104         * profile.c (compute_value_histograms): Fix thinko.
105         * value-prof.c: Include toplev.h
106         (check_counter): New function.
107         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
108         tree_mod_subtract_transform): Add sanity check.
109
110 2005-08-01  Richard Guenther  <rguenther@suse.de>
111
112         PR tree-optimization/23133
113         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
114         current functions parameter decls to find defs to cse
115         reciprocals of.
116
117 2005-08-01  Richard Guenther  <rguenther@suse.de>
118
119         PR tree-optimization/23109
120         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
121         If trapping math is in effect, use post-dominator information
122         to check if we'd in any case reach a trapping point before
123         doing the reciprocal insertion.
124         (execute_cse_reciprocals): Compute post-dominators, if necessary.
125         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
126         expressions are invariant only if trapping math is not in effect.
127
128 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
129
130         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
131         cgraph_function_versioning): New declarations.
132         * cgraphunit.c: Add include to ipa-prop.h.
133         (update_call_expr, cgraph_copy_node_for_versioning,
134         cgraph_function_versioning): New functions.
135         * integrate.c (copy_decl_for_inlining): Remove.
136         * ipa-prop.h (ipa_replace_map): New struct.
137         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
138         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
139         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
140         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
141         ipcp_iterate_stage, ipcp_method_scale_print,
142         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
143         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
144         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
145         ipcp_update_bb_counts, ipcp_update_profiling,
146         ipcp_update_edges_counts): New functions.
147         (ipcp_method_cval_init): Remove restriction regarding local methods.
148         (ipcp_init_stage): Add ipcp_method_compute_scale.
149         (ipcp_insert_stage): Add versioning.
150         (ipcp_structures_print): Add ipcp_method_scale_print.
151         (ipcp_driver): Dump profiling info.
152         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
153         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
154         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
155         (struct inline_data): Add versioning_p, ipa_info, new fields.
156         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
157         declare_return_variable): Replace calls to copy_decl_for_inlining with
158         copy_decl_for_dup.
159         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
160         versioning support.
161         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
162         Add argument VERSIONING.
163         (copy_arguments_for_versioning, copy_static_chain,
164         function_versionable_p, tree_versionable_function_p,
165         tree_function_versioning, replace_ref_tree): New functions.
166         * tree-inline.h: Include varray.h.
167         (tree_versionable_function_p,  tree_function_versioning,
168         tree copy_decl_for_dup): New declarations.
169
170 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
171
172         * ipa-cp.c: New file. Contains IPCP specific functionality.
173         * ipa-prop.h: New file. Contains structures/definitions that can be
174         used by several interprocedural data flow optimizations (and also IPCP).
175         * ipa-prop.c: New file.
176         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
177         * common.opt: Add ipa-cp flag.
178         * timevar.def: Add IPCP optimization.
179         * tree-optimize.c (init_tree_optimization_passes): Schedule
180         pass_ipa_cp.
181         * tree-pass.h (pass_ipa_cp): Declare.
182
183 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
184
185         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
186         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
187         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
188         config/i386/i386.c, config/mips/mips.h,
189         config/rs6000/rs6000.h, config/sh/sh.c,
190         config/stormy16/stormy16.c: Fix comment typos.
191
192 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
193
194         PR c/22311
195         * c-typeck.c (build_binary_op): Use common_type wrapper on
196         shortened types.
197         (common_type): Update comment.
198
199 2005-07-31  Steven Bosscher  <stevenb@suse.de>
200
201         PR target/23095
202         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
203         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
204         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
205
206 2005-07-31  Jan Hubicka  <jh@suse.cz>
207
208         * pretty-print.h (pp_widest_integer): New macro.
209         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
210         counts.
211
212 2005-07-31  Jan Hubicka  <jh@suse.cz>
213
214         * output.h (enum section_category): Export from varasm.c
215         (categorize_decl_for_section): Likewise.
216         * varasm.c (enum section_category): Kill.
217         (categorize_decl_for_section): Make global.
218         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
219         Declare.
220         * i386.c (ix86_section_threshold): New static variable.
221         (ix86_in_large_data_p, ix86_encode_section_info,
222         x86_64_elf_unique_section,
223         x86_64_elf_select_section): New functions.
224         (TARGET_ENCODE_SECTION_INFO): Define
225         (override_options): Enable medium model for PIC.
226         (ix86_expand_prologue): Expand gen_set_got_rex64.
227         (legitimate_constant_p): Handle new UNSPECs.
228         (legitimate_pic_address_disp_p): Likewise.
229         (legitimize_pic_address): Lower MEDIUM model addressing.
230         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
231         (enum cmodel): Add MEDIUM_PIC.
232         (SYMBOL_REF_FAR_ADDR_P): New macro.
233         (SYMBOL_FLAG_FAR_ADDR): New flag.
234         * i386.md (movdi): Support medium model.
235         (set_got_rex64): New pattern.
236         * i386.opt (mlarge-data-threshold): New flag.
237         * predicates.md (zext_operand/sext_operand): Deal with medium model.
238         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
239         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
240         TARGET_ASM_UNIQUE_SECTION): New.
241
242         * invoke.texi (-mlarge_data_threshold): Document
243
244 2005-07-31  Jan Hubicka  <jh@suse.cz>
245
246         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
247         (coalesce_vars): Likewise.
248         * tree-ssa-live.c (coalesce_cost): New.
249         (build_tree_conflict_graph): Use coalesce_cost.
250         * tree-ssa-live.h (coalesce_cost): Declare.
251
252 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
253
254         * arm.md (all peepholes for post-increment operations): Delete.
255         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
256         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
257         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
258         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
259         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
260
261 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
262
263         * fold-const.c (tree_expr_nonnegative_p): Always return true for
264         non-integral types.
265
266 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
267
268         PR target/22582
269         * doc/invoke.texi: Document -rdynamic.
270
271 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
272
273         PR c/23143
274         * c-parser.c (c_parser_parms_list_declarator): Call
275         mark_forward_parm_decls.
276         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
277         decls with visibility structure.
278
279 2005-07-30  Paul Brook  <paul@codesourcery.com>
280
281         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
282
283 2005-07-30  Paul Brook  <paul@codesourcery.com>
284
285         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
286         prototype.
287         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
288         value for mode.
289         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
290
291 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
292
293         PR c/529
294         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
295         nested function declarators.
296         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
297         (grokparms): Call warn_if_shadowing for parameters used within the
298         parameter list.
299         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
300         not used within the parameter list.
301         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
302
303 2005-07-30  Jan Hubicka  <jh@suse.cz>
304
305         * expr.c (expand_expr_real_1): Do not load mem targets into register.
306         * i386.c (ix86_fixup_binary_operands): Likewise.
307         (ix86_expand_unary_operator): Likewise.
308         (ix86_expand_fp_absneg_operator): Likewise.
309         * optabs.c (expand_vec_cond_expr): Validate dest.
310
311 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
312
313         PR c/21720
314         * real.c (real_from_string): Also set last bit if there is a
315         nonzero hex digit beyond GCC's internal precision after ".".
316
317 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
318
319         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
320         define_constants.  Change duplicate values to unassigned numbers.
321         Change UNSPEC_SUBS to UNSPEC_VSUBS.
322         (*altivec_vspltsf): New.
323         (altivec_vperm_v4sf): Delete.
324         (altivec_vperm_<mode>): Use mode macro V.
325         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
326         (altivec_predicate_v4sf): Delete.
327         (altivec_predicate_<mode>): Use mode macro V.
328         (*altivec_lvesfx): New.
329         (*altivec_stvesfx): New.
330         (vec_realign_load_v4sf): Delete.
331         (vec_realign_load_<mode>): Use mode macro V.
332         * config/rs6000/rs6000.c (generate_set_vrsave): Use
333         UNSPECV_SET_VRSAVE.
334
335 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
336
337         PR bootstrap/23131
338         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
339         string. 
340         * configure: Regenerated.
341
342 2005-07-29  Paul Brook  <paul@codesourcery.com>
343
344         * doc/install.texi: Add link to GFortran binaries wiki page.
345
346 2005-07-29  David Ung  <davidu@mips.com>
347
348         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
349         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
350         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
351         * config/mips/mips.md (cpu): Add 5kf name.
352         (includes): Includes 5k.md.
353         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
354         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
355         -march flag.    
356
357 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
358
359         PR 22550
360         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
361         (cleanup_tree_cfg): ... here.
362         Call cleanup_tree_cfg_1 until there are no more cleanups to
363         do.
364
365 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
366
367         * tree-vrp.c (compare_range_with_value): Return true or false
368         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
369         EQ_EXPR respectively.
370
371 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
372
373         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
374         Fix comment typos.
375
376 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
377
378         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
379         (tree_ssa_dominator_optimize): Increment it.
380         (dump_dominator_optimization_stats): Print it.
381
382 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
383             Steven Bosscher  <stevenb@suse.de>
384
385         PR rtl-optimization/23117
386         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
387         when head == tail.  Tidy comment.
388
389 2005-07-28  Richard Henderson  <rth@redhat.com>
390
391         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
392         * cselib.c (rtx_equal_for_cselib_p): Likewise.
393         * jump.c (rtx_renumbered_equal_p): Likewise.
394         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
395         CONST_INT and CONST_DOUBLE.
396         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
397         * reload.c (operands_match_p): Special case CONST_INT and
398         CONST_DOUBLE; check mode earlier.
399
400 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
401
402         PR c/22240
403         * c-typeck.c (convert_for_assignment): Do not check
404         DECL_IN_SYSTEM_HEADER on NULL fundecl.
405
406 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
407
408         PR c/22192
409         * c-typeck.c (composite_type): Prefer constant size arrays to
410         VLAs.
411
412 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
413
414         PR c/21720
415         * real.c (real_from_string): Set last bit if there is a nonzero
416         hex digit beyond GCC's internal precision.
417
418 2005-07-28  Richard Henderson  <rth@redhat.com>
419
420         PR rtl-opt/22619
421         * cfgcleanup.c (try_forward_edges): Watch out for end of
422         insn chain.
423
424 2005-07-28  James E Wilson  <wilson@specifixinc.com>
425
426         PR c/23106
427         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
428
429 2005-07-28  Jan Hubicka  <jh@suse.cz>
430
431         * Makefile.in (rtl-profile.o): Kill all traces of it.
432         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
433         * coverage.h (rtl_coverage_counter_ref): Kill.
434         * opts.c (flag_speculative_prefetching_set): Kill.
435         (flag_loop_optimize_set): New.
436         (common_handle_option): Disable loop optimizer when profiling;
437         do not handle speculative prefetching.
438         * passes.c (init_optimization_passes): Replace pass_profiling combo
439         by branch_prob pass.
440         * profile.c (compute_value_histograms): Update for simplified value
441         profiles.
442         (rtl_register_profile_hooks): Kill.
443         (pass_profiling): Kill.
444         (rest_of_handle_branch_prob): Do not profile.
445         * toplev.c (process_options): Remove speculative prefetching.
446         * toplev.h (flag_tree_based_profiling): Kill.
447         * tree-profile.c (prepare_instrumented_value,
448         tree_gen_interval_profiler, tree_gen_pow2_profiler,
449         tree_gen_one_value_profiler, do_tree_profiling): Update for
450         simplified datastructures.
451         * value-prof.c: Add comment that speculative prefetching was dropped;
452         update rest of file for simplified datastructures.
453         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
454         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
455         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
456         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
457         rtl_mod_subtract, gen_speculative_prefetch,
458         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
459         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
460         (gate_handle_value_profile_transformations,
461         rest_of_handle_value_profile_transformations,
462         pass_value_profile_transformations): Kill.
463         * value-prof.h (histogram_value_t): Remove IL based unions.
464         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
465         rtl_profile_hooks): Remove hooks.
466
467         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
468
469         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
470         (cgraph_clone_node): Likewise.
471         * cgraph.h (cgraph_clone_edge): Update prototype.
472         (cgraph_clone_node): Likewise.
473         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
474         cgraph_clone_node.
475         (lookup_recursive_calls): Consider profile.
476         (cgraph_decide_recursive_inlining): Fix updating; use new
477         probability argument; use profile.
478         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
479         * tree-inline.c (copy_bb): Update clal of clone_edge.
480         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
481
482         * invoke.texi (min-inline-recursive-probability): Document.
483
484 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
485
486         * doc/install.texi (Configuration): Update Valgrind homepage.
487
488 2005-07-28  Richard Henderson  <rth@redhat.com>
489
490         PR middle-end/21362
491         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
492         labels we want to delete.
493         (cfg_layout_merge_blocks): Likewise.
494
495 2005-07-28  Richard Henderson  <rth@redhat.com>
496
497         PR target/17692
498         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
499         when expanding to nothing.
500
501 2005-07-28  Josh Conner  <jconner@apple.com>
502
503         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
504         (cgraph_decide_inlining_of_small_functions): Likewise.
505
506 2005-07-28  Josh Conner  <jconner@apple.com>
507
508         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
509         direction of badness if negative.
510         (cgraph_default_inline_p): Add reason to parameters, and assign it
511         a value.
512         (cgraph_decide_inlining_of_small_functions): New parameter in call
513         to cgraph_default_inline_p.
514         (cgraph_decide_inlining_incrementally): Likewise.
515         * cgraphunit.c (decide_is_function_needed): Likewise.
516         * cgraph.h (cgraph_default_inline_p): Likewise.
517
518 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
519
520         * builtins.c: Fix comment typo(s).
521         * genautomata.c: Likewise.
522         * gimplify.c: Likewise.
523         * tree-dfa.c: Likewise.
524         * tree-flow-inline.h: Likewise.
525         * tree-into-ssa.c: Likewise.
526         * tree-ssa-alias.c: Likewise.
527         * tree-ssa-ccp.c: Likewise.
528         * tree-ssa-copy.c: Likewise.
529         * tree-ssa-dce.c: Likewise.
530         * tree-ssa-dom.c: Likewise.
531         * tree-ssa-operands.c: Likewise.
532         * tree-tailcall.c: Likewise.
533         * tree-vectorizer.c: Likewise.
534         * tree-vrp.c: Likewise.
535         * tree.c: Likewise.
536
537 2005-07-28  Jeff Law  <law@redhat.com>
538
539         * tree-vrp.c (test_for_singularity): Extracted from  ...
540         (simplify_cond_using_ranges): Attempt to simplify a relational
541         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
542
543 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
544
545         PR tree-optimization/22506
546         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
547         phis whose argument is constant.
548
549 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
550
551         PR rtl-optimization/18992
552         Back out this patch:
553           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
554           PR optimization/12142
555           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
556           uses of the register in the SET_SRC.  Remove unnecessary argument.
557
558         Replace it with this:
559         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
560         if flag_non_call_exceptions is set and the insn may trap, pass
561         pc_rtx as dest for recursion.
562         In SET_SRC part of SET case, if dest is already set, pass it down
563         unchanged.
564
565 2005-07-28  Jan Hubicka  <jh@suse.cz>
566
567         * cfg.c (update_bb_profile_for_threading): Use RDIV.
568         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
569         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
570         roundoff errors.
571         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
572         profile when available.
573
574 2005-07-28  Jan Beulich <jbeulich@novell.com>
575
576         * config/ia64/ia64.c (ia64_load_pair_ok): New.
577         (ia64_print_operand): Describe and handle 'X'.
578         (ia64_register_move_cost): Also handle FP_REGS.
579         (ia64_preferred_reload_class): Likewise.
580         (ia64_secondary_reload_class): Likewise.
581         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
582         it. Also check for ITANIUM_CLASS_FLDP.
583         * config/ia64/ia64.h (FP_REGNO_P): New.
584         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
585         (reg_class): Add FP_REGS.
586         (REG_CLASS_NAMES): Adjust for it.
587         (REG_CLASS_CONTENTS): Likewise.
588         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
589         (REG_CLASS_FROM_LETTER): Handle 'x'.
590         (CLASS_MAX_NREGS): Handle FP_REGS.
591         (MEMORY_MOVE_COST): Likewise.
592         * config/ia64/ia64.md (itanium_class): Add fldp.
593         (type): Handle fldp.
594         (movti_internal): More allowable operand combinations. Use ldfp8 when
595         splitting unnecessary. Remove predicable attribute. Adjust
596         itanium_class attribute.
597         (smuldi3_highpart): Remove outdated comment.
598         (mulditi3, umulditi3, rotlti3): New expanders.
599         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
600         (absti2): Disabled new insn for future reference.
601         Respective new splitters.
602         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
603         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
604         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
605
606 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
607
608         PR rtl-optimization/23047
609         * simplify-rtx.c (simplify_const_relational_operation): Respect
610         flag_wrapv for comparisons with ABS.
611
612 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
613
614         PR tree-optimization/22493
615         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
616         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
617
618 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
619
620         * config/frv/frv.opt (moptimize-membar): New.
621
622         * doc/invoke.texi: Document -moptimize-membar and its inverse.
623
624         * config/frv/frv.h: Remove machine_function definition.
625
626         * config/frv/frv.c (struct frv_io): New.
627         (struct machine_function): Moved from frv.h.  Add has_membar_p.
628         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
629         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
630         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
631         (frv_optimize_membar_global, frv_optimize_membar): New functions.
632         (frv_reorg): Call frv_optimize_membar when appropriate.
633         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
634         (frv_expand_builtin): Adjust calls accordingly.
635         (frv_io_address_cookie): New function.
636         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
637         load or store rather than a special insn.  Add ccnstant address and
638         io-type operands to the membar.
639         (frv_ifcvt_modify_tests): Unsign regno.
640         (frv_ifcvt_modify_tests): Same.
641
642         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
643         UNSPEC_OPTIONAL_MEMBAR constant.
644         (builtin_read_<mode>): Delete.
645         (builtin_write_<mode>): Delete.
646         ("optional_membar_<mode>"): Add operand.
647
648         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
649         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
650         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
651         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
652         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
653         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
654         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
655         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
656         * testsuite/gcc.target/frv/all-read-write-1.c: New.
657
658 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
659
660         * df.c (df_uses_record): Handle SCRATCH.
661
662 2005-07-28  Steven Bosscher  <stevenb@suse.de>
663
664         PR debug/20161
665         * passes.c (rest_of_decl_compilation): If decl is a type and
666         we have encountered errors, don't emit debug information.
667
668 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
669
670         * params.def: Fixed comment.
671         
672 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
673
674         PR target/19885
675         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
676         (TARGET_ASM_UNALIGNED_HI_OP): Add.
677         (TARGET_ASM_UNALIGNED_SI_OP): Add.
678
679 2005-07-27  Steven Bosscher  <stevenb@suse.de>
680
681         PR c++/22003
682         * varasm.c (assemble_start_function): Don't do anything that may
683         require a CFG if the current function is a thunk.
684
685 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
686
687         * doc/install.texi (Prerequisites): Mention that perl is needed
688         to do export control in libstdc++ targetting Darwin.
689
690 2005-07-27  Steven Bosscher  <stevenb@suse.de>
691
692         PR rtl-optimization/17808
693         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
694         (sched_insns_conditions_mutex_p): Split out from...
695         (add_dependence): ...here.  But don't call it from here.
696         (add_dependence_list): Check sched_insns_conditions_mutex_p
697         before calling add_dependence.
698         (add_dependence_list_and_free): Likewise.
699         (fixup_sched_groups): Likewise.
700         (sched_analyze_1): Likewise.
701         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
702         (sched_analyze): Likewise.
703         (sched_analyze_insn): Likewise.
704         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
705         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
706         dependencies on all COND_EXEC insns to jumps ending basic blocks
707         when doing intrablock scheduling.
708         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
709
710 2005-07-27  Jeff Law  <law@redhat.com>
711
712         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
713         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
714         equivalency sets, correctly handle the case were vr0 has an
715         equivalency set, but vr1 does not.
716
717 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
718
719         PR tree-optimization/23073
720         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call 
721         vect_print_dump_info before fprintf.
722
723 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
724
725         PR tree-optimize/22348
726         * tree-ssa-loop-niter.c (number_of_iterations_cond):
727         Fold the partial computation.
728
729 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
730
731         PR tree-optimization/22325
732         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
733         Declare.
734         * tree-scalar-evolution.c (scev_const_prop): Add generic final
735         value replacement.
736         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
737         (force_var_cost): ... this function.
738         (compute_phi_arg_on_exit): Export.
739
740 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
741
742         PR tree-optimization/20773
743         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
744         edge.
745
746 2005-07-27  Richard Guenther  <rguenther@suse.de>
747
748         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
749         Avoid pushing again if current struct contains only
750         fields we decomposed.
751
752 2005-07-27  Jan Hubicka  <jh@suse.cz>
753
754         PR tree-optimization/22574
755         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
756         not available.
757
758         * tree-tailcall.c (decrease_profile): New function.
759         (eliminate_tail_call): Use it.
760
761         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
762         visibility flags correctly in whole program mode.
763
764 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
765
766         PR rtl-optimization/22472
767         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
768
769 2005-07-26  Steven Bosscher  <stevenb@suse.de>
770
771         PR tree-optimization/22504
772         * tree-complex.c (expand_complex_addition): Use 'code' instead
773         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
774
775 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
776
777         * config.gcc (cpu_type): Add frv case.
778         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
779         (supported_defaults): Add fr550 case.
780
781 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
782
783         PR 22591
784         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
785         whether a pointer of type T * may point to objects of type T *.
786
787 2005-07-26  DJ Delorie  <dj@redhat.com>
788
789         * configure: Regenerate.
790
791 2005-07-26  Dale Johannesen  <dalej@apple.com>
792
793         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
794
795 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
796
797         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
798         Clarify use of "build" in name.
799
800 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
801
802         * doc/extend.texi (Raw read/write Functions): New section.
803         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
804         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
805         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
806         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
807         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
808         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
809         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
810         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
811         * config/frv/frv.c: Add bdesc_loads global.
812         Add bdesc_stores global.
813         (frv_init_builtins): Add support for __builtin_{read/write}*.
814         (frv_volatile_memref): New.
815         (frv_expand_load_builtin): New.
816         (frv_expand_store_builtin): New.
817         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
818         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
819         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
820         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
821         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
822         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
823         (builtin_read_<mode>): New.
824         (builtin_write_<mode>): New.
825         (builtin_write64): New.
826         (optional_membar_<mode>): New.
827
828 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
829
830         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
831         (rather than units) against HOST_BITS_PER_WIDE_INT.
832
833 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
834
835         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
836         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
837         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
838         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
839         FSF address.
840
841         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
842         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
843         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
844         comment typos.
845         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
846
847 2005-07-26  Richard Guenther  <rguenther@suse.de>
848
849         PR tree-optimization/22486
850         * fold-const.c (fold_unary): Fold away useless component
851         references of the form (T *)&T.x, if the address
852         doesn't change.
853
854 2005-07-25  James E Wilson  <wilson@specifixinc.com>
855
856         * dwarf2out.c (add_call_src_coords_attributes): New.
857         (gen_inlined_subroutine_die): Call it.
858         (maybe_emit_file, init_file_table): Add comments.
859         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
860         maybe_emit_file.
861         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
862         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
863         * tree.h (BLOCK_SOURCE_LOCATION): New.
864         (struct tree_block): New field locus.
865
866 2005-07-26  Andreas Schwab  <schwab@suse.de>
867
868         PR rtl-optimization/23043
869         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
870         when allocating a struct unoccr.
871
872 2005-07-25  Richard Henderson  <rth@redhat.com>
873
874         PR 22626
875         * tree-complex.c (gate_no_optimization): True if errors.
876         * Makefile.in (tree-complex.o): Update dependencies.
877
878 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
879
880         * config/frv/predicates.md (integer_register_operand): Use
881         GPR_AP_OR_PSEUDO_P.
882
883 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
884
885         PR tree-opt/22484
886         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
887         after fold.
888         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
889
890 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
891
892         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
893         types when flag_unsafe_math_optimizations is true.
894
895 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
896
897         * gcc.c (option_map): Add --sysroot.
898         (process_command): Handle --sysroot.
899         (display_help): Document it.
900         * doc/cppopts.tex (-isysroot): Document.
901         * doc/invoke.texi (--sysroot): Document.
902         * doc/install.texi (--with-build-sysroot): Document.
903
904         * Makefile.in (inhibit_libc): New variable.
905         (INHIBIT_LIBC_CFLAGS): Likewise.
906         (LIBGCC2_CFLAGS): Include
907         $(INHIBIT_LIBC_CFLAGS).
908         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
909         ($(T)crtbegin.o): Do not use @inhibit_libc@.
910         ($(T)crtend.o): Likewise.
911         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
912         ($(T)crtendS.o): Likewise.
913         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
914         ($(T)crtendT.o): Likewise.
915         (stmp-fixinc): Do not complain about missing headers if
916         inhibit_libc.
917         * configure.ac (inhibit_libc): Set it to true/false.
918         (--with-build-sysroot): New option.  Use it to set
919         SYSTEM_HEADER_DIR. 
920         * configure: Regenerated.
921
922 2005-07-25  Manfred Hollstein  <mh@suse.com>
923
924         * calls.c (store_one_arg): Fix unsigned comparison warning.
925
926 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
927
928         PR other/22337
929         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
930         (ggc_print_statistics): Initialize variable before use.
931
932 2005-07-25  Richard Guenther  <rguenther@suse.de>
933
934         * tree-dfa.c (mark_new_vars_to_rename): Protect against
935         calling with a PHI_NODE argument.
936
937         * tree-flow-inline.h (overlap_subvar): Protect against
938         possible overflow.
939
940 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
941
942         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
943         * configure: Regenerate.
944
945 2005-07-25  Ira Rosen  <irar@il.ibm.com>
946
947         * expr.c (highest_pow2_factor): Make extern.
948         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
949         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
950         record_array_differ_p, array_ptr_differ_p): Likewise.
951         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
952         additional cases. Call the above functions.
953         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
954         base_object_differ_p when there are two base objects. Otherwise, compare
955         base address and offset. Call may_alias_p.
956         (dump_data_reference): Use a correct field name.
957         (analyze_array): Make static. Initialize new data-ref fields.
958         (analyze_indirect_ref): New function.
959         (init_data_ref): Initialize new data-ref fields.   
960         (strip_conversion): Moved from tree-vect-analyze.c. 
961         (analyze_offset_expr, get_ptr_offset, address_analysis,
962         object_analysis): Likewise.
963         (analyze_offset): New function.
964         (create_data_ref): Likewise.
965         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
966         dimensions for ARRAY_REFs only.
967         (build_classic_dist_vector): Make static.
968         (access_functions_are_affine_or_constant_p): Call macro to get the
969         address of access functions.
970         (compute_all_dependences): Add new parameter
971         compute_self_and_read_read_dependences. Compute self and read-read  
972         dependences if it is true.
973         (find_data_references_in_loop): Call create_data_ref. Initialize new
974         data-ref fields.
975         (compute_data_dependences_for_loop): Add new parameter
976         compute_self_and_read_read_dependences. Remove parameter nb_loops,
977         compute nb_loops. Call compute_all_dependences,
978         build_classic_dist_vector and build_classic_dir_vector with correct
979         parameters.
980         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
981         with correct parameters. Compare dimensions for ARRAY_REFs only.
982         (free_data_refs): Call macro to free access functions.
983         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
984         fields from stmt_vinfo.
985         (struct base_object_info): New structure.
986         (struct data_reference): Move fields to base_object_info. Add fields   
987         first_location and object_info for above structures. Move fields from
988         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
989         aligned_to.  Add macros to access the new fields.
990         Update functions declarations.
991         * tree-flow.h (is_aliased_with): Declare.
992         * tree-loop-linear.c (linear_transform_loops): Call
993         compute_data_dependences_for_loop with correct parameters.
994         * tree-ssa-alias.c (is_aliased_with): New function.
995         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
996         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
997         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
998         vect_base_addr_differ_p, compute_subscript_distance and
999         build_classic_dist_vector. Add printings. Check absolute value of
1000         distance.
1001         (vect_analyze_data_ref_dependences): Go through ddrs instead of
1002         data-refs.
1003         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
1004         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
1005         to bytes. Add printing.
1006         (vect_compute_data_refs_alignment): Go through loads and stores in one
1007         loop.
1008         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
1009         vect_analyze_data_ref_access): Likewise.
1010         (vect_analyze_pointer_ref_access): Remove.
1011         (vect_address_analysis, vect_object_analysis): Likewise.
1012         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
1013         and analyze data-refs in the loop.
1014         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
1015         fields of data-ref instead of stmt. Add init to the offset from the
1016         base.
1017         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
1018         (vect_update_init_of_dr): Likewise.
1019         (vect_update_inits_of_drs): Go through loads and stores in one loop.
1020         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
1021         removed fields.
1022         (new_loop_vec_info): Initialize new fields.
1023         (destroy_loop_vec_info): Free new fields.
1024         (vect_strip_conversion): Remove.
1025         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
1026         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
1027         datarefs. Add new field ddrs. 
1028         Add macros for the new fields access.
1029         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
1030         base_aligned_p, misalignment, memtag, ptr_info and subvars.
1031         Remove their macros.
1032         * tree.h (highest_pow2_factor): Declare.
1033
1034 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
1035
1036         * calls.c (store_one_arg): Check for sibling call MEM arguments
1037         from already clobbered incoming argument area.
1038
1039 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1040
1041         * c-common.c (check_missing_format_attribute): New.
1042         * c-common.h (check_missing_format_attribute): Likewise.
1043         * c-typeck.c (convert_for_assignment): Use it.
1044
1045 2005-07-24  Andreas Schwab  <schwab@suse.de>
1046
1047         * config/m68k/m68k.md ("extendqidi2"): When source is an address
1048         register use a word move.  Correct operand of ext.w in 68000 code.
1049
1050 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
1051
1052         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
1053         variables as declarations, rather than definitions.
1054
1055 2005-07-24  Ira Rosen  <irar@il.ibm.com>
1056
1057         PR tree-optimization/22526
1058         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
1059         of the zero node.
1060
1061 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1062
1063         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
1064         that C99 reserve for future use. Use it to define clog10,
1065         clog10f and clog10l.
1066
1067 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1068
1069         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
1070         * configure.ac: Check for -Wmissing-format-attribute.
1071         
1072         * configure: Regenerate.
1073
1074 2005-07-23  Richard Henderson  <rth@redhat.com>
1075
1076         PR tree-optimization/22623
1077         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
1078
1079 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
1080
1081         PR target/22577
1082         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
1083
1084 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1085
1086         * Makefile.in (C_TREE_H): Update dependencies.
1087         * c-tree.h: Include toplev.h.
1088         * diagnostic.h (diagnostic_set_info): Add format attribute.
1089         * rtl-error.c (diagnostic_for_asm): Likewise.
1090
1091 2005-07-23  Chao-ying Fu  <fu@mips.com>
1092
1093         * config/mips/mips-dsp.md: New file.
1094         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
1095         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
1096         functions.
1097         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
1098         MIPS_BUILTIN_BPOSGE32.
1099         (mips_expand_builtin_direct): Add one parameter to indicate that
1100         builtin functions need to return a value.
1101         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
1102         functions.
1103         (mips_regno_to_class): Add classes for 12 new DSP registers.
1104         (mips_subword): Change to check four HI registers.
1105         (mips_output_move): Output move to and from 6 new DSP accumulators.
1106         (override_options): Make sure -mdsp and -mips16 are not used together.
1107         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
1108         for machine modes.
1109         (mips_conditional_register_usage): Disable 6 new DSP accumulators
1110         when !TARGET_DSP.
1111         (print_operand): Add 'q' for printing DSP accumulators.
1112         (mips_cannot_change_mode_class): Check ACC_REGS.
1113         (mips_secondary_reload_class): Check ACC_REGS.
1114         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
1115         (mips_register_move_cost): Check ACC_REGS.
1116         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
1117         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
1118         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
1119         (dsp_bdesc): New array.
1120         (bdesc_arrays): Add DSP builtin function table.
1121         (mips_prepare_builtin_arg): Check predicate again after
1122         copy_to_mode_reg.
1123         (mips_expand_builtin): Add one more parameter to
1124         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
1125         MIPS_BUILTIN_BPOSGE32.
1126         (mips_init_builtins): Initialize new function types.
1127         (mips_expand_builtin_direct): Check if builtin functions need to
1128         return a value and pass operands properly.
1129         (mips_expand_builtin_bposge): New function.
1130         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
1131         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
1132         (FIRST_PSEUDO_REGISTER): Increase to 188.
1133         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1134         Update for 12 new DSP registers.
1135         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
1136         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
1137         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
1138         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
1139         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
1140         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
1141         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
1142         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
1143         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
1144         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
1145         (REGISTER_NAMES): Add names for 12 new DSP registers.
1146         * config/mips/mips.md: Include mips-dsp.md.
1147         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
1148         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
1149         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
1150         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
1151         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
1152         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
1153         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
1154         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
1155         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
1156         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
1157         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
1158         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
1159         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
1160         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
1161         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
1162         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
1163         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
1164         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
1165         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
1166         (UNSPEC_RDDSP): New constants.
1167         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
1168         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
1169         A<-d alternative.
1170         * config/mips/mips.opt (-mdsp): New option.
1171         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
1172         (reg_imm10_operand): New predicates.
1173         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
1174         * doc/invoke.texi (-mdsp): Document new option.
1175
1176 2005-07-22  DJ Delorie  <dj@redhat.com>
1177
1178         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
1179         to warning calls.
1180         * tree-inline.c (inlinable_function_p): Likewise.
1181
1182 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
1183
1184         PR debug/21828
1185         * toplev.c (check_global_declarations): Do not mark undefined
1186         variables as DECL_IGNORED_P.
1187         * varasm.c (first_global_object_name): GTY it.
1188         (weak_global_object_name): Likewise.
1189         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
1190         a string to go into {weak,first}_global_object_name.
1191
1192 2005-07-22  DJ Delorie  <dj@redhat.com>
1193
1194         * c-format.c (check_function_format): Change warning control
1195         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
1196
1197 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
1198
1199         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
1200         &PTR->FLD a dereference of PTR.
1201         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
1202         a potential dereference of PTR.
1203
1204 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
1205
1206         PR rtl-optimization/20370
1207         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
1208         call allocate_reg_info if necessary.
1209
1210         PR rtl-optimization/21848
1211         * calls.c (emit_library_call_value_1): For const functions, add
1212         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
1213
1214         PR rtl-optimization/22445
1215         * cselib.c (target.h): Include.
1216         (rtx_equal_for_cselib_p): Allow commutative matches.
1217         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
1218         Remove MODE parameter.  Changed all callers.
1219
1220         PR rtl-optimization/22258
1221         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
1222         New functions.
1223         (try_combine): Use likely_spilled_retval_p.
1224
1225 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
1226
1227         * config.gcc: Add crx-elf support.
1228
1229         * doc/contrib.texi: Mention crx.
1230         * doc/extend.texi: Document crx extensions.
1231         * doc/install.texi: Document crx install.
1232         * doc/invoke.texi: Document crx options.
1233         * doc/md.texi: Document crx constraints.
1234
1235         * config/crx/crx-protos.h: New file.
1236         * config/crx/crx.c: New file.
1237         * config/crx/crx.h: New file.
1238         * config/crx/crx.md: New file.
1239         * config/crx/crx.opt: New file.
1240         * config/crx/t-crx: New file.
1241         
1242 2005-07-22  Manfred Hollstein  <mh@suse.com>
1243
1244         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
1245         warnings.
1246         (int_add_graph_edge): Likewise.
1247         (collapse_nodes): Likewise.
1248         (process_unification_queue): Likewise.
1249
1250 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1251             Laurent GUERBY  <laurent@guerby.net>
1252
1253         PR tree-optimization/22336
1254         * function.c (record_block_change): Check for 
1255         cfun->ib_boundaries_block.
1256         
1257 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
1258
1259         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
1260         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
1261
1262 2005-07-21  DJ Delorie  <dj@redhat.com>
1263
1264         * toplev.c (warn_deprecated_use): Add warning control to warning
1265         call.
1266         * c-typeck.c (parser_build_binary_op): Likewise.
1267         (c_finish_if_stmt): Likewise.
1268         * c-common.c (check_function_sentinel): Likewise.
1269         (check_nonnull_arg): Likewise.
1270
1271 2005-07-21  Richard Henderson  <rth@redhat.com>
1272
1273         PR tree-opt/22504
1274         * tree-complex.c (complex_ssa_name_components): New.
1275         (cvc_lookup): Allow entry not found.
1276         (create_components): Remove.
1277         (create_one_component_var, get_component_var): New.
1278         (get_component_ssa_name, set_component_ssa_name): New.
1279         (extract_component): Use get_component_ssa_name.
1280         (update_complex_components): Use set_component_ssa_name.
1281         (update_complex_components_on_edge): Likewise.
1282         (update_phi_components): Create new PHI nodes directly, instead
1283         of adding insns to edges.
1284         (tree_lower_complex): Allocate and free complex_variable_components
1285         and complex_ssa_name_components here.
1286
1287 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
1288         
1289         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
1290         revert to returning false.
1291
1292 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
1293
1294         PR target/21149
1295         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
1296
1297 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
1298
1299         PR target/22576
1300         * config/i386/i386.md (cmpxf): Change operand constraints
1301         to "nonmemory_operand".
1302
1303 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1304
1305         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
1306
1307 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1308
1309         PR middle-end/21180
1310         * fold-const.c (fold_build1): Add checksum for the operands.
1311         (fold_build2): Likewise.        
1312         (fold_build3): Likewise.
1313
1314 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
1315
1316         PR middle-end/19055
1317         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
1318
1319 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
1320
1321         * common.opt (-fforward-propagate): Committed by mistake,
1322         removed.
1323
1324 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1325
1326         * reg-stack.c: Fix comment typo(s).
1327         * tree-ssa-operands.c: Likewise.
1328         * tree-vectorizer: Likewise.
1329
1330 2005-07-21  Nick Clifton  <nickc@redhat.com>
1331
1332         * config/sh/symbian.c: Replace C++ style line comments with C
1333         style line comments.
1334         (symbian_add_attribute): Do not use a ? operator on the LHS of
1335         an assignment.
1336         (sh_symbian_handle_dll_attribute): Change the type of the
1337         method vector to "VEC(tree,gc)*" and use vector accessor
1338         macros to walk over the elements.
1339         (symbian_export_vtable_and_rtti_p): Likewise.
1340         (symbian_class_needs_attribute_p): Likewise.
1341
1342 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
1343
1344         PR target/22085
1345         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
1346         initialize targetm.resolve_overloaded_builtin here.
1347         (altivec_expand_overloaded_builtin): Make it non-static.
1348         * config/rs6000/rs6000-protos.h
1349         (altivec_expand_overloaded_builtin): New prototype.
1350         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
1351         targetm.resolve_overloaded_builtin here.
1352         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
1353
1354 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
1355             Zdenek Dvorak  <dvorakz@suse.cz>
1356
1357         PR tree-optimization/19210
1358         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
1359         New.
1360         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
1361         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
1362         rely on unproven assumptions.
1363         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
1364         * tree-flow.h (number_of_iterations_exit): Add final parameter.
1365         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
1366         to number_of_iterations_exit.
1367         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
1368         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
1369         * tree-ssa-loop-niter.c (find_loop_niter,
1370         estimate_numbers_of_iterations_loop): Likewise.
1371         (number_of_iterations_exit): Honor the new options.
1372         * doc/invoke.texi (Wunsafe-loop-optimizations,
1373         funsafe-loop-optimizations): Document them.
1374
1375 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
1376
1377         PR rtl-optimization/22167
1378         * gcse.c (hoist_code): Fix hoist_exprs[] check.
1379
1380 2005-07-20  Adam Nemet  <anemet@lnxw.com>
1381
1382         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
1383         __do_global_dtors_aux longcall.
1384
1385 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
1386
1387         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
1388         (old_special_pred_table): Don't reference
1389         SPECIAL_MODE_PREDICATES.
1390         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
1391         * config/arc/arc.h: Don't mention PREDICATE_CODES.
1392         * config/sh/predicates.h: Don't mention
1393         SPECIAL_MODE_PREDICATES.
1394         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1395         Remove.
1396
1397 2005-07-20  DJ Delorie  <dj@redhat.com>
1398
1399         * config.gcc: Add m32c-elf support.
1400
1401         * doc/contrib.texi: Mention m32c.
1402         * doc/extend.texi: Document m32c extensions.
1403         * doc/install.texi: Mention m32c.
1404         * doc/invoke.texi: Document m32c options.
1405         * doc/md.texi: Document m32c constraints.
1406
1407         * config/m32c/addsub.md: New file.
1408         * config/m32c/bitops.md: New file.
1409         * config/m32c/cond.md: New file.
1410         * config/m32c/jump.md: New file.
1411         * config/m32c/m32c-lib1.S: New file.
1412         * config/m32c/m32c-lib2.c: New file.
1413         * config/m32c/m32c-modes.def: New file.
1414         * config/m32c/m32c-pragma.c: New file.
1415         * config/m32c/m32c-protos.h: New file.
1416         * config/m32c/m32c.abi: New file.
1417         * config/m32c/m32c.c: New file.
1418         * config/m32c/m32c.h: New file.
1419         * config/m32c/m32c.md: New file.
1420         * config/m32c/m32c.opt: New file.
1421         * config/m32c/minmax.md: New file.
1422         * config/m32c/mov.md: New file.
1423         * config/m32c/muldiv.md: New file.
1424         * config/m32c/predicates.md: New file.
1425         * config/m32c/prologue.md: New file.
1426         * config/m32c/shift.md: New file.
1427         * config/m32c/t-m32c: New file.
1428
1429 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1430
1431         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
1432         (stack_protect_set, stack_protect_test): New expanders.
1433         (stack_protect_set_si, stack_protect_set_si_media,
1434         stack_protect_set_di_media, stack_protect_test_si,
1435         stack_protect_test_si_media, stack_protect_test_di_media):
1436         New insns.
1437
1438 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
1439
1440         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
1441
1442 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
1443
1444         * tree.h (tree_expr_nonzero_p): Export.
1445         * fold-const.c (tree_expr_nonzero_p): Likewise.
1446         Return true for CALL_EXPRs that are alloca calls.
1447         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
1448         against zero.
1449         * tree-flow.h (expr_computes_nonzero): Remove.
1450         * tree-vrp.c (expr_computes_nonzero): Remove.
1451         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
1452         (extract_range_from_unary_expr): Likewise.
1453         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
1454         tree_expr_nonzero_p.
1455
1456 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
1457
1458         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
1459         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
1460         extra arg "picreg" and use it instead of pic_offset_table_rtx.
1461         All callers changed.
1462         (frame_related_constant_load): New arg "related" which controls
1463         setting of RTX_FRAME_RELATED_P.  All callers changed.
1464         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
1465         (bfin_expand_prologue): Add stack limit checking.
1466         * config/bfin/bfin.md (trapifcc): New pattern.
1467
1468         * config/bfin/bfin.c: Include "langhooks.h".
1469         (def_builtin): Go through lang_hooks to call builtin_function.
1470
1471         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
1472         * config/bfin/predicates.md (symbol_ref_operand): New.
1473         (call_insn_operand): Delete.  All callers changed to use
1474         register_no_elim_operand.
1475         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
1476         call_cookie field.
1477         (function_arg): Use it to generate the call's operand 2.
1478         (bfin_longcall_p): New function.
1479         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
1480         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
1481         determine if the address needs to be in a REG.
1482         (bfin_handle_longcall_attribute): New function.
1483         (bfin_attribute_table): Add "longcall" and "shortcall".
1484         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
1485         (CUMULATIVE_ARGS): New member call_cookie.
1486         (PREDICATE_CODES): Add symbol_ref_operand.
1487         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
1488         extra USE to the pattern.
1489         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
1490         New patterns, split off call_insn, sibcall_insn, call_value_insn and
1491         sibcall_value_insn; now the new patterns handle direct calls and the
1492         old ones indirect calls.
1493         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
1494
1495 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
1496
1497         * doc/trouble.texi: Update section on handling of empty loops.
1498
1499 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
1500
1501         * config.gcc: Remove support for sparc-*-openbsd*,
1502         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
1503         ns32k-*-netbsd*.
1504         * config.host: Remove support for i860-*-sysv4* as a host.
1505         * config/i860/*, config/ip2k/*, config/ns32k/*,
1506         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
1507         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
1508         mention obsolete ports.
1509
1510 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1511
1512         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
1513         soft frame pointer.
1514         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
1515         of frame_pointer_rtx.
1516         (sh_expand_epilogue): Likewise.
1517         (sh_set_return_address): Likewise.
1518         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
1519         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
1520         offsets from FRAME_POINTER_REGNUM.
1521         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
1522         (sh_register_names): Add initializer for sfp.
1523         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
1524         (VALID_REGISTER_P): Likewise.
1525         (FIRST_PSEUDO_REGISTER): Update.
1526         (DWARF_FRAME_REGISTERS): Define.
1527         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
1528         (HARD_FRAME_POINTER_REGNUM): Define.
1529         (FRAME_POINTER_REGNUM): Redefine.
1530         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
1531         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
1532         from FRAME_POINTER_REGNUM.
1533         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
1534         FRAME_POINTER_REGNUM.
1535         (REG_CLASS_CONTENTS): Add sfp.
1536         (REG_ALLOC_ORDER): Likewise.
1537         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
1538         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
1539         of frame_pointer_rtx.
1540         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1541
1542 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
1543
1544         * fold-const.c (tree_expr_nonnegative_p): Only return true for
1545         ABS_EXPR when flag_wrapv is false because of INT_MIN.
1546         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
1547         of an ABS_EXPR.
1548         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
1549         ABS_EXPR<x>.
1550
1551 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
1552
1553         Make CONSTRUCTOR use VEC to store initializers.
1554         * c-common.c (complete_array_type): Update to cope with VEC in
1555         CONSTRUCTOR_ELTS.
1556         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
1557         (pp_c_constructor_elts): New function.
1558         * c-pretty-print.h (pp_c_constructor_elts): Declare.
1559         * c-typeck.c (build_function_call, build_c_cast, digest_init,
1560         struct constructor_stack, struct initializer_stack,
1561         constructor_elements, push_init_level, pop_init_level,
1562         add_pending_init, find_init_member, output_init_element): Update to
1563         cope with VEC in CONSTRUCTOR_ELTS.
1564         * coverage.c (build_fn_info_value, build_ctr_info_value,
1565         build_gcov_info): Likewise.
1566         * expr.c (categorize_ctor_elements_1, store_constructor,
1567         expand_expr_real_1): Likewise.
1568         * fold-const.c (fold_ternary): Likewise.
1569         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
1570         gimplify_init_constructor, gimplify_expr): Likewise.
1571         * tree-dump.c (dequeue_and_dump): Likewise.
1572         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
1573         node.
1574         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
1575         CONSTRUCTOR_ELTS.
1576         * tree-sra.c (generate_element_init_1): Likewise.
1577         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1578         * tree-ssa-operands.c (get_expr_operands): Likewise.
1579         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
1580         * tree-vect-transform.c (vect_get_vec_def_for_operand):
1581         (get_initial_def_for_reduction): Likewise.
1582         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
1583         value handle in annotations.
1584         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
1585         tree_node_structure): Add support for constr_kind.
1586         (build_vector_from_ctor, build_constructor_single,
1587         build_constructor_from_list): New functions.
1588         (build_constructor): Update to take a VEC instead of a TREE_LIST.
1589         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
1590         Update to cope with VEC in CONSTRUCTOR_ELTS.
1591         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
1592         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
1593         CONSTRUCTOR_APPEND_ELT): New macros.
1594         (struct constructor_elt, struct tree_constructor): New data types.
1595         (union tree_node): Add tree_constructor field.
1596         * treestruct.def: Define TS_CONSTRUCTOR.
1597         * varasm.c (const_hash_1, compare_constant, copy_constant,
1598         compute_reloc_for_constant, output_addressed_constants,
1599         initializer_constant_valid_p, output_constant,
1600         array_size_for_constructor, output_constructor): Update to cope with
1601         VEC in CONSTRUCTOR_ELTS.
1602         * vec.h (VEC_empty, VEC_copy): New macros.
1603
1604 2005-07-19  Devang Patel  <dpatel@apple.com>
1605
1606         * dbxout.c (dbxout_type): Check Objective-C++ lang.
1607         
1608 2005-07-19  Richard Henderson  <rth@redhat.com>
1609
1610         PR tree-opt/22278
1611         * gimplify.c (gimplify_expr): Use main variant type for the temp
1612         destination for a discarded volatile read.
1613         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
1614         casts between non-void types that change volatility.
1615
1616 2005-07-15  DJ Delorie  <dj@redhat.com>
1617
1618         * toplev.h: Add comment about the first parameter for warning().
1619         * errors.h: Likewise.
1620
1621         * c.opt (Wpragmas): New.
1622         * doc/invoke.texi: Document it.
1623         
1624         * function.c (do_warn_unused_parameter): Add warning control to
1625         warning call.
1626         * c-decl.c (warn_if_shadowing): Likewise.
1627         * c-lex.c (cb_def_pragma): Likewise.
1628         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
1629         (pop_alignment): Likewise.
1630         (handle_pragma_pack): Likewise.
1631         (apply_pragma_weak): Likewise.
1632         (handle_pragma_weak): Likewise.
1633         (handle_pragma_redefine_extname): Likewise.
1634         (add_to_renaming_pragma_list): Likewise.
1635         (handle_pragma_extern_prefix): Likewise.
1636         (maybe_apply_renaming_pragma): Likewise.
1637         (handle_pragma_visibility): Likewise.
1638         
1639         * config/c4x/c4x-c.c (BAD): Likewise.
1640         (c4x_parse_pragma): Likewise.
1641         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
1642         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
1643         (rs6000_pragma_longcall): Likewise.
1644         * config/v850/v850-c.c (pop_data_area): Likewise.
1645         (ghs_pragma_section): Likewise.
1646         (ghs_pragma_section): Likewise.
1647         (ghs_pragma_interrupt): Likewise.
1648         (ghs_pragma_starttda): Likewise.
1649         (ghs_pragma_startsda): Likewise.
1650         (ghs_pragma_startzda): Likewise.
1651         (ghs_pragma_endtda): Likewise.
1652         (ghs_pragma_endsda): Likewise.
1653         (ghs_pragma_endzda): Likewise.
1654
1655 2005-07-19  Danny Berlin <dberlin@dberlin.org>
1656             Kenneth Zadeck <zadeck@naturalbridge.com>
1657
1658         * Makefile.in: Removed tree-promote-statics.c
1659         * tree-promote-statics.c: Removed.
1660         * common.opt: Removed flag-promote-statics.
1661         * opts.c: Ditto.
1662         * passes.c: Removed tree-promote-statics pass. 
1663         * tree-pass.h: Ditto.
1664         * timevar.def: Removed TV_PROMOTE_STATICS.
1665
1666
1667 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
1668
1669         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
1670         and *-*-freebsd9.
1671         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
1672         
1673 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1674
1675         PR c/22476
1676         * c-common.c (check_function_arguments): Call
1677         'check_function_format' if either -Wformat or
1678         -Wmissing-format-attribute are specified.
1679         * c-format.c (check_function_format): Check -Wformat before
1680         calling 'check_format_info'.
1681         * c-opts.c (c_common_post_options): Don't warn for
1682         -Wmissing-format-attribute without -Wformat.
1683         * c-typeck.c (convert_for_assignment): Detect additional cases for
1684         -Wmissing-format-attribute.
1685         * doc/invoke.texi (-Wmissing-format-attribute): Document new
1686         behavior.
1687
1688 2005-07-19  Richard Guenther  <rguenther@suse.de>
1689
1690         * config/i386/i386.md (lrint<mode>2): Use temporary
1691         instead of clobbering non-existent memory.
1692
1693 2005-07-19  Nick Clifton  <nickc@redhat.com>
1694
1695         * config/avr/avr.c (legitimate_address_p): Fix debugging print
1696         statement to avoid displaying ASCII control characters.
1697
1698 2005-07-19  Ben Elliston  <bje@au.ibm.com>
1699
1700         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
1701         * cfganal.c (find_edge_index): Ditto.
1702         * combine.c (combine_instructions): Ditto.
1703         * ddg.c (create_scc): Ditto.
1704         (find_successors): Ditto.
1705         (find_predecessors): Ditto.
1706         (find_nodes_on_paths): Ditto.
1707         (longest_simple_path): Ditto.
1708         * flow.c (update_life_info): Ditto.
1709         (count_or_remove_death_notes): Ditto.
1710         (clear_log_links): Ditto.
1711         * modulo-sched.c (generate_reg_moves): Ditto.
1712         (find_max_asap): Ditto.
1713         (find_max_hv_min_mob): Ditto.
1714         (find_max_dv_min_mob): Ditto.
1715         * sbitmap.c (sbitmap_first_set_bit): Ditto.
1716         * sched-rgn.c (extract_edgelst): Ditto.
1717         * tree-into-ssa.c (prepare_names_to_update): Ditto.
1718         (dump_update_ssa): Ditto.
1719         (ssa_names_to_replace) Ditto.
1720         (switch_virtuals_to_full_rewrite): Ditto.
1721         (update_ssa): Ditto.
1722         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
1723
1724 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
1725
1726         Fix PR tree-optimization/22483
1727         
1728         * tree-complex.c (create_components): Use
1729         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
1730         * tree-flow-inline.h (fill_referenced_var_vec): New function.
1731         * tree-flow.h (safe_referenced_var_iterator): New structure.
1732         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
1733         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
1734         safe_referenced_var iterator.
1735         (add_type_alias): Ditto.
1736
1737 2005-07-19  Steven Bosscher  <stevenb@suse.de>
1738
1739         * loop-init.c (rest_of_handle_loop2): Remove.
1740         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
1741         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
1742         (pass_rtl_loop_init, pass_rtl_loop_done,
1743         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
1744         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
1745         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
1746         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
1747         pass_tree_loop_done, and pass_tree_unswitch.
1748         (gate_loop): Rename to gate_tree_loop.
1749         * passes.c (init_optimization_passes): Update for renamed tree
1750         loop passes.  Add the new loop2 passes as subpasses of loop2.
1751         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
1752         Update for the renamed tree loop passes.
1753
1754 2005-07-18  Ian Lance Taylor  <ian@airs.com>
1755
1756         PR middle-end/22057
1757         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
1758         blocks when optimizing.
1759
1760 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
1761
1762         * common.opt (frename-registers): Initialize to 2.
1763         (fweb): Ditto.
1764         (fgcse-after-reload): Ditto.
1765         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
1766         (process_options): Only change flag_web, flag_rename_registers,
1767         and flag_rerun_cse_after_loop if not explicitly set by user.
1768
1769 2005-07-18  Jan Beulich  <jbeulich@novell.com>
1770
1771         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
1772         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
1773         in 64-bit mode the same as DImode in 32-bit mode.
1774         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
1775         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
1776         mode. Add new mode parameter. 
1777         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
1778         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
1779         x86_64_shift_adj): New expanders.
1780         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
1781         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
1782         insns.
1783         Respective new splitters. Use renamed shift splitter helpers in 32-bit
1784         DImode shift splitters.
1785         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
1786         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
1787         mode parameter.
1788
1789 2005-07-18  Jan Beulich  <jbeulich@novell.com>
1790
1791         * i386.md (movdi_extzv_1): New.
1792         (zero_extendhidi2): Combine alternatives and never force use of
1793         REX64 prefix.
1794         (zero_extendqidi2): Likewise. Don't restrict input selection.
1795
1796 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
1797
1798         Fix PR tree-optimization/22531
1799         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
1800          moment.
1801
1802 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
1803
1804         * tree-promote-statics.c (pass_promote_statics): Change dump file
1805          name.
1806
1807 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
1808
1809         * tree-optimize.c (init_tree_optimization_passes): Add
1810         pass_eliminate_useless_stores pass.
1811         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
1812         * tree-ssa-pre.c (is_copy_stmt): New function.
1813         (follow_copies_till_vuse): Ditto.
1814         (do_eustores): Ditto.
1815         (gate_eustores): Ditto. 
1816         
1817 2005-07-16  Richard Henderson  <rth@redhat.com>
1818
1819         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
1820
1821 2005-07-16 Danny Berlin <dberlin@dberlin.org>
1822            Kenneth Zadeck <zadeck@naturalbridge.com>
1823
1824         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
1825         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
1826         ipa-type-escape.h, tree-promote-statics.c
1827         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
1828         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h, 
1829         tree-promote-statics.c: new files.
1830         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
1831         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
1832         int nonlocal_set_p, mark_constant_function): Deleted.
1833         (rest_of_handle_cfg): Removed call to mark_constant_function. 
1834         (nonoverlapping_component_refs_p): Added calls to support
1835         type based aliasing.    
1836         * tree-ssa-alias.c (may_alias_p,
1837         compute_flow_insensitive_aliasing): Ditto.
1838         * calls.c (flags_from_decl_or_type): Removed reference to
1839         cgraph_rtl_info. 
1840         * c-typeck.c (convert_arguments): Make builtins tolerant of having
1841         too many arguments.  This is necessary for Spec 2000.
1842         * cgraph.h (const_function, pure_function): Removed.
1843         * common.opt: Added "fipa-pure-const", "fipa-reference",  
1844         "fipa-type-escape", and "ftree-promote-static".
1845         * opts.c: Ditto.
1846         * passes.c: Added ipa and tree-promote-statics passes. 
1847         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
1848         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
1849         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
1850         * tree-flow.h: Added exposed sra calls and addition of 
1851         reference_vars_info field for FUNCTION_DECLS.
1852         * tree-pass.h: Added passes.
1853         * tree-sra.c: (sra_init_cache): New function.
1854         (sra_insert_before, sra_insert_after) Made public.
1855         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
1856         and made public.
1857         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
1858         aliasing. (may_alias_p): Added code to use type escape analysis to
1859         improve alias sets.
1860         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
1861         code to prune clobbers of static variables based on information
1862         produced in ipa-reference pass.  Changed call clobbering so that
1863         statics are not marked as clobbered if the call does not clobber
1864         them.
1865
1866 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
1867
1868         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
1869         too.
1870
1871 2005-07-16  Eric Botcazou <ebotcazou@libertysurf.fr>
1872
1873         * doc/install.texi (*-*-solaris2*): Document recommended version
1874         of GNU binutils and mention GNU linker problem on Solaris 10.
1875
1876 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
1877
1878         PR c/22421
1879         * c-decl.c (c_build_bitfield_integer_type): New function.
1880         (finish_struct): Call it.
1881         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
1882
1883 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1884
1885         * c-typeck.c (digest_init): Call 'convert_for_assignment'
1886         before returning.
1887
1888 2005-07-16  Jan Hubicka  <jh@suse.cz>
1889
1890         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
1891         (scale_bbs_frequencies_int): Watch roundoff errors.
1892         * predict.c (return_prediction): Initialize return_stmt.
1893
1894 2005-07-16  Jan Hubicka  <jh@suse.cz>
1895
1896         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
1897         after RTL profiling.
1898
1899 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
1900
1901         PR middle-end/22398
1902         * fold-const.c (build_range_check): Convert high/low to etype
1903         if we are only comparing against exp.
1904
1905 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
1906
1907         Fix PR tree-optimization/22376
1908         * tree-ssa-structalias.c (build_constraint_graph): We really meant
1909         special var here.
1910         (need_to_solve): New function.
1911         (compute_points_to_sets): Use it.
1912         
1913 2005-07-15  Jan Hubicka  <jh@suse.cz>
1914
1915         * cfg.c (update_bb_profile_for_threading): More diagnostic.
1916         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
1917
1918 2005-07-15  Richard Guenther  <rguenther@suse.de>
1919
1920         * c-common.c (handle_flatten_attribute): New function.
1921         Add flatten function attribute.
1922         * doc/extend.texi: Document flatten function attribute.
1923         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
1924         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
1925         New functions.
1926         (cgraph_decide_inlining): Handle functions with flatten
1927         attribute.
1928
1929 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
1930
1931         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
1932         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
1933         UNSPEC_XCHG, UNSPEC_AND): New.
1934         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
1935         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
1936         * config/rs6000/sync.md (FETCHOP): New code macro.
1937         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
1938         New code attrs.
1939         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
1940         (sync_compare_and_swap<mode>): Same.
1941         (sync_lock_test_and_set<mode>): Same.
1942         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
1943         for QImode and HImode, and not PPC405.
1944         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
1945         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
1946         (sync_<fetchop>{si,di}_internal): New.
1947         (sync_nand{si,di}_internal): New.
1948         (sync_old_<fetchop>{si,di}_internal): New.
1949         (sync_old_nand{si,di}_internal): New
1950         (sync_new_<fetchop>{si,di}_internal): New.
1951         (sync_new_nand{si,di}_internal): New.
1952         (atomic_and{si,di}): New.
1953         (sync_new_nand{si,di}_internal): New.
1954         (atomic_and{si,di}): New.
1955         (sync_add<mode>_internal): Delete.
1956         (sync_addshort_internal): Use unspec instead of unspec_volatile.
1957         (sync_sub<mode>_internal): Delte.
1958         (sync_subshort_internal): New.
1959         (sync_andsi_internal): Use unspec instead of unspec_volatile.
1960         (sync_anddi_internal): Delete.
1961         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
1962         (sync_booldi_internal): Delete.
1963         (sync_boolc<mode>_internal): Delete.
1964         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
1965         (sync_boolc<mode>_internal2): Delete.
1966         (sync_boolcc<mode>_internal): Delete.
1967         (isync, lwsync): Use unspec instead of unspec_volatile.
1968         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
1969         Revert UNSPEC_VOLATILE.
1970         (rs6000_split_atomic_op): New.
1971         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
1972
1973 2005-07-14  Eric Christopher  <echristo@redhat.com>
1974
1975         * config/mips/mips.c (mips_canonicalize_comparison): Cast
1976         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
1977
1978 2005-07-14  Eric Christopher  <echristo@redhat.com>
1979
1980         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
1981
1982 2005-07-14  Steven Bosscher  <stevenb@suse.de>
1983
1984         PR tree-optimization/22230
1985         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
1986         the computation of the four cross productions for "range op range".
1987
1988 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
1989             Ulrich Weigand  <uweigand@de.ibm.com>
1990
1991         PR target/20126
1992         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
1993         in some insn.
1994
1995 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
1996
1997         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
1998
1999 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
2000
2001         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
2002
2003 2005-07-14  Richard Guenther  <rguenther@suse.de>
2004
2005         PR middle-end/22347
2006         * config/i386/i386-protos.h (ix86_function_value): Change
2007         prototype to match new target hook.
2008         * config/i386/i386.c (ix86_value_regno): Change prototype
2009         to take extra type argument.
2010         (TARGET_FUNCTION_VALUE): Define.
2011         (ix86_function_ok_for_sibcall): Pass extra argument to
2012         ix86_value_regno, check return slot rtx for exact match.
2013         (ix86_function_value): Take extra parameter.  Dispatch to
2014         ix86_value_regno with fndecl/fntype as provided.
2015         (ix86_value_regno): Handle extra type argument.
2016         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
2017
2018         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
2019         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
2020         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
2021         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
2022         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
2023
2024 2005-07-14  Richard Guenther  <rguenther@suse.de>
2025
2026         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
2027         * calls.c (expand_call): Pass fntype to hard_function_value.
2028         (emit_library_call_value_1): Likewise.
2029         * explow.c: Include target.h.
2030         (hard_function_value): Take extra argument, the fntype.
2031         Use new target hook for function_value.
2032         * expr.h (hard_function_value): Change prototype.
2033         * function.c (aggregate_value_p): Pass 0 as fntype to
2034         hard_function_value.
2035         (assign_parms): Use new target hook for function_value.
2036         Pass 0 as fntype to hard_function_value.
2037         (expand_function_end): Likewise.
2038         * reg-stack.c: Include target.h.
2039         (stack_result): Use new target hook for function_value.
2040         * target-def.h: New target hook function_value.
2041         * target.h: Likewise.
2042         * targhooks.c (default_function_value): New function.
2043         * targhooks.h (default_function_value): Declare.
2044
2045 2005-07-13  Ian Lance Taylor  <ian@airs.com>
2046
2047         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
2048
2049 2005-07-14  Jan Hubicka  <jh@suse.cz>
2050
2051         * tree-dfa.c (dump_variable): Use default_def function.
2052         * tree-ssa-alias.c (dump_points_to_info): Likewise.
2053         * tree-ssa.c (verify_use): Likewise.
2054         * tree-ssanames.c (release_ssa_name): Likewise.
2055         * tree-tailcall.c (eliminate_tail_call): Likewise.
2056         (tree_optimize_tail_calls_1): Likewise.
2057         * tree-vrp.c (get_value_range): Likewise.
2058
2059 2005-07-14  Ben Elliston  <bje@au.ibm.com>
2060
2061         * gcc.c (main): Compare language[0] with '*' when iterating over
2062         the infiles.
2063
2064 2005-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
2065
2066         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
2067         "s390_emit_compare".  Add handling of CCZ1mode.
2068         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
2069         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
2070         checking.
2071         (s390_branch_condition_mask): Add CCZ1mode handling.
2072         * config/s390/s390.md: ("seq", "*seq"): New pattern.
2073         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
2074         Use CCZ1mode instead of CCZmode.
2075         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
2076
2077 2006-07-13  Adrian StraeĀ½tling  <straetling@de.ibm.com>
2078
2079         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
2080         pattern.
2081         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
2082
2083 2005-07-13  Eric Christopher  <echristo@redhat.com>
2084
2085         * config/mips/mips.c (mips_canonicalize_comparison): New.
2086         (mips_emit_int_relational): Use.
2087
2088 2005-07-13  Eric Christopher  <echristo@redhat.com>
2089
2090         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2091         static extra parts.
2092         * config/s390/s390.md: Include tpf.md. Move tpf specific
2093         patterns...
2094         * config/s390/tpf.md: To here.
2095         * config/s390/s390.opt: Move tpf specific options...
2096         * config/s390/tpf.opt: to here. Add mmain option.
2097         * config/s390/tpf-unwind.h: Remove unnecessary defines.
2098         * config/s390/tpf.h: Rewrite.
2099
2100 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2101
2102         * doc/tm.texi: Remove @xref{Cross-profiling}.
2103
2104 2005-07-13  Jeff Law  <law@redhat.com>
2105
2106         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
2107         expressions, test their _DECL operands for pointer equality rather
2108         than using operand_equal_p.
2109
2110 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2111
2112         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
2113         (TARGET_POSIX_IO): This.
2114         * config/darwin.h: Likewise.
2115         * config/freebsd.h: Likewise.
2116         * config/linux.h: Likewise.
2117         * config/lynx.h: Likewise.
2118         * config/netbsd.h: Likewise.
2119         * config/rs6000/linux64.h: Likewise.
2120         * config/rs6000/linux.h: Likewise.
2121         * config/s390/tpf.h: Likewise.
2122         * config/sh/embed-elf.h: Likewise.
2123         * config/sparc/linux64.h: Likewise.
2124         * config/sparc/linux.h: Likewise.
2125         * config/svr4.h: Likewise.
2126         * gcov-io.h: Likewise.
2127
2128         * doc/tm.texi: Updated.
2129
2130         * libgcov.c (create_file_directory): Defined only if
2131         TARGET_POSIX_IO is defined.
2132         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
2133         is defined.
2134
2135 2005-07-13  Jan Hubicka  <jh@suse.cz>
2136
2137         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
2138
2139 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
2140
2141         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
2142         structure as argument.
2143
2144 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
2145
2146         PR tree-optimization/21921
2147         * tree-iterator.c (tsi_link_before): Support the case when
2148         tsi_end_p (tsi) == true.
2149
2150 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2151
2152         PR tree-optimization/22442
2153         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
2154         correctly.
2155
2156 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2157
2158         PR rtl-optimization/20376
2159         * toplev.c (process_options): Enable -fweb and -frename-registers when
2160         unrolling.
2161         * doc/invoke.texi: Update the information about when -fweb and
2162         -frename-registers are enabled.
2163
2164 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2165
2166         PR tree-opt/21840
2167         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
2168         if *rhs_p is not a SSA_NAME.
2169
2170 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
2171         
2172         Fix PR tree-optimization/22422 
2173         * tree-ssa-structalias.c (struct variable_info): Add flag for
2174         special vars.
2175         (get_varinfo): Now a static function.
2176         (new_varinfo): init has_union and is_special_var to false.
2177         (solution_set_add): Check has_union.
2178         (do_da_constraint): Move temporary variable so it gets reset
2179         properly.
2180         Also check for special variable.
2181         (do_ds_constraint): Ditto.
2182         (do_sd_constraint): Ditto.
2183         (do_structure_copy): Check for special variable.
2184         (find_func_aliases): Ditto.
2185         (init_base_vars): Set special vars properly.    
2186
2187 2005-07-13  Jan Hubicka  <jh@suse.cz>
2188
2189         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
2190         do unit-at-a-time.
2191
2192         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
2193         (get_expr_operands): Fix thinko wrt flags and subvars.
2194
2195         PR tree-optimize/22379
2196         * tree-inline.c (expand_call_inline): Do not output sorry in early
2197         inlining.
2198
2199 2005-07-12  Dale Johannesen  <dalej@apple.com>
2200
2201         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
2202
2203 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2204
2205         PR bootstrap/21704
2206         * host-linux.h: Include limits.h.
2207
2208 2005-07-12  Dale Johannesen  <dalej@apple.com>
2209
2210         * expr.c (compress_float_constant):  Add cost check.
2211         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
2212
2213 2005-07-12  Dale Johannesen  <dalej@apple.com>
2214
2215         * gcc.target/i386/compress-float-sse.c:  New.
2216         * gcc.target/i386/compress-float-sse-pic.c:  New.
2217         * gcc.target/i386/compress-float-387.c:  New.
2218         * gcc.target/i386/compress-float-387-pic.c:  New.
2219         * gcc.dg/compress-float-ppc.c:  New.
2220         * gcc.dg/compress-float-ppc-pic.c:  New.
2221
2222 2005-07-12  Eric Christopher  <echristo@redhat.com>
2223
2224         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
2225         static extra parts.
2226         * config/s390/s390.md: Include tpf.md. Move tpf specific
2227         patterns...
2228         * config/s390/tpf.md: To here.
2229         * config/s390/s390.opt: Move tpf specific options...
2230         * config/s390/tpf.opt: to here. Add mmain option.
2231         * config/s390/tpf-unwind.h: Remove unnecessary defines.
2232         * config/s390/tpf.h: Rewrite.
2233
2234 2005-07-12  Eric Christopher  <echristo@redhat.com>
2235
2236         * gcc.c (struct infile): Update comment for language.
2237         (main): Rewrite input file resetting code.
2238
2239 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
2240
2241         PR tree-opt/22335
2242         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
2243         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
2244         (lookup_avail_expr): Use constant_boolean_node instead
2245         of boolean_false_node/boolean_true_node.
2246
2247 2005-07-12  Ben Elliston  <bje@au.ibm.com>
2248
2249         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
2250         and use it when printing num_edges.
2251
2252 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2253
2254         * doc/extend.texi (Blackfin Built-in Functions): New section.
2255         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
2256         @opindex.
2257
2258 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
2259
2260         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
2261         s/cmpstrsi/cmpstrnsi
2262         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
2263         'cmpstrnsi'.
2264         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
2265         (init_optabs): Initialize cmpstrn_optab.
2266         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
2267         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
2268         * expr.c: (enum insn_code cmpstrn_optab): Declare.
2269         * config/i386/i386.md: s/cmpstr/cmpstrn
2270         * config/c4x/c4x.md: s/cmpstr/cmpstrn
2271         * doc/md.texi: Update documentation.
2272
2273 2005-07-11  Richard Henderson  <rth@redhat.com>
2274
2275         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
2276         build_va_arg_indirect_ref.
2277         (alpha_gimplify_va_arg): Likewise.
2278         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2279         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
2280         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
2281         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2282         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2283         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
2284         Likewise.
2285         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2286
2287 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2288
2289         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
2290         * passes.c (init_optimization_passes): Add pass_empty_loop.
2291         * tree-pass.h (pass_empty_loop): Declare.
2292         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
2293         try_remove_empty_loop, remove_empty_loops): New functions.
2294         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
2295         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
2296
2297 2005-07-12  Peter Barada  <peter@the-baradas.com>
2298
2299         PR middle-end/16719
2300         PR middle-end/18421
2301         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
2302         in address registers.
2303         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
2304         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
2305         alternative of addsi3_5200.
2306
2307 2005-07-11  Ian Lance Taylor  <ian@airs.com>
2308
2309         * config/mips/mips.md (ffs<mode>2): Remove.
2310
2311 2005-07-11  Ian Lance Taylor  <ian@airs.com>
2312
2313         * doc/tree-ssa.texi (Cleanups): Improve description of
2314         TRY_FINALLY_EXPR.
2315         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
2316
2317 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
2318         
2319         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
2320         * tree.h (DECL_ARGUMENT_FLD): New macro.
2321
2322 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
2323         
2324         Fix PR tree-optimization/22404
2325
2326         * tree-ssa-structalias.c (create_variable_info_for): Use
2327         correct offset.
2328
2329 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
2330
2331         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
2332         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
2333         for second comparison operand.
2334         * config/bfin/predicates.md (reg_or_const_int_operand): New.
2335
2336         * config/bfin/bfin.md (define_attr "type"): Add "sync".
2337         (define_insn_reservation "alu"): Likewise.
2338         (csync, ssync): Now of type sync.
2339         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
2340         -mcsync-anomaly -mspecld-anomaly.
2341         * config/bfin/bfin.opt (mcsync): Remove.
2342         (mcsync-anomaly, mspecld-anomaly): Add.
2343         * config/bfin/bfin.c: Include "insn-codes.h".
2344         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
2345         (TARGET_DEFAULT_TARGET_FLAGS): New.
2346         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
2347
2348 2005-07-11  Steven Bosscher  <stevenb@suse.de>
2349
2350         * basic-block.h: Give the BB flags enum a name, bb_flags.
2351         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
2352         * cfgcleanup.c (enum bb_flags): Remove here.
2353         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
2354         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
2355         (update_forwarder_flag): Likewise.
2356         (thread_jump): Likewise.
2357         (try_forward_edges): Likewise.
2358         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
2359         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
2360         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
2361
2362 2005-07-11  Richard Guenther  <rguenther@suse.de>
2363
2364         * config/i386/i386.opt: New target option -msseregparm.
2365         * config/i386/i386.c (override_options): Error out for
2366         -msseregparm but no SSE support.
2367         (ix86_function_sseregparm): Check for global sseregparm.
2368         * doc/invoke.texi: Document -msseregparm.
2369
2370 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2371
2372         * config.gcc (m32r-*-linux*): Use the default extra_parts.
2373         (m32rle-*-linux*): Ditto.
2374
2375 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
2376
2377         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
2378         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
2379         bytes.
2380
2381 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2382
2383         PR middle-end/22239
2384         PR target/20126
2385         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
2386         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
2387
2388 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
2389
2390         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
2391         (varmap): Heapify varmap.
2392         (constraints): Heapify constraints.
2393         (struct constraint_graph): Heapify succs and preds.
2394         (constraint_vec_find): Update for heapification.
2395         (constraint_set_union): Ditto.
2396         (insert_into_complex): Ditto.
2397         (constraint_edge_vec_find): Ditto.
2398         (erase_graph_self_edge): Ditto.
2399         (add_graph_edge): Ditto.
2400         (get_graph_weights): Ditto.
2401         (merge_graph_nodes): Ditto.
2402         (build_constraint_graph): Ditto.
2403         (topo_visit): Ditto.
2404         (solve_graph): Ditto.
2405         (create_variable_info_for): Ditto.
2406         (init_base_vars): Ditto.
2407         (delete_points_to_sets): Free graph, varmap, and complex constraints.
2408         (condese_varmap_nodes): Free complex vector.
2409         (clear_edges_for_node): Clear succs and preds vector.
2410
2411 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
2412
2413         * tree-ssa-structalias.c (update_alias_info): Change counting of
2414         references to not include vdefs.
2415         
2416 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
2417
2418         * tree-ssa-alias.c (free_used_part_map): Add missing free.
2419         (up_insert): Ditto.
2420
2421 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2422
2423         * pa.c (pa_commutative_p): Make PLUS commutative when
2424         TARGET_NO_SPACE_REGS is true.
2425
2426 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
2427
2428         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
2429         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
2430         * tree-dfa.c (dump_subvars_for): New.
2431         (debug_subvars_for): New.
2432         (dump_variable): Show subvariables if VAR has them.
2433         * tree-flow-inline.h (get_subvar_at): New.
2434         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
2435         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
2436         Update all users.
2437         (struct subvar): Change fields offset and size to unsigned
2438         HOST_WIDE_INT.
2439         (dump_subvars_for): Declare.
2440         (debug_subvars_for): Declare.
2441         (get_subvar_at): Declare.
2442         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
2443         to unsigned HOST_WIDE_INT *.
2444         (overlap_subvar): Likewise.
2445         * tree-gimple.c (is_gimple_reg): Always return false for
2446         SFTs and memory tags.
2447         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
2448         Update all callers.
2449         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
2450         (compute_may_aliases): Call compute_points_to_sets.
2451         (collect_points_to_info_for): Remove.
2452         (compute_points_to_and_addr_escape): Remove.
2453         (delete_alias_info): Call delete_points_to_sets.
2454         (compute_flow_sensitive_aliasing): If the call to
2455         find_what_p_points_to returns false, call set_pt_anything.
2456         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
2457         (set_pt_anything): Clear pi->pt_vars.
2458         (set_pt_malloc): Remove.
2459         (merge_pointed_to_info): Remove.
2460         (add_pointed_to_expr): Remove.
2461         (add_pointed_to_var): Remove.
2462         (collect_points_to_info_r): Remove.
2463         (is_escape_site): Make extern.
2464         (create_sft): New.
2465         (create_overlap_variables_for): Call it.
2466         * tree-ssa-copy.c (merge_alias_info): Never merge
2467         flow-sensitive alias information.
2468         * tree-ssa-operands.c (get_expr_operands): Adjust variables
2469         offset and size to be unsigned HOST_WIDE_INT.
2470         (add_to_addressable_set): Rename from note_addressable.
2471         Set TREE_ADDRESSABLE as the variables are added to the set.
2472         Update all users.
2473         (add_stmt_operand): Do not try to micro-optimize unmodifiable
2474         operands into VUSEs when adding V_MAY_DEFs for members in an
2475         alias set.
2476         * tree-ssa-operands.h (add_to_addressable_set): Declare.
2477         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
2478         (struct variable_info): Add bitfield is_heap_var.
2479         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
2480         (new_var_info): Initialize is_heap_var.
2481         (get_constraint_for): Add HEAP variables to the symbol table.
2482         Mark them with is_heap_var.
2483         (update_alias_info): New.  Taken mostly from the old
2484         compute_points_to_and_addr_escape.
2485         (handle_ptr_arith): New.
2486         (find_func_aliases): Call update_alias_info.
2487         Call handle_ptr_info for tcc_binary expressions.
2488         Call mark_stmt_modified.
2489         (create_variable_info_for): If DECL has subvars, do not create
2490         variables for its subvars.  Always add all the fields.
2491         (set_uids_in_ptset): If the solution includes ANYOFFSET and
2492         SFTs, then add all the SFTs of the structure.
2493         If VI->DECL is an aggregate with subvariables, add the SFT at
2494         VI->OFFSET.
2495         (find_what_p_points_to): If VI is an artificial variable,
2496         translate to bitfields in SSA_NAME_PTR_INFO.
2497         If the solution is empty, set pi->pt_vars to NULL
2498         (init_base_vars): Create ANYOFFSET.
2499         (compute_points_to_sets): Rename from create_alias_vars.
2500         Make extern.
2501         (pass_build_pta): Remove.
2502         (delete_points_to_sets): Rename from delete_alias_vars.
2503         (pass_del_pta): Remove.
2504         * tree-ssa-structalias.h (struct alias_info): Move from
2505         tree-ssa-alias.h.
2506         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
2507         NUM_REFERENCES_SET): Likewise.
2508         (compute_points_to_sets, delete_points_to_sets): Declare.
2509
2510 2005-07-09  Richard Henderson  <rth@redhat.com>
2511
2512         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
2513         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
2514         alpha_split_lock_test_and_set_12): New functions.
2515         * config/alpha/alpha-protos.h: Update.
2516         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
2517         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
2518         * config/alpha/sync.md (I12MODE): New.
2519         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
2520         (sync_<fetchop_name><I48MODE>): Likewise.
2521         (sync_nand<I48MODE>): Likewise.
2522         (sync_old_<fetchop_name><I48MODE>): Likewise.
2523         (sync_new_<fetchop_name><I48MODE>): Likewise.
2524         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
2525         (sync_compare_and_swap<I48MODE>): Likewise.
2526         (sync_lock_test_and_set<I48MODE>): Likewise.
2527         (sync_compare_and_swap<I12MODE>): New.
2528         (sync_compare_and_swap<I12MODE>_1): New.
2529         (sync_lock_test_and_set<I12MODE>): New.
2530         (sync_lock_test_and_set<I12MODE>_1): New.
2531
2532 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
2533
2534         PR 21356
2535         PR 22332
2536         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
2537
2538 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
2539
2540         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
2541         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
2542
2543 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
2544
2545         PR target/21656
2546         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
2547
2548 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
2549
2550         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
2551         memory_operand constraint.
2552         (store_conditional_<mode>): Same.
2553         (sync_compare_and_swap<mode>): Same.
2554         (sync_lock_test_and_set<mode>): Same.
2555
2556 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
2557
2558         Rewrite PIC support to more closely model actual instructions.
2559         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
2560         (cris_symbol): Remove prototypes for removed functions.
2561         (cris_pic_symbol_type_of, cris_valid_pic_const)
2562         (cris_expand_pic_call_address): Prototypes for new functions.
2563         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
2564         variable.
2565         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
2566         modifiers.
2567         <case ':'>: Add case for new punctuation character.
2568         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
2569         emitting (extra) PIC modifier.
2570         <case UNSPEC>: Do not assert for PLT.
2571         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
2572         (cris_expand_prologue, cris_expand_epilogue): Check
2573         for pic_offset_table_rtx usage instead of taking
2574         current_function_uses_pic_offset_table as the final word.
2575         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
2576         Remove flag_pic difference.
2577         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
2578         the moral equivalents of...
2579         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
2580         functions.
2581         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
2582         (cris_handle_option): Mark ARG as unused.
2583         (cris_expand_pic_call_address): New worker function for "call",
2584         "call_value".
2585         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
2586         output PIC constructs here.
2587         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
2588         as symbol-specific modifers, not whole or part of operands.
2589         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
2590         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
2591         constants and flag_pic.
2592         (CONSTANT_INDEX_P): Adjust for new functions.
2593         (enum cris_pic_symbol_type): New helper type.
2594         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
2595         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
2596         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
2597         define_constants.
2598         ("movsi"): Emit actual instructions for GOT and relative access.
2599         ("*movsi_got_load"): New pattern to set up the register holding
2600         the GOT pointer.
2601         ("*movsi_internal"): Operand 1 is not a plain general_operand.
2602         Adjust FIXME for 'S'.
2603         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
2604         Use "movs" for -fpic cases.
2605         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
2606         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
2607         ("call", "call_value"): Just call cris_expand_pic_call_address for
2608         PIC addresses.
2609         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
2610         Remove special pattern.
2611         ("*expanded_call_side", "*expanded_call_value_side"): New
2612         patterns.
2613         (gotplt-to-plt, gotplt-to-plt-side-call)
2614         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
2615         peephole2:s.
2616         * config/cris/cris/predicates.md
2617         ("cris_general_operand_or_gotless_symbol"): Remove unused
2618         predicate.
2619         ("cris_general_operand_or_symbol"): Adjust for new functions.
2620
2621 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
2622
2623         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
2624
2625 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
2626
2627         * Makefile.in (TREE_H): Add treestruct.def.
2628         (c-decl.o): Add pointer-set.h
2629         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
2630         visibility on regular DECL's.
2631         (merge_decls): Fix the copying of decl nodes of various types for
2632         the new structures.  Don't update RTL, section name, weak status,
2633         etc, on DECL's without RTL.     
2634         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
2635         Don't check volatile on non-variable types.
2636         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
2637         to check whether we have seen arguments.
2638         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
2639         flag is checked before field (flag is common, field is not).    
2640         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
2641         TS_DECL_COMMON could have an origin.
2642         (add_location_or_const_value_attribute): Don't check section name
2643         on non-var/function decls.
2644         (dwarf2out_var_location): Reverse order of tests.
2645         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
2646         with DECL_WRTL_CHECK.
2647         * expmed.c (make_tree): rtl is now in decl_with_rtl.
2648         * fold-const.c (fold_binary): Don't check weakness on
2649         non-var/function decls.
2650         (tree_expr_nonzero_p): Ditto.
2651         (fold_checksum_tree): Use tree_decl_extra as sizeof
2652         buffer.
2653         * ggc-page.c (extra_order_size_table): Add sizes for
2654         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
2655         tree_field_decl.
2656         * gimplify.c (gimplify_bind_expr): Only set
2657         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
2658         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
2659         without RTL.
2660         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
2661         * langhooks.h (init_ts). New langhook.
2662         * passes.c (rest_of_decl_compilation): Reverse order of tests.
2663         * print-tree.c (print_node): Update to only print fields that
2664         exist in the structures the passed decl has.
2665         * toplev.c (wrapup_global_declarations): Don't reset
2666         DECL_DEFER_OUTPUT on DECL's that don't contain it.
2667         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
2668         * tree-inline.c (remap_decl): Ditto.
2669         * tree-outof-ssa.c (create_temp): Reverse order of tests.
2670         * tree-pretty-print.c (print_declaration): Don't print
2671         DECL_REGISTER on things that don't contain it.
2672         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
2673         non-var/function decls.
2674         * tree.c (tree_contains_struct): New structure.
2675         (init_priority_for_decl): New hashtable.
2676         (tree_int_map): New structure.
2677         (tree_int_map_eq): New function.
2678         (tree_int_map_marked_p): Ditto.
2679         (tree_int_map_hash): Ditto.
2680         (tree_map): Move to tree.h.
2681         (tree_map_eq): Externalize.
2682         (tree_map_hash): Ditto.
2683         (tree_map_marked_p): Ditto.
2684         (init_ttree): Set up tree_contains_struct and call langhook.
2685         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
2686         (tree_code_size): Update for new structures.
2687         (tree_node_structure): Update for new structures.
2688         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
2689         without the field.
2690         (copy_node_stat):  Copy init priority.
2691         (build_decl_stat): Ditto for visibility.
2692         (ts_enum_names): New.
2693         (tree_contains_struct_check_failed): New function.
2694         (decl_init_priority_lookup): Ditto.
2695         (decl_init_priority_insert): Ditto.
2696         * treestruct.def: New file.
2697         * tree.h (CODE_CONTAINS_STRUCT): New macro.
2698         (CONTAINS_STRUCT_CHECK): Ditto.
2699         (tree_contains_struct_check_failed): New prototype.
2700         (DECL_CHECK): Removed.
2701         (DECL_MINIMAL_CHECK): New.
2702         (DECL_COMMON_CHECK): Ditto.
2703         (DECL_WRTL_CHECK): Ditto.
2704         (DECL_NON_COMMON_CHECK): Ditto.
2705         (DECL_WITH_VIS_CHECK): Ditto.
2706         (VAR_OR_FUNCTION_DECL_P): Ditto
2707         (struct tree_decl_minimal): New structure.
2708         (struct tree_decl_common): Ditto.
2709         (struct tree_decl_with_rtl): Ditto.
2710         (struct tree_decl_with_vis): Ditto.
2711         (struct tree_decl_non_common): Ditto.
2712         (struct tree_field_decl): Ditto.
2713         (struct tree_parm_decl): Ditto.
2714         (struct tree_var_decl): Ditto.
2715         (struct tree_function_decl): Ditto.
2716         (struct tree_const_decl): Ditto.
2717         (struct tree_result_decl): Ditto.
2718         (union tree_node): Add new structures.
2719         * var-tracking.c (track_expr_p): Reverse order of tests.
2720         
2721         * doc/c-tree.texi: Add documentation on DECL node internal structure.
2722
2723 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
2724
2725         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
2726         * system.h: Poison FINALIZE_PIC.
2727         * doc/tm.texi (FINALIZE_PIC): Remove.
2728
2729 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
2730
2731         PR tree-opt/22329
2732         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
2733         to the correct type if we have a MODIFY_EXPR.
2734
2735 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
2736
2737         PR tree-optimization/22360
2738         * tree.c (upper_bound_in_type): Fix calculations for casting
2739         to a non-wider signed type and casting a signed value to a
2740         wider unsigned type.
2741         (lower_bound_in_type): Fix calculations for casting to a
2742         non-wider signed type.
2743
2744         PR tree-optimization/20139
2745         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
2746         release_defs.
2747         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
2748         fold_cond_expr_cond.
2749         * tree-ssanames.c (release_defs): Assert in_ssa_p.
2750         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
2751
2752 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
2753
2754         PR tree-opt/22356
2755         * tree-complex.c (expand_complex_libcall): Produce
2756         REALPART_EXPR/IMAGPART_EXPR with the correct type.
2757
2758 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
2759
2760         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
2761         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
2762         b" assert and inserted fastpath code for this case.
2763         (bitmap_ior): Removed "a != b" assert.
2764
2765 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2766
2767         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
2768         (ENDFILE_SPEC): Likewise.
2769         * config/m32r/m32r.h (ASM_SPEC): Likewise.
2770
2771         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
2772         a large stack frame at epilogue.
2773
2774 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
2775
2776         * final.c: Include sdbout.h when required.
2777
2778 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
2779
2780         * config.gcc (*-*-darwin*): Only one target-specific header file
2781         for generic darwin.
2782         (powerpc-*-darwin*): Add version-specific header files.
2783         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
2784         * config.in: Regenerate.
2785         * configure: Regenerate.
2786         * gcc.c: Include xregex.h.
2787         (version_compare_spec_function): New.
2788         (spec_function): Add version-compare.
2789         (replace_outfile_spec_function): Reformat comment.
2790         (compare_version_strings): New.
2791         * config/darwin-c.c (version_as_macro): New.
2792         (builtin_define): New.
2793         (darwin_cpp_builtins): New.
2794         * config/darwin-protos.h (darwin_cpp_builtins): New.
2795         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
2796         (LIB_SPEC): Make unconditional, update comment.
2797         (TARGET_C99_FUNCTIONS): Define.
2798         * config/darwin.opt: Sort.
2799         (mmacosx-version-min=): New.
2800         * config/darwin7.h: Delete.
2801         * config/darwin8.h: Delete.
2802         * config/i386/darwin.h (): Call darwin_cpp_builtins.
2803         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
2804         (TARGET_C99_FUNCTIONS): Define.
2805         * config/rs6000/darwin7.h: New.
2806         * config/rs6000/darwin8.h: New.
2807         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
2808         (-mmacosx-version-min): Document.
2809
2810 2005-07-07  Ian Lance Taylor  <ian@airs.com>
2811
2812         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
2813
2814 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
2815
2816         PR middle-end/22239
2817         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
2818
2819 2005-07-07  Khem Raj  <kraj@mvista.com>
2820
2821         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
2822         in bytes, not words.
2823
2824 2005-07-07  Paul Brook  <paul@codesourcery.com>
2825
2826         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
2827         DEFAULT_FUNCTION_ARG_PADDING to upward.
2828
2829 2005-07-07  Richard Henderson  <rth@redhat.com>
2830
2831         * function.c (locate_and_pad_parm): Record parameter alignment in
2832         stack_alignment_needed.
2833
2834 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
2835
2836         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
2837         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
2838         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
2839         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
2840         (define_attr "type"): Add isync, sync, load_l, store_c.
2841         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
2842         Create scratch volatile MEM.
2843         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
2844         sync.
2845         (load_locked_<mode>): New.
2846         (store_conditional_<mode>): New.
2847         (sync_compare_and_swap<mode>): Replace with splitter.
2848         (sync_lock_test_and_set<mode>): Replace with splitter.
2849         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
2850         and UNSPECV_ISYNC.
2851         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
2852         is ics.  Attribute isync.
2853         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
2854         lwsync.
2855         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
2856         and UNSPECV_SYNC_OP.
2857         (emit_unlikely_jump): New.
2858         (emit_load_locked): New.
2859         (emit_store_conditional): New.
2860         (rs6000_split_compare_and_swap): New.
2861         (rs6000_split_lock_test_and_set): New.
2862         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
2863         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
2864         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
2865         rs6000_split_lock_test_and_set): Declare.
2866         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
2867         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
2868         store_c, isync, sync.
2869
2870 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
2871
2872         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
2873         filenames to gtyp-gen.h.
2874         (s-typ-gen): Use it in place of for loops.
2875
2876 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
2877
2878         * hooks.c (hook_bool_rtx_int_false): New function.
2879         * hooks.h (hook_bool_rtx_int_false): Declare.
2880         * target-def.h (TARGET_COMMUTATIVE_P): Define.
2881         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
2882         * target.h (struct gcc_target): Add commutative_p member.
2883         * targhooks.c (hook_bool_rtx_commutative_p): New function.
2884         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
2885         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
2886         (pa_commutative_p): New function.
2887         * jump.c (target.h): Include.
2888         (rtx_renumbered_equal_p): Use targetm.commutative_p.
2889         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
2890
2891 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
2892
2893         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
2894         (s390_expand_setmem): New.
2895         * config/s390/s390.c: Likewise. 
2896         (print_shift_count_operand): Truncate to 12 bits instead of 6.
2897         Adapt comments.
2898         * config/s390/s390.md: ("setmem<mode>"): Accept character as
2899         general_operand.  Call new function "s390_expand_setmem".
2900         ("clrmem_long", "*clrmem_long"): Rewrite to ...
2901         ("setmem_long", "*setmem_long"): ... this.
2902
2903 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
2904         
2905         * config/s390/s390.c: (optimization_options): Enable
2906         TARGET_MVCLE at -Os.
2907         * doc/invoke.texi: Document changes in default behaviour.
2908         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
2909
2910 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
2911
2912         * expr.c: (set_storage_via_setmem): Convert opchar to mode
2913         defined by back-end.
2914
2915 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
2916
2917         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
2918         all sets in the pattern.
2919         * config/rs6000/rs6000.md (stack_protect_testsi,
2920         stack_protect_testdi): Likewise.
2921
2922 2005-07-06  Jeff Law  <law@redhat.com>
2923
2924         * tree-vrp.c (simplify_using_ranges): Kill.
2925         (vrp_finalize): Remove call to simplify_using_ranges.
2926         (simplify_stmt_using_ranges): New function extracted from
2927         simplify_using_ranges.
2928         (simplify_div_or_mod_using_ranges): Likewise.
2929         (simplify_abs_using_ranges): Likewise.
2930         (simplify_cond_using_ranges): New function.
2931         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
2932         * tree-ssa-propagate.c (substitute_and_fold): Call
2933         simplify_stmt_using_ranges if we have range information.
2934
2935 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
2936
2937         * config/ia64/ia64.c (ia64_reorg): Check optimize before
2938         ia64_flag_schedule_isns2.
2939
2940         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
2941         reading/writing general registers.
2942         (ia64_function_arg): Revert 2005-06-18 change.
2943
2944 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
2945
2946         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
2947         (legitimize_tls_address): Use gcc_unreachable instead of abort.
2948
2949 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
2950
2951         * function.c (expand_function_end): Revert part of 2005-06-27
2952         patch.  Do sjlj_emit_function_exit_after after return_label.
2953
2954 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
2955
2956         * doc/install.texi (--disable-libssp): New.
2957
2958 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
2959
2960         * doc/invoke.texi: Update -fforce-mem documentation.
2961         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove 
2962         code for -fforce-mem.
2963         * expmed.c: (store_bit_field,store_fixed_bit_field,
2964         extract_bit_field): Ditto.
2965         * expr.c: (convert_move): Ditto.
2966         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
2967         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
2968         emit_conditional_add,expand_float,expand_fix): Ditto.
2969         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
2970         (common_handle_option): Issue warning when -fforce-mem specified.
2971
2972 2005-07-06  Paul Brook  <paul@codesourcery.com>
2973
2974         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
2975         argument is empty.
2976         * configure: Regenerate.
2977
2978 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
2979
2980         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
2981
2982 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
2983
2984         Fix PR tree-optimization/22319
2985         Fix PR tree-optimization/22140
2986         Fix PR tree-optimization/22310
2987
2988         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
2989         variable sized types.
2990         Use correct type for intermediate structure on *a = *b structure
2991         copies.
2992                 
2993 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
2994
2995         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
2996         Remove.
2997         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
2998         (machine_function): Move typedef to...
2999         * config/rs6000/rs6000.c (machine_function): ... here.  Add
3000         varargs_save_offset field.
3001         (rs6000_stack_t): Remove varargs_size field.
3002         (setup_incoming_varargs): Allocate varargs save area using
3003         assign_stack_local, try to make it as small as possible.
3004         Save offset from virtual_stack_vars_rtx to the save area
3005         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
3006         instead of magic 8 when fp word byte size is used.
3007         (rs6000_va_start): Use cfun->machine->varargs_save_offset
3008         instead of -RS6000_VARARGS_SIZE.
3009         (rs6000_stack_info, debug_stack_info,
3010         rs6000_initial_elimination_offset): Remove all traces of
3011         varargs_size.
3012         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
3013         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
3014         RS6000_VARARGS_AREA.
3015
3016 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
3017
3018         PR tree-optimization/21963
3019         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
3020         constant_multiple_of in the same way get_computation_cost_at does.
3021
3022 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
3023
3024         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
3025         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
3026         (gen_compare_reg): If sparc_compare_emitted is set, clear it
3027         and return its previous value.
3028         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
3029         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
3030         constants.
3031         (stack_protect_set, stack_protect_test): New expanders.
3032         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
3033         stack_protect_testdi): New insns.
3034         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
3035         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
3036
3037 2005-07-06  Jeff Law  <law@redhat.com>
3038
3039         * tree-ssa-dce.c (cfg_altered): New global.
3040         (tree_dce_init): Initialize cfg_altered.
3041         (remove_dead_stmt): If we remove an edge in the CFG, then set
3042         CFG_ALTERED.
3043         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
3044         the dominators.
3045
3046 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
3047
3048         * Makefile.in (stamp-collect-ld): Use
3049         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
3050         ./collect-ld if it already exists.
3051         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
3052         Don't remove ./nm if it already exists.
3053
3054 2005-07-05  Devang Patel  <dpatel@apple.com>
3055
3056         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
3057         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
3058         * tree-vectorizer.c (vect_loop_location): New.
3059         (vect_print_dump_info): Use vect_loop_location.
3060         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
3061         (vectorize_loops): Set vect_loop_location.
3062         * tree-vect-analyze.c (vect_analyze_offset_expr, 
3063         vect_determin_vectorization_factor, vect_analyze_operations,
3064         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
3065         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
3066         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
3067         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
3068         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
3069         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
3070         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
3071         vect_analyze_loop): Adjust vect_print_dump_info API.
3072         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
3073         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
3074         vect_finish_stmt_generation, vectorizable_assignment, 
3075         vectorizable_operation, vectorizable_store, vectorizable_load, 
3076         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
3077         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
3078         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
3079         vect_transform_loop): Same.
3080         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
3081         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
3082         Same.
3083
3084 2005-07-05  Randolph Chung  <tausq@debian.org>
3085
3086         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
3087         * configure: Regenerate.
3088         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
3089         (pa_tls_referenced_p): Declare.
3090         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
3091         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
3092         (legitimize_tls_address): New.
3093         (hppa_legitimize_address): Handle TLS addresses.
3094         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
3095         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3096         (emit_move_sequence): Handle TLS addresses.
3097         (pa_encode_section_info): Call default handler to handle common 
3098         sections.
3099         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
3100         (CONSTANT_ADDRESS_P): Reject TLS operands.
3101         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
3102         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
3103         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
3104         (UNSPEC_TLSLE): Define new constants. 
3105         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
3106         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
3107         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
3108         (tie_symbolic_operand, tle_symbolic_operand): New
3109
3110 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
3111
3112         * aclocal.m4: Update macros for autoconf 2.59 style.
3113         * configure.ac: Likewise.
3114
3115 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3116
3117         * pa.c (function_value): Handle small aggregates on 32-bit targets.
3118         (function_arg): Pass small aggregates in general registers on 32-bit
3119         targets.
3120         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
3121
3122 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
3123
3124         * Makefile.in (final.o): Fix dependencies.
3125
3126 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
3127
3128         PR c/22013
3129         PR c/22098
3130         * langhooks.h (struct lang_hooks): Add expr_to_decl.
3131         * langhooks.c (lhd_expr_to_decl): New.
3132         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
3133         New.
3134         (LANG_HOOKS_INITIALIZER): Update.
3135         * tree.c (recompute_tree_invarant_for_addr_expr): Call
3136         expr_to_decl langhook.
3137         * c-tree.h (c_expr_to_decl): Declare.
3138         * c-typeck.c (c_expr_to_decl): New.
3139         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
3140         specially.
3141         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
3142
3143 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
3144
3145         PR c/22308
3146         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
3147         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
3148
3149 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
3150
3151         * Makefile.in: Adjust dependencies.
3152         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
3153         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
3154         * alias.c (rest_of_handle_cfg, pass_cfg): New.
3155         * bb-reorder.c (duplicate_computed_gotos): Make it static.
3156         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
3157         rest_of_compilation.
3158
3159         * bb-reorder.c (gate_duplicate_computed_gotos,
3160         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
3161         rest_of_handle_reorder_blocks, pass_reorder_blocks,
3162         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
3163         pass_partition_blocks): New.
3164         * bt-load.c (gate_handle_branch_target_load_optimize,
3165         rest_of_handle_branch_target_load_optimize,
3166         pass_branch_target_load_optimize): New.
3167         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
3168         pass_jump2): New.
3169         * cfglayout.c (pass_insn_locators_initialize): New.
3170         * cfgrtl.c (pass_free_cfg): New.
3171         * combine.c (gate_handle_combine, rest_of_handle_combine,
3172         pass_combine): New.
3173         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
3174         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
3175         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
3176         * except.c (pass_set_nothrow_function_flags,
3177         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
3178         pass_rtl_eh): New.
3179         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
3180         rest_of_handle_shorten_branches, pass_shorten_branches,
3181         rest_of_clean_state, pass_clean_state): New.
3182         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
3183         rest_of_handle_remove_death_notes, pass_remove_death_notes,
3184         rest_of_handle_life, pass_life, rest_of_handle_flow2,
3185         pass_flow2): New.
3186         * function.c (pass_instantiate_virtual_regs, pass_init_function,
3187         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
3188         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
3189         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
3190         pass_gcse): New.
3191         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
3192         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
3193         pass_rtl_ifcvt, gate_handle_if_after_combine,
3194         rest_of_handle_if_after_combine, pass_if_after_combine,
3195         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
3196         pass_if_after_reload): New.
3197         * integrate.c (pass_initial_value_sets): New.
3198         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
3199         pass_purge_lineno_notes): New.
3200         * mode-switching.c (rest_of_handle_mode_switching,
3201         pass_mode_switching): New.
3202         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
3203         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
3204         pass_loop2): New.
3205         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
3206         pass_loop_optimize): New.
3207         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
3208         pass_sms): New.
3209         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
3210         pass_gcse2): New.
3211         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
3212         pass_postreload_cse): New.
3213         * profile.c (gate_handle_profiling, pass_profiling,
3214         rest_of_handle_branch_prob, pass_branch_prob): New.
3215         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split, 
3216         pass_split_before_regstack, gate_handle_split_before_regstack,
3217         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
3218         rest_of_handle_split_all_insns, pass_split_all_insns): New.
3219         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
3220         pass_stack_regs): New.
3221         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
3222         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
3223         pass_stack_adjustments): New.
3224         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
3225         pass_regrename): New.
3226         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
3227         pass_delay_slots, gate_handle_machine_reorg,
3228         rest_of_handle_machine_reorg, pass_machine_reorg): New.
3229         * rtl.h (extern void purge_line_number_notes): New.
3230         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
3231         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
3232         pass_sched2): New.
3233         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
3234         pass_tracer): New.
3235         * value-prof.c (gate_handle_value_profile_transformations,
3236         rest_of_handle_value_profile_transformations,
3237         pass_value_profile_transformations): New.
3238         * var-tracking.c (gate_handle_var_tracking,
3239         pass_variable_tracking): New.
3240         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
3241
3242         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
3243         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3244         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3245         rest_of_handle_old_regalloc, rest_of_handle_regrename,
3246         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
3247         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
3248         rest_of_handle_gcse2, rest_of_handle_regmove,
3249         rest_of_handle_tracer, rest_of_handle_if_conversion,
3250         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
3251         rest_of_handle_web, rest_of_handle_branch_prob,
3252         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3253         rest_of_handle_jump_bypass, rest_of_handle_combine,
3254         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3255         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3256         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
3257         rest_of_handle_mode_switching, rest_of_handle_jump,
3258         rest_of_handle_eh, rest_of_handle_stack_adjustments,
3259         rest_of_handle_flow2, rest_of_handle_jump2,
3260         rest_of_handle_peephole2, rest_of_handle_postreload,
3261         rest_of_handle_shorten_branches, rest_of_clean_state,
3262         rest_of_compilation): Remove.
3263
3264         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
3265         * passes.c (dump_flags, in_gimple_form, all_passes,
3266         all_ipa_passes, all_lowering_passes, register_one_dump_file,
3267         register_dump_files, next_pass_1, last_verified, execute_todo,
3268         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
3269         from tree-optimize.c.
3270         (init_optimization_passes): Moved from tree-optimize.c,
3271         adding the RTL optimizations.
3272         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
3273         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
3274         all_ipa_passes, all_lowering_passes, register_one_dump_file,
3275         register_dump_files, next_pass_1, last_verified, execute_todo,
3276         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
3277         init_tree_optimization_passes, ipa_passes): Delete.
3278         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
3279         the RTL dumps.
3280         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
3281         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
3282         from tree.h.
3283         (ipa_passes): Remove.
3284         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
3285         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
3286         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
3287         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
3288         (dump_info_p, dump_flag): Moved to tree-dump.h.
3289         
3290         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
3291         cgraph.c, opts.c.
3292         * passes.c (finish_optimization_passes): Use dump_begin
3293         and dump_end, TDI_end.
3294         (gate_rest_of_compilation): New.
3295         (pass_rest_of_compilation): Use it.
3296         (gate_postreload, pass_postreload): New.
3297         * toplev.c (general_init): Rename init_tree_optimization_passes.
3298         * toplev.h (init_tree_optimization_passes): Rename to
3299         init_optimizations_passes.
3300         * tree-dump.c (dump_flag): Make static.
3301         (dump_files): Remove RTL dumps.
3302         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3303         pass_cleanup_cfg, pass_free_cfg_annotations,
3304         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
3305         pass_init_datastructures, pass_fixup_cfg): Make non-static.
3306         * tree-pretty-print.c: Include tree-pass.h.
3307         * cgraph.c: Include tree-dump.h.
3308         
3309 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
3310
3311         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
3312         Only fall back to saying it points to readonly memory if
3313         we can't do better.
3314
3315 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
3316
3317         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
3318         * config/m32r/m32r.c (m32r_compute_frame_size,
3319         m32r_expand_prologue): Take current_function_profile into
3320         account whenever we reference
3321         current_function_uses_pic_offset_table.
3322         (m32r_finalize_pic): Remove.
3323         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
3324
3325 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
3326
3327         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
3328         instead of $<.  Don't remove ./as if it already exists.
3329
3330 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3331
3332         PR target/21723
3333         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
3334         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
3335         for complex modes when generating code for PA 1.0.
3336         (VALID_FP_MODE_P): New macro.
3337         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
3338         sets for all general and floating point modes.  Align wide floating
3339         point modes to even register boundaries to comply with architectural
3340         requirements.
3341         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
3342         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
3343         (VALID_FP_MODE_P): New macro.
3344         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
3345         sets for all general and floating point modes.  Align wide floating
3346         point modes to even register boundaries to comply with architectural
3347         requirements.
3348
3349 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
3350
3351         * tree-dump.c (dump_files): Initialize dump number for .cgraph
3352         to 0.
3353
3354 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
3355
3356         * tree-ssa-structalias.c: Don't include expr.h.
3357
3358 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
3359
3360         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
3361         comments.
3362
3363 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
3364
3365         Fix PR tree-optimization/22279
3366         
3367         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
3368         correct operator.
3369         
3370 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
3371
3372         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
3373
3374 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
3375
3376         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
3377         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
3378         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
3379         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
3380         config/stormy16/stormy16.c, config/v850/v850.c,
3381         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
3382         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
3383         Avoid "." or "\n" at end of diagnostics and capital letters at
3384         start of diagnostics.
3385         * combine.c, cse.c: Don't translate dump file output.
3386         * toplev.c (print_version): Only translate output if going to
3387         stderr.
3388
3389 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
3390
3391         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
3392         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
3393         typos.
3394
3395 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3396
3397         * pa.c (fix_range): Fix typo in comment.
3398
3399 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
3400
3401         * tree-vrp.c (extract_range_from_assert): Replace
3402         fold (build (...)) with fold_build2.
3403
3404 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3405
3406         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
3407         gcc_gfc_char_table, init_dynamic_gfc_info): New.
3408         (format_types_orig, handle_format_attribute): Add support for
3409         format "gcc_gfc".
3410
3411 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3412
3413         * varasm.c (assemble_variable): Fix format specifier thinko.
3414
3415 2005-07-03  Ira Rosen  <irar@il.ibm.com>
3416
3417         PR tree-optimization/22029 (and 22135)