OSDN Git Service

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