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