OSDN Git Service

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