1 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
3 * function.c (expand_function_end): Revert part of 2005-06-27
4 patch. Do sjlj_emit_function_exit_after after return_label.
6 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
8 * doc/install.texi (--disable-libssp): New.
10 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
12 * doc/invoke.texi: Update -fforce-mem documentation.
13 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
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.
24 2005-07-06 Paul Brook <paul@codesourcery.com>
26 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
28 * configure: Regenerate.
30 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
32 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
34 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
36 Fix PR tree-optimization/22319
37 Fix PR tree-optimization/22140
38 Fix PR tree-optimization/22310
40 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
42 Use correct type for intermediate structure on *a = *b structure
45 2005-07-06 Jakub Jelinek <jakub@redhat.com>
47 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
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
64 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
65 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
68 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
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.
74 2005-07-06 Jakub Jelinek <jakub@redhat.com>
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
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.
89 2005-07-06 Jeff Law <law@redhat.com>
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
95 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
98 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
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.
106 2005-07-05 Devang Patel <dpatel@apple.com>
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):
136 2005-07-05 Randolph Chung <tausq@debian.org>
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
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
162 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
164 * aclocal.m4: Update macros for autoconf 2.59 style.
165 * configure.ac: Likewise.
167 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
169 * pa.c (function_value): Handle small aggregates on 32-bit targets.
170 (function_arg): Pass small aggregates in general registers on 32-bit
172 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
174 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
176 * Makefile.in (final.o): Fix dependencies.
178 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
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):
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
193 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
195 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
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.
201 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
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
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,
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,
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,
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,
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,
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,
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,
261 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
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,
285 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
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.
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.
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
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
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.
342 * Makefile.in: Adjust dependencies for tree-pretty-print.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.
361 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
363 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
364 Only fall back to saying it points to readonly memory if
367 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
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.
377 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
379 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
380 instead of $<. Don't remove ./as if it already exists.
382 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
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
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
401 2005-07-04 Diego Novillo <dnovillo@redhat.com>
403 * tree-dump.c (dump_files): Initialize dump number for .cgraph
406 2005-07-04 Diego Novillo <dnovillo@redhat.com>
408 * tree-ssa-structalias.c: Don't include expr.h.
410 2005-07-04 Diego Novillo <dnovillo@redhat.com>
412 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
415 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
417 Fix PR tree-optimization/22279
419 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
422 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
424 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
426 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
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
441 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
443 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
444 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
447 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
449 * pa.c (fix_range): Fix typo in comment.
451 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
453 * tree-vrp.c (extract_range_from_assert): Replace
454 fold (build (...)) with fold_build2.
456 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
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
463 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
465 * varasm.c (assemble_variable): Fix format specifier thinko.
467 2005-07-03 Ira Rosen <irar@il.ibm.com>
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.
473 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
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.
479 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
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.
485 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
486 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
489 * c-decl.c (c_write_global_declarations): Dump contents of
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
497 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
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
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:
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.
523 2005-07-02 David Edelsohn <edelsohn@gnu.org>
526 * expr.c (write_complex_part): Use adjust_address for MEM.
527 (read_complex_part): Same.
529 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
531 Fix PR tree-optimization/22280
533 * tree-sra.c (generate_element_init): Remove useless loop.
535 2005-07-02 Richard Henderson <rth@redhat.com>
537 * config/alpha/alpha.c (alpha_legitimize_address): Check for
539 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
541 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
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".
548 2005-07-02 Jeff Law <law@redhat.com>
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
555 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
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
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
565 2005-07-02 Zack Weinberg <zack@codesourcery.com>
566 Joseph S. Myers <joseph@codesourcery.com>
568 * toplev.c (default_tree_printer): Handle setting location with
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
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.
584 2005-07-02 Jakub Jelinek <jakub@redhat.com>
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.
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
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.
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.
617 2005-07-01 Richard Henderson <rth@redhat.com>
619 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
620 void * before struct sigcontext *.
621 (x86_fallback_frame_state): Likewise.
623 2005-07-01 James E. Wilson <wilson@specifixinc.com>
625 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
627 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
630 * tree-ssa-reassoc.c (should_transpose): Fix which operand
631 we check for SSA_NAME for.
633 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
635 Fix PR tree-optimization/22071
637 * tree-ssa-structalias.c (offset_overlaps_with_access): New
639 (get_constraint_for_component_ref): Use it.
641 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
644 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
645 print out the last new line.
647 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
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.
664 2005-07-01 Jakub Jelinek <jakub@redhat.com>
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.
673 Older entries for 2005 can be found in ChangeLog-2005.