OSDN Git Service

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