OSDN Git Service

Real commit for Hollerith constants.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-07-06  Jeff Law  <law@redhat.com>
2
3         * tree-vrp.c (simplify_using_ranges): Kill.
4         (vrp_finalize): Remove call to simplify_using_ranges.
5         (simplify_stmt_using_ranges): New function extracted from
6         simplify_using_ranges.
7         (simplify_div_or_mod_using_ranges): Likewise.
8         (simplify_abs_using_ranges): Likewise.
9         (simplify_cond_using_ranges): New function.
10         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
11         * tree-ssa-propagate.c (substitute_and_fold): Call
12         simplify_stmt_using_ranges if we have range information.
13
14 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
15
16         * config/ia64/ia64.c (ia64_reorg): Check optimize before
17         ia64_flag_schedule_isns2.
18
19         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
20         reading/writing general registers.
21         (ia64_function_arg): Revert 2005-06-18 change.
22
23 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
24
25         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
26         (legitimize_tls_address): Use gcc_unreachable instead of abort.
27
28 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
29
30         * function.c (expand_function_end): Revert part of 2005-06-27
31         patch.  Do sjlj_emit_function_exit_after after return_label.
32
33 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
34
35         * doc/install.texi (--disable-libssp): New.
36
37 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
38
39         * doc/invoke.texi: Update -fforce-mem documentation.
40         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove 
41         code for -fforce-mem.
42         * expmed.c: (store_bit_field,store_fixed_bit_field,
43         extract_bit_field): Ditto.
44         * expr.c: (convert_move): Ditto.
45         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
46         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
47         emit_conditional_add,expand_float,expand_fix): Ditto.
48         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
49         (common_handle_option): Issue warning when -fforce-mem specified.
50
51 2005-07-06  Paul Brook  <paul@codesourcery.com>
52
53         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
54         argument is empty.
55         * configure: Regenerate.
56
57 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
58
59         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
60
61 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
62
63         Fix PR tree-optimization/22319
64         Fix PR tree-optimization/22140
65         Fix PR tree-optimization/22310
66
67         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
68         variable sized types.
69         Use correct type for intermediate structure on *a = *b structure
70         copies.
71                 
72 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
73
74         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
75         Remove.
76         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
77         (machine_function): Move typedef to...
78         * config/rs6000/rs6000.c (machine_function): ... here.  Add
79         varargs_save_offset field.
80         (rs6000_stack_t): Remove varargs_size field.
81         (setup_incoming_varargs): Allocate varargs save area using
82         assign_stack_local, try to make it as small as possible.
83         Save offset from virtual_stack_vars_rtx to the save area
84         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
85         instead of magic 8 when fp word byte size is used.
86         (rs6000_va_start): Use cfun->machine->varargs_save_offset
87         instead of -RS6000_VARARGS_SIZE.
88         (rs6000_stack_info, debug_stack_info,
89         rs6000_initial_elimination_offset): Remove all traces of
90         varargs_size.
91         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
92         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
93         RS6000_VARARGS_AREA.
94
95 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
96
97         PR tree-optimization/21963
98         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
99         constant_multiple_of in the same way get_computation_cost_at does.
100
101 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
102
103         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
104         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
105         (gen_compare_reg): If sparc_compare_emitted is set, clear it
106         and return its previous value.
107         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
108         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
109         constants.
110         (stack_protect_set, stack_protect_test): New expanders.
111         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
112         stack_protect_testdi): New insns.
113         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
114         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
115
116 2005-07-06  Jeff Law  <law@redhat.com>
117
118         * tree-ssa-dce.c (cfg_altered): New global.
119         (tree_dce_init): Initialize cfg_altered.
120         (remove_dead_stmt): If we remove an edge in the CFG, then set
121         CFG_ALTERED.
122         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
123         the dominators.
124
125 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
126
127         * Makefile.in (stamp-collect-ld): Use
128         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
129         ./collect-ld if it already exists.
130         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
131         Don't remove ./nm if it already exists.
132
133 2005-07-05  Devang Patel  <dpatel@apple.com>
134
135         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
136         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
137         * tree-vectorizer.c (vect_loop_location): New.
138         (vect_print_dump_info): Use vect_loop_location.
139         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
140         (vectorize_loops): Set vect_loop_location.
141         * tree-vect-analyze.c (vect_analyze_offset_expr, 
142         vect_determin_vectorization_factor, vect_analyze_operations,
143         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
144         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
145         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
146         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
147         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
148         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
149         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
150         vect_analyze_loop): Adjust vect_print_dump_info API.
151         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
152         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
153         vect_finish_stmt_generation, vectorizable_assignment, 
154         vectorizable_operation, vectorizable_store, vectorizable_load, 
155         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
156         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
157         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
158         vect_transform_loop): Same.
159         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
160         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
161         Same.
162
163 2005-07-05  Randolph Chung  <tausq@debian.org>
164
165         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
166         * configure: Regenerate.
167         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
168         (pa_tls_referenced_p): Declare.
169         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
170         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
171         (legitimize_tls_address): New.
172         (hppa_legitimize_address): Handle TLS addresses.
173         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
174         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
175         (emit_move_sequence): Handle TLS addresses.
176         (pa_encode_section_info): Call default handler to handle common 
177         sections.
178         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
179         (CONSTANT_ADDRESS_P): Reject TLS operands.
180         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
181         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
182         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
183         (UNSPEC_TLSLE): Define new constants. 
184         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
185         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
186         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
187         (tie_symbolic_operand, tle_symbolic_operand): New
188
189 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
190
191         * aclocal.m4: Update macros for autoconf 2.59 style.
192         * configure.ac: Likewise.
193
194 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
195
196         * pa.c (function_value): Handle small aggregates on 32-bit targets.
197         (function_arg): Pass small aggregates in general registers on 32-bit
198         targets.
199         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
200
201 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
202
203         * Makefile.in (final.o): Fix dependencies.
204
205 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
206
207         PR c/22013
208         PR c/22098
209         * langhooks.h (struct lang_hooks): Add expr_to_decl.
210         * langhooks.c (lhd_expr_to_decl): New.
211         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
212         New.
213         (LANG_HOOKS_INITIALIZER): Update.
214         * tree.c (recompute_tree_invarant_for_addr_expr): Call
215         expr_to_decl langhook.
216         * c-tree.h (c_expr_to_decl): Declare.
217         * c-typeck.c (c_expr_to_decl): New.
218         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
219         specially.
220         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
221
222 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
223
224         PR c/22308
225         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
226         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
227
228 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
229
230         * Makefile.in: Adjust dependencies.
231         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
232         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
233         * alias.c (rest_of_handle_cfg, pass_cfg): New.
234         * bb-reorder.c (duplicate_computed_gotos): Make it static.
235         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
236         rest_of_compilation.
237
238         * bb-reorder.c (gate_duplicate_computed_gotos,
239         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
240         rest_of_handle_reorder_blocks, pass_reorder_blocks,
241         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
242         pass_partition_blocks): New.
243         * bt-load.c (gate_handle_branch_target_load_optimize,
244         rest_of_handle_branch_target_load_optimize,
245         pass_branch_target_load_optimize): New.
246         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
247         pass_jump2): New.
248         * cfglayout.c (pass_insn_locators_initialize): New.
249         * cfgrtl.c (pass_free_cfg): New.
250         * combine.c (gate_handle_combine, rest_of_handle_combine,
251         pass_combine): New.
252         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
253         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
254         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
255         * except.c (pass_set_nothrow_function_flags,
256         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
257         pass_rtl_eh): New.
258         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
259         rest_of_handle_shorten_branches, pass_shorten_branches,
260         rest_of_clean_state, pass_clean_state): New.
261         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
262         rest_of_handle_remove_death_notes, pass_remove_death_notes,
263         rest_of_handle_life, pass_life, rest_of_handle_flow2,
264         pass_flow2): New.
265         * function.c (pass_instantiate_virtual_regs, pass_init_function,
266         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
267         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
268         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
269         pass_gcse): New.
270         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
271         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
272         pass_rtl_ifcvt, gate_handle_if_after_combine,
273         rest_of_handle_if_after_combine, pass_if_after_combine,
274         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
275         pass_if_after_reload): New.
276         * integrate.c (pass_initial_value_sets): New.
277         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
278         pass_purge_lineno_notes): New.
279         * mode-switching.c (rest_of_handle_mode_switching,
280         pass_mode_switching): New.
281         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
282         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
283         pass_loop2): New.
284         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
285         pass_loop_optimize): New.
286         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
287         pass_sms): New.
288         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
289         pass_gcse2): New.
290         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
291         pass_postreload_cse): New.
292         * profile.c (gate_handle_profiling, pass_profiling,
293         rest_of_handle_branch_prob, pass_branch_prob): New.
294         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split, 
295         pass_split_before_regstack, gate_handle_split_before_regstack,
296         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
297         rest_of_handle_split_all_insns, pass_split_all_insns): New.
298         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
299         pass_stack_regs): New.
300         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
301         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
302         pass_stack_adjustments): New.
303         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
304         pass_regrename): New.
305         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
306         pass_delay_slots, gate_handle_machine_reorg,
307         rest_of_handle_machine_reorg, pass_machine_reorg): New.
308         * rtl.h (extern void purge_line_number_notes): New.
309         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
310         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
311         pass_sched2): New.
312         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
313         pass_tracer): New.
314         * value-prof.c (gate_handle_value_profile_transformations,
315         rest_of_handle_value_profile_transformations,
316         pass_value_profile_transformations): New.
317         * var-tracking.c (gate_handle_var_tracking,
318         pass_variable_tracking): New.
319         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
320
321         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
322         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
323         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
324         rest_of_handle_old_regalloc, rest_of_handle_regrename,
325         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
326         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
327         rest_of_handle_gcse2, rest_of_handle_regmove,
328         rest_of_handle_tracer, rest_of_handle_if_conversion,
329         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
330         rest_of_handle_web, rest_of_handle_branch_prob,
331         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
332         rest_of_handle_jump_bypass, rest_of_handle_combine,
333         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
334         rest_of_handle_gcse, rest_of_handle_loop_optimize,
335         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
336         rest_of_handle_mode_switching, rest_of_handle_jump,
337         rest_of_handle_eh, rest_of_handle_stack_adjustments,
338         rest_of_handle_flow2, rest_of_handle_jump2,
339         rest_of_handle_peephole2, rest_of_handle_postreload,
340         rest_of_handle_shorten_branches, rest_of_clean_state,
341         rest_of_compilation): Remove.
342
343         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
344         * passes.c (dump_flags, in_gimple_form, all_passes,
345         all_ipa_passes, all_lowering_passes, register_one_dump_file,
346         register_dump_files, next_pass_1, last_verified, execute_todo,
347         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
348         from tree-optimize.c.
349         (init_optimization_passes): Moved from tree-optimize.c,
350         adding the RTL optimizations.
351         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
352         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
353         all_ipa_passes, all_lowering_passes, register_one_dump_file,
354         register_dump_files, next_pass_1, last_verified, execute_todo,
355         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
356         init_tree_optimization_passes, ipa_passes): Delete.
357         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
358         the RTL dumps.
359         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
360         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
361         from tree.h.
362         (ipa_passes): Remove.
363         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
364         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
365         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
366         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
367         (dump_info_p, dump_flag): Moved to tree-dump.h.
368         
369         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
370         cgraph.c, opts.c.
371         * passes.c (finish_optimization_passes): Use dump_begin
372         and dump_end, TDI_end.
373         (gate_rest_of_compilation): New.
374         (pass_rest_of_compilation): Use it.
375         (gate_postreload, pass_postreload): New.
376         * toplev.c (general_init): Rename init_tree_optimization_passes.
377         * toplev.h (init_tree_optimization_passes): Rename to
378         init_optimizations_passes.
379         * tree-dump.c (dump_flag): Make static.
380         (dump_files): Remove RTL dumps.
381         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
382         pass_cleanup_cfg, pass_free_cfg_annotations,
383         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
384         pass_init_datastructures, pass_fixup_cfg): Make non-static.
385         * tree-pretty-print.c: Include tree-pass.h.
386         * cgraph.c: Include tree-dump.h.
387         
388 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
389
390         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
391         Only fall back to saying it points to readonly memory if
392         we can't do better.
393
394 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
395
396         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
397         * config/m32r/m32r.c (m32r_compute_frame_size,
398         m32r_expand_prologue): Take current_function_profile into
399         account whenever we reference
400         current_function_uses_pic_offset_table.
401         (m32r_finalize_pic): Remove.
402         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
403
404 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
405
406         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
407         instead of $<.  Don't remove ./as if it already exists.
408
409 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
410
411         PR target/21723
412         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
413         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
414         for complex modes when generating code for PA 1.0.
415         (VALID_FP_MODE_P): New macro.
416         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
417         sets for all general and floating point modes.  Align wide floating
418         point modes to even register boundaries to comply with architectural
419         requirements.
420         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
421         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
422         (VALID_FP_MODE_P): New macro.
423         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
424         sets for all general and floating point modes.  Align wide floating
425         point modes to even register boundaries to comply with architectural
426         requirements.
427
428 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
429
430         * tree-dump.c (dump_files): Initialize dump number for .cgraph
431         to 0.
432
433 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
434
435         * tree-ssa-structalias.c: Don't include expr.h.
436
437 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
438
439         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
440         comments.
441
442 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
443
444         Fix PR tree-optimization/22279
445         
446         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
447         correct operator.
448         
449 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
450
451         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
452
453 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
454
455         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
456         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
457         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
458         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
459         config/stormy16/stormy16.c, config/v850/v850.c,
460         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
461         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
462         Avoid "." or "\n" at end of diagnostics and capital letters at
463         start of diagnostics.
464         * combine.c, cse.c: Don't translate dump file output.
465         * toplev.c (print_version): Only translate output if going to
466         stderr.
467
468 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
469
470         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
471         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
472         typos.
473
474 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
475
476         * pa.c (fix_range): Fix typo in comment.
477
478 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
479
480         * tree-vrp.c (extract_range_from_assert): Replace
481         fold (build (...)) with fold_build2.
482
483 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
484
485         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
486         gcc_gfc_char_table, init_dynamic_gfc_info): New.
487         (format_types_orig, handle_format_attribute): Add support for
488         format "gcc_gfc".
489
490 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
491
492         * varasm.c (assemble_variable): Fix format specifier thinko.
493
494 2005-07-03  Ira Rosen  <irar@il.ibm.com>
495
496         PR tree-optimization/22029 (and 22135)
497         * tree-pretty-print.c (dump_generic_node): Check that the node is not
498         a phi node before calling dump_vops.
499
500 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
501
502         * tree-dump.h (dump_string_field): Declare.
503         * tree-dump.c: Use it instead of dump_string.
504         (dump_string_field): Make non-static.
505
506 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
507
508         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
509         up the minimal CFG stuff always when optimize > 0.  Call
510         split_all_insns_noflow in PIC case if needed.
511
512 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
513             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
514
515         PR c++/18279
516         * c-decl.c (c_write_global_declarations): Dump contents of
517         external scope to.
518         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
519         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
520         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
521         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
522         is enabled.
523         
524 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
525
526         * c-common.h (GCC_DIAG_STYLE): Define.
527         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
528         version for format checking to 4.1.
529         * c-format.c: Include toplev.h after c-common.h.
530         (enum format_type): Add gcc_tdiag_format_type.
531         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
532         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
533         (format_types_orig): Add gcc_tdiag.
534         (init_dynamic_diag_info): Support gcc_tdiag formats.
535         (handle_format_attribute): Likewise.
536         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
537         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
538         version for format checking to 4.1.
539         (warning0, warning, error, pedwarn, sorry): Use
540         ATTRIBUTE_GCC_DIAG.
541         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
542         (finish_aliases_1): Do not use %qE.
543         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
544         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
545         Correct format bugs.
546         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
547         parameter to unsigned HOST_WIDE_INT.
548         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
549
550 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
551
552         PR middle-end/21742
553         * expr.c (write_complex_part): Use adjust_address for MEM.
554         (read_complex_part): Same.
555
556 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
557
558         Fix PR tree-optimization/22280
559
560         * tree-sra.c (generate_element_init): Remove useless loop.
561
562 2005-07-02  Richard Henderson  <rth@redhat.com>
563
564         * config/alpha/alpha.c (alpha_legitimize_address): Check for
565         TLS_MODEL_NONE.
566         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
567
568 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
569
570         PR middle-end/14490
571         * fold-const.c (fold_binary): Handle the return value of
572         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
573         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
574
575 2005-07-02  Jeff Law  <law@redhat.com>
576
577         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
578         a eliminate type conversion which feeds an equality comparison
579         if the original type or either operand in the comparison is a
580         function pointer.
581
582 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
583
584         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
585         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
586         texts.
587         * config/avr/avr.c: Do not use '`' as left quote.
588         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
589         Remove "." from end of diagnostics.  Make diagnostics start with
590         lowercase letter.
591
592 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
593             Joseph S. Myers  <joseph@codesourcery.com>
594
595         * toplev.c (default_tree_printer): Handle setting location with
596         '+' flag.
597         * c-objc.common.c (c_tree_printer): Likewise.
598         * c-format.c (gcc_diag_flag_specs): Add '+'.
599         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
600         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
601         formats.
602         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
603         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
604         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
605         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
606         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
607         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
608         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
609         format arguments where %J is used without %D.
610
611 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
612
613         * gcc.c (LINK_SSP_SPEC): Define.
614         (link_ssp_spec): New variable.
615         (LINK_COMMAND_SPEC): Add %(link_ssp).
616         (static_specs): Add link_ssp_spec.
617         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
618         * configure: Rebuilt.
619         * config.in: Rebuilt.
620
621         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
622         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
623         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
624         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
625         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
626         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
627         -0x7008(2) instead of reading __stack_chk_guard variable.
628         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
629         number.
630         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
631         (stack_protect_set, stack_protect_test): Use *_tls* patterns
632         if TARGET_THREAD_SSP_OFFSET is defined.
633         (stack_tls_protect_set_si, stack_tls_protect_set_di,
634         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
635
636         Revert:
637         2005-06-27  Richard Henderson  <rth@redhat.com>
638         * libgcc-std.ver (GCC_4.1.0): New.
639         * libgcc.h (__stack_chk_guard): Declare.
640         (__stack_chk_fail, __stack_chk_fail_local): Declare.
641         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
642         * mklibgcc.in (lib2funcs): Add them.
643
644 2005-07-01  Richard Henderson  <rth@redhat.com>
645
646         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
647         void * before struct sigcontext *.
648         (x86_fallback_frame_state): Likewise.
649
650 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
651
652         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
653
654 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
655
656         PR tree-opt/22269
657         * tree-ssa-reassoc.c (should_transpose): Fix which operand
658         we check for SSA_NAME for.
659
660 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
661
662         Fix PR tree-optimization/22071
663
664         * tree-ssa-structalias.c (offset_overlaps_with_access): New
665         function.
666         (get_constraint_for_component_ref): Use it.
667
668 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
669
670         PR other/22264
671         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
672         print out the last new line.
673
674 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
675
676         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
677         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
678         * config/cris/cris.c (cris_conditional_register_usage): Adjust
679         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
680         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
681         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
682         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
683         (enum reg_class): New member CC0_REGS.
684         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
685         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
686         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
687         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
688         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
689         Adjust for register now described.
690
691 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
692
693         PR target/22262
694         * config/i386/i386.md (stack_protect_test_si,
695         stack_protect_test_di): Add earlyclobber for scratch 3.
696         * config/rs6000/rs6000.md (stack_protect_testsi,
697         stack_protect_testdi): Add earlyclobber for scratch 3,
698         remove earlyclobber from scratch 4.
699
700 Older entries for 2005 can be found in ChangeLog-2005.