OSDN Git Service

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