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