OSDN Git Service

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