1 2008-04-25 Kai Tietz <kai.tietz@onevision.com>
3 * config/i386/mingw32.h (SUBTARGET_INIT_BUILTINS): New.
4 * config/i386/i386.c (ix86_init_builtins): Use of
5 SUBTARGET_INIT_BUILTINS.
6 Add include of c-common.h for builtin.
8 2008-04-25 Jan Hubicka <jh@suse.cz>
11 * cfgexpand.c (pass_expand): Turn into RTL pass.
12 * passes.c (execute_one_pass): Do pass typechecking after execution.
13 * tree-pass.h (pass_expand): Turn into RTL pass.
15 * function.h (struct rtl_data): Move here fields
16 accesses_prior_frames, calls_eh_return, saves_all_registers,
17 has_nonlocal_goto, has_asm_statement, is_thunk,
18 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
19 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
20 arg_pointer_save_area_init from struct function; turn into bool.
21 (struct function): Move
22 calls_eh_return, saves_all_registers, has_nonlocal_goto,
23 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
24 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
25 tail_call_emit, arg_pointer_save_area_init
26 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
27 (current_function_returns_struct, current_function_returns_pcc_struct,
28 current_function_calls_setjmp, current_function_calls_alloca,
29 current_function_accesses_prior_frames,
30 current_function_calls_eh_return, current_function_is_thunk,
31 current_function_stdarg, current_function_profile,
32 current_function_limit_stack, current_function_uses_pic_offset_table,
33 current_function_uses_const_pool, current_function_has_nonlocal_label,
34 current_function_saves_all_registers,
35 current_function_has_nonlocal_goto,
36 current_function_has_asm_statement): Remove accesor macros.
37 * ra-conflict.c (global_conflicts): Update.
38 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
39 (suitable_for_tail_call_opt_p): Update.
40 * builtins.c (expand_builtin_return_addr): Update.
41 (expand_builtin_setjmp_setup): Update.
42 (expand_builtin_nonlocal_goto): Update.
43 * final.c (final_start_function): Update.
44 (profile_function): Update.
45 (leaf_function_p): Update.
46 (only_leaf_regs_used): Update.
47 * df-scan.c (df_get_exit_block_use_set): Update.
48 * dojump.c (clear_pending_stack_adjust): Update.
49 * tree-stdarg.c (gate_optimize_stdarg): Update.
50 * gimple-low.c (lower_function_body): Update.
51 * global.c (compute_regsets): Update.
52 (global_alloc): Update.
53 * dwarf2out.c (dwarf2out_begin_prologue): Update.
54 * expr.c (expand_assignment): Update.
55 * dse.c (dse_step0): Update.
57 * c-decl.c (store_parm_decls): Update.
58 * local-alloc.c (combine_regs): Update.
59 (find_free_reg): Update.
60 * function.c (assign_parms_augmented_arg_list): Update.
61 (assign_parm_find_data_types): Update.
62 (assign_parms): Update.
63 (allocate_struct_function): Update.
64 (expand_function_start): Update.
65 (expand_function_end): Update.
66 (get_arg_pointer_save_area): Update.
67 (thread_prologue_and_epilogue_insns): Update.
68 (rest_of_match_asm_constraints): Update.
69 * stor-layout.c (variable_size): Update.
70 * gcse.c (gcse_main): Update.
71 (bypass_jumps): Update.
72 * gimplify.c (gimplify_function_tree): Update.
73 * calls.c (emit_call_1): Update.
74 (expand_call): Update.
75 * bt-load.c (compute_defs_uses_and_gen): Update.
76 * except.c (sjlj_assign_call_site_values): Update.
77 (sjlj_emit_function_enter): Update.
78 (can_throw_external): Update.
79 (set_nothrow_function_flags): Update.
80 (expand_builtin_unwind_init): Update.
81 (expand_eh_return): Update.
82 (convert_to_eh_region_ranges): Update.
83 (output_function_exception_table): Update.
84 * emit-rtl.c (gen_tmp_stack_mem): Update.
85 * cfgexpand.c (expand_used_vars): Update.
86 (tree_expand_cfg): Update.
87 * cfgcleanup.c (rest_of_handle_jump): Update.
88 * explow.c (allocate_dynamic_stack_space): Update.
89 * varasm.c (assemble_start_function): Update.
90 (force_const_mem): Update.
91 (mark_constant_pool): Update.
92 * tree-optimize.c (tree_rest_of_compilation): Update.
93 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
94 * tree-cfg.c (notice_special_calls): Update.
95 (is_ctrl_altering_stmt): Update.
96 (tree_can_make_abnormal_goto): Update.
97 (tree_purge_dead_abnormal_call_edges): Update.
98 * config/alpha/predicates.md: Update.
99 * config/alpha/alpha.c (alpha_sa_mask): Update.
100 (alpha_sa_size): Update.
101 (alpha_does_function_need_gp): Update.
102 (alpha_expand_prologue): Update.
103 (alpha_start_function): Update.
104 (alpha_output_function_end_prologue): Update.
105 (alpha_expand_epilogue): Update.
106 * config/frv/frv.c (frv_stack_info): Update.
107 (frv_expand_epilogue): Update.
108 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
109 (s390_register_info): Update.
110 (s390_frame_info): Update.
111 (s390_init_frame_layout): Update.
112 (s390_can_eliminate): Update.
114 * config/spu/spu.c (spu_split_immediate): Update.
115 (need_to_save_reg): Update.
116 (spu_expand_prologue): Update.
117 (spu_expand_epilogue): Update.
118 * config/sparc/sparc.md: Update.
119 * config/sparc/sparc.c (eligible_for_return_delay): Update.
120 (sparc_tls_got): Update.
121 (legitimize_pic_address): Update.
122 (sparc_emit_call_insn): Update.
123 (sparc_expand_prologue): Update.
124 (output_return): Update.
125 (print_operand): Update.
126 (sparc_function_ok_for_sibcall): Update.
127 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
128 * config/m32r/m32r.md: Update.
129 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
130 (m32r_compute_frame_size): Update.
131 (m32r_expand_prologue): Update.
132 (m32r_expand_epilogue): Update.
133 (m32r_legitimize_pic_address): Update.
134 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
135 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
136 * config/i386/i386.c (ix86_frame_pointer_required): Update.
138 (ix86_save_reg): Update.
139 (ix86_compute_frame_layout): Update.
140 (ix86_expand_prologue): Update.
141 (ix86_expand_epilogue): Update.
142 * config/sh/sh.c (output_stack_adjust): Update.
143 (calc_live_regs): Update.
144 (sh5_schedule_saves): Update.
145 (sh_expand_prologue): Update.
146 (sh_expand_epilogue): Update.
147 (sh_setup_incoming_varargs): Update.
148 (sh_allocate_initial_value): Update.
149 (sh_get_pr_initial_val): Update.
150 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
151 * config/sh/sh.md (label:): Update.
152 * config/avr/avr.c (out_movhi_mr_r): Update.
153 * config/crx/crx.h (enum): Update.
154 * config/xtensa/xtensa.h (along): Update.
155 * config/stormy16/stormy16.c Update.
156 (xstormy16_compute_stack_layout): Update.
157 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
158 (fr30_expand_prologue): Update.
159 * config/cris/cris.c (cris_conditional_register_usage): Update.
160 (cris_reg_saved_in_regsave_area): Update.
161 (cris_initial_frame_pointer_offset): Update.
162 (cris_simple_epilogue): Update.
163 (cris_expand_prologue): Update.
164 (cris_expand_epilogue): Update.
165 (cris_expand_pic_call_address): Update.
166 (cris_asm_output_symbol_ref): Update.
167 (cris_asm_output_label_ref): Update.
168 * config/cris/cris.md Update.
169 * config/iq2000/iq2000.c (compute_frame_size): Update.
170 (iq2000_expand_epilogue): Update.
171 * config/mt/mt.h (save_direction): Update.
172 * config/mn10300/mn10300.c (mn10300_function_value): Update.
173 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
174 (ia64_secondary_reload_class): Update.
175 * config/m68k/m68k.c (m68k_save_reg): Update.
176 (m68k_expand_prologue): Update.
177 (m68k_expand_epilogue): Update.
178 (legitimize_pic_address): Update.
179 * config/rs6000/rs6000.c (rs6000_got_register): Update.
180 (first_reg_to_save): Update.
181 (first_altivec_reg_to_save): Update.
182 (compute_vrsave_mask): Update.
183 (compute_save_world_info): Update.
184 (rs6000_stack_info): Update.
185 (spe_func_has_64bit_regs_p): Update.
186 (rs6000_ra_ever_killed): Update.
187 (rs6000_emit_eh_reg_restore): Update.
188 (rs6000_emit_allocate_stack): Update.
189 (rs6000_emit_prologue): Update.
190 (rs6000_emit_epilogue): Update.
191 (rs6000_output_function_epilogue): Update.
192 (output_profile_hook): Update.
193 (rs6000_elf_declare_function_name): Update.
194 * config/rs6000/rs6000.h (rs6000_args): Update.
195 * config/rs6000/rs6000.md: Update.
196 * config/mcore/mcore.c (mcore_expand_prolog): Update.
197 * config/arc/arc.c (arc_output_function_epilogue): Update.
198 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
199 * config/darwin.c (machopic_function_base_name): Update.
200 * config/score/score3.c (score3_compute_frame_size): Update.
203 (score3_epilogue): Update.
204 * config/score/score7.c (score7_compute_frame_size): Update.
205 (score7_prologue): Update.
206 (score7_epilogue): Update.
207 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
208 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
209 * config/arm/arm.c (use_return_insn): Update.
210 (require_pic_register): Update.
211 (arm_load_pic_register): Update.
212 (arm_compute_save_reg0_reg12_mask): Update.
213 (arm_compute_save_reg_mask): Update.
214 (thumb1_compute_save_reg_mask): Update.
215 (output_return_instruction): Update.
216 (arm_output_function_prologue): Update.
217 (arm_output_epilogue): Update.
218 (arm_get_frame_offsets): Update.
219 (arm_expand_prologue): Update.
220 (thumb_pushpop): Update.
221 (thumb_exit): Update.
222 (thumb1_expand_prologue): Update.
223 (thumb1_expand_epilogue): Update.
224 (arm_unwind_emit): Update.
225 (arm_output_fn_unwind): Update.
226 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
227 * config/arm/arm.md: Update.
228 * config/pa/pa.md: Update.
229 * config/pa/pa.c (legitimize_pic_address): Update.
230 (compute_frame_size): Update.
231 (hppa_expand_prologue): Update.
232 (hppa_expand_epilogue): Update.
233 (borx_reg_operand): Update.
234 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
235 (HARD_REGNO_RENAME_OK): Update.
236 * config/mips/mips.c (mips_global_pointer): Update.
237 (mips_save_reg_p): Update.
238 (mips_compute_frame_info): Update.
239 (mips_frame_pointer_required): Update.
240 (mips_expand_prologue): Update.
241 (mips_expand_epilogue): Update.
242 (mips_can_use_return_insn): Update.
243 (mips_reorg_process_insns): Update.
244 * config/v850/v850.c (compute_register_save_size): Update.
245 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
246 * config/mmix/mmix.c (along): Update.
247 (mmix_expand_epilogue): Update.
248 * config/bfin/bfin.c (legitimize_pic_address): Update.
249 (must_save_p): Update.
250 (stack_frame_needed_p): Update.
251 (add_to_reg): Update.
252 (bfin_expand_prologue): Update.
253 * stmt.c (expand_asm_operands): Update.
254 * reload1.c (reload): Update.
255 (init_elim_table): Update.
257 2008-04-25 Bob Wilson <bob.wilson@acm.org>
259 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
261 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
263 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with
265 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
266 (mov<mode>): Removed.
267 (*movv4sf_internal): Likewise.
268 (*movv2df_internal): Likewise.
270 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
272 * config.gcc (crx-*-elf): Remove deprecation.
274 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
276 * config/i386/cygming-crtend.c (register_frame_ctor): Register
277 __gcc_deregister_frame with atexit.
278 (deregister_frame_dtor): Remove.
280 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
281 Nathan Sidwell <nathan@codesourcery.com>
283 * config/rs6000/rs6000.opt (mspe): Remove Var property.
285 * config/rs6000/rs6000.h (rs6000_spe): Declare.
286 (rs6000_isel): Likewise.
287 * config/rs6000/rs6000.c (rs6000_spe): New variable.
288 (rs6000_isel): New variable.
289 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
291 2008-04-24 Jakub Jelinek <jakub@redhat.com>
294 * c-common.c (handle_vector_size_attribute): Call
295 lang_hooks.types.reconstruct_complex_type instead of
296 reconstruct_complex_type.
297 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
298 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
299 * langhooks.h (struct lang_hooks_for_types): Add
300 reconstruct_complex_type hook.
301 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
302 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
304 2008-04-24 Richard Guenther <rguenther@suse.de>
306 * c-common.h (check_builtin_function_arguments): Declare.
307 * c-common.c (validate_nargs): New function.
308 (check_builtin_function_arguments): Likewise.
309 * c-typeck.c (build_function_call): Call
310 check_builtin_function_arguments.
311 * builtins.c (fold_builtin_classify): Remove error reporting code.
312 (fold_builtin_unordered_cmp): Likewise.
313 (fold_builtin_1): Likewise.
314 (fold_builtin_n): Likewise.
316 2008-04-24 Jakub Jelinek <jakub@redhat.com>
318 PR tree-optimization/36008
319 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
320 the original op1, rather than delta by step.
322 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
323 Sebastian Pop <sebastian.pop@amd.com>
325 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
326 eliminate_local_variables_stmt, eliminate_local_variables,
327 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
328 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
329 of code delimited by two edges in the CFG.
330 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
331 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
332 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
333 the case of parallelisation of reductions.
334 (expr_invariant_in_region_p): New.
336 * tree-flow.h (gather_blocks_in_sese_region): Declared.
337 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
339 2008-04-24 Ira Rosen <irar@il.ibm.com>
340 Richard Guenther <rguenther@suse.de>
342 PR tree-optimization/36034
343 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
344 incapable of dealing with loads with gaps.
346 2008-04-24 Rafael Espindola <espindola@google.com>
348 * tree-flow.h (vrp_evaluate_conditional): Change signature.
349 * tree-ssa-propagate.c (fold_predicate_in): Update call to
350 vrp_evaluate_conditional.
351 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
352 (vrp_evaluate_conditional): Split the cond argument.
353 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
354 (simplify_stmt_for_jump_threading): Update call to
355 vrp_evaluate_conditional.
357 2008-04-24 Ira Rosen <irar@il.ibm.com>
359 PR tree-optimization/35982
360 * tree-vect-analyze.c (vect_check_interleaving): Check that the
361 interleaved data-refs are of the same type.
363 2008-04-24 Danny Smith <dannysmith@users.net>
365 * c-format.c (check_format_info_main): Use strncmp rather than a
366 magic prefix to handle multichar length specs.
367 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
368 Don't prefix "I64" and "I32" with '\0'.
370 2008-04-24 Jakub Jelinek <jakub@redhat.com>
373 * config/i386/i386.c (init_cumulative_args): Don't pass anything
374 in registers for -m32 only if stdarg_p (fntype).
376 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
378 PR rtl-optimization/36006
379 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
380 temp to op0 in order to avoid invalid rtx sharing.
382 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
384 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
385 check TREE_INVARIANT.
386 * tree-gimple.c (is_gimple_address): New.
387 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
388 * tree-gimple.h (is_gimple_address): New.
389 * tree.h (decl_address_invariant_p): New.
390 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
391 (build_string): Likewise.
392 (decl_address_invariant_p): New, from is_gimple_invariant_address.
393 (tree_invariant_p_1): Likewise.
395 (tree_invariant_p): New.
396 (skip_simple_arithmetic): Use it.
397 (stabilize_reference_1): Use it.
398 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
400 (build1_stat): Drop code to compute TREE_INVARIANT.
401 (build2_stat): Drop code to compute TREE_INVARIANT.
402 (build3_stat): Drop code to compute TREE_INVARIANT.
403 (build4_stat): Drop code to compute TREE_INVARIANT.
404 (build5_stat): Drop code to compute TREE_INVARIANT.
405 (build7_stat): Drop code to compute TREE_INVARIANT.
406 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
407 * tree.h (struct tree_base): Remove invariant_flag.
408 (TREE_INVARIANT): Remove.
409 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
410 (fold_builtin_expect): Check TREE_CONSTANT.
411 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
412 * c-tree.h (c_expr_to_decl): Drop third parameter.
413 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
414 (build_c_cast): Don't set TREE_INVARIANT.
415 (pop_init_level): Don't set TREE_INVARIANT.
416 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
417 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
419 (gimplify_init_constructor): Don't set TREE_INVARIANT.
420 (gimplify_addr_expr): Adjust comment.
421 * tree-mudflap.c (mf_build_string):
422 * print-tree.c (print_node): Don't print TREE_INVARIANT.
423 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
424 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
425 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
426 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
427 * langhooks.h (struct lang_hooks): Drop third parameter from
430 2008-04-23 Richard Guenther <rguenther@suse.de>
432 PR tree-optimization/27799
433 PR tree-optimization/32921
434 PR tree-optimization/32624
435 * tree-ssa-structalias.c (merge_smts_into): Only merge the
436 SMTs aliases and the tag itself into the solution.
437 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
438 merge the points-to solution back into the SMT aliases.
439 (may_alias_p): Use alias_set_subset_of instead of
440 aliases_conflict_p. A pointer which points to
441 memory with alias set zero may access any variable.
443 2008-04-23 Richard Guenther <rguenther@suse.de>
445 * alias.c (alias_set_subset_of): Correctly handle asking
446 if zero is a subset of an alias set with zero child.
447 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
448 (compute_flow_insensitive_aliasing): Correctly walk all
449 pointers. Do not unnecessarily union sets.
451 2008-04-23 Richard Guenther <rguenther@suse.de>
454 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
456 2008-04-22 Tomas Bily <tbily@suse.cz>
458 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
460 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
462 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
463 * tree-ssa-structalias.c (get_constraint_for): Likewise.
464 * tree-inline.c (estimate_num_insns_1): Likewise.
465 * varasm.c (const_hash_1, compare_constant, copy_constant)
466 (compute_reloc_for_constant, output_addressed_constants): Likewise.
467 * emit-rtl.c (component_ref_for_mem_expr)
468 (set_mem_attributes_minus_bitpos): Likewise.
469 * expr.c (highest_pow2_factor, expand_expr_real_1, )
470 (is_aligning_offset): Likewise.
471 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
472 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
473 * dojump.c (do_jump): Likewise.
474 * builtins.c (get_pointer_alignment, get_memory_rtx)
475 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
476 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
478 2008-04-23 Jakub Jelinek <jakub@redhat.com>
480 PR rtl-optimization/36017
481 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
482 expanding the library call.
484 2008-04-22 Ian Lance Taylor <iant@google.com>
486 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
489 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
491 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
492 of LR/CTR moves for Power6.
494 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
497 * passes.c (init_optimization_passes): Remove
498 pass_fast_rtl_byte_dce.
500 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
503 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
504 builtin functions to generate faster code.
505 (_mm_cvtpu16_ps): Ditto.
506 (_mm_cvtpi32x2_ps): Ditto.
508 2008-04-22 Nick Clifton <nickc@redhat.com>
510 * common.opt (ftree-loop-distribution): Add Optimization
513 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
514 (frv_expand_builtin_va_start): Likewise.
516 * config/arm/arm.c (thumb_find_work_register): Fix location of
517 argument register count.
519 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
521 Support scheduling for ColdFire V1 and V3 microarchitecture.
522 Improve scheduling of multiplication instructions.
524 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
525 (mac): New instruction attribute.
526 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
527 (m68k_sched_mac): New variable.
528 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
529 Handle cfv1 and cfv3.
530 (max_insn_size): New static variable.
531 (struct _sched_ib): New type.
532 (sched_ib): New static variable.
533 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
534 to fields of 'struct _sched_ib sched_ib'. Update all uses.
535 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
537 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
538 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
539 new variables. Update.
540 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
541 Add modeling of cfv3 instruction buffer. Update.
542 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
543 * config/m68k/m68k.h (TUNE_CFV3): New macro.
544 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
545 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
546 a particular reservation applies to.
547 (type2): Reorganize attribute values. Rename alu to alu_reg,
548 alu_l to alu, move_l to omove. Join move to alu. Split mul
550 (cf_ib_*): Simplify description of instruction buffer.
551 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
552 (cf_mem): Split into cf_mem1 and cf_mem2.
553 (cf_v2_move_??): Rename to cfv12_alu_??.
554 (cf_v2_move_l_??): Rename to cfv12_omove_??.
555 (cf_v2_mul_??): Remove reservations.
556 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
557 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
558 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
560 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
561 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
562 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
563 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
564 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
565 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
566 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
567 expansions of the above reservations for instructions of sizes
570 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
572 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
574 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
576 * coverage.c: Include tree-pass.h.
577 (coverage_counter_alloc): Print da_file_name to the dump file.
579 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
581 * sbitmap.c (sbitmap_range_empty_p): New function.
582 * sbitmap.h (sbitmap_range_empty_p): New function.
583 * bitmap.h: Now includes obstack.h.
585 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
586 Kenneth Zadeck <zadeck@naturalbridge.com>
588 * dbgcnt.def (ra_byte_scan): Added.
589 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
590 when the last hit happens for a counter.
591 * timevar.def (TV_DF_BYTE_LR): New variable.
592 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
593 * passes.c (pass_fast_rtl_byte_dce): New pass.
594 * fwprop.c (update_df): Added mode to call df_ref_create.
595 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
596 DF_REF_EXTRACT_OFFSET.
597 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
598 DF_BYTE_LR_OUT, df_byte_lr): New macro.
600 (df_ref_extract): Added mode field.
601 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
602 DF_REF_EXTRACT_OFFSET.
603 (DF_REF_EXTRACT_MODE): New macro.
604 (df_byte_lr_bb_info): New structure.
605 (df_print_byte_regset, df_compute_accessed_bytes,
606 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
607 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
608 df_byte_lr_simulate_uses,
609 df_byte_lr_simulate_artificial_refs_at_top,
610 df_byte_lr_simulate_artificial_refs_at_end,
611 df_compute_accessed_bytes): New function.
612 (df_ref_create): Add parameter.
613 (df_byte_lr_get_bb_info): New inline function.
614 * df-scan.c (df_ref_record, df_uses_record,
615 df_ref_create_structure): Added mode parameter.
616 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
617 df_defs_record, df_uses_record, df_get_conditional_uses,
618 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
619 df_entry_block_defs_collect, df_exit_block_uses_collect):
620 Added mode parameter to calls to df_ref_record, df_uses_record,
621 df_ref_create_structure.
622 (df_ref_equal_p, df_ref_compare): Added test for modes.
623 (df_ref_create_structure): Added code to set mode. Renamed
624 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
625 DF_REF_EXTRACT_OFFSET.
626 * df-core.c (df_print_byte_regset): New function.
627 * df-byte-scan.c: New file.
628 * df-problems.c (df_rd_transfer_function): Removed unnecessary
629 calls to BITMAP_FREE.
630 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
631 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
632 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
633 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
634 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
635 df_byte_lr_local_compute, df_byte_lr_init,
636 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
637 df_byte_lr_transfer_function, df_byte_lr_free,
638 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
639 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
640 df_byte_lr_simulate_uses,
641 df_byte_lr_simulate_artificial_refs_at_top,
642 df_byte_lr_simulate_artificial_refs_at_end): New function.
643 * dce.c (byte_dce_process_block): New function.
644 (dce_process_block): au is now passed in rather than computed
645 locally. Changed loops that look at artificial defs to not look
646 for conditional or partial ones, because there never are any.
647 (fast_dce): Now is able to drive byte_dce_process_block or
648 dce_process_block depending on the kind of dce being done.
649 (rest_of_handle_fast_dce): Add parameter to fast_dce.
650 (rest_of_handle_fast_byte_dce): New function.
651 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
652 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
654 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
657 * gcc.h: Added fortran options that take arguments to
658 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
661 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
663 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
664 scalarization if on the LHS and not a full access.
666 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
668 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
670 2008-04-18 Rafael Espindola <espindola@google.com>
672 * tree-vrp.c (find_case_label_index): Fix the binary search.
673 (find_case_label_range): New.
674 (vrp_visit_switch_stmt): Use find_case_label_range.
675 (simplify_switch_using_ranges): Use find_case_label_range.
677 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
679 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
680 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
682 2008-04-18 Tom Tromey <tromey@redhat.com>
685 * doc/cpp.texi (Implementation-defined behavior): Mention
688 2008-04-18 Ian Lance Taylor <iant@google.com>
690 * fold-const.c (pointer_may_wrap_p): New static function.
691 (fold_comparison): Add another test for pointer overflow. Use
692 pointer_may_wrap_p to disable some false positives.
694 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
696 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
697 (fname_as_string): Match updated cpp_interpret_string prototype.
698 (fix_string_type): Support char16_t* and char32_t*.
699 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
700 derivative) nodes. Register as builtin if C++0x.
701 (c_parse_error): Support CPP_CHAR{16,32}.
702 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
703 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
704 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
705 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
706 CTI_CHAR32_ARRAY_TYPE>: New elements.
707 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
708 char32_type_node, signed_char32_type_node, char16_array_type_node,
709 char32_array_type_node): New defines.
710 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
711 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
712 (lex_string): Support CPP_STRING{16,32}, match updated
713 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
714 (lex_charconst): Support CPP_CHAR{16,32}.
715 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
716 and CPP_STRING{16,32}.
718 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
721 * aclocal.m4: Regenerate.
722 * configure: Regenerate.
724 2008-04-18 Jan Hubicka <jh@suse.cz>
726 * except.c (dw2_size_of_call_site_table,
727 sjlj_size_of_call_site_table): Use vector API for call_site_record.
729 * cgraphbuild.c (build_cgraph_edges): Update.
730 * tree-pass.h: Update comment.
731 * final.c (leaf_function_p): Update.
732 (leaf_renumber_regs): Update.
733 (rest_of_clean_state): Update.
734 * omp-low.c (expand_omp_parallel): Update.
735 * ipa-reference.c (analyze_function): Update.
736 * reorg.c (find_end_label): Update.
737 (optimize_skip): Update.
738 (fill_simple_delay_slots): Update.
739 (fill_simple_delay_slots): Update.
740 (make_return_insns): Update.
741 (dbr_schedule): Update.
742 * gimple-low.c (record_vars_into): Update.
743 * cfgbuild.c (make_edges): Update.
744 * function.c (assign_stack_local): Update.
745 (assign_parm_adjust_stack_rtl): Update.
746 (locate_and_pad_parm): Update.
747 (allocate_struct_function): Do not initialize stack_alignment_needed
748 and preferred_stack_boundary here.
749 (stack_protect_prologue): Update.
750 (stack_protect_epilogue): Update.
751 (expand_function_start): Initialize stack_alignment_needed,
752 preferred_stack_boundary and max_jumptable_ents.
753 (expand_function_end): Update.
754 (free_after_compilation): Do not NULLify epilogue_delay_list.
755 * function.h (struct rtl_data): Add stack_protect_guard,
756 stack_alignment_needed,
757 preferred_stack_boundary, epilogue_delay_list.
758 (struct function): Remove value_histograms, stack_alignment_needed,
759 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
761 unexpanded_var_list, stack_protect_guard.
762 (current_function_epilogue_delay_list): Remove.
763 * ipa-type-escape.c (analyze_function): Update.
764 * gimplify.c (pop_gimplify_context): Update comment.
765 * calls.c (expand_call): Update.
766 (emit_library_call_value_1): Update.
767 * except.c (set_nothrow_function_flags): Update.
768 * cfgexpand.c (get_decl_align_unit): Update.
769 (create_stack_guard): Update.
770 (estimated_stack_frame_size): Update.
771 (expand_used_vars): Update.
772 (tree_expand_cfg): Free histogram earliers, init expansion variables.
773 * explow.c (allocate_dynamic_stack_space): Update.
774 * tree-ssa-live.c (remove_unused_locals): Update.
775 * varasm.c (mark_constant_pool): Update.
776 * tree-inline.c (remap_decls): Update.
777 (initialize_cfun): Update.
778 (declare_return_variable): Update.
779 (inline_forbidden_p): Update.
780 (expand_call_inline): Update.
781 (declare_inline_vars): Update.
782 (tree_function_versioning): Update.
783 * tree-flow.h (value_histograms): New.
784 (VALUE_HISTOGRAMS): New macro.
785 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
787 * tree-cfg.c (set_bb_for_stmt): Update.
788 (replace_by_duplicate_decl): Update.
789 (move_block_to_fn): Update.
790 (new_label_mapper): Update.
791 (dump_function_to_file): Update.
792 * ipa-struct-reorg.c (build_data_structure): Update.
793 * cfgrtl.c (print_rtl_with_bb): Update.
794 * reload1.c (reload): Update.
796 * config/i386/i386.c (setup_incoming_varargs_64,
797 ix86_compute_frame_layout): Update.
798 * config/arc/arc.c (arc_output_function_epilogue): Update.
800 2008-04-18 Marius Strobl <marius@FreeBSD.org>
802 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
804 * gthr-posix95.h: Likewise.
806 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
808 PR rtl-optimization/35838
809 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
810 out the byte offset of the first subreg.
812 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
814 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
815 to split_ti instead of three separate calls with single member arrays.
816 (subti3 splitter): Ditto.
817 (adddi3 splitter): Ditto with split_di.
818 (subdi3 splitter): Ditto.
819 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
820 two separate calls with single member arrays. Swap match_dup
821 operands 1 and 2 to better fit into the array.
822 (negdi2 splitter): Ditto with split_di.
823 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
824 two separate calls with single member arrays. Swap match_dup operands
825 6 and 7 to better fit into the array.
827 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
829 * config/i386/i386.c (sse_builtin_type): New.
830 (bdesc_sse_args): Likewise.
831 (bdesc_sse_3arg): Removed.
832 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
833 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
834 IX86_BUILTIN_ROUNDPS.
835 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
836 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
837 IX86_BUILTIN_ROUNDPS.
838 (ix86_expand_sse_4_operands_builtin): Removed.
839 (ix86_expand_sse_operands_builtin): New.
840 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
841 and CODE_FOR_sse4_1_roundps.
842 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
843 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
845 2008-04-17 Alan Modra <amodra@bigpond.net.au>
848 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
849 regs before frame pop when needed. If use_backchain_to_restore_sp
850 then load backchain into a temp reg to restore vr and vrsave. Add
851 code to restore vr after frame pop if possible.
853 2008-04-17 Richard Guenther <rguenther@suse.de>
855 * tree-vn.c (expressions_equal_p): Do not check type
856 equality or compatibility before calling operand_equal_p.
857 * fold-const.c (operand_equal_p): Check equivalence of
858 integer constants before bailing out due to signedness or
859 precision differences.
860 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
861 spurious differences in type qualification. Ignore types
862 for COMPONENT_REFs at all.
864 2008-04-17 Christian Bruel <christian.bruel@st.com>
866 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
869 2008-04-16 Jakub Jelinek <jakub@redhat.com>
872 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
875 PR tree-optimization/35899
876 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
877 rather than TREE_OPERAND.
879 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
882 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
883 temporary registers. Change operand predicate to general_operand.
884 (remainderxf3): Ditto.
886 2008-04-16 Richard Guenther <rguenther@suse.de>
888 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
889 * tree-affine.c (aff_combination_expand): Look through some
892 2008-04-15 Doug Kwan <dougkwan@google.com>
894 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
896 * tree-pretty-print.c (dump_generic_node): Ditto.
897 * final.c (output_addr_const): Ditto.
898 * dwarf2out.c (output_cfi): Ditto.
899 * c-pretty-print.c (pp_c_integer_constant): Ditto.
900 * print-rtl.c (print_rtx): Ditto.
901 * print-tree.c (print_node_brief, print_node): Ditto.
902 * c-common.c (match_case_to_enum_1): Ditto.
903 * sched-vis.c (print_value): Ditto.
904 * config/i386/i386.c (print_operand): Cast to long unsigned int
907 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
908 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
909 MS Windows VirtualProtect function.
911 2008-04-15 Jan Hubicka <jh@suse.cz>
913 * gengtype.c (write_root): Param_is argument is OK.
914 * expr.c (expand_expr_real_1): Update call of get_exception_*.
915 * function.h: Include varray.h
916 (rtl_eh): New stucture based on except.c one.
917 (call_site_record): New forward declaration and vector type.
918 * calls.c (emit_call_1): Do not call
919 note_current_region_may_contain_throw.
920 * except.c (eh_status): Remove cur_region, try_region since they are
922 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
923 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
924 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
925 Remove call_site_data_used, call_site_data_size.
926 Turn call_site_record into vector in function.h.
927 (note_current_region_may_contain_throw): Remove.
928 (get_exception_pointer, get_exception_filter): Do not take struct
929 function argument; update.
930 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
931 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
932 build_post_landing_pads, dw2_build_landing_pads,
933 sjlj_assign_call_site_values, sjlj_mark_call_sites,
934 sjlj_emit_function_enter, sjlj_emit_function_enter,
935 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
936 sjlj_build_landing_pads, finish_eh_generation,
937 remove_exception_handler_label, remove_eh_handler,
938 maybe_remove_eh_handler, add_reachable_handler,
939 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
940 add_action_record, collect_one_action_chain, add_call_site,
941 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
942 sjlj_output_call_site_table, output_function_exception_table,
943 * except.h (note_current_region_may_contain_throw): Remove
944 (get_exception_pointer, get_exception_filter): Do not take struct
946 * Makefile.in (GTFILES): Put varargs before struct function.
948 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
950 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
952 (get_constraint_for): Deal with STRING_CST here instead.
954 2008-04-15 Richard Guenther <rguenther@suse.de>
956 * tree-ssa-propagate.c (substitute_and_fold): Substitute
957 statements in a basic-block with a backward walk. Do not
958 substitute into dead statements but instead remove those.
960 2008-04-15 Richard Guenther <rguenther@suse.de>
962 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
963 to zero, thus disable creation of SFTs.
965 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
967 * tree-predcom.c (suitable_reference_p): Return false if the
970 2008-04-15 Jakub Jelinek <jakub@redhat.com>
973 * c-decl.c (finish_decl): If extern or static var has variable
974 size, set TREE_TYPE (decl) to error_mark_node.
976 2008-04-15 Rafael Espindola <espindola@google.com>
978 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
981 2008-04-15 Richard Guenther <rguenther@suse.de>
983 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
984 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
985 (visit_reference_op_load): Do walk vuse-vdef chains on
987 (visit_reference_op_store): But do not here.
988 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
990 (vn_lookup_with_vuses): But do so here.
992 2008-04-14 Ian Lance Taylor <iant@google.com>
994 * fold-const.c (fold_overflow_warning): Remove assertion.
996 2008-04-15 Ben Elliston <bje@au.ibm.com>
998 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
999 temp1 local variables.
1001 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
1004 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
1005 ".text.unlikely" section as executable.
1007 2008-04-14 James E. Wilson <wilson@tuliptree.org>
1009 * config/ia64/ia64.c (rtx_needs_barrier): Handle
1010 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
1011 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
1012 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
1013 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
1014 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
1015 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
1017 2008-04-14 Ian Lance Taylor <iant@google.com>
1019 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
1020 * fold-const.c (fold_comparison): If appropriate, test
1021 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
1022 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
1023 reassociating a pointer type.
1024 * doc/invoke.texi (Optimize Options): Document that
1025 -fstrict-overflow applies to pointer wraparound.
1027 2008-04-13 Jan Hubicka <jh@suse.cz>
1029 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
1031 2008-04-12 Andrew Pinski <pinskia@gmail.com>
1033 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
1034 we are going to "save the world".
1036 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
1038 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
1039 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
1040 operand 0 constraint, not "=".
1042 2008-04-11 James E. Wilson <wilson@tuliptree.org>
1044 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
1046 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
1048 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
1049 of size of positions_needed * CHAR_BIT.
1051 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
1054 * dse.c (store_info): Change positions_needed to unsigned
1056 (lowpart_bitmask): New.
1057 (record_store): Cast to unsigned HOST_WIDE_INT for
1058 positions_needed. Assert width <= size of positions_needed *
1059 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
1060 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
1061 lowpart_bitmask to set mask.
1063 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
1065 * config/bfin/constraints.md: New file.
1066 * config/bfin/bfin.md: Include it.
1067 (adddi3): Use satisfies_constraint functions instead of the old macros.
1068 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
1069 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
1070 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
1071 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
1072 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
1073 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
1074 EXTRA_CONSTRAINT): Delete.
1075 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
1076 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
1078 * config/bfin/bfin.c: Include "tm-constrs.h".
1079 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
1080 Use satisfies_constraint functions instead of the old macros.
1081 * doc/md.texi (Blackfin Constraints): Update file name reference.
1083 2008-04-11 Richard Guenther <rguenther@suse.de>
1085 PR tree-optimization/35869
1086 * tree-vrp.c (execute_vrp): Move switch statement update after
1087 jump threading. Schedule another cfg cleanup run.
1089 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
1092 * attribs.c (decl_attributes): Return early on errorneous node.
1094 2008-04-10 Oleg Ryjkov <olegr@google.com>
1096 * tree.h (struct tree_base): Added a new flag default_def_flag.
1097 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
1099 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
1101 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
1103 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1106 * pa.md: Define mode iterator P. Define mode attribute dwc.
1107 (dcacheflush): Update pattern to use iterator P and attribute dwc.
1108 (icacheflush): Likewise.
1109 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
1110 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
1112 2008-04-11 Ben Elliston <bje@au.ibm.com>
1114 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
1116 2008-04-10 Rafael Espindola <espindola@google.com>
1118 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
1119 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
1120 (extract_range_from_expr): The same.
1122 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
1124 * config/mips/mips.md (GPR2): New mode iterator.
1126 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
1127 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
1128 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
1129 Rewrite these to take two modes, the mode of comparison and the
1130 mode of the destination.
1131 * config/mips/mips.c (mips_expand_scc): Instead of having
1132 paradoxical subreg as destination, expand "narrowing" scc if mode
1133 of comparison is SI and target is requested in DI mode.
1134 (mips_emit_int_order_test): Update comment. Make mode of
1135 comparison match CMP0 rather than TARGET. When creating inverse
1136 target use mode of TARGET.
1138 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
1140 * gcov-dump.c (tag_summary): Only print summaries for the first
1141 GCOV_COUNTERS_SUMMABLE counters.
1143 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
1145 * config/i386/i386.md (absneg): New code iterator.
1146 (absnegprefix): New code attribute.
1147 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
1148 patterns using absneg code iterator.
1149 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
1150 using absneg code iterator.
1151 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
1152 *neg<mode>2 patterns using absneg code iterator.
1153 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
1154 *negextendsfdf2 patterns using absneg code iterator.
1155 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
1156 *negextendsfxf2 patterns using absneg code iterator.
1157 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
1158 *negextendsfdf2 patterns using absneg code iterator.
1159 * config/i386/sse.md (<code><mode>2): Macroize expander from
1160 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
1162 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
1164 * config/s390/s390.h: Remove the remains of the recent search
1165 & replace action of current_function_outgoing_args_size.
1167 2008-04-10 Ira Rosen <irar@il.ibm.com>
1169 PR tree-optimization/35821
1170 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
1171 NEW_STMT_LIST is not NULL.
1173 2008-04-09 David Edelsohn <edelsohn@gnu.org>
1176 * toplev.c (process_options): Remove -ffunction-sections debugging
1179 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
1181 PR middle-end/PR28690
1182 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
1183 than gen_rtx_fmt_ee to perform more canonicalizations.
1185 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1188 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
1190 2008-04-09 Richard Guenther <rguenther@suse.de>
1192 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
1193 (dump_function_to_file): Dump function arguments with types.
1195 2008-04-08 Richard Guenther <rguenther@suse.de>
1197 * fold-const.c (fold_widened_comparison): Do not allow
1198 sign-changes that change the result.
1200 2008-04-08 Janis Johnson <janis187@us.ibm.com>
1203 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
1204 kinds of indirect references.
1206 2008-04-08 David Edelsohn <edelsohn@gnu.org>
1208 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
1209 GNU Fortran language string.
1211 2008-04-08 Rafael Espindola <espindola@google.com>
1213 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
1214 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
1215 * tree.h (tree_call_nonnegative_warnv_p): New.
1217 2008-04-08 Jan Hubicka <jh@suse.cz>
1219 * function.c (free_after_compilation): Clear out regno_reg_rtx
1222 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
1225 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
1227 PR middle-end/PR28690
1228 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
1229 same precedence as REG_POINTER and MEM_POINTER operands.
1231 2008-04-08 Richard Guenther <rguenther@suse.de>
1234 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
1235 for adding index to base.
1237 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
1239 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
1240 (MINGW_ENABLE_EXECUTE_STACK): New.
1241 (IN_LIBGCC2): For libgcc include windows.h file for
1242 function declarations.
1244 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
1246 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
1247 and tem2 if tem1 is not a REG or MULT.
1249 2008-04-08 Jan Hubicka <jh@suse.cz>
1251 * function.h (incomming_args): Break out of struct function.
1252 (function_subsections): Break out of struct function.
1253 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
1254 return_rtx and hard_reg_initial_vals from struct function.
1255 Kill inl_max_label_num.
1256 (current_function_pops_args, current_function_args_info,
1257 current_function_args_size, current_function_args_size,
1258 current_function_pretend_args_size,
1259 current_function_outgoing_args_size,
1260 current_function_internal_arg_pointer, current_function_return_rtx):
1261 Kill compatibility accestor macros.
1262 * builtins.c (expand_builtin_apply_args_1): Update.
1263 (expand_builtin_next_arg): Update.
1264 * df-scan.c (df_get_call_refs): Update.
1265 * dbxout.c (dbxout_function_end): Update.
1266 * dwarf2out.c (dwarf2out_switch_text_section): Update.
1267 (output_line_info): Update.
1268 (secname_for_decl): Update.
1269 (dwarf2out_var_location): Update.
1270 * function.c (free_after_compilation): Update.
1271 (assign_parm_find_stack_rtl): Update.
1272 (assign_parms): Update.
1273 (expand_dummy_function_end): Update.
1274 (expand_function_end): Update.
1275 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
1276 (expand_call): Update.
1277 (emit_library_call_value_1): Update.
1278 (store_one_arg): Update.
1279 * varasm.c (initialize_cold_section_name): Update.
1280 (unlikely_text_section): Update.
1281 (unlikely_text_section_p): Update.
1282 (assemble_start_function): Update.
1283 (assemble_end_function): Update.
1284 (default_section_type_flags): Update.
1285 (switch_to_section): Update.
1286 * integrate.c (set_decl_abstract_flags): Update.
1287 (get_hard_reg_initial_val): Update.
1288 (has_hard_reg_initial_val): Update.
1289 (allocate_initial_values): Update.
1290 * resource.c (init_resource_info): Update.
1291 * config/alpha/alpha.c (NUM_ARGS): Update.
1292 (direct_return): Update.
1293 (alpha_va_start): Update.
1294 (alpha_sa_size): Update.
1295 (alpha_initial_elimination_offset): Update.
1296 (alpha_expand_prologue): Update.
1297 (alpha_start_function): Update.
1298 (alpha_expand_epilogue): Update.
1299 (unicosmk_initial_elimination_offset):
1300 * config/alpha/alpha.md (call expander): Update.
1301 * config/s390/s390.c (s390_register_info): Update.
1302 (s390_register_info): Update.
1303 (s390_frame_info): Update.
1304 (s390_initial_elimination_offset): Update.
1305 (s390_build_builtin_va_list): Update.
1306 (s390_va_start): Update.
1307 * config/spu/spu.c (direct_return): Update.
1308 (spu_expand_prologue): Update.
1309 (spu_initial_elimination_offset): Update.
1310 (spu_build_builtin_va_list): Update.
1311 (spu_va_start): Update.
1312 * config/sparc/sparc.c (sparc_init_modes): Update.
1313 (sparc_compute_frame_size): Update.
1314 (function_value): Update.
1315 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
1316 * config/i386/i386.md (return expander): Update.
1317 * config/i386/i386.c (ix86_va_start): Update.
1318 (ix86_can_use_return_insn_p): Update.
1319 (ix86_compute_frame_layout): Update.
1320 (ix86_expand_epilogue): Update.
1321 * config/sh/sh.c (output_stack_adjust): Update.
1322 (calc_live_regs): Update.
1323 (sh_expand_prologue): Update.
1324 (sh_builtin_saveregs): Update.
1325 (sh_va_start): Update.
1326 (initial_elimination_offset): Update.
1327 (sh_allocate_initial_value): Update.
1328 (sh_function_ok_for_sibcall): Update.
1329 (sh_get_pr_initial_val): Update.
1330 * config/sh/sh.md (return expander): Update.
1331 * config/avr/avr.c (frame_pointer_required_p): UPdate.
1332 * config/crx/crx.c (crx_compute_frame): UPdate.
1333 (crx_initial_elimination_offset): UPdate.
1334 * config/xtensa/xtensa.c (compute_frame_size): Update
1335 (xtensa_builtin_saveregs): Update.
1336 (xtensa_va_start): Update.
1337 (order_regs_for_local_alloc): Update.
1338 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
1339 (xstormy16_expand_builtin_va_start): Update.
1340 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
1341 * config/m68hc11/m68hc11.md (return expanders): Update.
1342 * config/m68hc11/m68hc11.c (expand_prologue): Update.
1343 (expand_epilogue): Update.
1344 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
1345 (cris_simple_epilogue): Update.
1346 (cris_expand_prologue): Update.
1347 (cris_expand_epilogue): Update.
1348 * config/iq2000/iq2000.c (iq2000_va_start): Update.
1349 (compute_frame_size): Update.
1350 * config/mt/mt.c (mt_compute_frame_size): Update.
1351 * config/mn10300/mn10300.c (expand_prologue): Update.
1352 (expand_epilogue): Update.
1353 (initial_offset): Update.
1354 (mn10300_builtin_saveregs):
1355 * config/mn10300/mn10300.md (return expander): Update.
1356 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
1357 (ia64_initial_elimination_offset): Update.
1358 (ia64_initial_elimination_offset): Update.
1359 (ia64_expand_prologue): Update.
1360 * config/m68k/m68k.md (return expander): Update.
1361 * config/rs6000/rs6000.c (rs6000_va_start): Update.
1362 (rs6000_stack_info): Update.
1363 * config/mcore/mcore.c (layout_mcore_frame): Update.
1364 (mcore_expand_prolog): Update.
1365 * config/arc/arc.c (arc_compute_frame_size): Update.
1366 * config/score/score3.c (score3_compute_frame_size): Update.
1367 * config/score/score7.c (score7_compute_frame_size): Update.
1368 * config/arm/arm.c (use_return_insn): Update.
1369 (thumb_find_work_register): Update.
1370 (arm_compute_save_reg_mask): Update.
1371 (arm_output_function_prologue): Update.
1372 (arm_output_epilogue): Update.
1373 (arm_size_return_regs): Update.
1374 (arm_get_frame_offsets): Update.
1375 (arm_expand_prologue): Update.
1376 (thumb_exit): Update.
1377 (thumb_unexpanded_epilogue): Update.
1378 (thumb1_output_function_prologue): Update.
1379 * config/pa/pa.md (return expander): Update.
1380 * config/pa/pa.c (compute_frame_size): Update.
1381 (hppa_builtin_saveregs): Update.
1382 * config/mips/mips.c (mips_va_start): Update.
1383 (mips16_build_function_stub): Update.
1384 (mips_compute_frame_info): Update.
1385 (mips_restore_gp): Update.
1386 (mips_output_function_prologue): Update.
1387 (mips_expand_prologue): Update.
1388 * config/v850/v850.c (compute_frame_size): Update.
1389 (expand_prologue): * config/mmix/mmix.c (along): update.
1390 (mmix_initial_elimination_offset): update.
1391 (mmix_reorg): update.
1392 (mmix_use_simple_return): update.
1393 (mmix_expand_prologue): update.
1394 (mmix_expand_epilogue): Update.
1395 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
1396 (emit_link_insn): Update.
1398 2008-04-08 Anatoly Sokolov <aesok@post.ru>
1400 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
1401 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
1403 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
1406 2008-04-07 Jan Hubicka <jh@suse.cz>
1408 * function.h (rtl): Rename to x_rtl.
1410 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
1411 frame_offset, stack_check_probe_note, arg_pointer_save_area,
1412 used_temp_slots avail_temp_slots, temp_slot_level,
1413 nonlocal_goto_handler_labels): Update accesstors.
1414 (rtl): New global variable.
1415 (struct function): Move some fileds to rtl_data.
1416 (get_arg_pointer_save_area): Update prototype.
1417 * builtins.c (expand_builtin_setjmp_receiver): Update call of
1418 get_arg_pointer_save_area.
1419 * expr.c (init_expr): Update
1420 * function.c (get_frame_size): Update
1421 (assign_stack_local): Update
1422 (expand_function_end): Update.
1423 (get_art_pointer_save_area): Update
1425 * emit-rtl.c (rtl): Declare.
1426 (regno_reg_rtx): Declare.
1427 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
1429 (gen_reg_rtx): Update.
1430 * varasm.c (n_deferred_constatns): Update accestor.
1431 (init_varasm_status): Do not allocate varasm_status.
1432 (force_const_mem, get_pool_size, output_constant_pool): Update.
1433 * stmt.c (force_label_rtx): Do not use x_ prefixes.
1434 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
1435 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
1436 * sparc/sparc.h (INIT_EXPANDERS): Update.
1437 * ia64/ia64.h (INIT_EXPANDERS): Update.
1439 2008-04-07 James E. Wilson <wilson@tuliptree.org>
1441 * reload.c (push_secondary_reload): Add missing break to for loop.
1443 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
1445 PR middle-end/PR28690
1446 * rtlanal.c: Update copyright years.
1447 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
1448 as REG_POINTER and MEM_POINTER operands.
1449 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
1450 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
1451 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
1452 * gcse.c: Update copyright years.
1453 (pre_delete): Call gen_reg_rtx_and_attrs.
1454 (hoist_code): Likewise.
1455 (build_store_vectors): Likewise.
1456 (delete_store): Likewise.
1457 * loop-invariant.c (move_invariant_reg): Likewise.
1458 Update copyright years.
1460 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
1462 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
1463 control string instead of quoted.
1465 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
1467 * doc/rtl.texi: Rewrite of subreg section.
1469 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
1472 * config/i386/i386.c (legitimize_pic_address): Add treating
1473 of dllimport SYM_REF's.
1474 (legitimize_dllimport_symbol): Add prototype.
1476 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1478 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
1479 reference in constructor with non self-referential type.
1481 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
1483 Removal of Return with Depressed Stack Pointer support
1484 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
1485 (ECF_SP_DEPRESSED): Likewise.
1486 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
1487 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
1488 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1489 (expand_call): Do not test ECF_SP_DEPRESSED.
1490 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1491 * function.c (keep_stack_depressed): Delete.
1492 (handle_epilogue_set): Likewise.
1493 (update_epilogue_consts): Likewise.
1494 (emit_equiv_load): Likewise.
1495 (thread_prologue_and_epilogue_insns): Remove support for Return with
1496 Depressed Stack Pointer.
1497 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
1499 2008-04-06 Richard Guenther <rguenther@suse.de>
1501 PR tree-optimization/35400
1502 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
1503 information from SSA_NAMEs.
1505 2008-04-06 Anatoly Sokolov <aesok@post.ru>
1507 * config/avr/avr.h (avr_mega_p): Remove declaration.
1508 (AVR_MEGA): Remove macro.
1509 * config/avr/avr.c (avr_mega_p): Remove variable.
1510 (avr_override_options): Remove inicializion of avr_mega_p.
1511 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1512 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
1513 (avr_jump_mode): (Ditto.).
1514 (avr_output_progmem_section_asm_op): (Ditto.).
1515 (avr_asm_init_sections): (Ditto.).
1516 (avr_asm_init_sections): (Ditto.).
1517 (avr_rtx_costs): (Ditto.).
1518 * config/avr/avr.md: (Ditto.).
1519 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
1522 2008-04-06 Richard Guenther <rguenther@suse.de>
1524 PR tree-optimization/35842
1525 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
1526 is_gimple_invariant_address.
1528 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1530 * gcc.c (default_compilers): Sync Fortran extensions list with
1531 that in fortran/lang-specs.h.
1532 * doc/invoke.texi: Likewise.
1533 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
1534 * dwarf2out.c (gen_compile_unit_die): Likewise.
1536 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
1538 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
1540 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
1543 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
1544 attribute is used for nested functions.
1546 2008-04-05 Jan Hubicka <jh@suse.cz>
1548 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
1550 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
1552 (dump_files): Update.
1553 (enable_rtl_dump_file): Do not accept letter argument.
1554 * tree-pass.h (dump_file_info): Remove letter argument.
1555 * toplev.c (decode_d_option): Update -da handling.
1556 * toplev.h (enable_rtl_dump_file): Update prototype.
1557 * passes.c (register_one_dump_file): Do not accept IPA argument; work
1558 it out based on pass type.
1559 (register_dump_files_1): Likewise.
1560 (init_optimization_passes): Update register_one_dump_file calls.
1561 (execute_one_pass): Sanity check that IPA passes are called at IPA
1562 level and RTL passes at RTL level.
1563 (execute_pass_list): IPA pass can not be after or subpass of
1565 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
1566 disallov RTL subpasses of IPA subpasses.
1568 2008-04-05 Ben Elliston <bje@au.ibm.com>
1570 * tree-cfg.c (need_fake_edge_p): Return false for calls to
1571 builtins that return exactly once and do not throw. Cache call to
1574 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
1576 PR rtl-optimization/34916
1578 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
1579 between instruction pairs.
1581 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
1583 * doc/invoke.texi: Document -mbitops for SH.
1584 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
1585 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
1586 * config/sh/sh.c (print_operand): Add %t operand code.
1587 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
1588 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
1589 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
1590 (extendqihi2): Likewise.
1591 (movqi_i): Likewise.
1592 (insv): Use bset, bclr and bst instructions for SH2A if possible.
1593 (extv): Use bld instruction for SH2A if possible.
1595 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
1596 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
1597 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
1598 (bset.b, bclr.b): Define peepholes.
1599 * config/sh/sh.opt (mbitops): New option.
1601 2008-04-04 Janis Johnson <janis187@us.ibm.com>
1604 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
1605 and view convert expression.
1607 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1610 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1612 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
1614 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
1616 * config/i386/cpuid.h (bit_AES): New.
1617 (bit_PCLMUL): Likewise.
1619 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
1620 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
1621 SSE2 if AES or PCLMUL is enabled.
1622 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
1623 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1624 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
1625 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
1626 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
1627 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
1628 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
1629 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
1630 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
1631 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
1632 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
1633 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
1634 __builtin_ia32_aeskeygenassist128 and
1635 __builtin_ia32_pclmulqdq128.
1636 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
1637 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
1638 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
1640 * config/i386/i386.h (TARGET_AES): New.
1641 (TARGET_PCLMUL): Likewise.
1642 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
1644 * config/i386/i386.md (UNSPEC_AESENC): New.
1645 (UNSPEC_AESENCLAST): Likewise.
1646 (UNSPEC_AESDEC): Likewise.
1647 (UNSPEC_AESDECLAST): Likewise.
1648 (UNSPEC_AESIMC): Likewise.
1649 (UNSPEC_AESKEYGENASSIST): Likewise.
1650 (UNSPEC_PCLMUL): Likewise.
1652 * config/i386/i386.opt (maes): New.
1653 (mpclmul): Likewise.
1655 * config/i386/sse.md (aesenc): New pattern.
1656 (aesenclast): Likewise.
1658 (aesdeclast): Likewise.
1660 (aeskeygenassist): Likewise.
1661 (pclmulqdq): Likewise.
1663 * config/i386/wmmintrin.h: New.
1665 * doc/extend.texi: Document AES and PCLMUL built-in function.
1667 * doc/invoke.texi: Document -maes and -mpclmul.
1669 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
1671 * function.c (free_after_parsing): Replace with
1672 cxx_push_function_context from C++ front-end.
1673 (allocate_struct_function): Don't call langhook.
1674 * langhooks.h (struct lang_hooks_for_functions): Delete.
1675 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
1677 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
1678 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
1679 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
1680 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
1681 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
1682 remove LANG_HOOKS_FUNCTION_INITIALIZER.
1683 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
1685 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
1686 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
1688 2008-04-04 Jakub Jelinek <jakub@redhat.com>
1691 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
1694 2008-04-04 Richard Guenther <rguenther@suse.de>
1697 * fold-const.c (optimize_minmax_comparison): Use the correct
1698 type for the constant in the simplified comparison.
1700 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
1702 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
1703 Pass L2 size as "--param l2-cache-size" to the compiler.
1704 (decode_l2_cache): New function to decode L2 cache parameters using
1705 0x8000006 extended cpuid function.
1706 (detect_caches_amd): Determine parameters of L2 cache using
1707 decode_l2_caches function.
1708 (decode_caches_intel): Decode L2 cache parameters.
1709 (detect_caches_intel): Determine L2 cache parameters using
1710 decode_caches_intel and decode_l2_caches functions.
1712 2008-04-03 Bob Wilson <bob.wilson@acm.org>
1714 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
1715 secondary input reload for subword loads from the constant pool.
1717 2008-04-03 Janis Johnson <janis187@us.ibm.com>
1720 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
1721 constants of the appropriate size for runtime calculations.
1724 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
1725 decimal-float literal constant zero.
1727 2008-04-03 Jakub Jelinek <jakub@redhat.com>
1730 * c-parser.c (c_parser_omp_atomic): Call
1731 default_function_array_conversion on the RHS.
1734 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
1735 call is_variable_sized if decl has incomplete type.
1737 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
1739 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
1741 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
1743 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
1745 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
1746 (sgt<u>): Merge sgt and sgtu into new expander.
1747 (sgt, sgtu): Remove expanders.
1748 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
1749 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
1750 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
1751 *sgtu_<mode>_mips16 into new pattern.
1752 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
1753 (sge<u>): Merge sge and sgeu into new expander.
1754 (sge, sgeu): Remove expanders.
1755 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
1757 (*sge_<mode>, second *sge_<mode>): Remove patterns.
1758 (slt<u>): Merge slt and sltu into new expander.
1759 (slt, sltu): Remove expanders.
1760 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
1761 (*slt_<mode>, *sltu_<mode>): Remove patterns.
1762 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
1763 *sltu_<mode>_mips16 into new pattern.
1764 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
1765 (sle<u>): Merge sle and sleu into new expander.
1766 (sle, sleu): Remove expanders.
1767 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
1768 (*sle_<mode>, *sleu_<mode>): Remove patterns.
1769 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
1770 *sleu_<mode>_mips16 into new pattern.
1771 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
1773 2008-04-03 Jan Hubicka <jh@suse.cz>
1775 PR tree-optimization/35795
1776 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
1777 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1778 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1779 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1780 * score/score3.c (score3_output_mi_thunk): Likewise.
1781 * score/score7.c (score7_output_mi_thunk): Likewise.
1782 * mips/mips.c (mips_output_mi_thunk): Likewise.
1784 2008-04-03 Richard Guenther <rguenther@suse.de>
1786 * tree-vrp.c (extract_range_from_unary_expr): Handle all
1787 conversions. Simplify code.
1789 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
1791 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
1793 2008-04-03 Tom Tromey <tromey@redhat.com>
1794 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1796 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1797 * config/bfin/t-bfin-linux (generated_files): Add
1798 linux-sysroot-suffix.h.
1799 * doc/install.texi (Prerequisites): Require make 3.80.
1800 * doc/sourcebuild.texi (Front End Directory): Document new
1802 * Makefile.in (generated_files): New variable.
1803 (ALL_HOST_OBJS): New variable.
1804 ($(ALL_HOST_OBJS)): New target.
1806 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1808 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
1809 (remap_block): Call id->transform_lang_insert_block instead
1811 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
1812 Set id.transform_lang_insert_block to NULL.
1813 (clone_body): Move to cp/optimize.c
1814 * tree-inline.h (struct copy_body_data): Change
1815 transform_lang_insert_block to function pointer.
1816 (copy_generic_body, copy_decl_no_change): Export.
1817 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
1818 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
1819 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
1821 * c-tree.h (insert_block): Kill.
1822 * c-decl.c (insert_block): Kill.
1824 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
1826 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1827 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1828 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
1830 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
1831 argument, call {push,pop}_function_context from here.
1832 * c-parser.c: Use c_{push,pop}_function_context.
1834 * function.c (push_function_context_to): Move meat ...
1835 (push_function_context): ... here. Simplify.
1836 * function.c (pop_function_context_from): Move meat ...
1837 (pop_function_context): ... here. Simplify.
1838 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
1840 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
1841 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
1842 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
1843 * tree.h (push_function_context_to, pop_function_context_from): Remove.
1845 2008-04-03 Ben Elliston <bje@au.ibm.com>
1847 * expmed.c (extract_force_align_mem_bit_field): Remove.
1849 2008-04-03 Richard Guenther <rguenther@suse.de>
1852 * expr.h (try_casesi): Adjust prototype.
1853 * expr.c (try_casesi): Take fallback label as extra parameter.
1854 Use that for gen_casesi if default_label is NULL.
1855 * stmt.c (expand_case): Pass fallback label to try_casesi,
1856 make sure to fill gaps with a fallback label if default_label
1859 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
1862 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
1864 2008-04-03 Ben Elliston <bje@au.ibm.com>
1866 * expmed.c (extract_split_bit_field): Remove if (0) code.
1867 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
1868 (do_ds_constraint): Likewise.
1870 2008-04-02 Joseph Myers <joseph@codesourcery.com>
1872 * doc/cppopts.texi (-dU): Document.
1873 * c-common.h (flag_dump_macros): Update comment.
1874 * c-opts.c (handle_OPT_d): Handle -dU.
1875 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
1876 dump_queued_macros, cb_used_define, cb_used_undef): New.
1877 (init_pp_output): Handle -dU.
1878 (cb_line_change): Call dump_queued_macros.
1879 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
1881 2008-04-02 Anatoly Sokolov <aesok@post.ru>
1883 * config/avr/predicates.md (io_address_operand): New predicate.
1884 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
1885 * config/avr/avr.c (avr_io_address_p): Remove function.
1886 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
1887 'avr_io_address_p' function.
1888 (out_movhi_r_mr): (Ditto.).
1889 (out_movqi_mr_r): (Ditto.).
1890 (out_movhi_mr_r): (Ditto.).
1891 (avr_address_cost): (Ditto.).
1893 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
1895 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
1896 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
1897 in 32bit mode when XMM registers are available to avoid store
1899 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
1900 corresponding post-reload splitters.
1902 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1904 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
1905 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
1906 __builtin_ia32_roundss.
1907 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
1908 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
1909 __builtin_ia32_roundss.
1910 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
1911 IX86_BUILTIN_SHUFPD here.
1913 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
1915 * config/i386/i386.md (plogic): New.
1916 (plogicprefix): Likewise.
1918 * config/i386/mmx.md (mmx_<code><mode>3): New.
1919 (mmx_and<mode>3): Removed.
1920 (mmx_ior<mode>3): Likewise.
1921 (mmx_xor<mode>3): Likewise.
1923 * config/i386/sse.md (<code><mode>3): New.
1924 (*<code><mode>3): Likewise.
1925 (*<code><mode>3): Likewise.
1926 (<code><mode>3): Likewise.
1927 (*sse_<code><mode>3): Likewise.
1928 (*sse2_<code><mode>3): Likewise.
1929 (<code>tf3): Likewise.
1930 (*<code>tf3): Likewise.
1931 (and<mode>3): Likewise.
1932 (*and<mode>3): Likewise.
1933 (ior<mode>3): Removed.
1934 (*ior<mode>3): Likewise.
1935 (xor<mode>3): Likewise.
1936 (*xor<mode>3): Likewise.
1937 (*and<mode>3): Likewise.
1938 (*ior<mode>3): Likewise.
1939 (*xor<mode>3): Likewise.
1940 (and<mode>3): Likewise.
1941 (*sse_and<mode>3): Likewise.
1942 (*sse2_and<mode>3): Likewise.
1944 (*andtf3): Likewise.
1945 (ior<mode>3): Likewise.
1946 (*sse_ior<mode>3): Likewise.
1947 (*sse2_ior<mode>3): Likewise.
1949 (*iortf3): Likewise.
1950 (xor<mode>3): Likewise.
1951 (*sse_xor<mode>3): Likewise.
1952 (*sse2_xor<mode>3): Likewise.
1954 (*xortf3): Likewise.
1956 2008-04-02 Richard Guenther <rguenther@suse.de>
1958 PR tree-optimization/14495
1959 PR tree-optimization/34793
1960 * tree-vrp.c (struct switch_update): New structure.
1961 (to_remove_edges, to_update_switch_stmts): New VECs.
1962 (simplify_switch_using_ranges): New function. Remove not taken
1963 case labels and edges.
1964 (simplify_stmt_using_ranges): Call it.
1965 (identify_jump_threads): Mark edges we have queued for removal
1966 so we don't thread them.
1967 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
1969 * tree-cfg.c (group_case_labels): Deal with missing default label.
1970 (tree_verify_flow_info): Allow missing default label.
1971 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
1972 (emit_case_nodes): Likewise.
1973 (expand_case): Do not rely on the default label to be present.
1974 * expr.c (try_casesi): Deal with NULL default_label.
1975 (do_tablejump): Likewise.
1977 2008-04-02 Richard Guenther <rguenther@suse.de>
1979 PR tree-optimization/14495
1980 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
1981 SWITCH_EXPR here ...
1982 (vrp_visit_switch_stmt): ... but here (new function).
1983 (find_case_label_index): New helper function.
1984 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
1986 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1988 * fwprop.c: Fix ISO-C99ism.
1990 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
1993 * Makefile.in (objdir): Set it here.
1994 * configure.ac: Not here. Find dynamic linker characteristics.
1995 * exec-tool.in: Use them.
1996 * aclocal.m4: Regenerate.
1997 * configure: Regenerate.
1999 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
2001 * expr.c (expand_var): Delete it.
2002 * expr.h (expand_var): Delete prototype.
2003 * function.c (expand_function_start): Use expand_decl instead.
2004 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
2007 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
2009 PR rtl-optimization/35542
2010 * fwprop.c (forward_propagate_and_simplify): Replace
2011 loc_reg_mentioned_in_p with reg_mentioned_p.
2013 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
2015 PR rtl-optimization/35281
2016 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
2017 (propagate_rtx_1): Handle PR_HANDLE_MEM.
2018 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
2019 (varying_mem_p): Move above propagate_rtx.
2020 (all_uses_available_at): Do not check MEMs.
2022 2008-04-02 Rafael Espindola <espindola@google.com>
2024 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
2025 (register_edge_assert_for_2): Split the cond argument.
2026 (register_edge_assert_for_1): Adjust for the change in
2027 register_edge_assert_for_2.
2028 (register_edge_assert_for): Split the cond argument.
2029 (find_switch_asserts): Adjust for the change in
2030 register_edge_assert_for.
2032 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
2034 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
2035 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
2036 offsets for 64-bit mingw.
2037 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
2038 abi for x86_64-pc-mingw.
2040 2008-04-02 Richard Guenther <rguenther@suse.de>
2042 * tree-vrp.c (extract_range_from_assert): Make sure to not
2043 produce range min/max with TREE_OVERFOW set.
2044 If merging a anti-range and a range keep the anti-range if
2045 the range covers all values of the type.
2046 (register_edge_assert_for_2): Only allow sign-changing
2047 conversions in detecting canonical range checks. Also
2048 register an assert for the unsigned name if useful.
2050 PR tree-optimization/35787
2051 * tree-vrp.c (vrp_val_max): New function.
2052 (vrp_val_min): Likewise.
2053 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
2054 (vrp_val_is_min): Likewise.
2055 (supports_overflow_infinity): Use vrp_val_{min,max}.
2056 (negative_overflow_infinity): Likewise.
2057 (positive_overflow_infinity): Likewise.
2058 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
2059 (is_positive_overflow_infinity): Likewise.
2060 (is_overflow_infinity): Likewise.
2061 (avoid_overflow_infinity): Use vrp_val_{min,max} and
2062 vrp_val_is_{min,max}.
2063 (set_and_canonicalize_value_range): Canonicalize anti-ranges
2064 to ranges if possible. Avoid empty ranges.
2066 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2069 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
2070 the expression is a function address.
2072 2008-04-01 George Helffrich <george@gcc.gnu.org>
2074 PR fortran/PR35154, fortran/PR23057
2075 * fortran/trans-common.c (create_common): Add decl to function
2076 chain to preserve identifier scope in debug output.
2078 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
2079 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
2080 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
2081 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
2083 (dbxout_syms): Check for COMMON-based symbol and wrap in
2084 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
2085 in bracket for efficiency.
2087 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
2088 using DW_TAG_common_block + member offset.
2089 (add_pubname_string): New function.
2090 (dw_expand_expr): New function to find block name and offset for
2092 (common_check): New function to check whether symbol in Fortran COMMON.
2093 (gen_variable_die): If COMMON, use DW_TAG_common_block.
2095 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
2096 use of common is unchanged.
2098 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
2099 with all combinations of debug options available on target.
2100 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
2101 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
2102 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
2103 .stabs functionality.
2104 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
2105 DWARF functionality.
2107 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
2110 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
2112 2008-04-02 Ben Elliston <bje@au.ibm.com>
2114 * config/v850/v850.md (casesi): Remove if (0) code.
2115 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
2116 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
2118 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
2120 * config/i386/i386.md (rex64suffix): New mode attribute.
2121 (floathi<mode>2): Disable expander for SSE math.
2122 (*floathi<mode>2_1): New insn insn_and_split pattern.
2123 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
2124 corresponding post-reload splitters.
2125 (*floathi<mode>2_i387): New macroized insn pattern.
2126 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
2127 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
2128 insn_and_split pattern.
2129 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
2130 New macroized instruction patterns and corresponding post-reload
2132 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
2133 and corresponding post-reload splitters.
2134 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
2135 New macroized instruction patterns.
2136 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
2137 macroized instruction patterns and corresponding post-reload splitters.
2138 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
2139 corresponding post-reload splitters.
2140 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
2141 New macroized instruction patterns.
2142 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
2143 corresponding post-reload splitters.
2144 (*floatsi<mode>2_i387): New macroized instruction patterns.
2146 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
2148 * config/i386/i386.md (smaxmin): New.
2149 (umaxmin): Likewise.
2150 (maxminiprefix): Likewise.
2151 (maxminfprefix): Likewise.
2152 (<code><mode>3): Likewise.
2153 (smin<mode>3): Removed.
2154 (smax<mode>3): Likewise.
2156 * config/i386/mmx.md (mmx_<code>v2sf3): New.
2157 (mmx_<code>v4hi3): Likewise.
2158 (mmx_<code>v8qi3): Likewise.
2159 (mmx_smaxv2sf3): Removed.
2160 (mmx_sminv2sf3): Likewise.
2161 (mmx_umaxv8qi3): Likewise.
2162 (mmx_smaxv4hi3): Likewise.
2163 (mmx_uminv8qi3): Likewise.
2164 (mmx_sminv4hi3): Likewise.
2166 * config/i386/sse.md (<addsub><mode>3): New.
2167 (*<addsub><mode>3): Likewise.
2168 (<sse>_vm<addsub><mode>3): Likewise.
2169 (<maxmin><mode>3): Likewise.
2170 (*<maxmin><mode>3_finite): Likewise.
2171 (*<maxmin><mode>3): Likewise.
2172 (<sse>_vm<maxmin><mode>3): Likewise.
2173 (sse3_h<addsub>v4sf3): Likewise.
2174 (sse3_h<addsub>v2df3): Likewise.
2175 (<maxmin>v16qi3): Likewise.
2176 (*<maxmin>v16qi3): Likewise.
2177 (<maxmin>v8hi3): Likewise.
2178 (*<maxmin>v8hi3): Likewise.
2179 (*sse4_1_<maxmin><mode>3): Likewise.
2180 (*sse4_1_<maxmin><mode>3): Likewise.
2181 (add<mode>3): Removed.
2182 (*add<mode>3): Likewise.
2183 (<sse>_vmadd<mode>3): Likewise.
2184 (sub<mode>3): Likewise.
2185 (*sub<mode>3): Likewise.
2186 (<sse>_vmsub<mode>3): Likewise.
2187 (smin<mode>3): Likewise.
2188 (*smin<mode>3_finite): Likewise.
2189 (*smin<mode>3): Likewise.
2190 (<sse>_vmsmin<mode>3): Likewise.
2191 (smax<mode>3): Likewise.
2192 (*smax<mode>3_finite): Likewise.
2193 (*smax<mode>3): Likewise.
2194 (<sse>_vmsmax<mode>3): Likewise.
2195 (sse3_haddv4sf3): Likewise.
2196 (sse3_haddv2df3): Likewise.
2197 (sse3_hsubv4sf3): Likewise.
2198 (sse3_hsubv2df3): Likewise.
2199 (umaxv16qi3): Likewise.
2200 (*umaxv16qi3): Likewise.
2201 (smaxv8hi3): Likewise.
2202 (*smaxv8hi3): Likewise.
2203 (*sse4_1_smax<mode>3): Likewise.
2204 (*sse4_1_umax<mode>3): Likewise.
2205 (uminv16qi3): Likewise.
2206 (*uminv16qi3): Likewise.
2207 (sminv8hi3): Likewise.
2208 (*sminv8hi3): Likewise.
2209 (*sse4_1_smin<mode>3): Likewise.
2210 (*sse4_1_umin<mode>3): Likewise.
2212 2008-04-01 Rafael Espindola <espindola@google.com>
2214 * tree-cfg.c (verify_expr): remove in_phi.
2215 (verify_stmt): Don't call walk_tree with verify_expr. Use
2216 is_gimple_min_invariant instead of is_gimple_val.
2218 2008-04-01 Joseph Myers <joseph@codesourcery.com>
2220 * doc/include/gpl_v3.texi: Update for manpage generation.
2221 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
2223 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
2224 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
2225 gpl_v3.texi instead of gpl.texi.
2228 2008-04-01 Jakub Jelinek <jakub@redhat.com>
2231 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
2233 2008-04-01 Rafael Espindola <espindola@google.com>
2235 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
2236 (extract_code_and_val_from_cond): Use
2237 extract_code_and_val_from_cond_with_ops.
2239 2008-04-01 Jan Hubicka <jh@suse.cz>
2241 * function.c (free_after_compilation): Free epilogue_delay_list.
2242 (prepare_function_start): Assert that previous compilation was freed.
2244 2008-04-01 Jan Hubicka <jh@suse.cz>
2245 Jim Wilson <wilson@tuliptree.org>
2246 Andreas Tobler <andreast@gcc.gnu.org>
2249 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
2250 rtl.emit instead cfun->emit.
2251 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
2252 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
2254 2008-04-01 Ben Elliston <bje@au.ibm.com>
2256 * doc/c-tree.texi (Function Basics): Fix grammatical error.
2258 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
2260 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
2262 (fprofile-use): Add var flag_profile_use
2263 * coverage.c (coverage_begin_output): Do not open a gcno file for
2264 output only if -ftest-coverage is set.
2265 Do not add getpwd() to gcda file path.
2266 (build_gcov_info): Check the new flag
2267 flag_profile_datafile_relative_path.
2268 (coverage_init): Use profile_data_prefix.
2269 Read profile counter only if flag_profile_use is set.
2270 * opts.c (common_handle_option): New option fprofile-use=,
2271 fprofile-dir=, fprofile-generate=.
2272 * toplev.c (profile_data_prefix): New variable definition.
2273 * toplev.h (profile_data_prefix): New declaration.
2274 * doc/invoke.tex (Option Summary, Optimization Options):
2277 2008-03-31 James E. Wilson <wilson@tuliptree.org>
2279 * varasm.c (output_constant_pool_1): In LABEL_REF check,
2280 use tmp consistently.
2283 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
2284 * config/ia64/ia64.c (rtx_needs_barrier): Handle
2285 UNSPEC_FR_RECIP_APPROX_RES.
2286 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
2288 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
2291 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
2293 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
2296 * fold-const.c (fold_indirect_ref_1): Support accessing non first
2297 element of the vector via a pointer.
2299 2008-03-31 Ian Lance Taylor <iant@google.com>
2301 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
2303 2008-03-31 Jan Hubicka <jh@suse.cz>
2305 * builtins.c (expand_builtin_setjmp_receiver): Update call of
2306 get_arg_pointer_save_area.
2307 * expr.c (init_expr): Just clear out rtl.expr.
2308 * function.c (free_after_compilation): Clear out whole RTL structure.
2309 (get_func_frame_size): Merge into ...
2310 (get_frame_size): ... this one.
2311 (assign_stack_local_1): Merge into ...
2312 (assign_stack_local): ... this one.
2313 (expand_function_end): Update call of get_arg_pointer_save_area.
2314 (get_art_pointer_save_area): Remove cfun argument.
2315 * function.h (emit_status): regno_pointer_align does not need length
2316 attribute. Move x_regno_reg_rtx to ...
2317 (regno_reg_rtx): ... new global array.
2318 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
2319 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
2320 apply_args_value, forced_labels, stack_pointer_delta):
2322 (struct varasm_status): Move here from varasm.c
2323 (struct rtl_data): New. Move here some fields from struct function.
2324 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
2325 frame_offset, stack_check_probe_note, arg_pointer_save_area,
2326 used_temp_slots avail_temp_slots, temp_slot_level,
2327 nonlocal_goto_handler_labels): Update accesstors.
2328 (rtl): New global variable.
2329 (struct function): Move some fileds to rtl_data.
2330 (get_arg_pointer_save_area): Update prototype.
2331 * emit-rtl.c (rtl): Declare.
2332 (regno_reg_rtx): Declare.
2333 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
2335 (gen_reg_rtx): Update.
2336 (init_virtual_regs): Do not tate emit_status argument.
2337 (init_emit): Do not allocate emit.
2338 * varasm.c (varasm_statuc): Move to function.h.
2339 (n_deferred_constatns): Update accestor.
2340 (init_varasm_status): Do not allocate varasm_status.
2341 (force_const_mem, get_pool_size, output_constant_pool): Update.
2342 * stmt.c (force_label_rtx): Do not use x_ prefixes.
2343 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
2345 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
2347 PR rtl-optimization/35729
2348 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
2351 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
2354 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
2355 load/store if memory is unaligned.
2356 (*movti_rex64): Likewise.
2358 * config/i386/predicates.md (misaligned_operand): New.
2360 2008-03-31 Andrew Pinski <pinskia@gmail.com>
2363 * tree-ssa-phiopt.c (conditional_replacement): Return early for
2366 2008-03-31 Jan Beulich <jbeulich@novell.com>
2368 * config/ia64/constraints.md: Add 'j' constraint.
2369 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
2370 (movdi_internal): Likewise.
2372 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
2375 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
2377 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
2380 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
2381 proper error message for the third argument on blendpd and
2384 * config/i386/sse.md (blendbits): New.
2385 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
2387 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
2389 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
2391 2008-03-30 Richard Guenther <rguenther@suse.de>
2394 * fold-const.c (fold_sign_changed_comparison): Do leave
2395 conversions to base-types alone.
2397 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
2399 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
2400 the link register if one altivec register is be saved.
2402 2008-03-30 Ben Elliston <bje@au.ibm.com>
2404 * final.c (final_scan_insn): Remove if (0) code.
2406 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
2408 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
2410 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
2412 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
2413 of V4SFmode to ix86_binary_operator_ok.
2415 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
2417 * config/i386/i386.c (override_options): Initialize
2418 ix86_veclib_handler to ix86_veclibabi_svml when
2419 -mveclibabi=svml is used.
2420 (ix86_veclibabi_svml): New function for SVML ABI style
2421 vectorization support.
2422 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
2424 2008-03-28 Rafael Espindola <espindola@google.com>
2426 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
2427 (tree_binary_nonnegative_warnv_p): Make it public.
2428 (tree_single_nonnegative_warnv_p): Make it public.
2429 (tree_invalid_nonnegative_warnv_p): Make it public.
2430 (tree_unary_nonzero_warnv_p): Make it public.
2431 (tree_binary_nonzero_warnv_p): Make it public
2432 (tree_single_nonzero_warnv_p): Make it public.
2433 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
2434 (extract_range_from_binary_expr): Split the expr argument.
2435 (extract_range_from_unary_expr): Split the expr argument.
2436 (extract_range_from_comparison): Split the expr argument.
2437 (extract_range_from_expr): Use the new aux functions.
2438 (vrp_evaluate_conditional_warnv): Use
2439 vrp_evaluate_conditional_warnv_with_ops.
2440 * tree.h (tree_unary_nonzero_warnv_p): Declare.
2441 (tree_binary_nonzero_warnv_p): Declare.
2442 (tree_single_nonzero_warnv_p): Declare.
2443 (tree_expr_nonzero_warnv_p): Declare.
2444 (tree_unary_nonnegative_warnv_p): Declare.
2445 (tree_binary_nonnegative_warnv_p): Declare.
2446 (tree_single_nonnegative_warnv_p): Declare.
2447 (tree_invalid_nonnegative_warnv_p): Declare.
2449 2008-03-28 Richard Guenther <rguenther@suse.de>
2451 PR tree-optimization/30317
2452 PR tree-optimization/30911
2453 PR tree-optimization/34793
2454 * tree-vrp.c (set_and_canonicalize_value_range): New function.
2455 (struct assert_locus_d): New member EXPR.
2456 (register_new_assert_for): Add EXPR parameter to support
2457 ASSERT_EXPR <name, expr OP limit>.
2458 (register_edge_assert_for_1): Adjust callers.
2459 (find_assert_locations): Likewise.
2460 (process_assert_insertions_for): Build condition from expression.
2461 (extract_range_from_assert): Handle ASSERT_EXPRs
2462 of the form ASSERT_EXPR <name, expr OP limit>.
2463 (register_edge_assert_for_2): New helper registering
2464 asserts for comparisons. Recognize range tests of the form
2465 (unsigned)i - CST1 OP CST2.
2466 (register_edge_assert_for_1): Use it.
2467 (register_edge_assert_for): Likewise.
2468 (needs_overflow_infinity): Integer sub-types
2469 do not need overflow infinities.
2470 (vrp_val_is_max): The extreme values of integer sub-types
2471 are those of the base type.
2472 (vrp_val_is_min): Likewise.
2473 * tree.def (ASSERT_EXPR): Document extra allowed conditional
2476 2008-03-28 Nick Clifton <nickc@redhat.com>
2479 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
2480 Return GENERAL_REGS for stack adjustment reloads.
2482 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
2485 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
2486 const_vector when all the vectors are constant.
2488 2008-03-27 Bob Wilson <bob.wilson@acm.org>
2490 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
2492 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
2493 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
2495 (s<code>_sf): Use new scc_sf attribute for opcode names.
2497 2008-03-27 Tom Tromey <tromey@redhat.com>
2499 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
2500 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
2501 config/spu/t-spu-elf, config/i386/t-interix,
2502 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
2503 config/i386/x-darwin, config/i386/x-mingw32,
2504 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
2505 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
2506 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
2507 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
2508 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
2509 config/rs6000/x-darwin, config/rs6000/t-rs6000,
2510 config/score/t-score-elf, config/arm/t-strongarm-pe,
2511 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
2512 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
2513 Revert automatic dependency patch.
2515 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
2518 * config/i386/i386.c (ix86_function_arg_boundary): Align
2519 decimal floating point to its natural boundary.
2521 2008-03-27 Richard Guenther <rguenther@suse.de>
2524 * fold-const.c (fold_comparison): Restrict distinct decl
2525 comparison folding to VAR_DECLs and PARM_DECLs. Do not
2526 solely rely on operand_equal_p.
2528 2008-03-27 Richard Guenther <rguenther@suse.de>
2531 * c-common.c (handle_weak_attribute): Reject combination of
2534 2008-03-27 Richard Guenther <rguenther@suse.de>
2536 PR tree-optimization/32810
2537 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
2538 conversions from DECL_INITIAL.
2539 (fold_const_aggregate_ref): Likewise from constructor elements.
2541 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
2543 * tree-affine.h (aff_combination_expand): Declare.
2544 (get_inner_reference_aff): Likewise.
2545 * tree-affine.c (aff_combination_expand): Split out from
2546 tree_to_aff_combination_expand.
2547 (get_inner_reference_aff): New function.
2548 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
2549 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
2550 (struct lim_aux_data): sm_done field removed.
2551 (mem_ref_loc_p, mem_ref_locs_p): New types.
2552 (struct mem_ref): Added id, stored, accesses_in_loop,
2553 indep_loop, dep_loop, indep_ref, dep_ref fields.
2554 Removed is_stored, locs and next fields.
2555 (memory_accesses): New variable.
2556 (movement_possibility): Do not allow moving statements
2557 that store to memory.
2558 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
2560 (determine_max_movement): For statements with memory references,
2561 find the outermost loop in that the reference is independent.
2562 (move_computations_stmt): Mark the virtual operands for renaming.
2563 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
2564 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
2565 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
2566 add_vop_ref_mapping, create_vop_ref_mapping_loop,
2567 create_vop_ref_mapping, analyze_memory_references,
2568 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
2569 get_all_locs_in_loop, ref_always_accessed_p,
2570 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
2571 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
2572 store_motion_loop, store_motion): New functions.
2573 (struct vop_to_refs_elt): New type.
2574 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
2575 memref_hash, memref_eq, hoist_memory_references): Rewritten.
2576 (schedule_sm): Replaced by...
2577 (execute_sm): ... this.
2578 (determine_lsm_ref, hoist_memory_references,
2579 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
2580 find_more_ref_vops, free_mem_ref, free_mem_refs,
2581 determine_lsm_loop, determine_lsm): Removed.
2582 (tree_ssa_lim_finalize): Free data structures used by store motion.
2583 (tree_ssa_lim): Call analyze_memory_references. Use
2584 store_motion instead of determine_lsm.
2586 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2588 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
2589 rename tmake_file to m68hc11/t-m68hc11.
2590 (mcore): Set inhibit_libc to true.
2591 * config.host (alpha*-dec-*vms*): Set extra_programs.
2592 (interix3*): Don't use host_xmake_file.
2593 * configure.ac: Let config.gcc override inhibit_libc.
2594 * configure: Regenerate.
2596 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
2597 * config/t-openbsd-thread: Remove commented out lines.
2599 * config/x-interix: Remove.
2601 * config/m68hc11/t-m68hc11-gas: Rename to...
2602 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
2604 * config/mcore/t-mcore: Remove T_CFLAGS.
2605 * config/mcore/t-mcore-pe: Likewise.
2607 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
2609 * configure.ac: Replace custom __GNU_SOURCE test with
2610 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
2611 * aclocal.m4: Regenerate.
2612 * configure: Regenerate.
2613 * config.in: Regenerate.
2615 2008-03-27 Richard Guenther <rguenther@suse.de>
2617 * fold-const.c (target.h): Include.
2618 (fold_comparison): Fold comparison of addresses of decls
2619 that bind locally or of constants. Consolidate address folding code.
2620 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
2621 results from fold_binary_to_constant.
2622 (compare_values_warnv): Likewise.
2624 2008-03-27 Andrew Pinski <pinskia@gmail.com>
2627 * fold-const.c (fold_truthop): Check for integeral types when folding
2628 a == 0 && b == 0 and a != 0 || b != 0 .
2630 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
2632 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
2634 2008-03-26 Andreas Schwab <schwab@suse.de>
2636 * doc/invoke.texi: Fix use of @item vs. @itemx.
2638 2008-03-26 Tom Tromey <tromey@redhat.com>
2640 * Makefile.in (build/gensupport.o, build/print-rtl.o,
2641 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
2642 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
2643 build/gencodes.o, build/genconditions.o, build/genconfig.o,
2644 build/genconstants.o, build/genemit.o, build/genextract.o,
2645 build/genflags.o, build/genmddeps.o, build/genopinit.o,
2646 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
2649 2008-03-26 Richard Guenther <rguenther@suse.de>
2652 2008-03-26 Richard Guenther <rguenther@suse.de>
2654 * fold-const.c (target.h): Include.
2655 (fold_comparison): Fold comparison of addresses of two decls
2656 that bind locally. Consolidate address folding code.
2658 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2660 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
2661 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
2662 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
2663 dconstsqrt2, dconstthird, dconste and/or dconst10.
2664 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
2665 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
2666 dconstsqrt2, dconste): Delete.
2667 (init_emit_once): Likewise. Simplify initializing dconstm1.
2669 * real.c (get_real_const): New.
2670 * real.h (dconst3, dconst10, dconstm2, dconstthird,
2671 dconstsqrt2, dconste): Delete.
2672 (real_value_const, get_real_const): New.
2674 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
2676 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
2678 * config/i386/i386.c (ix86_function_arg_boundary): Check
2679 BIGGEST_ALIGNMENT instead of 128.
2680 (setup_incoming_varargs_64): Likewise.
2682 2008-03-26 Tom Tromey <tromey@redhat.com>
2684 * Makefile.in (DEPFILES): Add missing '/'.
2686 2008-03-26 Richard Guenther <rguenther@suse.de>
2688 * fold-const.c (target.h): Include.
2689 (fold_comparison): Fold comparison of addresses of two decls
2690 that bind locally. Consolidate address folding code.
2692 2008-03-26 Nick Clifton <nickc@redhat.com>
2695 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
2696 not allow INT+INT as a legitimate addressing mode.
2698 2008-03-26 Richard Guenther <rguenther@suse.de>
2700 * tree-flow.h (widen_bitfield): Remove declaration.
2701 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
2702 (widen_bitfield): Remove function.
2703 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
2706 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
2709 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
2712 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
2714 PR rtl-optimization/35232
2715 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
2716 (forget_old_reloads_1, forget_marked_reloads): Don't clear
2717 reg_reloaded_call_part_clobbered here.
2718 (reload_regs_reach_end_p): New function.
2719 (reload_reg_rtx_for_input): New variable.
2720 (reload_reg_rtx_for_output): Likewise.
2721 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
2722 when reassigning a pseudo register. Load reloadreg from
2723 reload_reg_rtx_for_input, moving the mode and register
2725 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
2726 instead of the original when deciding whether an input reload
2727 would be a no-op or whether an output reload can be deleted.
2728 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
2729 when setting up new_spill_reg_store. Load it from
2730 reload_reg_rtx_for_output, moving the mode and register
2732 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
2733 instead of the original when deciding whether an output reload
2734 would be a no-op. Do the same when modifying insn notes.
2735 Use rtx_equal_p instead of == to compare the registers.
2736 (inherit_piecemeal_p): Take a mode and two register numbers
2738 (emit_reload_insns): Clear new_spill_reg_store for every hard
2739 register in the reload register. Remove spill registers
2740 from reg_reloaded_valid before considering whether to record
2741 inheritance information for them. Use reload_reg_rtx_for_output
2742 instead of reg_rtx when recording output reloads. Use
2743 reload_reg_rtx_for_input instead of reg_rtx when recording
2744 input reloads. Set or clear reg_reloaded_call_part_clobbered
2745 at the same time as setting reg_reloaded_valid.
2746 (delete_output_reload): Add a new_reload_reg parameter and use it
2747 instead of rld[j].reg_rtx.
2748 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
2751 2008-03-25 Tom Tromey <tromey@redhat.com>
2753 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
2754 (build/genattr.o): Likewise.
2755 (build/genattrtab.o): Likewise.
2756 (build/gencodes.o): Likewise.
2757 (build/genconfig.o): Likewise.
2758 (build/genconstants.o): Likewise.
2759 (build/genemit.o): Likewise.
2760 (build/genextract.o): Likewise.
2761 (build/genflags.o): Likewise.
2763 2008-03-25 Bob Wilson <bob.wilson@acm.org>
2765 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
2766 instead of size_int for integer types.
2767 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
2768 to match type of MINUS_EXPR.
2770 2008-03-25 Tom Tromey <tromey@redhat.com>
2772 * configure: Rebuilt.
2773 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
2776 2008-03-25 Tom Tromey <tromey@redhat.com>
2778 * config/x-solaris (host-solaris.o): Update.
2779 * config/x-linux (host-linux.o): Update.
2780 * config/x-hpux (host-hpux.o): Update.
2781 * config/x-darwin (host-darwin.o): Update.
2782 * config/v850/t-v850e (v850-c.o): Update.
2783 * config/v850/t-v850 (v850-c.o): Update.
2784 * config/t-vxworks (vxworks.o): Update.
2785 * config/t-sol2 (sol2-c.o, sol2.o): Update.
2786 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
2787 * config/spu/t-spu-elf (spu-c.o): Update.
2789 * config/sh/t-symbian (sh-c.o): Update.
2790 (symbian.o): Update.
2791 * config/sh/t-sh (sh-c.o): Update.
2792 * config/score/t-score-elf (score7.o, score3.o): Update.
2793 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
2794 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
2795 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
2796 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
2798 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
2799 * config/m32c/t-m32c (m32c-pragma.o): Update.
2800 * config/ia64/t-ia64 (ia64-c.o): Update.
2801 * config/i386/x-mingw32 (host-mingw32.o): Update.
2802 * config/i386/x-i386 (driver-i386.o): Update.
2803 * config/i386/x-darwin (host-i386-darwin.o): Update.
2804 * config/i386/x-cygwin (host-cygwin.o): Update.
2805 * config/i386/t-nwld (nwld.o): Update.
2806 * config/i386/t-netware (netware.o): Update.
2807 * config/i386/t-interix (winnt.o): Update.
2808 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
2809 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
2810 msformat-c.o): Update.
2811 * config/bfin/t-bfin-linux (generated_files): Add
2812 linux-sysroot-suffix.h.
2813 * config/arm/t-wince-pe (pe.o): Update.
2814 * config/arm/t-strongarm-pe (pe.o): Update.
2815 * config/arm/t-pe (pe.o): Update.
2816 * config/arm/t-arm (arm-c.o): Update.
2817 * doc/install.texi (Prerequisites): Require make 3.80.
2818 * Makefile.in: Remove .o targets.
2819 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
2820 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
2821 (simple_generated_h, simple_generated_c): Move earlier.
2822 (generated_files): New variable.
2823 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
2824 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
2825 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
2826 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
2827 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
2828 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
2829 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
2830 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
2831 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
2832 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
2833 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
2834 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
2836 (COMPILE.base, COMPILE): New variables.
2837 (%.o): New pattern rule.
2838 (ALL_HOST_OBJS): New variable.
2839 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
2840 (dummy-checksum.o, cc1-checksum.o): Remove.
2841 (DRIVER_SHLIB): New variable.
2842 (DRIVER_DEFINES): Use it.
2843 (gencondmd.c): Move out of build/.
2844 (s-conditions): Update.
2845 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
2846 (ALL_BUILD_OBJS): Likewise.
2847 (build/%.o): Use BUILDCOMPILE.
2848 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
2849 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
2850 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
2851 build/gencheck.o, build/gencodes.o, build/genconditions.o,
2852 build/genconfig.o, build/genconstants.o, build/genemit.o,
2853 build/genextract.o, build/genflags.o, build/genmddeps.o,
2854 build/genopinit.o, build/genoutput.o, build/genpeep.o,
2855 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
2856 build/gen-protos.o, build/scan.o, build/fix-header.o,
2857 build/scan-decls.o): Simplify.
2858 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
2859 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
2860 prefix.o, toplev.o): Reduce to variable setting.
2861 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
2862 ($(out_object_file), gcc-options.o): New targets.
2863 ($(ALL_HOST_OBJS)): New target. Include dependency files.
2864 * configure: Rebuilt.
2865 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
2866 * doc/sourcebuild.texi (Front End Directory): Document new variable.
2868 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
2870 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
2871 complain when we hit an error, return ERROR_MARK_NODE.
2873 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2875 * config/sh/constraints.md (Pso, Psz): New constraints.
2876 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
2877 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
2879 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2881 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
2882 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
2884 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
2886 * config/sh/sh.md (prefetch): Add condition for SH2A target.
2887 (prefetch_sh2a): New.
2889 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2890 Naveen.H.S <naveen.hs@kpitcummins.com>
2892 * config/sh/constraints.md (I28): New constraint.
2893 * config/sh/sh.c (broken_move): Add support for movi20s.
2894 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
2896 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
2897 Jayant Sonar <Jayant.sonar@kpitcummins.com>
2898 Naveen.H.S <naveen.hs@kpitcummins.com>
2900 * config/sh/sh.c (SH_ATTRIBUTES): Define.
2901 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
2902 (print_operand): Handle resbank in %@ operand code.
2903 (sh_encode_section_info): New.
2904 (push_regs): Add conditions for resbank.
2905 (sh_expand_epilogue): Likewise.
2906 (sh_insert_attributes): Likewise.
2907 (sh_attribute_table): Likewise.
2908 (sh_handle_resbank_handler_attribute): New.
2909 (sh2a_handle_function_vector_handler_attribute): New.
2910 (sh2a_is_function_vector_call): New.
2911 (sh2a_get_function_vector_number): New.
2912 (sh2a_function_vector_p): New.
2913 (sh_cfun_resbank_handler_p): New.
2914 * config/sh/sh.md (calli): Emit jsr/n if possible.
2915 (calli_tbr_rel): New.
2916 (calli_pcrel): Emit jsr/n if possible.
2917 (return_i): Emit rts/n if possible.
2918 (call_valuei_tbr_rel): New.
2919 (call_valuei_pcrel): Add condition for SH2A target.
2920 (call_value): Likewise.
2921 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
2922 (sh2a_get_function_vector_number): Likewise.
2923 (sh2a_is_function_vector_call): Likewise.
2924 * doc/extend.texi: Document TBR relative addressing of SH2A.
2925 (resbank): Add description for SH2A.
2927 2008-03-24 Richard Guenther <rguenther@suse.de>
2930 * gimplify.c (gimplify_modify_expr): For frontend type-correct
2931 pointer assignments change conversions according to middle-end rules.
2932 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
2933 * configure.ac: Include type checking in yes.
2934 * configure: Regenerate.
2936 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2938 * diagnostic.c (diagnostic_count_diagnostic): Delete.
2939 (diagnostic_report_diagnostic): Update. Handle ICEs here.
2941 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
2943 * gthr-vxworks.h (UNUSED): Define.
2945 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
2947 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
2949 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
2951 * doc/extend.texi (Function Attributes): Add missing comma in the
2952 example of the "alloc_size" attribute.
2954 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
2957 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2959 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2962 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
2965 * stor-layout.c (update_alignment_for_field): Set minimum alignment
2966 of the underlying type of a MS bitfield layout to the natural
2967 alignment of the type.
2969 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
2971 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
2972 to their natural alignment to avoid store forwarding stalls.
2974 2008-03-22 Richard Guenther <rguenther@suse.de>
2976 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
2977 For PHI nodes verify the address is invariant.
2978 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
2979 (get_symbol_constant_value): Use is_gimple_min_invariant.
2980 (maybe_fold_stmt_indirect): Likewise.
2982 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
2984 PR rtl-optimization/33927
2985 * Makefile.in (dse.o): Depend on $(TM_P_H).
2986 * expr.h (extract_low_bits): Declare.
2987 * expmed.c (extract_low_bits): New function.
2988 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
2989 * dse.c: Include tm_p.h.
2990 (find_shift_sequence): Remove the read_reg argument and return the
2991 read value. Emit the instructions instead of returning them.
2992 Iterate on new_mode rather than calculating it each time.
2993 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
2994 source to NEW_MODE and extract_low_bits to convert the shifted
2996 (replace_read): Allow the load and store to have different mode
2997 classes. Use extract_low_bits when SHIFT == 0. Create the shift
2998 or extraction instructions before trying the replacement. Update
2999 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
3001 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
3003 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
3004 to their natural alignment to avoid store forwarding stalls.
3006 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
3009 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
3010 encouraging but not allowing gprs for input;
3011 change the input constraint to !f#r.
3012 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
3014 change the output constraint to !f#r.
3016 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
3019 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
3020 corresponding post-reload splitters.
3021 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
3022 when x87 FP math is selected.
3023 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
3024 New function prototype.
3025 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
3026 unreachable function to ease macroization of insn patterns.
3028 2008-03-21 Martin Jambor <mjambor@suse.cz>
3030 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
3031 reference dumps if ddr is NULL or dependence is unknown.
3033 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3035 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
3036 unsigned extension into account.
3037 (ATOMIC_COMPARE_AND_SWAP): Likewise.
3038 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
3039 Do computations on a scratch register.
3041 2008-03-21 Richard Guenther <rguenther@suse.de>
3043 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3044 Use is_gimple_min_invariant instead of TREE_INVARIANT.
3045 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
3046 * tree-ssa-dom.c (record_equality): Likewise.
3047 * tree-inline.c (copy_body_r): Likewise.
3048 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
3051 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
3053 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
3054 as 'delete_unused' argument.
3056 2008-03-20 Richard Guenther <rguenther@suse.de>
3058 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
3059 special casing of constant qualifiers.
3060 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
3061 care about them in general.
3062 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
3063 regardless of their type.
3064 (fold_stmt_r): Forcefully fold *& if we end up with that.
3066 2008-03-20 Paul Brook <paul@codesourcery.com>
3068 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
3069 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
3071 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
3073 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
3074 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
3076 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
3078 * common.opt (Wmudflap): New option.
3079 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
3080 (mx_register_decls): Likewise.
3081 (mudflap_finish_file): Likewise.
3082 * doc/invoke.texi: Document -Wno-mudflap.
3084 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
3086 * c-format.c (replace_format_name_to_system_name): New.
3088 (convert_format_name_to_system_name): New.
3089 (decode_format_attr): Add use of convert_format_name_to_system_name.
3090 (format_types_orig): Add gnu_ prefix to names.
3091 (check_format_info_main): Special treating of \0 escaped names for
3092 supporting multi-character format specifiers as I32, I64.
3093 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
3094 (gnu_target_overrides_format_attributes): New.
3095 * c-format.h: Add structure target_ovr_attr to hold
3096 system specific formatter names.
3097 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
3098 msformat-c.o file to c_target_objs and cxx_target_objs.
3099 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
3100 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
3101 (TARGET_N_FORMAT_TYPES): New.
3102 * config/i386/msformat-c.c: New.
3103 * config/i386/t-cygming: Add build rule for msformat-c.o.
3104 * doc/extend.texi: Add new format names gnu_* and ms_* and
3106 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
3108 2008-03-20 Ira Rosen <irar@il.ibm.com>
3110 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
3111 optimizations turned on under -O3.
3112 (ftree-vectorize): Add that the flag is turned on with -O3.
3114 2008-03-20 Ben Elliston <bje@au.ibm.com>
3116 * regmove.c (try_auto_increment): Fix spelling error in comment.
3117 * final.c (final_scan_insn): Likewise.
3119 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
3122 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
3123 allocator preferences for "y" and "r" class registers.
3124 ("*mov<mode>_internal"): Ditto.
3125 ("*movv2sf_internal_rex64"): Ditto.
3126 ("*movv2sf_internal"): Ditto.
3128 2008-03-19 Michael Matz <matz@suse.de>
3131 * calls.c (expand_call): Check overlap of arguments with call
3132 address for sibcalls.
3134 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
3137 * stor-layout.c (update_alignment_for_field): Set minimum alignment
3138 of the underlying type of a MS bitfield layout to the natural
3139 alignment of the type.
3141 2008-03-19 Jan Hubicka <jh@suse.cz>
3144 * toplev.c (decode_d_option): Handle all CPP flags.
3145 * tree-vrp.c: Update tree_pass descriptors.
3146 * regrename.c: Update tree_pass descriptors.
3147 * fwprop.c: Update tree_pass descriptors.
3148 * doc/invoke.texi: Remove documentation of dropped -d? flags.
3149 * tree-into-ssa.c: Update tree_pass descriptors.
3150 * tree-dump.c: Update tree_pass descriptors.
3151 * tree-complex.c: Update tree_pass descriptors.
3152 * tree-dump.h: Update tree_pass descriptors.
3153 * see.c: Update tree_pass descriptors.
3154 * cgraphbuild.c: Update tree_pass descriptors.
3155 * tracer.c: Update tree_pass descriptors.
3156 * tree-loop-distribution.c: Update tree_pass descriptors.
3157 * cgraph.c: Update tree_pass descriptors.
3158 * postreload-gcse.c: Update tree_pass descriptors.
3159 * postreload.c: Update tree_pass descriptors.
3160 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
3161 * tree-tailcall.c: Update tree_pass descriptors.
3162 * tree-pass.h (tree_opt_pass): Rename to ...
3163 (opt_pass) ... this one; add "type" field and remove letter field.
3164 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
3165 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
3166 all_lowering_passes): Update declaration.
3167 * ipa-cp.c: Update tree_pass descriptors.
3168 * final.c: Update tree_pass descriptors.
3169 * omp-low.c: Update tree_pass descriptors.
3170 * tree-ssa-dse.c: Update tree_pass descriptors.
3171 * ipa-reference.c: Update tree_pass descriptors.
3172 * tree-ssa-uncprop.c: Update tree_pass descriptors.
3173 * auto-inc-dec.c: Update tree_pass descriptors.
3174 * reorg.c: Update tree_pass descriptors.
3175 * cgraphunit.c: Update tree_pass descriptors.
3176 * tree-ssa-copyrename.c: Update tree_pass descriptors.
3177 * tree-ssa-ccp.c: Update tree_pass descriptors.
3178 * df-core.c: Update tree_pass descriptors.
3179 * mode-switching.c: Update tree_pass descriptors.
3180 * tree-nomudflap.c: Update tree_pass descriptors.
3181 * modulo-sched.c: Update tree_pass descriptors.
3182 * ipa-pure-const.c: Update tree_pass descriptors.
3183 * cse.c: Update tree_pass descriptors.
3184 * web.c: Update tree_pass descriptors.
3185 * tree-stdarg.c: Update tree_pass descriptors.
3186 * tree-ssa-math-opts.c: Update tree_pass descriptors.
3187 * tree-ssa-dom.c: Update tree_pass descriptors.
3188 * tree-nrv.c: Update tree_pass descriptors.
3189 * tree-ssa-alias.c: Update tree_pass descriptors.
3190 * loop-init.c: Update tree_pass descriptors.
3191 * gimple-low.c: Update tree_pass descriptors.
3192 * ipa-inline.c: Update tree_pass descriptors.
3193 * tree-ssa-sink.c: Update tree_pass descriptors.
3194 * global.c: Update tree_pass descriptors.
3195 * ifcvt.c: Update tree_pass descriptors.
3196 * jump.c: Update tree_pass descriptors.
3197 * predict.c: Update tree_pass descriptors.
3198 * tree-ssa-loop.c: Update tree_pass descriptors.
3199 * recog.c: Update tree_pass descriptors.
3200 * dse.c: Update tree_pass descriptors.
3201 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
3202 * tree-eh.c: Update tree_pass descriptors.
3203 * regmove.c: Update tree_pass descriptors.
3205 * function.c: Update tree_pass descriptors.
3206 * tree-vectorizer.c: Update tree_pass descriptors.
3207 * gcse.c: Update tree_pass descriptors.
3208 * ipa-type-escape.c: Update tree_pass descriptors.
3209 * tree-if-conv.c: Update tree_pass descriptors.
3210 * init-regs.c: Update tree_pass descriptors.
3211 * ipa.c: Update tree_pass descriptors.
3212 * tree-ssa-phiopt.c: Update tree_pass descriptors.
3213 * rtl-factoring.c: Update tree_pass descriptors.
3214 * lower-subreg.c: Update tree_pass descriptors.
3215 * bt-load.c: Update tree_pass descriptors.
3216 * tree-dfa.c: Update tree_pass descriptors.
3217 * except.c: Update tree_pass descriptors.
3218 * emit-rtl.c: Update tree_pass descriptors.
3219 * cfgexpand.c: Update tree_pass descriptors.
3220 * tree-cfgcleanup.c: Update tree_pass descriptors.
3221 * cfgcleanup.c: Update tree_pass descriptors.
3222 * tree-ssa-pre.c: Update tree_pass descriptors.
3223 * tree-sra.c: Update tree_pass descriptors.
3224 * tree-mudflap.c: Update tree_pass descriptors.
3225 * tree-ssa-copy.c: Update tree_pass descriptors.
3226 * cfglayout.c: Update tree_pass descriptors.
3227 * tree-ssa-forwprop.c: Update tree_pass descriptors.
3228 * tree-ssa-dce.c: Update tree_pass descriptors.
3229 * tree-ssa.c: Update tree_pass descriptors.
3230 * regclass.c: Update tree_pass descriptors.
3231 * integrate.c: Update tree_pass descriptors.
3232 * tree-optimize.c: Update tree_pass descriptors.
3233 * tree-ssa-phiprop.c: Update tree_pass descriptors.
3234 * tree-object-size.c: Update tree_pass descriptors.
3235 * combine.c: Update tree_pass descriptors.
3236 * tree-outof-ssa.c: Update tree_pass descriptors.
3237 * bb-reorder.c: Update tree_pass descriptors.
3238 * stack-ptr-mod.c: Update tree_pass descriptors.
3239 * var-tracking.c: Update tree_pass descriptors.
3240 * tree-profile.c: Update tree_pass descriptors.
3241 * tree-vect-generic.c: Update tree_pass descriptors.
3242 * reg-stack.c: Update tree_pass descriptors.
3243 * sched-rgn.c: Update tree_pass descriptors.
3244 * tree-ssa-structalias.c: Update tree_pass descriptors.
3245 * tree-cfg.c: Update tree_pass descriptors.
3246 * passes.c (current_pass): Update declaration.
3247 (finish_optimization_passes): Update.
3248 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
3249 (register_one_dump_file, register_dump_files_1, next_pass_1):
3251 (init_optimization_passes): Update handling of new types.
3252 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
3253 * ipa-struct-reorg.c: Update tree_pass descriptors.
3254 * tree-ssa-reassoc.c: Update tree_pass descriptors.
3255 * combine-stack-adj.c: Update tree_pass descriptors.
3256 * cfgrtl.c: Update tree_pass descriptors.
3257 * dce.c: Update tree_pass descriptors.
3258 * tree-ssanames.c: Update tree_pass descriptors.
3260 2008-03-19 Richard Guenther <rguenther@suse.de>
3263 * tree-ssa.c (walk_data): New structure.
3264 (warn_uninitialized_var): If not always_executed warn with "maybe"
3266 (execute_early_warn_uninitialized): Compute post-dominators.
3267 Initialize always_executed before processing each basic block.
3269 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
3272 * config/i386/i386.c (x86_this_parameter): Calculate correct location
3273 of "this" pointer when "regparm = N" or "fastcall" is in effect.
3275 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3277 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
3279 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
3281 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
3283 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
3284 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
3285 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
3286 target after ignore has been set, and move there also the commputation
3287 of subtarget and original_target.
3288 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
3289 (LANG_HOOKS_INITIALIZER): Remove it.
3290 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
3292 2008-03-18 Richard Guenther <rguenther@suse.de>
3294 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
3295 found an expression with constants, note that in the VN for the lhs.
3296 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
3297 fold them to constants if possible. Run cleanup_cfg if done so.
3298 (execute_pre): Return todo.
3300 (execute_fre): Likewise.
3301 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
3303 (get_prop_source_stmt): Look through pointer conversions.
3305 2008-03-18 Jan Hubicka <jh@suse.cz>
3307 * tree-pretty-print.c: Include predict.h.
3308 (dump_generic_node): Dump predictor.
3309 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
3310 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
3311 * gimple-low.c (lower_stmt): Likewise.
3312 * expr.c (expand_expr_real): Likewise.
3313 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
3315 (build_predict_expr, build_predict_expr): New.
3316 * predict.h (predictor_name, build_predict_expr): Update.
3317 * c-typeck.c (c_finish_bc_stmt): Add prediction.
3318 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
3319 * predict.def (PRED_CONTINUE): Update hitrate.
3320 * tree.def (PREDICT_EXPR): Define.
3321 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
3322 do not handle BIND_EXPR.
3323 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
3324 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
3325 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
3328 2008-03-18 Michael Matz <matz@suse.de>
3330 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
3332 2008-03-18 Richard Guenther <rguenther@suse.de>
3334 * tree-gimple.h (is_gimple_invariant_address): Declare.
3335 (is_gimple_constant): Likewise.
3336 * tree-gimple.c (is_gimple_constant): New function.
3337 (is_gimple_invariant_address): Likewise.
3338 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
3339 and is_gimple_invariant_address.
3340 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
3342 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
3343 an addressable base.
3345 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3348 * gimplify.c (gimplify_expr): Gimplify second operand of
3351 2008-03-17 Richard Guenther <rguenther@suse.de>
3353 PR tree-optimization/19637
3354 * fold-const.c (fold_unary): Remove restrictions of removing
3355 intermediate pointer-conversions (P2)(P1)P0.
3356 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
3357 conversion to void pointer.
3358 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
3360 2008-03-16 James E. Wilson <wilson@tuliptree.org>
3363 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
3364 emulated thread local variables.
3366 2008-03-16 Richard Guenther <rguenther@suse.de>
3369 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
3370 expand TREE_INVARIANT operations that are not gimple invariant.
3372 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
3374 * doc/extend.texi (Alignment): Say that the ABI controls
3375 the __alignof__ for non-strict-alignment targets rather
3376 than being a recommendation.
3378 2008-03-15 Paul Brook <paul@codesourcery.com>
3380 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
3382 (arm_output_fn_unwind): Mark functions that can not be unwound.
3384 2008-03-15 Paul Brook <paul@codesourcery.com>
3386 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
3387 extension instructions.
3389 2008-03-15 Richard Guenther <rguenther@suse.de>
3391 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
3392 and fold constant aggregate refs.
3393 (fold_const_aggregate_ref): Handle string constants
3394 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
3395 (evaluate_stmt): Simplify now that ccp_fold folds constant
3398 2008-03-15 Paul Brook <paul@codesourcery.com>
3400 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
3401 (extzv): Use gen_extzv_t2.
3402 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
3404 2008-03-15 Richard Guenther <rguenther@suse.de>
3406 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
3407 (fold_const_aggregate_ref): Likewise.
3408 (get_value): Return NULL if we don't have any values.
3409 (ccp_finalize): Set const_val to NULL after freeing it.
3410 * tree-flow.h (get_symbol_constant_value): Declare.
3411 (fold_const_aggregate_ref): Likewise.
3412 * tree-ssa-sccvn.c (try_to_simplify): Use them.
3414 2008-03-15 Richard Guenther <rguenther@suse.de>
3417 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
3418 to not produce negative array indices if not allowed. Add
3419 parameter to indicate that.
3420 (maybe_fold_offset_to_component_ref): Allow negative array
3421 indices only for the first member of a structure.
3422 (maybe_fold_offset_to_reference): Allow negative array indices.
3423 (maybe_fold_stmt_addition): Likewise.
3425 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
3426 Anatoly Sokolov <aesok@post.ru>
3428 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
3429 (avr_arch): Add ARCH_AVR6.
3430 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
3431 (initial_elimination_offset): Initialize and use 'avr_pc_size'
3432 instead of fixed value 2.
3433 (print_operand_address): Use gs() asm specifier instead of pm().
3434 (avr_assemble_integer): (Ditto.).
3435 (avr_output_addr_vec_elt): (Ditto.).
3436 (print_operand): Handle "!" code.
3437 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
3438 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
3439 (AVR_HAVE_EIJMP_EICALL): Define.
3440 (AVR_3_BYTE_PC): Redefine.
3441 (AVR_2_BYTE_PC): (Ditto.).
3442 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
3443 (LINK_SPEC): Add atmega2560 and atmega2561.
3444 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
3446 * config/avr/avr.md (call_insn): Use eicall instead of icall
3447 for 3 byte PC devices.
3448 (call_value_insn): (Ditto.).
3449 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
3450 (indirect_jump): Use only for for 2 byte PC devices.
3451 (*tablejump): (Ditto.).
3452 (*indirect_jump_avr6): Add insn.
3453 (*tablejump_rjmp): Don't use for 3 byte PC devices.
3454 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
3455 instead of ijmp for 3 byte PC devices.
3456 (__tablejump2__): (Ditto.).
3457 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
3458 (MULITLIB_DIRNAMES): (Ditto.).
3459 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
3461 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
3463 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
3464 "sse2_umulsidi3". Use V1DI mode for operand 0.
3465 ("mmx_psadbw"): Use V1DI mode for operand 0.
3466 * config/i386/i386-modes.def (V1SI): New vector mode.
3467 * config/i386/i386.c (struct builtin_description)
3468 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
3469 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
3470 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
3471 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
3472 v1di_ftype_v8qi_v8qi type.
3473 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
3475 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
3476 __builtin_ia32_pmuludq]: Fix the mode of return value.
3478 2008-03-15 Richard Guenther <rguenther@suse.de>
3481 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
3484 2008-03-14 Bob Wilson <bob.wilson@acm.org>
3486 * doc/invoke.texi (Option Summary, Xtensa Options): Document
3487 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
3488 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
3489 unless TARGET_SERIALIZE_VOLATILE is enabled.
3490 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
3491 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
3492 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
3494 2008-03-14 Richard Guenther <rguenther@suse.de>
3496 PR tree-optimization/34172
3497 * tree-flow.h (refs_may_alias_p): Declare.
3498 (get_single_def_stmt): Likewise.
3499 (get_single_def_stmt_from_phi): Likewise.
3500 (get_single_def_stmt_with_phi): Likewise.
3501 * tree-dfa.c (refs_may_alias_p): New function.
3502 (get_single_def_stmt): Likewise.
3503 (get_single_def_stmt_from_phi): Likewise.
3504 (get_single_def_stmt_with_phi): Likewise.
3505 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
3506 (vn_reference_lookup_1): New helper function.
3507 (vn_reference_lookup): Walk the virtual use-def chain to
3508 continue searching for a match if the def does not alias the
3509 reference we are looking for.
3511 2008-03-14 David Edelsohn <edelsohn@gnu.org>
3513 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
3514 archive and Perzl. Update The Written Word listing.
3516 2008-03-14 Richard Guenther <rguenther@suse.de>
3518 PR tree-optimization/34043
3519 PR tree-optimization/33989
3520 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
3522 (bitmap_find_leader): Use extra argument to verify dominance
3523 relationship inside a basic-block.
3524 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
3525 (find_leader_in_sets): Adjust.
3526 (create_component_ref_by_pieces): Take extra argument for
3527 dominance check, handle lookup failures.
3528 (find_or_generate_expression): Likewise.
3529 (create_expression_by_pieces): Likewise.
3530 (insert_into_preds_of_block): Adjust.
3531 (create_value_expr_from): If asked for, verify all operands
3532 are in the blocks AVAIL_OUT set.
3533 (make_values_for_stmt): Check for SSA_NAMEs that are life
3534 over an abnormal edge.
3535 (compute_avail): Remove such check.
3536 (do_SCCVN_insertion): New function.
3537 (eliminate): If we do not find a leader suitable for replacement
3538 insert a replacement expression from SCCVN if available.
3539 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
3540 (struct vn_ssa_aux): Add needs_insertion flag.
3541 * tree-ssa-sccvn.c (may_insert): New global flag.
3542 (copy_reference_ops_from_ref): Value-number union member access
3543 based on its size, not type and member if insertion is allowed.
3544 (visit_reference_op_load): For a weak match from union type
3545 punning lookup a view-converted value and insert a SSA_NAME
3546 for that value if that is not found.
3547 (visit_use): Make dumps shorter. Do not disallow value numbering
3548 SSA_NAMEs that are life over an abnormal edge to constants.
3549 (free_scc_vn): Release inserted SSA_NAMEs.
3550 (run_scc_vn): New flag to specify whether insertion is allowed.
3551 Process SSA_NAMEs in forward order.
3552 * tree-ssa-loop-im.c (for_each_index): Handle invariant
3553 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
3554 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
3555 pointer type to/from integral types that do not change the
3556 precision to regular conversions.
3558 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3560 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3561 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3562 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
3563 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
3564 input arguments and the mode of return value. Built-in functions
3565 that operate on whole 64-bit MMX register now use V1DI mode.
3567 2008-03-13 Alon Dayan <alond@il.ibm.com>
3568 Olga Golovanevsky <olga@il.ibm.com>
3570 PR tree-optimization/35041
3571 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
3572 to locate the right position in a statement.
3574 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
3578 * config/i386/xmmintrin.h: Change all static inline functions to
3579 extern inline and add __gnu_inline__ attribute.
3580 * config/i386/bmintrin.h: Ditto.
3581 * config/i386/smmintrin.h: Ditto.
3582 * config/i386/tmmintrin.h: Ditto.
3583 * config/i386/mmintrin-common.h: Ditto.
3584 * config/i386/ammintrin.h: Ditto.
3585 * config/i386/emmintrin.h: Ditto.
3586 * config/i386/pmmintrin.h: Ditto.
3587 * config/i386/mmintrin.h: Ditto.
3588 * config/i386/mm3dnow.h: Ditto.
3590 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3593 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
3594 (lower_omp_2): New function.
3595 (lower_omp_1, lower_omp): Rewritten.
3597 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
3600 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
3601 with the phrase "Microsoft Windows compilers".
3602 (Push/Pop Macro Pragmas): New subsection. Document
3603 #pragma push_macro and pragma pop_macro.
3605 2008-03-12 Paul Brook <paul@codesourcery.com>
3607 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
3609 2008-03-12 Paul Brook <paul@codesourcery.com>
3611 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
3612 (thumb2_alusi3_short): Exclude PLUS and MINUS.
3613 (thumb2_addsi_shortim): Rename ...
3614 (thumb2_addsi_short): ... to this. Allow register operands.
3615 (thumb2_subsi_short): New pattern.
3616 (thumb2_one_cmplsi2_short,
3617 thumb2_negsi2_short): New patterns and peepholes.
3619 2008-03-12 Paul Brook <paul@codesourcery.com>
3621 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
3623 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
3625 * config/i386/i386.md (int_cond): New code iterator.
3627 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
3628 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
3629 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
3630 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
3631 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
3632 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
3633 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
3634 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
3636 2008-03-12 Paul Brook <paul@codesourcery.com>
3638 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
3639 instead of {arm,thumb}_compute_save_reg_mask.
3640 (output_return_instruction): Ditto.
3641 (thumb_unexpanded_epilogue): Ditto.
3642 (thumb1_expand_prologue): Ditto.
3643 (thumb1_output_function_prologue): Ditto.
3644 (arm_set_return_address): Ditto.
3645 (thumb_set_return_address): Ditto.
3646 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
3647 regs to achieve stack alignment.
3648 (thumb1_compute_save_reg_mask): Fix compiler warning.
3649 (arm_output_epilogue): Use offsets->saved_regs_mask.
3650 Adjust stack pointer by poping call clobered registers.
3651 (arm_expand_prologue): Use offsets->saved_regs_mask.
3652 Adjust stack pointer by pushing extra registers.
3653 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
3655 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
3658 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
3659 conversion to the operands of a multiplication.
3661 2008-03-12 Richard Guenther <rguenther@suse.de>
3663 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
3664 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
3665 * timevar.def (TV_TREE_PHIPROP): Add.
3666 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
3667 pass description. Use TV_TREE_PHIPROP.
3668 * tree-ssa-forwprop.c: Remove phiprop code.
3670 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3673 * omp-low.c (maybe_lookup_decl): Constify first argument.
3674 (use_pointer_for_field): Change last argument from bool to
3675 omp_context *. Disallow shared copy-in/out in nested
3676 parallel if decl is shared in outer parallel too.
3677 (build_outer_var_ref, scan_sharing_clauses,
3678 lower_rec_input_clauses, lower_copyprivate_clauses,
3679 lower_send_clauses, lower_send_shared_vars): Adjust callers.
3681 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
3682 Ira Rosen <irar@il.ibm.com>
3684 * tree-vectorizer.c (free_stmt_vec_info): New function.
3685 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
3686 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
3687 * tree-vectorizer.h (free_stmt_vec_info): Declare.
3688 * tree-vect-transform.c (vectorizable_conversion): Free
3689 vec_oprnds0 if it was allocated.
3690 (vect_permute_store_chain): Remove unused VECs.
3691 (vectorizable_store): Free VECs that are allocated in the..
3693 (vect_transform_strided_load, vectorizable_load): Likewise.
3694 (vect_remove_stores): Simplify the code.
3695 (vect_transform_loop): Move code to vect_remove_stores().
3696 Call vect_remove_stores() and free_stmt_vec_info().
3698 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3700 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
3701 TARGET_HPUX. Revise comment.
3702 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
3703 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
3704 Use sr4 variant of `be' instruction when not generating PIC code.
3705 (attr_length_call): Adjust for above change.
3707 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3709 * ipa-reference.c (static_execute): Remove module_statics_const and
3710 associated setting code.
3712 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3715 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
3716 predicate for operand 1.
3717 (paritysi2_cmp): Use register_operand predicate for operand 2.
3718 Use earlyclobber modifier for operand 1. Remove support for
3720 (paritydi2_cmp): Use register_operand predicate for operand 3.
3721 Use earlyclobber modifier for operand 1. Remove support for
3724 2008-03-11 Paul Brook <paul@codesourcery.com>
3725 Vladimir Prus <vladimir@codesourcery.com>
3727 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
3728 (arm_compute_save_reg0_reg12_mask): Always
3729 check if register 11 must be saved. Always safe hard frame pointer
3730 when frame_pointer_needeed.
3731 (arm_compute_save_reg_mask): Save IP and PC
3732 only with apcs frames.
3733 (arm_output_epilogue): Adjust Thumb2 codepath to
3734 be also invoked and work for ARM non-apcs frames.
3735 (arm_expand_prologue): Don't bother saving IP
3736 for non-apcs frame, since it's not clobbered by
3737 prologue code. Implement non-apcs frame
3740 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3742 PR rtl-optimization/35281
3743 * expr.c (convert_move): Use a new pseudo for the intermediate
3744 from_mode->word_mode result.
3746 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
3748 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
3749 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
3750 * toplev.c (compile_file): Don't call it.
3752 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
3755 * expr.c (store_expr): Call emit_block_move if the mode
3756 of "temp" RTX is BLKmode.
3758 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
3759 Richard Guenther <rguenther@suse.de>
3761 PR tree-optimization/31358
3762 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
3763 the step with a NULL_TREE.
3764 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
3765 to sizetype if type is a pointer type.
3766 (add_candidate_1): Don't convert the base and step to
3767 the generic type if the orginal type is a pointer type.
3768 (add_iv_value_candidates): Use sizetype for the step
3769 if type is a pointer type.
3770 (cand_value_at): Likewise.
3771 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
3773 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
3774 Don't convert the tem affine to the type.
3775 (add_elt_to_tree): Use sizetype for the step if a pointer.
3776 Use POINTER_PLUS_EXPR for pointers.
3777 (aff_combination_to_tree): Use sizetype for the step if a
3780 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
3782 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
3783 Remove commutativity hint.
3785 2008-03-10 Jakub Jelinek <jakub@redhat.com>
3789 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
3790 errorneous type. Check that v is a VAR_DECL.
3793 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
3795 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
3797 PR tree-optimization/35494
3798 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
3799 may be overriden at link and run time.
3801 2008-03-10 Richard Guenther <rguenther@suse.de>
3803 PR tree-optimization/34677
3804 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
3805 (poolify_tree): Likewise.
3806 (modify_expr_template): Likewise.
3807 (poolify_modify_stmt): Likewise.
3808 (insert_fake_stores): Handle all component-ref style stores
3809 in addition to INDIRECT_REF. Also handle complex types.
3810 Do not poolify the inserted load.
3811 (realify_fake_stores): Do not rebuild the tree but only
3812 make it a SSA_NAME copy.
3813 (init_pre): Remove initialzation of modify_expr_template.
3814 Do not allocate modify_expr_node_pool.
3815 (fini_pre): Do not free modify_expr_node_pool.
3817 2008-03-10 Paul Brook <paul@codesourcery.com>
3819 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
3822 2008-03-10 Paul Brook <paul@codesourcery.com>
3823 Mark Shinwell <shinwell@codesourcery.com>
3825 * config/arm/cortex-r4.md: New.
3826 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
3828 * config/arm/arm.md: Include cortex-r4.md.
3829 (insn): Add smmls, sdiv and udiv values.
3830 (generic_sched): Don't use generic scheduling for Cortex-R4.
3831 (arm_issue_rate): New function.
3832 (TARGET_SCHED_ISSUE_RATE): Define.
3834 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
3836 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
3838 2008-03-10 Richard Guenther <rguenther@suse.de>
3840 * tree-ssa-pre.c (get_sccvn_value): Simplify.
3841 (compute_avail): Do not add stmt uses to AVAIL_OUT.
3843 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
3845 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
3846 Set default to true.
3848 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3850 * c.opt (Wsynth): Deprecate.
3851 * doc/invoke.texi (Option Summary, Warning Options): Document
3852 -Wno-format-contains-nul.
3854 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
3857 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
3858 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
3860 2008-03-09 Ira Rosen <irar@il.ibm.com>
3862 * config/rs6000/rs6000.c (builtin_description): Rename vector
3863 left shift operations.
3864 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
3865 (altivec_vsl<VI_char>): Rename to ...
3866 (ashl<mode>3): ... new name.
3867 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
3869 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
3871 2008-03-08 Richard Guenther <rguenther@suse.de>
3873 * coverage.h (tree_coverage_counter_addr): Declare.
3874 * coverage.c (tree_coverage_counter_addr): New function.
3875 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
3877 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
3878 (tree_gen_one_value_profiler): Likewise.
3879 (tree_gen_ic_profiler): Likewise.
3880 (tree_gen_average_profiler): Likewise.
3881 (tree_gen_ior_profiler): Likewise.
3883 2008-03-08 Richard Guenther <rguenther@suse.de>
3885 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
3886 (vn_binary_op_insert): Likewise.
3887 (vn_unary_op_lookup): Likewise.
3888 (vn_unary_op_insert): Likewise.
3889 (vn_nary_op_lookup): Declare.
3890 (vn_nary_op_insert): Likewise.
3891 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
3892 and binary hashes, use a single obstack for unary_op_pool
3894 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
3895 a single struct vn_nary_op_s. Store tree code length and
3896 a variable number of operands.
3897 (struct vn_reference_op_struct): Remove unused op2.
3898 (vn_reference_op_eq): Do not compare op2.
3899 (vn_reference_op_compute_hash): Do not compute hash of op2.
3900 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
3901 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
3902 with vn_nary_op_compute_hash.
3903 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
3904 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
3906 (vn_unary_op_insert, vn_binary_op_insert): Replace with
3908 (visit_unary_op): Call nary functions.
3909 (visit_binary_op): Likewise.
3910 (process_scc): Adjust for struct vn_tables_s changes.
3911 (allocate_vn_table): Likewise.
3912 (free_vn_table): Likewise.
3913 * tree-vn.c (vn_add): Call nary functions.
3914 (vn_lookup): Likewise.
3916 2008-03-08 Jakub Jelinek <jakub@redhat.com>
3919 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
3920 wdst back after sync_compare_and_swapqhi_internal.
3922 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
3925 * config/i386/i386-modes.def (V1DI): New vector mode.
3926 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
3927 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
3928 (MMXMODE248): Ditto.
3929 (MMXMODE): Add V1DI mode.
3930 (mmxvecsize): Change DI mode to V1DI mode.
3931 ("mov<mode>): Use MMXMODEI8 mode iterator.
3932 ("*mov<mode>_internal_rex64"): Ditto.
3933 ("*mov<mode>_internal"): Ditto.
3934 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
3935 ("mmx_sub<mode>3"): Ditto.
3936 ("mmx_adddi3"): Remove insn pattern.
3937 ("mmx_subdi3"): Ditto.
3938 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
3939 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
3940 ("mmx_ashl<mode>3"): Ditto.
3941 ("mmx_lshrdi3"): Remove insn pattern.
3942 ("mmx_ashldi3"): Ditto.
3943 * config/i386/i386.c (classify_argument): Handle V1DImode.
3944 (function_arg_advance_32): Ditto.
3945 (function_arg_32): Ditto.
3946 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
3947 mmx_addv1di3 insn pattern.
3948 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
3949 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
3950 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
3951 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
3952 Remove definitions of built-in functions.
3953 (V1DI_type_node): New node.
3954 (v1di_ftype_v1di_int): Ditto.
3955 (v1di_ftype_v1di_v1di): Ditto.
3956 (v2si_ftype_v2si_si): Ditto.
3957 (v4hi_ftype_v4hi_di): Remove node.
3958 (v2si_ftype_v2si_di): Ditto.
3959 (ix86_init_mmx_sse_builtins): Handle V1DImode.
3960 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
3961 Redefine builtins using def_builtin_const with *_ftype_*_int node.
3962 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
3963 Add new builtins using def_builtin_const.
3964 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
3965 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
3966 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
3967 * config/i386/mmintrin.h (__v1di): New typedef.
3968 (_mm_add_si64): Cast arguments to __v1di type.
3969 (_mm_sub_si64): Ditto.
3970 (_mm_sll_pi16): Cast __count to __v4hi type.
3971 (_mm_sll_pi32): Cast __count to __v2si type.
3972 (_mm_sll_si64): Cast arguments to __v1di type.
3973 (_mm_srl_pi16): Cast __count to __v4hi type.
3974 (_mm_srl_pi32): Cast __count to __v2si type.
3975 (_mm_srl_si64): Cast arguments to __v1di type.
3976 (_mm_sra_pi16): Cast __count to __v4hi type.
3977 (_mm_sra_pi32): Cast __count to __v2si type.
3978 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
3979 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
3980 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
3981 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
3982 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
3983 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
3984 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
3985 (_mm_srai_pi32): Use __builtin_ia32_psradi.
3986 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
3987 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
3988 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
3989 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
3991 2008-03-07 Joseph Myers <joseph@codesourcery.com>
3993 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
3995 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
3998 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
3999 reg+const addressing for Altivec modes. Don't generate reg+reg
4000 addressing for TFmode or TDmode quantities.
4002 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
4004 * c-common.c (vector_types_convertible_p): Call langhook
4005 instead of comptypes.
4007 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
4010 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
4011 integral and scalar float variables which have a
4014 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
4016 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
4017 dwarf_register_span hook when emitting unwind information for
4018 register-to-memory saves.
4019 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
4020 (rs6000_frame_related): Remove call to spe_synthesize_frame.
4022 2008-03-06 Jakub Jelinek <jakub@redhat.com>
4024 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
4025 for the same VAR_DECL.
4027 2008-03-06 Tom Tromey <tromey@redhat.com>
4030 * doc/standards.texi (Standards): Don't mention treelang.
4031 * doc/invoke.texi (Overall Options): Don't mention treelang.
4032 * doc/install.texi (Prerequisites): Don't mention bison or
4034 (Configuration): Don't mention treelang.
4035 (Building): Likewise.
4036 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
4038 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
4040 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
4041 word-extractions out of a multi-word object.
4043 2008-03-06 Richard Guenther <rguenther@suse.de>
4045 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
4046 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
4047 result type and precision.
4048 * expr.c (get_inner_reference): Set unsignedp based on the result
4049 type of BIT_FIELD_REF.
4050 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
4051 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
4052 (try_instantiate_multiple_fields): Likewise. Use the correct type
4054 (sra_build_assignment): Likewise.
4055 (sra_build_elt_assignment): Likewise.
4056 (sra_explode_bitfield_assignment): Likewise.
4057 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
4058 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
4059 set BIT_FIELD_REF_UNSIGNED.
4060 (vectorizable_load): Likewise.
4062 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
4064 * cse.c (cse_extended_basic_block): Invalidate artificial defs
4067 2008-03-06 Richard Guenther <rguenther@suse.de>
4069 * alias.c (struct alias_set_entry): Move has_zero_child field
4070 to pack with alias_set.
4072 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
4074 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4077 2008-03-05 Ian Lance Taylor <iant@google.com>
4079 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
4081 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
4083 * fwprop.c (update_df): Support width and offset parameters of
4085 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
4086 global_conflicts): Change DF_REF_EXTRACT to either
4087 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
4088 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4089 * df-scan.c (df_ref_record, df_defs_record,
4090 df_ref_create_structure, df_def_record_1, df_uses_record,
4091 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
4092 df_bb_refs_collect, df_entry_block_defs_collect,
4093 df_exit_block_uses_collect): Support new width and offset fields.
4094 (ref_extract_pool): New storage pool.
4095 (df_free_ref): New function.
4096 (df_reg_chain_unlink, df_free_collection_rec,
4097 df_sort_and_compress_refs): Call df_free_ref.
4098 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
4100 (df_ref_create_structure): Allocate df_ref_extract if offset and
4101 width fields are used.
4102 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
4103 (df_uses_record): Get offset and width from ZERO_EXTRACT
4105 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
4106 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
4107 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4108 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
4109 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
4110 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
4111 (df_ref_extract): New structure.
4112 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
4113 (df_ref_create): Add width and offset parameters.
4115 2008-03-05 Richard Guenther <rguenther@suse.de>
4117 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4118 Use ranges_overlap_p.
4119 (offset_overlaps_with_access): Rename
4120 to ranges_overlap_p and move ...
4121 * tree-flow-inline.h (ranges_overlap_p): ... here.
4123 * tree.h (get_inner_reference, handled_component_p): Update
4126 * tree.h (record_component_aliases, get_alias_set,
4127 alias_sets_conflict_p, alias_sets_must_conflict_p,
4128 objects_must_conflict_p): Move declarations ...
4129 * alias.h (record_component_aliases, get_alias_set,
4130 alias_sets_conflict_p, alias_sets_must_conflict_p,
4131 objects_must_conflict_p): ... here.
4132 Include coretypes.h.
4133 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
4135 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
4137 * cfg.c: Include tree-flow.h.
4138 (remove_edge_raw): Call redirect_edge_var_map_clear.
4139 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
4140 * tree-flow-inline.h (redirect_edge_var_map_def): New.
4141 (redirect_edge_var_map_result): New.
4142 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
4143 PENDING_STMT use with redirect_edge_var_map_*.
4144 * tree-ssa.c (edge_var_maps): New definition.
4145 (redirect_edge_var_map_add): New.
4146 (redirect_edge_var_map_clear): New.
4147 (redirect_edge_var_map_dup): New.
4148 (redirect_edge_var_map_vector): New.
4149 (redirect_edge_var_map_destroy): New.
4150 (ssa_redirect_edge): Replace PENDING_STMT use with
4151 redirect_edge_var_map_*.
4152 (flush_pending_stmts): Same.
4153 (delete_tree_ssa): Destroy edge var map.
4154 * tree-flow.h (struct _edge_var_map): New.
4155 Define edge_var_map vector type.
4156 Declare redirect_edge_var_map_* prototypes.
4157 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
4158 * tree-cfg.c (reinstall_phi_args): Replace
4159 PENDING_STMT use with redirect_edge_var_map_*.
4161 2008-03-05 Richard Guenther <rguenther@suse.de>
4163 PR tree-optimization/35472
4164 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
4165 whose single use_stmt has a overlapping set of loaded and
4166 stored symbols as that use_stmt might be a noop assignment then.
4168 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4170 * gthr-rtems.h: Implement __gthread_mutex_destroy.
4172 2008-03-05 Richard Guenther <rguenther@suse.de>
4175 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
4176 should be constants.
4177 * tree-cfg.c (verify_expr): Verify it.
4178 * fold-const.c (fold_truthop): Remove code generating
4179 BIT_FIELD_REFs of structure bases.
4180 (fold_binary): Likewise.
4181 (fold_ternary): Position and size of BIT_FIELD_REFs are
4182 always host integers.
4183 (make_bit_field_ref): Remove.
4184 (optimize_bit_field_compare): Remove.
4185 (all_ones_mask_p): Remove.
4187 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
4190 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
4191 (split_block_and_df_analyze): New. Split basic block and rebuild
4193 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
4195 (split_pattern_seq): Likewise.
4196 (erase_matching_seqs): Likewise.
4197 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
4199 2008-03-04 Geoff Keating <geoffk@apple.com>
4201 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
4202 declaration and code.
4203 (tree_invalid_nonnegative_warnv_p): Likewise.
4205 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
4207 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
4208 examples. Truncate option-names then causing overfull hbox.
4210 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4213 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
4215 * configure: Rebuilt.
4217 2008-03-04 Rafael Espindola <espindola@google.com>
4219 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
4220 (tree_unary_nonnegative_warnv_p): New.
4221 (tree_binary_nonnegative_warnv_p): New.
4222 (tree_single_nonnegative_warnv_p): New.
4223 (tree_invalid_nonnegative_warnv_p): New.
4224 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
4226 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4229 * opts.c (handle_option): Postpone 'unknown option' errors only for
4232 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
4235 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
4238 2008-03-04 Rafael Espindola <espindola@google.com>
4240 * fold-const.c (tree_unary_nonzero_warnv_p): New.
4241 (tree_binary_nonzero_warnv_p): New.
4242 (tree_single_nonzero_warnv_p): New.
4243 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
4245 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
4248 * fold-const.c (fold_cond_expr_with_comparison): Prevent
4249 transformations for modes that have signed zeros.
4250 * ifcvt.c (noce_try_abs): Ditto.
4252 2008-03-04 Joseph Myers <joseph@codesourcery.com>
4254 * config/i386/i386.c (override_options): Force
4255 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
4257 2008-03-04 Jan Hubicka <jh@suse.cz>
4260 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
4263 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
4265 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
4266 label to probe the stack.
4268 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
4270 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
4271 (__gthr_win32_mutex_destroy): Declare.
4272 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
4273 __gthr_win32_mutex_destroy.
4274 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
4276 2008-03-03 Jan Hubicka <jh@suse.cz>
4279 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
4280 aggressive on inlining cold calls.
4282 2008-03-03 Richard Guenther <rguenther@suse.de>
4284 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
4285 struct copies into the expression table.
4286 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
4287 (try_to_simplify): Likewise.
4288 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
4289 integral and pointer arguments which do not change the
4290 precision to NOP_EXPRs.
4291 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
4292 VIEW_CONVERT_EXPR case.
4294 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
4296 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
4297 defined in a loop at depth 0 is invariant.
4298 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
4299 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
4300 be called at loop depth 0.
4302 2008-03-02 Jakub Jelinek <jakub@redhat.com>
4305 * gcc.c (process_command): Update copyright notice dates.
4306 * gcov.c (print_version): Likewise.
4307 * gcov-dump.c (print_version): Likewise.
4308 * mips-tfile.c (main): Likewise.
4309 * mips-tdump.c (main): Likewise.
4311 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4314 * c-common.c (flag_permissive): Delete.
4315 (constant_expression_warnings): Check flags first.
4316 (constant_expression_error): New.
4317 * c-common.h (flag_permissive): Delete.
4318 (constant_expression_error): Declare.
4319 * flags.h (flag_permissive): Declare. Update description.
4320 * diagnostic.c (pedwarn): Update.
4322 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
4323 (permissive_error_kind): New.
4324 * toplev.c (flag_permissive): Define. Update description.
4325 * toplev.h (permissive_error_kind): Declare.
4326 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
4327 (pedwarn_c90): Use pedantic_warning_kind.
4328 * c-opts.c (c_common_post_options): flag_permissive does not affect
4329 flag_pedantic_errors.
4331 2008-03-02 Joseph Myers <joseph@codesourcery.com>
4333 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
4334 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
4335 __absvsi2, __absvDI2): Use unsigned arithmetic.
4337 2008-03-02 Andi Kleen <ak@suse.de>
4338 Richard Guenther <rguenther@suse.de>
4340 * struct-equiv.c: Remove file.
4341 * cfg_cleanup.c (condjump_equiv_p): Remove.
4342 * Makefile.in (OBJS-common): Remove struct-equiv.o.
4343 (struct-equiv.o): Remove rule.
4344 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
4345 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
4346 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
4348 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4350 * ifcvt.c (noce_process_if_block): Try to handle only the then
4351 block if the else block exists but isn't suitable.
4353 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
4356 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
4357 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
4358 regression from previous patch.
4360 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
4363 * gthr.h: Add __gthread_mutex_destroy as a function that must be
4365 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
4366 * gthr-single.h (__gthread_mutex_destroy): Likewise.
4367 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
4368 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
4369 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
4370 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
4371 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
4372 (__gthread_mutex_destroy_function): Rename to
4373 __gthread_mutex_destroy.
4374 * gthr-dce.h (__gthread_mutex_destroy): Call
4375 pthread_mutex_destroy.
4376 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
4377 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
4378 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
4380 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4382 * df-scan.c (df_ref_chain_change_bb): Simplify.
4383 (df_insn_change_bb): Add new_bb argument. Simplify. Call
4384 set_block_for_insn if there's any change.
4385 * df.h ((df_insn_change_bb): Fix prototype.
4386 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
4387 df_insn_change_bb, don't call set_block_for_insn.
4388 * emit-rtl.c (reorder_insns): Likewise.
4389 * haifa-sched.c (move_insn): Likewise.
4391 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4393 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
4395 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
4397 * tree-flow-inline.h (next_readonly_imm_use): Return
4398 NULL_USE_OPERAND_P after the end.
4400 2008-03-01 Richard Guenther <rguenther@suse.de>
4402 PR tree-optimization/35411
4403 * tree-sra.c (sra_build_assignment): Split conversion to
4404 final type to a separate statement if we are not assigning
4407 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4409 * fold-const.c (fold_convertible_p): Correct the logic to follow
4410 that in fold_convert().
4412 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
4415 * tree-inline.c (build_duplicate_type): When we make a
4416 duplicate type, make it unique in the canonical types system.
4418 2008-02-29 Tom Tromey <tromey@redhat.com>
4420 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
4421 input_file_stack_history, input_file_stack_restored): Remove.
4422 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4423 * input.h (struct file_stack): Remove.
4424 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
4425 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
4427 * diagnostic.h (struct diagnostic_context) <last_module>: Change
4429 (diagnostic_last_module_changed): Add 'map' argument.
4430 (diagnostic_set_last_function): Likewise.
4431 * diagnostic.c (undiagnostic_report_current_module): Iterate using
4432 line map, not input_file_stack.
4433 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
4435 2008-02-29 Paul Brook <paul@codesourcery.com>
4437 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
4439 2008-02-29 Paul Brook <paul@codesourcery.com>
4441 * config/arm/ieee754-df.S (muldf3): Use RET macros.
4443 2008-02-29 Richard Guenther <rguenther@suse.de>
4445 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
4447 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
4448 value for comparing for a store match.
4449 (simplify_unary_expression): Do nothing for SSA_NAMEs.
4450 (try_to_simplify): Do not do a full-blown reference lookup.
4452 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
4454 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
4455 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
4457 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
4459 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
4461 * tree-loop-linear.c (try_interchange_loops): Compare memory access
4462 strides against cache sizes.
4464 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
4466 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
4469 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
4471 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
4472 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
4473 is smaller than the original promoted value.
4474 (simplify_subreg): If OP is a SUBREG, try to preserve its
4475 SUBREG_PROMOTED_VAR_P information.
4477 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
4479 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
4480 (VN_INFO_GET): Allocate new objects on the obstack.
4481 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
4482 for rpo_numbers_temp, for consistency.
4483 (free_scc_vn): Free the obstack.
4485 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
4487 * doc/invoke.texi: Document -ftree-loop-distribution.
4488 * tree-loop-distribution.c: New.
4489 * tree-pass.h (pass_loop_distribution): New.
4490 * graphds.h (struct graph): Add htab_t indices.
4491 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4492 * tree-vectorizer.c (rename_variables_in_loop): Extern.
4493 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
4494 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4495 * tree-data-ref.c (debug_data_dependence_relations): New.
4496 (dump_data_dependence_relation): Also print data references.
4497 (free_data_ref): Extern.
4498 (same_access_functions): Moved...
4499 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4500 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4501 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4502 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
4503 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
4504 (stmts_from_loop): Skip LABEL_EXPR.
4505 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
4507 (build_rdg): Initialize rdg->indices htab.
4508 (free_rdg, stores_from_loop, ref_base_address,
4509 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4510 have_similar_memory_accesses_1, ref_base_address_1,
4511 remove_similar_memory_refs): New.
4512 * tree-data-ref.h: Depend on tree-chrec.h.
4513 (debug_data_dependence_relations, free_data_ref): Declared.
4514 (same_access_functions): ... here.
4515 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
4517 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
4518 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
4519 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
4520 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4521 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4522 rdg_vertex_for_stmt): Declared.
4523 (struct rdg_edge): Add level.
4525 (free_rdg, stores_from_loop, remove_similar_memory_refs,
4526 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
4528 (rdg_has_similar_memory_accesses): New.
4529 * tree-vect-analyze.c: Remove unused static decls.
4530 * lambda.h (dependence_level): New.
4531 * common.opt (ftree-loop-distribution): New.
4532 * tree-flow.h (mark_virtual_ops_in_bb,
4533 slpeel_tree_duplicate_loop_to_edge_cfg,
4534 rename_variables_in_loop): Declared.
4535 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
4536 (OBJS-common): Add tree-loop-distribution.o.
4537 (tree-loop-distribution.o): New rule.
4538 * tree-cfg.c (mark_virtual_ops_in_bb): New.
4539 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4540 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
4542 2008-02-28 Joseph Myers <joseph@codesourcery.com>
4545 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
4546 other than structures and unions.
4548 2008-02-28 Richard Guenther <rguenther@suse.de>
4551 2008-02-26 Richard Guenther <rguenther@suse.de>
4553 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4554 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4555 (lookup_decl_from_uid): Declare.
4556 (remove_decl_from_map): Likewise.
4557 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4558 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4559 (decl_for_uid_map): New global hashtable mapping DECL_UID
4561 (init_ttree): Allocate it.
4562 (insert_decl_to_uid_decl_map): New helper function.
4563 (make_node_stat): Insert new decls into the map.
4564 (copy_node_stat): Likewise.
4565 (lookup_decl_from_uid): New function.
4566 (remove_decl_from_map): Likewise.
4567 (print_decl_for_uid_map_statistics): New helper.
4568 (dump_tree_statistics): Call it.
4570 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4571 (referenced_var_iterator): Adjust.
4572 (FOR_EACH_REFERENCED_VAR): Adjust.
4573 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4574 (num_referenced_vars): Adjust.
4575 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4576 (first_referenced_var): Remove.
4577 (end_referenced_vars_p): Likewise.
4578 (next_referenced_var): Likewise.
4579 (referenced_var_iterator_set): New helper function.
4580 * tree-dfa.c (referenced_var_lookup): Adjust.
4581 (referenced_var_check_and_insert): Likewise.
4582 (remove_referenced_var): Likewise.
4583 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4584 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4585 (verify_call_clobbering): Likewise.
4586 (verify_memory_partitions): Likewise.
4587 (init_tree_ssa): Allocate bitmap instead of hashtable for
4589 (delete_tree_ssa): Adjust.
4590 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4591 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4592 (compute_tag_properties): Likewise.
4593 (set_initial_properties): Likewise.
4594 (find_partition_for): Likewise.
4595 (update_reference_counts): Likewise.
4596 (dump_may_aliases_for): Likewise.
4597 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4598 (add_call_clobber_ops): Likewise.
4599 (add_call_read_ops): Likewise.
4600 (get_asm_expr_operands): Likewise.
4601 * tree-into-ssa.c (dump_decl_set): Likewise.
4602 (update_ssa): Likewise.
4603 * tree-sra.c (scan_function): Likewise.
4604 (decide_instantiations): Likewise.
4605 (scalarize_parms): Likewise.
4606 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4607 (dsa_named_for): Likewise.
4608 * tree-ssa-structalias.c (update_alias_info): Likewise.
4609 (merge_smts_into): Likewise.
4611 2008-02-27 David Daney <ddaney@avtrex.com>
4614 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
4615 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
4616 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
4617 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
4618 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
4620 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
4623 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
4624 (BUILT_IN_NEXTTOWARD): Remove.
4625 (BUILT_IN_NEXTTOWARDF): Ditto.
4626 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
4627 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
4629 2008-02-27 Tom Tromey <tromey@redhat.com>
4631 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
4632 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
4634 2008-02-27 Jan Beulich <jbeulich@novell.com>
4636 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
4637 update the respective field on newdecl.
4639 2008-02-27 Revital Eres <eres@il.ibm.com>
4641 PR rtl-optimization/34999
4642 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
4643 crossing edges that ends with a call insn.
4644 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
4645 call insn and clear the EDGE_CROSSING flag of the crossing edge
4646 when fixing fallthru edges.
4648 2008-02-27 Richard Guenther <rguenther@suse.de>
4651 * fold-const.c (fold_unary): Return the correct argument,
4652 converted to the result type.
4654 2008-02-27 Richard Guenther <rguenther@suse.de>
4657 * expr.c (expand_expr_real_1): Assert on rotates that operate
4659 * fold-const.c (fold_binary): Use the types precision, not the
4660 bitsize of the mode if folding rotate expressions. Build rotates
4661 only for full modes.
4663 2008-02-27 Jakub Jelinek <jakub@redhat.com>
4665 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
4667 * c-pragma.c (pragma_ns_name): New typedef.
4668 (registered_pp_pragmas): New variable.
4669 (c_pp_lookup_pragma): New function.
4670 (c_register_pragma_1): If flag_preprocess_only, do nothing
4671 for non-expanded pragmas, for expanded ones push pragma's
4672 namespace and name into registered_pp_pragmas vector.
4673 (c_invoke_pragma_handler): Register OpenMP pragmas even when
4674 flag_preprocess_only, don't register GCC pch_preprocess
4675 pragma if flag_preprocess_only.
4676 * c-opts.c (c_common_init): Call init_pragma even if
4677 flag_preprocess_only.
4678 * c-pragma.c (c_pp_lookup_pragma): New prototype.
4679 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
4680 cpp_register_pragma if flag_preprocess_only.
4682 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4685 * c-parser.c (c_parser_translation_unit): Warn for empty
4686 translation unit, not empty source file.
4688 2008-02-26 Paul Brook <paul@codesourcery.com>
4690 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
4691 operand for Thumb-2.
4692 * config/arm/arm.h (reg_class): Add CORE_REGS.
4693 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
4694 (BASE_REG_CLASS): Use CORE_REGS.
4695 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
4696 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
4697 (REGNO_OK_FOR_INDEX_P): Exclude SP.
4698 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
4699 ARM_REGNO_OK_FOR_INDEX_P.
4700 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
4701 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
4702 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
4703 (ldm/stm peepholes): Ditto.
4704 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
4705 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
4706 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
4707 * config/arm/constraints.md: Enable "k" constraint on ARM.
4709 2008-02-27 Ben Elliston <bje@au.ibm.com>
4711 * config/rs6000/rs6000.c: Annotate cache line size field in all
4712 instances of struct processor_costs.
4714 2008-02-26 David Edelsohn <edelsohn@gnu.org>
4716 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
4717 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
4718 jump_bypass): New counters.
4719 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
4720 * dce.c (gate_ud_dce): Same.
4721 (gate_fast_dce): Same.
4722 * dse.c (gate_dse1): New function.
4723 (gate_dse2): New function.
4724 (gate_dse): Merge results of new gate functions.
4725 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
4726 (gate_handle_jump_bypass): Add dbg_cnt.
4727 (gate_handle_gcse): Add dbg_cnt.
4728 * ifcvt.c (gate_handle_if_conversion): Same.
4729 (gate_handle_if_after_combine): Same.
4730 (gate_handle_if_after_reload): Same.
4731 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
4733 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
4735 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
4737 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
4739 2008-02-26 Jason Merrill <jason@redhat.com>
4742 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
4743 alone if it's the naming decl for the type's main variant.
4745 2008-02-26 Tom Tromey <tromey@redhat.com>
4747 * system.h (USE_MAPPED_LOCATION): Poison.
4748 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
4749 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
4750 (make_goto_expr_edges): Likewise.
4751 (remove_bb): Likewise.
4752 (execute_warn_function_return): Likewise.
4753 * basic-block.h (struct edge_def) <goto_locus>: Change type to
4755 * c-common.c (fname_decl): Remove old location code.
4756 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
4758 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
4760 (ASM_INPUT_SOURCE_LOCATION): Likewise.
4761 (gen_rtx_ASM_INPUT): Likewise.
4762 (gen_rtx_ASM_INPUT_loc): Likewise.
4763 (get_rtx_asm_OPERANDS): Remove.
4764 * cfglayout.c (insn_locators_alloc): Remove old location code.
4765 (set_curr_insn_source_location): Likewise.
4766 (curr_insn_locator): Likewise.
4767 * print-tree.c (print_node): Remove old location code.
4768 * tree-mudflap.c (mf_varname_tree): Remove old location code.
4769 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
4770 * cfgexpand.c (expand_gimple_cond_expr): Don't use
4771 location_from_locus.
4772 (construct_exit_block): Remove old location code.
4773 * emit-rtl.c (force_next_line_note): Remove old location code.
4774 * profile.c (branch_prob): Remove old location code.
4775 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
4776 LOC_LINE): Remove old-location variants.
4777 * langhooks.c (lhd_print_error_function): Remove old location
4779 * configure, config.in: Rebuilt.
4780 * configure.ac (--enable-mapped-location): Remove.
4781 * c-decl.c (c_init_decl_processing): Remove old location code.
4782 (finish_function): Likewise.
4783 * recog.c (decode_asm_operands): Remove old location code.
4784 * c-pch.c (c_common_read_pch): Remove old location code.
4785 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
4787 * gimple-low.c (lower_function_body): Remove old location code.
4788 * toplev.c (unknown_location): Remove.
4789 (push_srcloc): Remove old-location variant.
4790 (process_options): Remove old location code.
4791 (lang_dependent_init): Likewise.
4792 * input.h (UNKNOWN_LOCATION): Move definition.
4793 (location_t): Undeprecate.
4794 (source_locus): Remove.
4795 (location_from_locus): Remove.
4796 (struct location_s): Remove.
4797 Remove all old-location code.
4798 (input_line, input_filename): Remove.
4799 * final.c (final_scan_insn): Remove old location code.
4800 * diagnostic.c (diagnostic_build_prefix): Remove
4801 USE_MAPPED_LOCATION test.
4802 * tree.h (gimple_stmt) <locus>: Now a location_t.
4803 (tree_exp) <locus>: Likewise.
4804 (DECL_IS_BUILTIN): Remove old-location variant.
4805 (annotate_with_file_line, annotate_with_locus): Likewise.
4806 (expr_locus, set_expr_locus): Update.
4807 * tree.c (build1_stat): Remove old location code.
4808 (last_annotated_node): Remove.
4809 (annotate_with_file_line): Remove old-location variant.
4810 (annotate_with_locus): Likewise.
4811 (expr_location): Remove old location code.
4812 (set_expr_location): Likewise.
4813 (expr_has_location): Likewise.
4814 (expr_locus): Likewise.
4815 (set_expr_locus): Likewise.
4816 (expr_filename): Don't use location_from_locus.
4817 (expr_lineno): Likewise.
4818 * rtl-error.c (location_for_asm): Remove old location code.
4819 * c-lex.c (cb_line_change): Remove old location code.
4820 (fe_file_change): Likewise.
4821 (cb_def_pragma): Likewise.
4822 (c_lex_with_flags): Likewise.
4823 * gengtype.c (do_typedef): Don't special-case location types.
4824 (define_location_structures): Remove.
4825 (main): Don't call define_location_structures.
4826 * tree-pretty-print.c (dump_implicit_edges): Remove old location
4829 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4832 * builtins.def (BUILT_IN_STDARG_START): Remove.
4833 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
4834 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4835 * tree-inline.c (inline_forbidden_p_1): Likewise.
4837 2008-02-26 Richard Guenther <rguenther@suse.de>
4839 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4840 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4841 (lookup_decl_from_uid): Declare.
4842 (remove_decl_from_map): Likewise.
4843 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4844 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4845 (decl_for_uid_map): New global hashtable mapping DECL_UID
4847 (init_ttree): Allocate it.
4848 (insert_decl_to_uid_decl_map): New helper function.
4849 (make_node_stat): Insert new decls into the map.
4850 (copy_node_stat): Likewise.
4851 (lookup_decl_from_uid): New function.
4852 (remove_decl_from_map): Likewise.
4853 (print_decl_for_uid_map_statistics): New helper.
4854 (dump_tree_statistics): Call it.
4856 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4857 (referenced_var_iterator): Adjust.
4858 (FOR_EACH_REFERENCED_VAR): Adjust.
4859 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4860 (num_referenced_vars): Adjust.
4861 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4862 (first_referenced_var): Remove.
4863 (end_referenced_vars_p): Likewise.
4864 (next_referenced_var): Likewise.
4865 (referenced_var_iterator_set): New helper function.
4866 * tree-dfa.c (referenced_var_lookup): Adjust.
4867 (referenced_var_check_and_insert): Likewise.
4868 (remove_referenced_var): Likewise.
4869 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4870 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4871 (verify_call_clobbering): Likewise.
4872 (verify_memory_partitions): Likewise.
4873 (init_tree_ssa): Allocate bitmap instead of hashtable for
4875 (delete_tree_ssa): Adjust.
4876 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4877 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4878 (compute_tag_properties): Likewise.
4879 (set_initial_properties): Likewise.
4880 (find_partition_for): Likewise.
4881 (update_reference_counts): Likewise.
4882 (dump_may_aliases_for): Likewise.
4883 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4884 (add_call_clobber_ops): Likewise.
4885 (add_call_read_ops): Likewise.
4886 (get_asm_expr_operands): Likewise.
4887 * tree-into-ssa.c (dump_decl_set): Likewise.
4888 (update_ssa): Likewise.
4889 * tree-sra.c (scan_function): Likewise.
4890 (decide_instantiations): Likewise.
4891 (scalarize_parms): Likewise.
4892 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
4893 (dsa_named_for): Likewise.
4894 * tree-ssa-structalias.c (update_alias_info): Likewise.
4895 (merge_smts_into): Likewise.
4897 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4900 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
4901 * c-opts.c (c_common_handle_option): Wall enables
4902 Wvolatile-register-var.
4903 * common.opt: Move Wvolatile-register-var to...
4906 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4908 * common.opt (Wlarger-than=): New.
4909 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
4911 * opts.c (common_handle_option): Handle -Wlarger-than=.
4912 * optc-gen.awk: Likewise.
4913 * opth-gen.awk: Likewise.
4914 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
4915 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4917 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4919 * c-common.c (match_case_to_enum_1): Add appropriate
4920 OPT_W* parameter to warning.
4921 (c_do_switch_warnings): Likewise.
4922 * c-typeck.c (warning_init): Add one more parameter following
4924 (push_init_level): Update call to warning_init.
4925 (pop_init_level): Likewise.
4926 (add_pending_init): Likewise.
4927 (output_init_element: Likewise.
4929 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4932 * toplev.c (toplev_main): If there are warnings or error, print
4933 errors for ignored options.
4934 * opts.c (ignored_options): New static variable.
4935 (postpone_unknown_option_error): New.
4936 (print_ignored_options): New.
4937 (handle_option): Postpone errors for unknown -Wno-* options.
4938 * opts.h (print_ignored_options): Declare.
4940 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
4942 * config/mips/mips.md (loadgp_blockage, blockage): Change type
4945 2008-02-25 Richard Guenther <rguenther@suse.de>
4948 2008-02-25 Richard Guenther <rguenther@suse.de>
4950 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
4951 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
4952 (lookup_decl_from_uid): Declare.
4953 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
4954 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
4955 (decl_for_uid_map): New global hashtable mapping DECL_UID
4957 (init_ttree): Allocate it.
4958 (insert_decl_to_uid_decl_map): New helper function.
4959 (make_node_stat): Insert new decls into the map.
4960 (copy_node_stat): Likewise.
4961 (lookup_decl_from_uid): New function.
4962 (print_decl_for_uid_map_statistics): New helper.
4963 (dump_tree_statistics): Call it.
4965 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
4966 (referenced_var_iterator): Adjust.
4967 (FOR_EACH_REFERENCED_VAR): Adjust.
4968 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
4969 (num_referenced_vars): Adjust.
4970 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
4971 (first_referenced_var): Remove.
4972 (end_referenced_vars_p): Likewise.
4973 (next_referenced_var): Likewise.
4974 (referenced_var_iterator_set): New helper function.
4975 * tree-dfa.c (referenced_var_lookup): Adjust.
4976 (referenced_var_check_and_insert): Likewise.
4977 (remove_referenced_var): Likewise.
4978 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
4979 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4980 (verify_call_clobbering): Likewise.
4981 (verify_memory_partitions): Likewise.
4982 (init_tree_ssa): Allocate bitmap instead of hashtable for
4984 (delete_tree_ssa): Adjust.
4985 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
4986 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
4987 (compute_tag_properties): Likewise.
4988 (set_initial_properties): Likewise.
4989 (find_partition_for): Likewise.
4990 (update_reference_counts): Likewise.
4991 (dump_may_aliases_for): Likewise.
4992 * tree-ssa-operands.c (add_virtual_operand): Likewise.
4993 (add_call_clobber_ops): Likewise.
4994 (add_call_read_ops): Likewise.
4995 (get_asm_expr_operands): Likewise.
4996 * tree-into-ssa.c (dump_decl_set): Likewise.
4997 (update_ssa): Likewise.
4998 * tree-sra.c (scan_function): Likewise.
4999 (decide_instantiations): Likewise.
5000 (scalarize_parms): Likewise.
5001 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5002 (dsa_named_for): Likewise.
5003 * tree-ssa-structalias.c (update_alias_info): Likewise.
5004 (merge_smts_into): Likewise.
5006 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
5009 * doc/invoke.texi (-fcx-limited-range): Document new option.
5010 * toplev.c (process_options): Handle -fcx-fortran-rules.
5011 * common.opt: Add documentation for -fcx-fortran-rules.
5013 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
5016 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
5017 actual behaviour and C99.
5019 2008-02-26 Ben Elliston <bje@au.ibm.com>
5021 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
5022 (ASM_CPU_POWER6_SPEC): Likewise.
5023 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
5024 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
5025 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
5027 2008-02-25 Richard Guenther <rguenther@suse.de>
5029 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
5030 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
5031 (lookup_decl_from_uid): Declare.
5032 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
5033 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
5034 (decl_for_uid_map): New global hashtable mapping DECL_UID
5036 (init_ttree): Allocate it.
5037 (insert_decl_to_uid_decl_map): New helper function.
5038 (make_node_stat): Insert new decls into the map.
5039 (copy_node_stat): Likewise.
5040 (lookup_decl_from_uid): New function.
5041 (print_decl_for_uid_map_statistics): New helper.
5042 (dump_tree_statistics): Call it.
5044 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
5045 (referenced_var_iterator): Adjust.
5046 (FOR_EACH_REFERENCED_VAR): Adjust.
5047 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
5048 (num_referenced_vars): Adjust.
5049 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
5050 (first_referenced_var): Remove.
5051 (end_referenced_vars_p): Likewise.
5052 (next_referenced_var): Likewise.
5053 (referenced_var_iterator_set): New helper function.
5054 * tree-dfa.c (referenced_var_lookup): Adjust.
5055 (referenced_var_check_and_insert): Likewise.
5056 (remove_referenced_var): Likewise.
5057 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
5058 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5059 (verify_call_clobbering): Likewise.
5060 (verify_memory_partitions): Likewise.
5061 (init_tree_ssa): Allocate bitmap instead of hashtable for
5063 (delete_tree_ssa): Adjust.
5064 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
5065 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
5066 (compute_tag_properties): Likewise.
5067 (set_initial_properties): Likewise.
5068 (find_partition_for): Likewise.
5069 (update_reference_counts): Likewise.
5070 (dump_may_aliases_for): Likewise.
5071 * tree-ssa-operands.c (add_virtual_operand): Likewise.
5072 (add_call_clobber_ops): Likewise.
5073 (add_call_read_ops): Likewise.
5074 (get_asm_expr_operands): Likewise.
5075 * tree-into-ssa.c (dump_decl_set): Likewise.
5076 (update_ssa): Likewise.
5077 * tree-sra.c (scan_function): Likewise.
5078 (decide_instantiations): Likewise.
5079 (scalarize_parms): Likewise.
5080 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
5081 (dsa_named_for): Likewise.
5082 * tree-ssa-structalias.c (update_alias_info): Likewise.
5083 (merge_smts_into): Likewise.
5085 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
5088 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
5089 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
5090 * alias.h (nonoverlapping_memrefs_p): Likewise.
5092 2008-02-25 Jan Beulich <jbeulich@novell.com>
5094 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
5095 * config/i386/netware-libgcc.exp: Add __bswap?i2,
5096 __emultls_get_address, __emultls_register_common,
5097 __floatundi?f, and _Unwind_GetIPInfo.
5098 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
5099 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
5100 (gen_regparm_prefix): Likewise.
5101 (i386_nlm_encode_section_info): Sync with
5102 config/i386/winnt.c:i386_pe_encode_section_info().
5103 (i386_nlm_maybe_mangle_decl_assembler_name): New.
5104 i386_nlm_mangle_decl_assembler_name): New.
5105 (netware_override_options): New.
5106 * config/i386/netware.h (netware_override_options): Declare.
5107 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
5108 (i386_nlm_mangle_decl_assembler_name): Declare.
5109 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
5111 2008-02-25 Ben Elliston <bje@au.ibm.com>
5114 * c-decl.c (grokdeclarator): Remove unused local variables
5115 `typedef_type' and `type_as_written'.
5117 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
5118 unused local variable `has_hot_blocks'.
5119 (fix_crossing_conditional_branches): Remove unused local variable
5122 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
5125 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
5126 using DEF_C99_BUILTIN.
5127 (BUILT_IN_NANF): Ditto.
5128 (BUILT_IN_NANL): Ditto.
5130 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
5131 Revital Eres <eres@il.ibm.com>
5133 * modulo-sched.c (calculate_must_precede_follow): Address TODO
5134 regarding the order of two dependent insns in the same row.
5136 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
5138 * stor-layout.c (layout_decl): Do not bump the alignment of a
5139 bit-field to more than byte alignment if it is packed.
5141 2008-02-24 David Edelsohn <edelsohn@gnu.org>
5143 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
5146 2008-02-24 Diego Novillo <dnovillo@google.com>
5148 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
5151 * tree-vrp.c (vrp_evaluate_conditional): With
5152 -Wtype-limits, emit a warning when comparing against a
5153 constant outside the natural range of OP0's type.
5154 * c.opt (Wtype-limits): Move ...
5155 * common.opt (Wtype-limits): ... here.
5157 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
5159 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
5160 * config/rs6000/e300c2c3.md: New file.
5161 * config/rs6000/rs6000.c (processor_costs): Add new costs for
5163 (rs6000_override_options): Add e300c2 and e300c3 cases to
5164 processor_target_table. Do not allow usage of Altivec or Spe
5165 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
5166 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
5167 * config/rs6000/rs6000.h (processor_type): Add
5168 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
5169 (ASM_CPU_SPEC): Add e300c2 and e300c3.
5170 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
5171 and ppce300c3. Include e300c2c3.md.
5173 2008-02-23 David Edelsohn <edelsohn@gnu.org>
5175 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
5176 instead of TARGET_STRICT_ALIGN.
5178 2008-02-23 Joseph Myers <joseph@codesourcery.com>
5180 * explow.c (memory_address): Assert that the generated address is
5183 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
5186 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
5187 * config/darwin-ppc-ldouble-patch.def: New file.
5188 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
5189 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
5190 SUBTARGET_INIT_BUILTINS if defined.
5191 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
5194 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
5197 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
5198 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
5200 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
5203 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
5204 file" warning condtional on -Winvalid-PCH.
5206 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
5208 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
5210 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
5214 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
5215 prevent reload from using MMX registers.
5216 (*mov<mode>_internal): Ditto.
5217 (*movv2sf_internal_rex64): Ditto.
5218 (*movv2sf_internal): Ditto.
5220 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5222 PR documentation/31569
5223 * doc/install.texi2html: Use makeinfo --no-number-sections.
5225 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
5227 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
5228 ensure that we can address an entire entity > 8 bytes. Don't
5229 generate reg+reg addressing for such data.
5231 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
5233 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
5234 strings when optimizing for size, unless the target cares about
5237 2008-02-22 Tom Tromey <tromey@redhat.com>
5239 * regclass.c (current_pass): Remove declaration.
5241 2008-02-22 Anatoly Sokolov <aesok@post.ru>
5243 * config/avr/libgcc.S (__RAMPZ__): Define.
5244 (__do_copy_data): Add for devices with 128KB code memory.
5246 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
5248 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
5250 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
5252 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
5254 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
5257 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5260 * c-typeck.c (build_binary_op): Warn about floating point
5261 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
5263 2008-02-21 Janis Johnson <janis187@us.ibm.com>
5266 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
5267 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
5269 (rs6000_override_options): Set altivec_abi as default, not override,
5270 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
5271 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
5272 is used; use new member spe_abi.
5273 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
5274 spe_abi and altivec_abi.
5276 2008-02-22 Tomas Bily <tbily@suse.cz>
5278 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
5280 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5283 * config.build (build_file_translate): Set to `CMD //c' only if
5285 * Makefile.in (build_file_translate): Improve comment.
5287 2008-02-21 Jan Hubicka <jh@suse.cz>
5289 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
5290 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
5291 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
5293 2008-02-21 Michael Matz <matz@suse.de>
5296 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
5298 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
5300 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
5301 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
5303 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
5304 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
5305 SSE_VEC_FLOAT_MODE_P as insn constraint.
5306 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
5307 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
5308 sse4a_movntdf using MODEF mode iterator.
5309 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
5310 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
5311 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
5312 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
5313 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
5314 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
5315 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
5317 2008-02-21 Richard Guenther <rguenther@suse.de>
5319 * tree.def (PAREN_EXPR): New tree code.
5320 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
5322 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
5323 * expr.c (expand_expr_real_1): Likewise.
5324 * tree-inline.c (estimate_num_insns_1): Likewise.
5325 * tree-complex.c (expand_complex_move): Likewise.
5326 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
5329 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
5332 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
5334 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
5337 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
5339 * config/sh/sh.c (find_barrier): Don't go past
5340 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
5342 2008-02-20 DJ Delorie <dj@redhat.com>
5344 * config/h8300/h8300.md (insv): Force source operand to be a register.
5346 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
5347 as a jump, not as a plain insn.
5349 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
5351 * doc/invoke.texi (Warning Options): Add new option
5352 -Wframe-larger-than=.
5353 (-Wframe-larger-than): Document.
5355 * flags.h (warn_frame_larger_than, frame_larger_than_size):
5356 Add declarations for new option variables.
5358 * final.c (final_start_function): Check the frame size
5359 before emission and issue a Wframe-larger-than warning.
5361 * opts.c (warn_frame_larger_than, frame_larger_than_size):
5362 Add definitions for new option variables.
5363 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
5365 * common.opt (Wframe-larger-than=): New option.
5367 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
5369 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
5370 (<sse>_div<mode>3): Ditto.
5371 (<sse>_vmdiv<mode>3): Ditto.
5372 (<sse>_vmsqrt<mode>2): Ditto.
5373 (*smax<mode>3): Ditto.
5374 (sse5_frcz<mode>2): Ditto.
5375 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
5378 2008-02-20 Richard Guenther <rguenther@suse.de>
5381 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
5382 be happy with INTEGRAL_TYPE_P.
5384 2008-02-20 Richard Guenther <rguenther@suse.de>
5386 * fold-const.c (split_tree): Associate floatig-point expressions
5387 if flag_associative_math is set.
5389 2008-02-20 Richard Guenther <rguenther@suse.de>
5391 * tree.h (fold_real_zero_addition_p): Declare.
5392 * fold-const.c (fold_real_zero_addition_p): Export.
5393 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
5394 floating-point operations with zero and one.
5396 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
5398 * doc/install.texi: Correct references to CFLAGS, replacing them
5399 with BOOT_CFLAGS. Document flags used during bootstrap for
5402 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
5404 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
5405 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
5406 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
5408 (smin<mode>3): Ditto from similar patterns.
5409 (smax<mode>3): Ditto.
5410 (*ieee_smin<mode>3): Ditto.
5411 (*ieee_smax<mode>3): Ditto.
5412 * config/i386/sse.md (sse): New mode attribute.
5413 (mov<mode>): Macroize expander from movv4sf and movv2df using
5414 SSEMODEF2P mode iterator.
5415 (<sse>_movnt<mode>): Ditto from similar patterns. Use
5416 SSE_VEC_FLOAT_MODE_P as insn constraint.
5417 (storent<mode>): Ditto.
5418 (storent<mode>): Macroize expander from storentsf and storentdf using
5419 MODEF mode iterator.
5420 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
5421 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
5422 (abs<mode>2): Ditto from similar patterns.
5423 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
5424 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
5425 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
5426 (<sse>_vmsqrt<mode>2): Ditto.
5427 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
5428 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
5429 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
5430 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
5431 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
5432 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
5433 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
5435 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
5436 iterator and SSE_FLOAT_MODE_P as insn constraint.
5437 (<sse>_ucomi): Ditto from similar patterns.
5438 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
5439 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
5440 SSE_VEC_FLOAT_MODE_P as insn constraint.
5441 (vcond<mode>): Ditto from similar patterns.
5442 (and<mode>3, *and<mode>3): Ditto.
5443 (<sse>_nand<mode>3): Ditto.
5444 (ior<mode>3, *ior<mode>3): Ditto.
5445 (xor<mode>3, *xor<mode>3): Ditto.
5446 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
5447 iterator and SSE_FLOAT_MODE_P as insn constraint.
5448 (*nand<mode>3): Ditto from similar patterns.
5449 (*ior<mode>3): Ditto.
5450 (*xor<mode>3): Ditto.
5452 2008-02-20 Ira Rosen <irar@il.ibm.com>
5454 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
5455 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
5456 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
5458 2008-02-19 Jan Hubicka <jh@suse.cz>
5460 * predict.c (tree_bb_level_predictions): Remove variable next
5461 mistakely introduced by previous commit.
5463 2008-02-19 Jan Hubicka <jh@suse.cz>
5465 * predict.c (predict_paths_leading_to): Rewrite.
5466 (predict_paths_for_bb): New.
5467 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
5469 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5472 * Makefile.in (build_file_translate): New.
5473 (gcc-vers.texi): Use it for translating $(abs_srcdir).
5474 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
5475 * configure.ac (build_file_translate): Substitute it.
5476 * configure: Regenerate.
5478 2008-02-19 Jan Hubicka <jh@suse.cz>
5480 PR rtl-optimization/34408
5481 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
5484 2008-02-19 Jan Hubicka <jh@suse.cz>
5487 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
5490 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
5493 * config/i386/i386-modes.def: Revert the last DI alignment
5494 change until Ada people can look into it.
5496 2008-02-19 Nick Clifton <nickc@redhat.com>
5498 * opts.c (print_specific_help): Fix typo in --help text.
5500 2008-02-19 Jakub Jelinek <jakub@redhat.com>
5503 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
5504 32-bit inline asm without asm alternatives for host GCC < 3.0.
5506 2008-02-19 Richard Guenther <rguenther@suse.de>
5508 PR tree-optimization/34989
5509 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
5510 Allow propagation to INDIRECT_REF if we can simplify only.
5512 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5514 * c-common.c (warn_for_collisions_1): Use appropriate option when
5517 2008-02-19 Nick Clifton <nickc@redhat.com>
5520 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
5521 (handle_options): Fix indentation.
5522 (print_filtered_help): If no language-specific options were
5523 displayed tell the user how to list all the options supported by
5524 the language's front-end.
5525 (print_specific_help): Fix indentation and remove duplicate line.
5526 (common_handle_option): Handle the -v option.
5527 For --help enable the display of undocumented options if the -v
5528 switch has been included on the command line.
5529 For --help= check for overlaps in the arguments between the option
5530 classes and the language names and issue a warning when they
5531 cannot be disambiguated.
5532 * c.opt (v): Pass on to the common option handler.
5534 2008-02-19 Revital Eres <eres@il.ibm.com>
5536 * modulo-sched.c (sms_schedule): Change dump message when
5537 create_ddg function fails.
5538 (try_scheduling_node_in_cycle): Rename row to cycle.
5539 (print_partial_schedule): Rename CYCLE to ROW.
5541 2008-02-19 Christian Bruel <christian.bruel@st.com>
5542 Zdenek Dvorak <ook@ucw.cz>
5544 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
5546 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5549 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
5550 (*x86_movdicc_0_m1_se): Ditto.
5552 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
5554 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
5555 (CMPtype): Define as __gcc_CMPtype.
5556 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
5557 (CMPtype): Define as __gcc_CMPtype.
5559 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
5561 Support valgrind 3.3 for --enable-checking=valgrind.
5562 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
5564 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
5565 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
5566 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
5567 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
5568 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
5569 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
5570 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
5572 * ggc-zone.c: Similar.
5573 * ggc-page.c: Similar.
5575 2008-02-19 Paul Brook <paul@codesourcery.com>
5578 * config/arm/ieee754-df.S: Fix do_it typo.
5579 * config/arm/ieee754-sf.S: Fix do_it typo.
5581 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5584 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
5585 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
5586 (OPTION_MASK_ISA_SSE_SET): Likewise.
5587 (OPTION_MASK_ISA_SSE2_SET): Likewise.
5588 (OPTION_MASK_ISA_SSE3_SET): Likewise.
5589 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
5590 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
5591 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
5592 (OPTION_MASK_ISA_SSE4_SET): Likewise.
5593 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
5594 (OPTION_MASK_ISA_SSE5_SET): Likewise.
5595 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
5596 (OPTION_MASK_ISA_MMX_UNSET): Updated.
5597 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
5598 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5599 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5600 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5601 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5602 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5603 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5604 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
5605 (OPTION_MASK_ISA_SSE4): Removed.
5606 (ix86_handle_option): Turn on bits in ix86_isa_flags and
5607 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
5608 (override_options): Don't turn on implied SSE/MMX bits in
5611 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
5613 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
5616 2008-02-18 Joey Ye <joey.ye@intel.com>
5619 * tree-nested.c (insert_field_into_struct): Set type alignment
5620 to field alignment if the former is less than the latter.
5622 2008-02-18 Jakub Jelinek <jakub@redhat.com>
5624 * BASE-VER: Set to 4.4.0.
5626 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5628 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
5629 * doc/cfg.texi: Likewise.
5630 * doc/extend.texi: Likewise.
5631 * doc/gty.texi: Likewise.
5632 * doc/invoke.texi: Likewise.
5633 * doc/loop.texi: Likewise.
5634 * doc/md.texi: Likewise.
5635 * doc/passes.texi: Likewise.
5636 * doc/rtl.texi: Likewise.
5637 * doc/sourcebuild.texi: Likewise.
5638 * doc/tm.texi: Likewise.
5639 * doc/tree-ssa.texi: Likewise.
5641 2008-02-17 Richard Guenther <rguenther@suse.de>
5644 * tree-complex.c (init_parameter_lattice_values): Handle parameters
5645 without default definition.
5647 2008-02-17 Richard Guenther <rguenther@suse.de>
5649 PR tree-optimization/35231
5650 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
5653 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
5656 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5657 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5658 libgcc_cmp_return mode.
5660 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5663 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
5665 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
5667 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
5670 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5672 * doc/c-tree.texi: Use `@.' where appropriate.
5673 * doc/extend.texi: Likewise.
5674 * doc/install.texi: Likewise.
5675 * doc/invoke.texi: Likewise.
5676 * doc/loop.texi: Likewise.
5677 * doc/makefile.texi: Likewise.
5678 * doc/md.texi: Likewise.
5679 * doc/passes.texi: Likewise.
5680 * doc/standards.texi: Likewise.
5681 * doc/tm.texi: Likewise.
5683 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5686 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
5688 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
5689 rather than in entry_bb.
5691 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5693 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
5694 libgcc_cmp_return mode.
5696 2008-02-15 Jakub Jelinek <jakub@redhat.com>
5699 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
5700 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
5702 2008-02-15 Richard Guenther <rguenther@suse.de>
5703 Zdenek Dvorak <ook@ucw.cz>
5705 PR tree-optimization/35164
5706 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
5707 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
5708 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5709 Only propagate addresses which do not have abnormal SSA_NAMEs
5712 2008-02-15 Joseph Myers <joseph@codesourcery.com>
5715 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
5717 2008-02-15 Jan Hubicka <jh@suse.cz>
5720 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
5722 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5725 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
5726 when calculating alignment_pad.
5728 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
5730 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
5731 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
5732 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
5733 and STACK_BOUNDARY define.
5735 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
5737 PR preprocessor/35061
5738 * c-pragma.c (handle_pragma_pop_macro): Check that
5739 pushed_macro_table has been allocated.
5741 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
5744 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
5745 (force_gimple_operand): Likewise.
5746 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
5747 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
5748 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
5749 (find_interesting_uses_address): Check addressability and alignment
5750 of the base expression only after substituting bases of IVs into it.
5752 2008-02-14 Michael Matz <matz@suse.de>
5755 * function.c (instantiate_virtual_regs_in_insn): Reload address
5756 before falling back to reloading the whole operand.
5758 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
5760 * config/s390/s390.c (s390_mainpool_start): Emit the pool
5761 before the first section switch note.
5763 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5765 * doc/bugreport.texi: Update copyright years.
5766 * doc/c-tree.texi: Likewise.
5767 * doc/cfg.texi: Likewise.
5768 * doc/cpp.texi: Likewise.
5769 * doc/cppinternals.texi: Likewise.
5770 * doc/fragments.texi: Likewise.
5771 * doc/frontends.texi: Likewise.
5772 * doc/gcc.texi: Likewise.
5773 * doc/gty.texi: Likewise.
5774 * doc/hostconfig.texi: Likewise.
5775 * doc/implement-c.texi: Likewise.
5776 * doc/libgcc.texi: Likewise.
5777 * doc/loop.texi: Likewise.
5778 * doc/makefile.texi: Likewise.
5779 * doc/options.texi: Likewise.
5780 * doc/passes.texi: Likewise.
5781 * doc/rtl.texi: Likewise.
5782 * doc/sourcebuild.texi: Likewise.
5783 * doc/standards.texi: Likewise.
5784 * doc/tree-ssa.texi: Likewise.
5785 * doc/trouble.texi: Likewise.
5787 * doc/extend.texi: Use @: or add comma where appropriate.
5788 * doc/invoke.texi: Likewise.
5789 * doc/tm.texi: Likewise.
5791 2008-02-14 Alan Modra <amodra@bigpond.net.au>
5794 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
5797 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
5799 * doc/md.texi (clz, ctz): Add reference.
5800 * doc/rtl.texi (clz, ctz): Likewise.
5802 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5805 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
5808 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
5810 * config/s390/s390.c (struct constant_pool): New field
5811 emit_pool_after added.
5812 (s390_mainpool_start): Set the emit_pool_after flag according
5813 to the section switch notes.
5814 (s390_mainpool_finish): Consider emit_pool_after when emitting
5815 the literal pool at the end of the function.
5816 (s390_chunkify_start): Force literal pool splits at section
5819 2008-02-13 Michael Matz <matz@suse.de>
5822 * var-tracking.c (clobber_variable_part): Correctly traverse the
5825 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5828 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
5829 Add -fdump-ipa-inline.
5830 * tree-dump.c (dump_files): Remove tree-inlined dump.
5831 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
5833 2008-02-12 Richard Guenther <rguenther@suse.de>
5835 PR tree-optimization/35171
5836 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
5839 2008-02-12 Richard Guenther <rguenther@suse.de>
5842 * fold-const.c (fold_widened_comparison): Use get_unwidened in
5843 value-preserving mode. Disallow final truncation.
5845 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
5848 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
5849 code from here to...
5850 (force_gimple_operand): ...here.
5852 2008-02-12 Jakub Jelinek <jakub@redhat.com>
5855 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
5856 non-compatible pointers.
5857 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
5858 different FIELD_DECLs, try harder by comparing field offsets, sizes
5862 * function.c (match_asm_constraints_1): Don't replace the same input
5865 2008-02-12 Anatoly Sokolov <aesok@post.ru>
5867 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
5868 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
5869 (expand_epilogue): Restore RAMPZ register.
5870 * config/avr/avr.md (RAMPZ_ADDR): New constant.
5872 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
5874 * config/i386/cygwin.asm: (__alloca): Correct calling
5875 convention and alignment.
5876 (__chkstk): Force 8 byte stack alignment.
5878 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
5879 Richard Guenther <rguenther@suse.de>
5881 PR tree-optimization/33992
5882 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
5883 the zero we compare against.
5885 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
5888 * gthr-win32.h (__gthread_mutex_destroy_function): New function
5889 to CloseHandle after unlocking to prevent accumulation of handle
5892 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5895 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
5896 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
5897 and update LABEL_NUSES during and after reload.
5899 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
5902 * combine.c (simplify_if_then_else): Make sure the comparison is
5903 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
5905 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
5908 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
5909 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
5910 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
5911 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
5912 * tree.h (get_type_static_bounds): Likewise.
5914 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5916 * doc/invoke.texi (Option Summary, C++ Dialect Options)
5917 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5918 Make -Wfoo language annotations match what the compiler outputs.
5920 2008-02-08 Sa Liu <saliu@de.ibm.com>
5922 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
5923 intrinsics spu_convts, spu_convtu, spu_convtf.
5924 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
5926 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
5928 * doc/extend.texi (Function Attributes) <noinline>: Mention
5929 asm ("") as method to keep calls.
5931 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5934 * doc/options.texi (Options): Replace references to opts.sh with
5936 * opts-common.c: Likewise.
5937 * optc-gen.awk: Likewise.
5939 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
5941 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
5943 2008-02-07 Richard Henderson <rth@redhat.com>
5946 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
5947 EXPR_LIST for the REG_EQUAL instead of a comparison with a
5950 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
5952 PR tree-optimization/35085
5953 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
5954 for operand entry oe2 in addition to operand entry oe3 in order to
5955 expose more opportunities for vectorizer sum reduction.
5957 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5960 * Makefile.in (LIBS): Remove $(GMPLIBS).
5961 (cc1-dummy, cc1): Add $(GMPLIBS).
5963 2008-02-06 Jan Hubicka <jh@suse.cz>
5966 * i386.md (moddf_integer): Do not produce partial memory stalls for
5967 targets where it hurts.
5969 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
5972 * optabs.c (expand_float): Do not check for decimal modes when
5973 expanding unsigned integer through signed conversion.
5975 2008-02-06 Nick Clifton <nickc@redhat.com>
5977 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
5978 inside the clobber with a match_operand and duplicated operand
5979 number in the constraint.
5980 (ineqbranchsi): Delete redundant comment.
5982 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
5984 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
5985 builtin_define ("__USE_INIT_FINI__").
5986 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
5988 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
5990 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5992 PR documentation/30330
5993 * doc/invoke.texi (C++ Dialect Options)
5994 (Objective-C and Objective-C++ Dialect Options, Warning Options):
5995 For each warning option -Wfoo that allows -Wno-foo, ensure both
5996 -Wfoo and -Wno-foo are listed in the option index. Fix index
5997 entry of -Wswitch-default, index -Wnormalized= including the
5998 `=', and -Wlarger-than-@var{len} including @var{len}.
6000 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
6002 * config/i386/i386.md (floatunssisf2): Use
6003 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
6004 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
6005 Macroize expander using MODEF mode iterator.
6007 2008-02-05 Diego Novillo <dnovillo@google.com>
6009 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
6012 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
6014 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6017 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
6019 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
6022 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
6023 to indicate if a message should be generated.
6024 (init_cumulative_args): Updated.
6025 (function_value_32): Likewise.
6027 2008-02-05 Joseph Myers <joseph@codesourcery.com>
6029 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
6031 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
6034 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
6035 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
6037 2008-02-04 Diego Novillo <dnovillo@google.com>
6039 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
6042 * tree-vrp.c (vrp_evaluate_conditional): With
6043 -Wtype-limits, emit a warning when comparing against a
6044 constant outside the natural range of OP0's type.
6046 2008-02-04 Richard Guenther <rguenther@suse.de>
6049 * expr.c (count_type_elements): Give for unions instead of
6052 2008-02-04 Richard Guenther <rguenther@suse.de>
6055 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
6056 to TYPE_DOMAINs base type instead of using bitsizetype here.
6058 2008-02-03 Jason Merrill <jason@redhat.com>
6060 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
6062 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6065 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
6066 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
6067 (RS/6000 and PowerPC Options): Fix typos and markup.
6068 * doc/passes.texi (Tree-SSA passes): Likewise.
6070 2008-02-02 Michael Matz <matz@suse.de>
6073 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
6074 from record_last_reg_set_info.
6075 (record_last_reg_set_info): Take an RTX argument, iterate over all
6076 constituent hardregs.
6077 (record_last_set_info, record_opr_changes): Change calls to
6078 new signature or to record_last_reg_set_info_regno.
6080 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
6082 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
6084 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
6086 PR rtl-optimization/34773
6087 * reg-notes.def (EQUAL): Mention significance of combination of
6088 REG_EQUAL and REG_RETVAL.
6089 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
6090 insn that has a REG_RETVAL.
6092 2008-02-01 Roger Sayle <roger@eyesopen.com>
6095 * configure.ac (--enable-fixed-point): Disable unless explicitly
6097 * configure: Regenerate.
6099 2008-02-01 Richard Guenther <rguenther@suse.de>
6102 * invoke.texi (-finline-limit): Remove no longer true parts
6103 of the documentation. Note that there is no default value.
6105 2008-02-01 Andrew Pinski <pinskia@gmail.com>
6106 Mark Mitchell <mark@codesourcery.com>
6107 Ben Elliston <bje@au.ibm.com>
6110 * doc/extend.texi (Other Builtins): Document.
6112 2008-01-31 Tom Browder <tom.browder@gmail.com>
6114 * doc/c-tree.texi (Types): Fix grammar.
6115 (Expression trees): Ditto.
6116 * doc/passes.texi (Tree-SSA passes): Ditto.
6118 * doc/configterms.texi (Configure Terms): Fix typo.
6119 * doc/cpp.texi (Common Predefined Macros): Ditto.
6120 * doc/md.texi (Machine Constraints): Ditto.
6122 * doc/makefile.texi (Makefile): Add comma.
6124 2008-01-31 Tom Browder <tom.browder@gmail.com>
6125 Gerald Pfeifer <gerald@pfeifer.com>
6127 * doc/sourcebuild.texi (Front End): Remove references to CVS
6128 and CVSROOT/modules.
6129 (Texinfo Manuals): Replace reference to CVS by one to SVN.
6130 (Back End): Remove reference to CVS.
6132 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
6135 * config/mips/mips.c (gen_load_const_gp): New function, taking a
6137 (mips16_gp_pseudo_reg): ...here.
6138 * config/mips/mips.md (load_const_gp): Replace with...
6139 (load_const_gp_<mode>): ...this :P-based insn.
6141 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6143 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
6144 options. Minor fixes.
6145 (-std): Move reference to standards closer to where language
6146 standards are first mentioned.
6148 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
6150 PR rtl-optimization/34995
6151 * reload.c (alternative_allows_const_pool_ref): Take an rtx
6152 parameter and return a bool. If the rtx parameter is nonnull,
6153 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
6154 (find_reloads): Update call accordingly. Pass the new operand
6155 if it needed no address reloads, otherwise pass null.
6157 2008-01-30 Richard Henderson <rth@redhat.com>
6160 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
6161 for unbounded arrays.
6163 2008-01-30 Silvius Rus <rus@google.com>
6165 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
6167 2008-01-30 Jan Hubicka <jh@suse.cz>
6170 * i386.c (init_cumulative_args): Use real function declaration when
6173 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
6175 PR rtl-optimization/34998
6176 * global.c (build_insn_chain): Treat non-subreg_lowpart
6177 SUBREGs of pseudos as clobbering all the words covered by the
6178 SUBREG, not just all the bytes.
6179 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
6180 original df_ref rather than an extract parameter.
6181 (global_conflicts): Update call accordingly.
6183 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
6185 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
6186 the overflow check to make it easier to read.
6187 (__fixtfdi): Change the type of the ll member in union
6188 long_double to UDItype_x.
6190 2008-01-30 Jakub Jelinek <jakub@redhat.com>
6193 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
6194 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
6195 * tree-inline.c (fold_marked_statements): Call
6196 cgraph_update_edges_for_call_stmt if folding a call statement.
6197 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
6198 debug_generic_stmt calls, reset it back afterwards.
6201 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
6203 * c-typeck.c (build_external_ref): Don't pedwarn about
6204 static vars in current function's scope.
6206 2008-01-29 Joseph Myers <joseph@codesourcery.com>
6208 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
6210 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
6213 * ipa-struct-reorg.c: Fix spelling.
6214 * params.def: Ditto.
6216 2008-01-29 Richard Guenther <rguenther@suse.de>
6219 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
6221 * tree-inline.c (remap_type): Increment remapping_type_depth
6222 around remapping types.
6223 (copy_body_r): Only add referenced variables if they are referenced
6224 from code, not types.
6226 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
6237 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
6238 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
6240 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
6243 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
6244 pointer for tiny stack.
6246 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
6248 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
6250 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
6252 * config/vx-common.h: Fix typo in comment.
6254 2008-01-28 Ian Lance Taylor <iant@google.com>
6258 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6259 coalesce pointers if they have different DECL_NO_TBAA_P values.
6260 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
6261 between variables with different DECL_NO_TBAA_P values.
6263 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
6266 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
6267 are not legitimate small data references on SPE targets.
6269 2008-01-28 David Daney <ddaney@avtrex.com>
6271 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
6273 2008-01-28 David Daney <ddaney@avtrex.com>
6275 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
6277 2008-01-27 Joseph Myers <joseph@codesourcery.com>
6279 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
6280 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
6281 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
6282 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
6283 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
6284 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
6285 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
6286 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
6288 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
6290 * basic-block.h (condjump_equiv_p): Fix comment.
6292 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
6294 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
6295 print_generic_stmt_indented): Fix comment.
6297 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
6299 * configure.ac (__stack_chk_fail): Add detecion for availability
6300 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
6301 * configure: Regenerate.
6303 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
6306 * final.c (output_addr_const): Handle TRUNCATE.
6308 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
6311 * tree-ssa-loop-ivopts.c (comp_cost): New type.
6312 (zero_cost, infinite_cost): New constants.
6313 (struct cost_pair): Change type of cost to comp_cost.
6314 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
6315 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
6317 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
6318 split_address_cost, ptr_difference_cost, difference_cost,
6319 get_computation_cost_at, get_computation_cost,
6320 determine_use_iv_cost_generic, determine_use_iv_cost_address,
6321 determine_use_iv_cost_condition, determine_use_iv_costs,
6322 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
6323 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
6324 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
6325 Change type of cost to comp_cost.
6326 (determine_iv_cost): Increase cost of non-original ivs, instead
6327 of decreasing the cost of original ones.
6328 (get_address_cost): Indicate the complexity of the addressing mode
6330 (try_add_cand_for): Prefer using ivs not specific to some object.
6331 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
6333 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
6334 Janis Johnson <janis187@us.ibm.com>
6337 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
6338 (TARGET_INSTANTIATE_DECLS): Likewise.
6339 * target.h (expand_to_rtl_hook): New target hook.
6340 (instantiate_decls): Likewise.
6341 * function.c (instantiate_decl): Make non-static. Rename to...
6342 (instantiate_decl_rtl): ... this.
6343 (instantiate_expr): Use instantiate_decl_rtl.
6344 (instantiate_decls_1): Likewise.
6345 (instantiate_decls): Likewise.
6346 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
6347 * function.h (instantiate_decl_rtl): Add prototype.
6348 * cfgexpand.c (target.h): New include.
6349 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
6350 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
6351 (TARGET_INSTANTIATE_DECLS): Likewise.
6352 (TARGET_INITIALIZER): New target hooks added.
6353 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
6355 * config/rs6000/rs6000.c (tree-flow.h): New include.
6356 (machine_function): Add sdmode_stack_slot field.
6357 (rs6000_alloc_sdmode_stack_slot): New function.
6358 (rs6000_instantiate_decls): Likewise.
6359 (rs6000_secondary_memory_needed_rtx): Likewise.
6360 (rs6000_check_sdmode): Likewise.
6361 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
6362 (TARGET_INSTANTIATE_DECLS): Likewise.
6363 (rs6000_hard_regno_mode_ok): Allow SDmode.
6364 (num_insns_constant): Likewise. Handle _Decimal32 constants.
6365 (rs6000_emit_move): Handle SDmode.
6366 (function_arg_advance): Likewise.
6367 (function_arg): Likewise.
6368 (rs6000_gimplify_va_arg): Likewise. Add special handling of
6369 SDmode var args for 32-bit compiles.
6370 (rs6000_secondary_reload_class): Handle SDmode.
6371 (rs6000_output_function_epilogue): Likewise.
6372 (rs6000_function_value): Simplify if statement.
6373 (rs6000_libcall_value): Likewise.
6374 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
6375 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
6376 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
6377 (movsd_hardfloat): New define_insn.
6378 (movsd_softfloat): Likewise.
6379 (movsd_store): Likewise.
6380 (movsd_load): Likewise.
6381 (extendsddd2): Likewise.
6382 (extendsdtd2): Likewise.
6383 (truncddsd2): Likewise.
6384 (movdd_hardfloat64): Fixup comment.
6385 (UNSPEC_MOVSD_LOAD): New constant.
6386 (UNSPEC_MOVSD_STORE): Likewise.
6388 2008-01-26 Jakub Jelinek <jakub@redhat.com>
6391 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
6393 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
6394 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
6395 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
6398 2008-01-26 David Edelsohn <edelsohn@gnu.org>
6401 * config.gcc: Separate AIX 5.3 from AIX 6.1.
6402 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6403 __LONGDOUBLE128 too.
6404 * config/rs6000/aix61.h: New file.
6406 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
6408 PR rtl-optimization/34959
6409 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
6410 popcount and parity rtxes the same mode as their operand.
6411 Truncate or extend the result to the return value's mode
6414 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
6417 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
6418 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
6419 to GOT_VERSION_REGNUM.
6420 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
6421 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
6422 * config/mips/mips.c (mips_emit_call_insn): New function.
6423 (mips_call_tls_get_addr): Call mips_expand_call directly.
6424 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
6426 (mips16_build_call_stub): Likewise. Return the call insn or null.
6427 (mips_expand_call): Update the call to mips16_build_call_stub
6428 accordingly and a remove redundant condition. Assert that MIPS16
6429 stubs do not use lazy binding. Use mips_emit_call_insn and return
6431 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
6433 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
6434 (mips_avoid_hazard): Remove hazard_set handling.
6435 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
6436 (UNSPEC_RESTORE_GP): ...this.
6437 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
6438 (FAKE_CALL_REGNO): Rename to...
6439 (GOT_VERSION_REGNUM): ...this.
6440 (type): Add "ghost" value. Add an associated insn reservation.
6441 (hazard_set): Remove.
6442 (exception_receiver): Rename to...
6443 (restore_gp): ...this and update the unspec identifier accordingly.
6444 (exception_receiver, nonlocal_got_receiver): New expanders.
6445 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
6446 FAKE_CALL_REGNO. Remove hazard_set attribute.
6447 (set_got_version, update_got_version): New patterns.
6449 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
6452 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
6454 2008-01-25 Joseph Myers <joseph@codesourcery.com>
6457 * doc/install.texi2html: Generate gcc-vers.texi.
6459 2008-01-25 DJ Delorie <dj@redhat.com>
6461 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6463 2008-01-25 Joseph Myers <joseph@codesourcery.com>
6465 * config/c4x: Remove directory.
6466 * config.gcc (crx-*, mt-*): Mark obsolete.
6467 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
6468 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
6469 sh-*-rtemscoff*): Remove cases.
6470 * defaults.h (C4X_FLOAT_FORMAT): Remove.
6471 * real.c (encode_c4x_single, decode_c4x_single,
6472 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
6473 c4x_extended_format): Remove.
6474 * real.h (c4x_single_format, c4x_extended_format): Remove.
6475 * doc/extend.texi (interrupt, naked): Remove mention of attributes
6477 (Pragmas): Remove comment about c4x pragmas.
6478 * doc/install.texi (c4x): Remove target-specific instructions.
6479 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
6480 * doc/md.texi (Machine Constraints): Remove C4x documentation.
6481 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
6482 refer to C4x source files as examples.
6483 (C4X_FLOAT_FORMAT): Remove documentation.
6485 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
6487 * config/bfin/bfin.c (override_options): Reorder tests so that
6488 flag_pic gets enabled for -msep-data.
6490 2008-01-25 Richard Guenther <rguenther@suse.de>
6493 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
6494 to its bitfield precision if required.
6496 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6499 * tree-nested.c (walk_omp_for): New function.
6500 (convert_nonlocal_reference, convert_local_reference): Call
6501 walk_omp_for on OMP_FOR.
6502 (convert_call_expr): Call walk_body on OMP_FOR's
6503 OMP_FOR_PRE_INIT_BODY.
6505 2008-01-25 Richard Guenther <rguenther@suse.de>
6507 PR tree-optimization/34966
6508 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
6509 default defs and PHI_NODEs we have to insert after the
6512 2008-01-24 Nick Clifton <nickc@redhat.com>
6514 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
6515 Provide a default definition.
6516 (LIBGCC2_UNITS_PER_WORD): Likewise.
6518 * config/stormy16/stormy16.c: Include df.h for the prototype
6519 for df_regs_ever_live_p.
6520 (xstormy16_expand_builtin_va_start): Convert the stack offset
6521 into a component_ref and then use POINTER_PLUS_EXPR to add it
6522 to the incoming_virtual_args_rtx.
6523 (xstormy16_gimplify_va_arg_expr): Rename to
6524 xstormy16_gimplify_va_arg_expr.
6525 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
6526 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
6527 xstormy16_gimplify_va_arg_expr.
6528 Fix up some formatting issues.
6530 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
6531 Move to predicates.md.
6532 (xs_hi_general_operand): Likewise.
6533 (xs_hi_nonmemory_operand): Likewise.
6534 * config/stormy16/predicates.md:
6535 (xstormy16_carry_plus_operand): New predicate.
6536 (xs_hi_general_operand): New predicate.
6537 (xs_hi_nonmemory_operand): New predicate.
6538 * config/stormy16/stormy16-protos.h:
6539 (xstormy16_carry_plus_operand): Delete prototype.
6540 (xs_hi_general_operand): Likewise.
6541 (xs_hi_nonmemory_operand): Likewise.
6543 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
6544 modifiers as they are no longer needed and they can trigger
6545 reload spill failures.
6547 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
6548 with a match_operand in order to help reload.
6550 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
6551 constraint with 'e' for the 8th alternative as this version of
6552 the mov.w instruction only accepts the lower 8 registers.
6554 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
6557 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
6558 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
6561 2008-01-25 Jakub Jelinek <jakub@redhat.com>
6564 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
6566 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
6568 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
6570 (remove_structure): Update allocations list before removing structure.
6572 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
6574 * ipa-struct-reorg.c (is_safe_cond_expr,
6575 create_new_stmts_for_cond_expr): Use integer_zerop function,
6576 that recognize not only zero-pointer, but zero-integer too.
6578 2008-01-25 Ben Elliston <bje@au.ibm.com>
6581 * fixproto: Escape "." in sed expression that strips leading "./".
6583 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
6586 * gcc.c (SWITCH_OK): Removed.
6587 (SWITCH_LIVE): Changed to bit.
6588 (SWITCH_FALSE): Likewise.
6589 (SWITCH_IGNORE): Likewise.
6590 (switchstr): Change live_cond to unsigned int.
6591 (process_command): Replace SWITCH_OK with 0.
6592 (do_self_spec): Likewise.
6593 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
6594 (give_switch): Likewise.
6595 (used_arg): Likewise.
6596 (do_spec_1): Set the SWITCH_IGNORE bit.
6597 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
6598 bits. Set the SWITCH_LIVE bit.
6600 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
6602 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
6604 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
6606 PR tree-optimization/34472
6607 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
6608 parameter to a "bool *" and set *DATA to false if there is
6609 an unsafe access. Do not delete the structure here.
6610 (check_cond_exprs): Delete it here instead.
6611 (check_cond_exprs, exclude_cold_structs): Do not increase
6612 I when removing a structure.
6614 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
6617 * config/i386/i386.c (ix86_expand_vector_init): Consider only
6618 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
6620 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
6623 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
6624 a fixed vector for stack.
6626 2008-01-24 Ben Elliston <bje@au.ibm.com>
6629 * doc/gcc.texi (Software development): Add a direntry for g++.
6631 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
6633 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
6634 stale and straggling -fforce-addr comments above.
6636 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
6638 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
6639 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
6641 2008-01-23 Michael Matz <matz@suse.de>
6644 * dwarf2out.c (force_type_die): Use modified_type_die instead of
6647 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
6649 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
6652 2008-01-23 Anatoly Sokolov <aesok@post.ru>
6654 * config/avr/avr.c (avr_current_arch): New variable.
6655 (avr_arch_types): Add 'avr31' and 'avr51' entries.
6656 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
6657 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
6658 (avr_override_options): Init 'avr_current_arch'.
6659 (base_arch_s): Move from here...
6660 * config/avr/avr.h (base_arch_s): ... here. Add new members
6661 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
6662 'mega' to 'have_jmp_call'.
6663 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
6664 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
6666 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
6668 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6669 MULTILIB_MATCHES): (Ditto.).
6671 2008-01-23 Richard Guenther <rguenther@suse.de>
6674 * cgraphunit.c (cgraph_reset_node): Always mark the node
6675 not reachable if it is not queued already.
6677 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
6679 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
6680 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
6681 (cputype_selected): New static variable.
6682 (bfin_handle_option): Set it if -mcpu is used.
6683 (override_option): Select default set of workarounds if no cpu type
6684 selected on the command line.
6685 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
6687 From Michael Frysinger <michael.frysinger@analog.com>
6688 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
6689 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
6691 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
6692 for bf547, bf523, bf524, and bf526.
6693 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
6695 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6696 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
6697 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
6698 __ADSPBF547__ and __ADSPBF54x__ for bf547.
6699 * doc/invoke.texi (Blackfin Options): Document that
6700 -mcpu now accept bf547, bf523, bf524, and bf526.
6702 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
6704 PR rtl-optimization/34628
6705 * combine.c (try_combine): Stop and undo after the first combination
6706 if an autoincrement side-effect on the first insn has effectively
6709 2008-01-22 David Edelsohn <edelsohn@gnu.org>
6712 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
6713 Offset addresses are not valid for Altivec or paired float modes.
6715 2008-01-22 Jakub Jelinek <jakub@redhat.com>
6718 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
6719 if DECL_INITIAL (decl) is error_mark_node.
6722 * c-common.c (handle_vector_size_attribute): Only allow
6723 integral, scalar float and fixed point types. Handle OFFSET_TYPE
6724 the same way as pointer, array etc. types.
6725 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
6728 * tree.c (build_type_attribute_qual_variant): Call
6729 build_qualified_type if attributes are equal, but quals are not.
6731 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6734 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
6735 * flags.h (warn_strict_aliasing): Remove.
6736 (warn_strict_overflow): Remove.
6737 * opts.c (warn_strict_aliasing): Remove.
6738 (warn_strict_overflow): Remove.
6739 * c-opts.c (c_common_handle_option): -Wall only sets
6740 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
6741 (c_common_post_options): Give default values to -Wstrict-aliasing
6742 and -Wstrict-overflow if they are uninitialized.
6743 * common.opt (Wstrict-aliasing): Specify Var and Init.
6744 (Wstrict-overflow): Likewise.
6746 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
6748 PR rtl-optimization/26854
6749 PR rtl-optimization/34400
6750 PR rtl-optimization/34884
6751 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
6753 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
6754 (df_rd_bb_info.expanded_lr_out): Deleted
6755 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
6756 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
6757 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6758 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6759 Removed code to allocate, initialize or free expanded_lr_out.
6760 (df_rd_bb_local_compute_process_def): Restructured to make more
6762 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
6763 sets if the sets are being trimmed.
6765 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
6768 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
6769 (as_vers): Likewise.
6770 * configure: Regenerated.
6772 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6775 * tree-pass.h (pass_build_alias): New pass.
6776 * tree-ssa-alias.c (gate_build_alias): New.
6777 (pass_build_alias): New.
6778 * passes.c (init_optimization_passes): Add pass_build_alias after
6779 pass_create_structure_vars.
6781 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
6783 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
6784 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
6785 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
6786 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
6787 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
6788 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
6789 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
6790 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
6791 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
6792 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
6793 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
6794 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
6795 * config/s390/s390.md (FP_ALL): New mode iterator.
6796 (_d): New mode attribute.
6797 ("*signbit<mode>2>"): Changed mode of first operand.
6798 ("isinf<mode>2"): Changed mode of first operand.
6799 ("*TDC_insn"): Adaptation for DFP modes.
6801 2008-01-22 Ben Elliston <bje@au.ibm.com>
6803 * tree.c (check_qualified_type): Improve function description.
6805 2008-01-21 Jason Merrill <jason@redhat.com>
6808 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
6809 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
6812 2008-01-21 DJ Delorie <dj@redhat.com>
6814 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
6817 2008-01-21 Richard Guenther <rguenther@suse.de>
6820 * tree-cfg.c (verify_expr): Allow all invariant expressions
6821 instead of just constant class ones as reference argument.
6822 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
6823 like any other constant.
6824 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
6826 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
6828 * regmove.c (fixup_match_1): Update call crossed frequencies.
6830 2008-01-21 Richard Guenther <rguenther@suse.de>
6833 * tree-inline.c (setup_one_parameter): Deal with mismatched
6834 types using a VIEW_CONVERT_EXPR.
6836 2008-01-21 Alon Dayan <alond@il.ibm.com>
6837 Olga Golovanevsky <olga@il.ibm.com>
6839 PR tree-optimization/34701
6840 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
6841 when the structure size is not a power of 2.
6843 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6845 * doc/install.texi: Add doc for --enable-checking=df.
6847 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
6849 PR rtl-optimization/34808
6850 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
6852 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6854 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
6857 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
6859 PR rtl-optimization/26854
6860 PR rtl-optimization/34400
6861 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
6863 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
6864 (df_rd_bb_info.expanded_lr_out): New.
6865 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
6866 * loop_iv.c (iv_analysis_loop_init): Ditto.
6867 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
6868 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
6869 Added code to allocate, initialize or free expanded_lr_out.
6870 (df_rd_bb_local_compute_process_def): Restructured to make
6871 more understandable.
6872 (df_rd_confluence_n): Add code to do nothing with fake edges and
6873 code to no apply invalidate_by_call sets if the sets are being trimmed.
6874 (df_lr_local_finalize): Renamed to df_lr_finalize.
6875 (df_live_local_finalize): Renamed to df_live_finalize.
6877 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
6880 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
6881 deciding whether to use reciprocal instructions.
6883 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
6885 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
6886 dwarf2out_note_section_used if cold_text_section is NULL.
6888 2008-01-19 Jakub Jelinek <jakub@redhat.com>
6890 PR gcov-profile/34610
6891 * tree-cfg.c (make_edges): Mark both outgoing edges from
6892 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
6893 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
6894 from OMP_FOR and OMP_CONTINUE outgoing edges.
6896 * tree-profile.c (tree_profiling): Return early if
6897 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
6899 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
6900 from cfun to child_cfun.
6901 * function.h (struct function): Add after_tree_profile bit.
6903 2008-01-19 Anatoly Sokolov <aesok@post.ru>
6905 * config/avr/avr.S (_exit): Disable interrupt.
6907 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
6908 Steven Bosscher <stevenb.gcc@gmail.com>
6910 PR rtl-optimization/26854
6911 PR rtl-optimization/34400
6912 * df-problems.c (df_live_scratch): New scratch bitmap.
6913 (df_live_alloc): Allocate df_live_scratch when doing df_live.
6914 (df_live_reset): Clear the proper bitmaps.
6915 (df_live_bb_local_compute): Only process the artificial defs once
6916 since the order is not important.
6917 (df_live_init): Init the df_live sets only with the variables
6918 found live by df_lr.
6919 (df_live_transfer_function): Use the df_lr sets to prune the
6920 df_live sets as they are being computed.
6921 (df_live_free): Free df_live_scratch.
6923 2008-01-18 Ian Lance Taylor <iant@google.com>
6925 * common.opt: Add fmerge-debug-strings.
6926 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
6927 flag_merge_debug_strings rather than flag_merge_constants.
6928 * doc/invoke.texi (Option Summary): Mention
6929 -fmerge-debug-strings.
6930 (Debugging Options): Document -fmerge-debug-strings.
6932 2008-01-18 Ian Lance Taylor <iant@google.com>
6935 * tree.h (DECL_IS_OPERATOR_NEW): Define.
6936 (struct tree_function_decl): Add new field operator_new_flag.
6937 * tree-inline.c (expand_call_inline): When inlining a call to
6938 operator new, force the return value to go into a variable, and
6939 set DECL_NO_TBAA_P on that variable.
6940 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
6942 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
6945 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
6946 DWARF2_DEBUGGING_INFO.
6947 (dwarf2out_note_section_used): Ditto. Add prototype.
6948 (have_multiple_function_sections, text_section_used,
6949 cold_text_section_used, *cold_text_sections): Move declarations
6952 2008-01-17 Bob Wilson <bob.wilson@acm.org>
6954 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
6955 field and add signal_ra.
6956 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
6957 assignments to frame state pc. Move end of stack check after
6958 MD_FALLBACK_FRAME_STATE_FOR.
6959 (uw_update_context_1): Use frame state signal_regs if set, instead
6960 of checking signal_frame flag.
6961 (uw_update_context): Use frame state signal_ra if set.
6962 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
6963 * config/xtensa/linux-unwind.h: New file.
6965 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
6967 * modulo-sched.c (get_sched_window): Fix comment typo.
6969 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
6971 PR tree-optimization/34648
6972 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
6974 2008-01-17 Anatoly Sokolov <aesok@post.ru>
6976 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
6977 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
6979 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
6981 PR rtl-optimization/34400
6982 * df-core.c (df_worklist_dataflow_overeager,
6983 df_worklist_dataflow_doublequeue): New functions.
6984 (df_worklist_dataflow): Two different worklist solvers.
6985 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
6988 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
6991 * doc/invoke.texi: Document the dependence on pthread for fopenmp
6992 and ftree-parallelize-loops.
6994 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
6996 PR rtl-optimization/34826
6997 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
6999 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
7001 * global.c (find_reg): Mark the eh regs as used if necessary.
7002 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
7003 * ra.h (struct allocno): no_eh_reg field added. Changed
7004 no_stack_reg type to bitfield.
7006 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7008 * tree.c (substitute_in_expr): Add missing 'break'.
7010 2008-01-17 Richard Guenther <rguenther@suse.de>
7012 PR tree-optimization/34825
7013 * tree-ssa-math-opts.c (is_division_by): Do not recognize
7014 x / x as division to handle.
7016 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7018 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
7019 "-pthread" is specified.
7020 * pa-hpux11.h (LIB_SPEC): Likewise.
7022 2008-01-16 Janis Johnson <janis187@us.ibm.com>
7023 Peter Bergner <bergner@vnet.ibm.com>
7025 PR rtl-optimization/33796
7026 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
7028 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7030 PR libgfortran/34699
7031 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
7033 * pa-hpux10.h (LINK_SPEC): Likewise.
7034 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
7036 2008-01-16 Richard Guenther <rguenther@suse.de>
7039 * fold-const.c (fold_convert_const_int_from_int): Do not
7040 set overflow if that occured only because of a sign extension
7041 change when converting from/to a sizetype with the same
7042 precision and signedness.
7044 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
7047 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
7048 location address to the correct place. Update copyright year.
7050 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7052 * lambda-code.c (lambda_transform_legal_p): Handle the case of
7053 no dependences in the dependence_relations vector.
7055 2008-01-16 Jan Hubicka <jh@suse.cz>
7057 PR rtl-optimization/31396
7058 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
7059 * cfg.c (dump_reg_info): Print it.
7060 * regs.h (struct reg_info_t): add freq_calls_crossed.
7061 (REG_FREQ_CALLS_CROSSED): New macro.
7062 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
7063 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
7064 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
7065 regmove_optimize): Update call crossed frequencies.
7066 * local-alloc.c (struct qty): Add freq_calls_crossed.
7067 (alloc_qty): Copute freq_calls_crossed.
7068 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
7069 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
7070 * ra.h (struct allocno): Add freq_calls_crossed.
7072 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7074 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
7075 libgomp when compiling with ftree-parallelize-loops.
7076 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
7078 2008-01-16 Richard Guenther <rguenther@suse.de>
7080 PR tree-optimization/34769
7081 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
7082 * tree.c (int_cst_value): Instead make this function more
7083 permissive in what it accepts as valid input. Document this
7084 function always sign-extends the value.
7086 2008-01-16 Jakub Jelinek <jakub@redhat.com>
7087 Richard Guenther <rguenther@suse.de>
7090 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
7091 (gimple_fold_indirect_ref_rhs): ... this.
7092 (gimple_fold_indirect_ref): New function with foldings
7093 that preserve lvalueness.
7094 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
7095 * tree-flow.h (gimple_fold_indirect_ref): Declare.
7096 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
7097 to fold an INDIRECT_REF, fall back to the old use of
7098 fold_indirect_ref_1.
7100 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
7102 * tree-data-ref.c (subscript_dependence_tester_1): Call
7103 free_conflict_function.
7104 (compute_self_dependence): Same.
7106 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
7109 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
7110 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
7112 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
7113 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
7114 for DWARF2_UNWIND_INFO targets.
7116 2008-01-16 Richard Guenther <rguenther@suse.de>
7119 * c-typeck.c (common_pointer_type): Do not merge inconsistent
7120 type qualifiers for function types.
7122 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
7124 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
7125 loop_iterator li from previous commit.
7127 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
7129 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
7131 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
7133 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
7134 (parallelize_loops): Don't parallelize irreducible components.
7136 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7139 * c-opts (c_common_post_options): Do not enable CPP
7140 flag_pedantic_errors by default.
7142 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7144 PR rtl-optimization/31944
7145 * cse.c (remove_pseudo_from_table): New function.
7146 (merge_equiv_classes): Use above function to remove pseudo-registers.
7147 (invalidate): Likewise.
7149 2008-01-13 Richard Guenther <rguenther@suse.de>
7152 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
7153 instead of TYPE_MODE to deal with calls from expand_one_error_var.
7155 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
7157 * gcse.c (cprop_jump): Call validate_unshare_change instead of
7158 validate_change to unshare the source of the PC set.
7160 2008-01-12 Jan Hubicka <jh@suse.cz>
7163 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
7164 references above array bounds. This might trigger bounds checks for
7167 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
7169 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
7170 new_replaceable_dependencies.
7172 2008-01-12 Doug Kwan <dougkwan@google.com>
7174 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
7175 instead of OPT_Wreturn_type in warning due to ignored return type
7177 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
7178 options included in -Wextra.
7179 * c.opt: New option -Wignored_qualifiers.
7180 * doc/invoke.texi (Warning Options, -Wextra): Add new option
7181 -Wignore_qualifiers.
7182 (-Wignored-qualifiers): Document.
7183 (-Wreturn-type): Remove description of functionality now handled
7184 by -Wignored-qualifiers.
7186 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7189 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
7190 NOP_EXPR if it is between integral types with the same precision.
7192 2008-01-12 Jan Hubicka <jh@suse.cz>
7195 * invoke.texi (max-inline-recursive-depth): Fix default value.
7197 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
7199 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
7202 2008-01-11 Bob Wilson <bob.wilson@acm.org>
7204 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
7206 2008-01-11 James E. Wilson <wilson@specifix.com>
7209 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
7211 2008-01-11 Anatoly Sokolov <aesok@post.ru>
7213 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
7214 save/restore frame pointer register and don't use 'call-prologues'
7215 optimization in function with "OS_task" attribute.
7217 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
7220 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
7221 when copying to memory.
7223 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
7225 PR rtl-optimization/30905
7226 * cfgcleanup.c: Include dce.h
7227 (crossjumps_occured): New global variable.
7228 (try_crossjump_bb): Exit loop after finding a fallthru edge.
7229 If something changed, set crossjumps_occured to true.
7230 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
7231 Don't add/remove fake edges to exit here...
7232 (cleanup_cfg): ...but do it here, when crossjumping.
7233 Run a fast DCE when successful crossjumps occured in the latest
7234 iteration of try_optimize_cfg.
7236 2008-01-11 Richard Guenther <rguenther@suse.de>
7238 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
7239 (struct vn_unary_op_s): Likewise.
7240 (vn_reference_insert): Free old reference on hash collision.
7242 2008-01-10 Raksit Ashok <raksit@google.com>
7244 PR rtl-optimization/27971
7245 * combine.c (find_split_point): Split PLUS expressions which are
7246 inside a MEM rtx, and whose first operand is complex.
7248 2008-01-10 DJ Delorie <dj@redhat.com>
7250 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
7251 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
7252 (m32c_hard_regno_ok): Call the underlying function.
7254 2008-01-10 Richard Guenther <rguenther@suse.de>
7257 * tree-cfg.c (tree_merge_blocks): Do not go through the
7258 full-blown folding and stmt updating path if we just deal
7259 with virtual operands.
7260 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
7261 test for abnormal SSA_NAMEs.
7263 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
7266 * reload.c (push_reload): Add assertions. All constants from
7267 reg_equiv_constant should have been used for replacing the respective
7269 (find_reloads_address): Invoke find_reloads_address_part for
7270 constant taken from the reg_equiv_constant array.
7272 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
7274 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
7275 field (valnum) the first in the struct. Replace bools with
7278 2008-01-10 Richard Guenther <rguenther@suse.de>
7280 PR tree-optimization/34651
7281 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
7282 types and ordering for masking and converting.
7284 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
7286 PR tree-optimization/34017
7287 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
7288 also for PHI_NODE expressions.
7290 2008-01-09 Jan Hubicka <jh@suse.cz>
7292 PR tree-optimization/34708
7293 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
7294 based on number of case labels.
7295 (init_inline_once): Remove switch_cost.
7296 * tree-inline.h (eni_weights_d): Remove switch_cost.
7298 2008-01-09 Richard Guenther <rguenther@suse.de>
7299 Andrew Pinski <andrew_pinski@playstation.sony.com>
7302 * gimplify.c (gimplify_cond_expr): Do not create an addressable
7303 temporary if an rvalue is ok or an lvalue is not required.
7305 2008-01-09 Richard Guenther <rguenther@suse.de>
7308 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
7311 2008-01-09 Richard Guenther <rguenther@suse.de>
7314 * tree.c (host_integerp): Check for sizetype only if the
7315 type is an integer type.
7317 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
7320 * opts.c (decode_options): Disable inlining of functions called
7321 once if not in unit-at-a-time mode.
7323 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
7325 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
7327 2008-01-08 Richard Guenther <rguenther@suse.de>
7330 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
7331 out early if the result will be unused.
7333 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
7338 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
7339 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7342 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
7344 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
7345 for vectorization tuned.
7347 2008-01-08 Richard Guenther <rguenther@suse.de>
7349 PR tree-optimization/34683
7350 * tree-ssa-operands.c (operand_build_cmp): Export.
7351 * tree-ssa-operands.h (operand_build_cmp): Declare.
7352 * tree-vn.c (vuses_compare): Remove.
7353 (sort_vuses): Use operand_build_cmp.
7354 (sort_vuses_heap): Likewise.
7355 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
7356 to re-use old VEC if available. Do not sort already sorted VUSEs.
7357 (vdefs_to_vec): Do not sort already sorted VDEFs.
7359 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7362 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
7364 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
7367 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
7368 limitations of reciprocal sequences on x86 targets.
7370 2008-01-08 Richard Guenther <rguenther@suse.de>
7372 PR tree-optimization/34683
7373 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
7375 2008-01-07 Jakub Jelinek <jakub@redhat.com>
7378 * config/darwin.c (darwin_mergeable_string_section): Don't use
7379 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
7381 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
7384 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
7385 negxf2. Macroize expander using X87MODEF mode iterator. Change
7386 predicates of op0 and op1 to register_operand.
7387 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
7388 expander using X87MODEF mode iterator. Change predicates of
7389 op0 and op1 to register_operand.
7390 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
7391 corresponding patterns and macroize using MODEF macro. Change
7392 predicates of op0 and op1 to register_operand and remove
7393 "m" constraint. Disparage "r" alternative with "!".
7394 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
7395 macroize using X87MODEF macro. Change predicates of op0 and op1
7396 to register_operand and remove "m" constraint. Disparage "r"
7397 alternative with "!".
7398 (absneg splitter with memory operands): Remove.
7399 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
7400 patterns and macroize using X87MODEF mode iterator.
7401 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
7402 Change predicate of op1 to register_operand.
7403 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
7404 for memory operands.
7406 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
7408 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
7410 2008-01-07 Richard Guenther <rguenther@suse.de>
7412 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
7415 2008-01-07 Richard Guenther <rguenther@suse.de>
7417 PR tree-optimization/34683
7418 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
7419 VOPs of the needed size to save memory. Use VEC_quick_push
7420 to save compile-time.
7421 (vdefs_to_vec): Likewise.
7423 2008-01-07 Sa Liu <saliu@de.ibm.com>
7425 * config/spu/spu.md (divdf3): Genetate inline code for double
7426 division. The implementation doesn't handle INF or NAN, therefore it
7427 only applies when -ffinite-math-only is given.
7429 2008-01-06 Paolo Carlini <pcarlini@suse.de>
7432 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
7433 * doc/cpp.texi ([Common Predefined Macros]): Document.
7435 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
7437 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
7438 order to use commutative addition instead of subtraction.
7440 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
7441 Mircea Namolaru <namolaru@il.ibm.com>
7442 Vladimir Yanovsky <yanov@il.ibm.com>
7443 Revital Eres <eres@il.ibm.com>
7445 PR tree-optimization/34263
7446 * tree-outof-ssa.c (process_single_block_loop_latch,
7447 contains_tree_r): New functions.
7448 (analyze_edges_for_bb): Call process_single_block_loop_latch
7449 function to empty single-basic-block latch block if possible.
7451 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
7453 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
7455 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
7457 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
7459 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
7461 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
7463 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
7465 2008-01-05 Jakub Jelinek <jakub@redhat.com>
7467 PR tree-optimization/34618
7468 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
7471 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
7474 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
7475 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
7476 Update copyright year.
7478 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
7479 Update copyright year.
7480 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
7483 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
7485 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
7486 edge does not point to current bb before changing need_assert.
7488 2008-01-04 Richard Guenther <rguenther@suse.de>
7491 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
7492 for verifying purposes if they are is_gimple_min_invariant.
7494 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
7496 PR tree-optimization/34448
7497 PR tree-optimization/34465
7498 * gimplify.c (gimplify_init_constructor): Add new parameter
7499 notify_temp_creation. Use it.
7500 (gimplify_modify_expr_rhs): Take volatiles into account when
7501 optimizing constructors.
7502 Do not optimize constructors if gimplify_init_constructor will dump to
7504 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
7505 * gcc.c-torture/compile/pr34448.c: New.
7507 2008-01-04 Jakub Jelinek <jakub@redhat.com>
7509 PR gcov-profile/34609
7510 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
7511 return_slot if result is TREE_ADDRESSABLE.
7513 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
7515 * config/mips/mips.md (sqrt_condition): Tweak comment.
7516 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
7518 2008-01-03 Tom Tromey <tromey@redhat.com>
7521 * c-common.c (c_type_hash): Handle VLAs.
7523 2008-01-03 Jan Hubicka <jh@suse.cz>
7525 PR tree-optimization/31081
7526 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
7527 0 when inlining and not inlining to first basic block.
7528 (remap_decl): When var is initialized to 0, don't set default_def.
7529 (expand_call_inline): Set entry_bb.
7530 * tree-inline.h (copy_body_data): Add entry_bb.
7532 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7535 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
7538 PR tree-optimization/29484
7539 * tree-inline.c (inline_forbidden_p_2): New function.
7540 (inline_forbidden_p): Disallow inlining if some static var
7541 has an address of a local LABEL_DECL in its initializer.
7542 * doc/extend.texi (Labels as Values): Document &&foo behaviour
7545 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
7547 PR tree-optimization/34635
7548 * tree-data-ref.c (add_other_self_distances): Make sure that the
7549 evolution step is constant.
7551 2008-01-03 Jakub Jelinek <jakub@redhat.com>
7554 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
7556 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
7558 * tree-sra.c (scalarize_init): Insert the generate_element_init
7559 statements after the generate_element_zero statements.
7561 2008-01-02 Richard Guenther <rguenther@suse.de>
7565 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
7566 for very large number of operands instead of ICEing.
7568 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
7571 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
7572 while stack probing.
7574 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
7576 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
7579 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
7582 * tree-mudflap.c (mx_register_decls): Guard warning by
7583 !DECL_ARTIFICIAL check.
7585 2008-01-01 Jakub Jelinek <jakub@redhat.com>
7587 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
7588 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
7589 sse5_perm<mode>): Fix constraints.