1 2010-06-10 Jan Hubicka <jh@suse.cz>
3 PR rtl-optimization/44460
4 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove TYPE_NEEDS_CONSTRUCTING
7 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9 * doc/include/fdl.texi: Move to GFDL version 1.3.
11 * doc/cpp.texi: Move to GFDL version 1.3.
12 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
13 * doc/gccint.texi: Move to GFDL version 1.3.
14 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
15 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
16 * doc/invoke.texi: Move to GFDL version 1.3.
18 2010-06-09 Jan Hubicka <jh@suse.cz>
20 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
22 (propagate) ... here; swap the order.
24 2010-06-09 Jan Hubicka <jh@suse.cz>
26 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
27 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
28 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
29 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
31 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
33 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
34 Do not the gather memory reference in the outer loop if the step
37 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
39 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
40 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
41 8 to 4. Minor change of the related comments.
43 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
45 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
46 the scev analysis when the variable is not used outside the loop
47 in a close phi node: call compute_overall_effect_of_inner_loop.
49 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
51 * graphite-sese-to-poly.c (single_pred_cond): Renamed
52 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
53 (build_sese_conditions_before): Renamed call to single_pred_cond.
54 (build_sese_conditions_after): Same.
56 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
58 * graphite-poly.h: Fix comments and indentation.
59 * graphite-sese-to-poly.c: Same.
60 (build_sese_conditions_before): Compute stmt and gbb only when needed.
61 * tree-chrec.c: Fix comments and indentation.
62 (tree-ssa-loop-niter.c): Same.
64 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
66 PR rtl-optimization/42461
67 * dce.c (deletable_insn_p): Return true for const or pure calls again.
68 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
70 2010-06-09 Jan Hubicka <jh@suse.cz>
72 * bitmap.c (bitmap_and): Walk array forward.
73 (bitmap_and_compl_into): Likewise.
74 (bitmap_xor): Likewise.
75 (bitmap_xor_into): Likewise.
76 (bitmap_equal_p): Likewise.
77 (bitmap_intersect_p): Likewise.
78 (bitmap_intersect_compl_p): Likewise.
79 (bitmap_ior_and_into): Likewise.
80 (bitmap_elt_copy): Likewise.
81 (bitmap_and_compl): Likewise.
82 (bitmap_elt_ior): Likewise.
84 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
86 * opts-common.c (prune_options): Ensure replacement argv array
87 is correctly terminated by a NULL entry.
89 2010-06-09 Jan Hubicka <jh@suse.cz>
91 * cgraph.h (varpool_first_static_initializer,
92 varpool_next_static_initializer): Make checking only when
94 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
95 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
96 gcc_assert to gcc_checking_assert.
97 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use, phi_nodes
98 set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
99 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
100 op_iter_init_phiuse, op_iter_init_phidef, array_ref_contains_indirect_ref,
101 ref_contains_array_ref): Use gcc_checking_assert.
102 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
103 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
104 partition_is_global, live_on_entry, live_on_exit,
105 live_merge_and_clear): Likewise.
106 * system.h (gcc_checking_assert): New macro.
107 * gimple.h (set_bb_seq): Use gcc_checking_assert.
109 2010-06-09 Jason Merrill <jason@redhat.com>
111 * Makefile.in (TAGS): Collect tags info from c-family.
113 2010-06-09 Jan Hubicka <jh@suse.cz>
115 * gimple.h (gcc_gimple_checking_assert): New macro.
116 (gimple_set_def_ops, gimple_set_use_ops,
117 gimple_set_vuse, gimple_set_vdef,
118 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
119 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
120 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
121 gimple_asm_output_op, gimple_asm_output_op_ptr,
122 gimple_asm_set_output_op, gimple_asm_clobber_op,
123 gimple_asm_set_clobber_op, gimple_asm_label_op,
124 gimple_asm_set_label_op, gimple_try_set_kind, gimple_try_catch_is_cleanup
125 gimple_try_set_catch_is_cleanup, gimple_phi_arg,
126 gimple_switch_num_labels, gimple_switch_set_index, gimple_switch_label,
127 gimple_switch_set_label, gimple_omp_for_index, gimple_omp_for_index_ptr,
128 gimple_omp_for_set_index, gimple_omp_for_initial, gimple_omp_for_initial_ptr,
129 gimple_omp_for_set_initial, gimple_omp_for_final, gimple_omp_for_final_ptr,
130 gimple_omp_for_set_final, gimple_omp_for_incr, gimple_omp_for_incr_ptr,
131 gimple_omp_for_set_incr, gimple_omp_for_set_cond, gimple_omp_for_cond): Make
132 checking conditional with ENABLE_GIMPLE_CHECKING.
133 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
135 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
137 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
138 (get_computation_cost_at): Use it.
139 (determine_use_iv_cost_condition): Likewise.
140 (determine_iv_cost): Likewise.
142 2010-06-09 Richard Guenther <rguenther@suse.de>
144 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
147 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
149 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
151 2010-06-09 Martin Jambor <mjambor@suse.cz>
153 PR tree-optimization/44423
154 * tree-sra.c (dump_access): Dump also grp_assignment_read.
155 (analyze_access_subtree): Pass negative allow_replacements to children
156 if the current type is scalar.
158 2010-06-09 Joern Rennecke <amylaar@spamcop.net>
161 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
162 * doc/plugins.texi (Plugin license check): Update information
163 on type of plugin_is_GPL_compatible.
164 * Makefile.in (PLUGINCC): Define as $(COMPILER).
165 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
167 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
169 * config/arm/arm.c (thumb2_reorg): New function.
170 (arm_reorg): Call it.
171 * config/arm/thumb2.md (define_peephole2 for flag clobbering
172 arithmetic operations): Delete.
174 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
177 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
180 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
183 * gcc-plugin.h: Encapsulate all declarations in extern "C".
185 2010-06-08 Jan Hubicka <jh@suse.cz>
187 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
188 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
190 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
192 PR tree-optimization/39874
194 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
196 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
197 same_bool_result_p): New.
198 (and_var_with_comparison, and_var_with_comparison_1,
199 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
200 (or_var_with_comparison, or_var_with_comparison_1,
201 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
202 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
203 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
204 of combine_comparisons.
205 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
207 2010-06-08 Anatoly Sokolov <aesok@post.ru>
209 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
210 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
211 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
212 pdp11_function_value_regno_p): New functions.
213 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
214 TARGET_FUNCTION_VALUE_REGNO_P): Define.
216 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
218 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
219 Thumb-2 in the MINUS case.
221 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
223 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
225 * doc/gty.texi (GTY Options): Document typed GC allocation and
226 variable_size GTY option.
228 * ggc-internal.h: New.
230 * ggc.h: Update copyright year.
231 (digit_string): Move to stringpool.c.
232 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
233 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
234 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
235 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
236 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
237 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
238 (ggc_force_collect, ggc_get_size, ggc_statistics)
239 (ggc_print_common_statistics): Move to ggc-internal.h.
240 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
241 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
242 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
243 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
244 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
245 (ggc_alloc_zone_pass_stat): Remove.
246 (ggc_internal_alloc_stat, ggc_internal_alloc)
247 (ggc_internal_cleared_alloc_stat): New.
248 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
249 (ggc_internal_vec_alloc_stat)
250 (ggc_internal_cleared_vec_alloc_stat)
251 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
252 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
253 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
254 (ggc_cleared_alloc_ptr_array_two_args): New.
255 (htab_create_ggc, splay_tree_new_ggc): Redefine.
256 (ggc_splay_alloc): Change the type of the first argument to
258 (ggc_alloc_string): Make macro.
259 (ggc_alloc_string_stat): New.
260 (ggc_strdup): Redefine.
261 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
262 (ggc_alloc_rtvec_sized): New.
263 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
264 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
265 (ggc_internal_cleared_alloc_zone_stat)
266 (ggc_internal_zone_alloc_stat)
267 (ggc_internal_zone_cleared_alloc_stat)
268 (ggc_internal_zone_vec_alloc_stat)
269 (ggc_alloc_zone_rtx_def_stat)
270 (ggc_alloc_zone_tree_node_stat)
271 (ggc_alloc_zone_cleared_tree_node_stat)
272 (ggc_alloc_cleared_gimple_statement_d_stat): New.
274 * ggc-common.c: Include ggc-internal.h.
275 (ggc_internal_cleared_alloc_stat): Rename from
276 ggc_alloc_cleared_stat.
277 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
278 (ggc_calloc): Remove.
279 (ggc_cleared_alloc_htab_ignore_args): New.
280 (ggc_cleared_alloc_ptr_array_two_args): New.
281 (ggc_splay_alloc): Add obj_type parameter.
282 (init_ggc_heuristics): Formatting fixes.
284 * ggc-none.c: Update copyright year.
285 (ggc_alloc_stat): Rename to ggc_alloc_stat.
286 (ggc_alloc_cleared_stat): Rename to
287 ggc_internal_cleared_alloc_stat.
288 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
290 * ggc-page.c: Update copyright year. Include ggc-internal.h.
291 Remove references to ggc_alloc in comments.
292 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
293 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
294 (new_ggc_zone, destroy_ggc_zone): Remove.
295 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
297 * ggc-zone.c: Include ggc-internal.h. Remove references to
298 ggc_alloc in comments.
299 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
300 (ggc_internal_alloc_zone_pass_stat): New.
301 (ggc_internal_cleared_alloc_zone_stat): New.
302 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
303 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
304 (new_ggc_zone, destroy_ggc_zone): Remove.
306 * stringpool.c: Update copyright year. Include ggc-internal.h
307 (digit_vector): Make static.
308 (digit_string): Moved from ggc.h.
309 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
310 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
312 * Makefile.in (GGC_INTERNAL_H): New.
313 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
314 $(GGC_INTERNAL_H) to dependencies.
316 * gentype.c: Update copyright year.
317 (walk_type): Accept variable_size GTY option.
318 (USED_BY_TYPED_GC_P): New macro.
319 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
320 whitespace at the end of strings.
321 (get_type_specifier, variable_size_p): New functions.
322 (alloc_quantity, alloc_zone): New enums.
323 (write_typed_alloc_def): New function.
324 (write_typed_struct_alloc_def): Likewise.
325 (write_typed_typed_typedef_alloc_def): Likewise.
326 (write_typed_alloc_defns): Likewise.
327 (output_typename, write_splay_tree_allocator_def): Likewise.
328 (write_splay_tree_allocators): Likewise.
329 (main): Call write_typed_alloc_defns and
330 write_splay_tree_allocators.
332 * lto-streamer.h (lto_file_decl_data_ptr): New.
334 * passes.c (order): Define using cgraph_node_ptr.
336 * strinpool.c (struct string_pool_data): Declare nested_ptr using
339 * gimple.h (union gimple_statement_d): Likewise.
341 * rtl.h (struct rtx_def): Likewise.
342 (struct rtvec_def): Likewise.
344 * tree.h (union tree_node): Likewise.
346 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
348 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
350 * tree-scalar-evolution.c (scev_initialize): Likewise.
352 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
354 * dwarf2asm.c (dw2_force_const_mem): Likewise.
356 * omp-low.c (lower_omp_critical): Likewise.
358 * bitmap.h (struct bitmap_head_def): Update comment to not
361 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
363 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
365 * ipa-prop.c (duplicate_ggc_array): Rename to
366 duplicate_ipa_jump_func_array. Use typed GC allocation.
367 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
369 * gimple.c (gimple_alloc_stat): Use
370 ggc_alloc_cleared_gimple_statement_d_stat.
372 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
374 * tree.c (make_node_stat): Use
375 ggc_alloc_zone_cleared_tree_node_stat.
376 (make_tree_vec_stat): Likewise.
377 (build_vl_exp_stat): Likewise.
378 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
379 (make_tree_binfo_stat): Likewise.
380 (tree_cons_stat): Likewise.
382 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
383 (shallow_copy_rtx_stat): Likewise.
384 (make_node_stat): Likewise.
386 * lto-symtab.c: Fix comment.
388 * tree-cfg.c (create_bb): Update comment to not reference
390 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is
393 * varpool.c (varpool_node): Use typed GC allocation.
394 (varpool_extra_name_alias): Likewise.
396 * varasm.c (emutls_decl): Likewise.
397 (get_unnamed_section): Likewise.
398 (get_noswitch_section): Likewise.
399 (get_section): Likewise.
400 (get_block_for_section): Likewise.
401 (build_constant_desc): Likewise.
402 (create_constant_pool): Likewise.
403 (force_const_mem): Likewise.
405 * tree.c (build_vl_exp_stat): Likewise.
406 (build_real): Likewise.
407 (build_string): Likewise.
408 (decl_debug_expr_insert): Likewise.
409 (decl_value_expr_insert): Likewise.
410 (type_hash_add): Likewise.
411 (build_omp_clause): Likewise.
413 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
415 * tree-ssa.c (init_tree_ssa): Likewise.
417 * tree-ssa-structalias.c (heapvar_insert): Likewise.
419 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
421 * tree-ssa-loop-niter.c (record_estimate): Likewise.
423 * tree-ssa-alias.c (get_ptr_info): Likewise.
425 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
427 * tree-phinodes.c (allocate_phi_node): Likewise.
429 * tree-iterator.c (tsi_link_before): Likewise.
430 (tsi_link_after): Likewise.
432 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
434 * tree-dfa.c (create_var_ann): Likewise.
436 * tree-cfg.c (create_bb): Likewise.
438 * toplev.c (alloc_for_identifier_to_locale): Likewise.
439 (general_init): Likewise.
441 * stringpool.c (stringpool_ggc_alloc): Likewise.
442 (gt_pch_save_stringpool): Likewise.
444 * sese.c (if_region_set_false_region): Likewise.
446 * passes.c (do_per_function_toporder): Likewise.
448 * optabs.c (set_optab_libfunc): Likewise.
449 (set_conv_libfunc): Likewise.
451 * lto-symtab.c (lto_symtab_register_decl): Likewise.
453 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
454 (input_eh_region): Likewise.
455 (input_eh_lp): Likewise.
456 (make_new_block): Likewise.
457 (unpack_ts_real_cst_value_fields): Likewise.
459 * lto-section-in.c (lto_new_in_decl_state): Likewise.
461 * lto-cgraph.c (input_node_opt_summary): Likewise.
463 * loop-init.c (loop_optimizer_init): Likewise.
465 * lambda.h (lambda_vector_new): Likewise.
467 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
469 * ira.c (update_equiv_regs): Likewise.
471 * ipa.c (cgraph_node_set_new): Likewise.
472 (cgraph_node_set_add): Likewise.
473 (varpool_node_set_new): Likewise.
474 (varpool_node_set_add): Likewise.
476 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
477 (duplicate_ipa_jump_func_array): Likewise.
478 (ipa_read_node_info): Likewise.
480 * ipa-cp.c (ipcp_create_replace_map): Likewise.
482 * integrate.c (get_hard_reg_initial_val): Likewise.
484 * gimple.c (gimple_alloc_stat): Likewise.
485 (gimple_build_omp_for): Likewise.
486 (gimple_seq_alloc): Likewise.
487 (gimple_copy): Likewise.
489 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
490 (gsi_insert_after_without_update): Likewise.
492 * function.c (add_frame_space): Likewise.
493 (insert_temp_slot_address): Likewise.
494 (assign_stack_temp_for_type): Likewise.
495 (allocate_struct_function): Likewise.
496 (types_used_by_var_decl_insert): Likewise.
498 * except.c (init_eh_for_function): Likewise.
499 (gen_eh_region): Likewise.
500 (gen_eh_region_catch): Likewise.
501 (gen_eh_landing_pad): Likewise.
502 (add_call_site): Likewise.
504 * emit-rtl.c (get_mem_attrs): Likewise.
505 (get_reg_attrs): Likewise.
506 (start_sequence): Likewise.
507 (init_emit): Likewise.
509 * dwarf2out.c (new_cfi): Likewise.
510 (queue_reg_save): Likewise.
511 (dwarf2out_frame_init): Likewise.
512 (new_loc_descr): Likewise.
513 (find_AT_string): Likewise.
515 (add_var_loc_to_decl): Likewise.
516 (clone_die): Likewise.
517 (clone_as_declaration): Likewise.
518 (break_out_comdat_types): Likewise.
519 (new_loc_list): Likewise.
520 (loc_descriptor): Likewise.
521 (add_loc_descr_to_each): Likewise.
522 (add_const_value_attribute): Likewise.
523 (tree_add_const_value_attribute): Likewise.
524 (add_comp_dir_attribute): Likewise.
525 (add_name_and_src_coords_attributes): Likewise.
526 (lookup_filename): Likewise.
527 (store_vcall_insn): Likewise.
528 (dwarf2out_init): Likewise.
530 * dbxout.c (dbxout_init): Likewise.
532 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
534 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
536 * config/score/score7.c (score7_output_external): Likewise.
538 * config/score/score3.c (score3_output_external): Likewise.
540 * config/s390/s390.c (s390_init_machine_status): Likewise.
542 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
543 (rs6000_init_machine_status): Likewise.
544 (output_toc): Likewise.
546 * config/pa/pa.c (pa_init_machine_status): Likewise.
547 (get_deferred_plabel): Likewise.
549 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
551 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
553 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
555 * config/mep/mep.c (mep_init_machine_status): Likewise.
556 (mep_note_pragma_flag): Likewise.
558 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
560 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
562 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
564 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
565 (i386_pe_maybe_record_exported_symbol): Likewise.
567 * config/i386/i386.c (get_dllimport_decl): Likewise.
568 (ix86_init_machine_status): Likewise.
569 (assign_386_stack_local): Likewise.
571 * config/frv/frv.c (frv_init_machine_status): Likewise.
573 * config/darwin.c (machopic_indirection_name): Likewise.
575 * config/cris/cris.c (cris_init_machine_status): Likewise.
577 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
579 * config/avr/avr.c (avr_init_machine_status): Likewise.
581 * config/arm/arm.c (arm_init_machine_status): Likewise.
583 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
584 (alpha_need_linkage): Likewise.
585 (alpha_use_linkage): Likewise.
587 * cgraph.c (cgraph_allocate_node): Likewise.
588 (cgraph_create_edge_1): Likewise.
589 (cgraph_create_indirect_edge): Likewise.
590 (cgraph_add_asm_node): Likewise.
592 * cfgrtl.c (init_rtl_bb_info): Likewise.
594 * cfgloop.c (alloc_loop): Likewise.
595 (rescan_loop_exit): Likewise.
597 * cfg.c (init_flow): Likewise.
598 (alloc_block): Likewise.
599 (unchecked_make_edge): Likewise.
601 * c-parser.c (c_parse_init): Likewise.
602 (c_parse_file): Likewise.
604 * c-decl.c (bind): Likewise.
605 (record_inline_static): Likewise.
606 (push_scope): Likewise.
607 (make_label): Likewise.
608 (lookup_label_for_goto): Likewise.
609 (finish_struct): Likewise.
610 (finish_enum): Likewise.
611 (c_push_function_context): Likewise.
613 * bitmap.c (bitmap_element_allocate): Likewise.
614 (bitmap_gc_alloc_stat): Likewise.
616 * alias.c (record_alias_subset): Likewise.
617 (init_alias_analysis): Likewise.
619 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
621 * fold-const.c (fold_comparison): Remove redundant parenthesis.
622 * tree-inline.c (expand_call_inline): Pass translated return value of
623 cgraph_inline_failed_string to diagnostic function.
625 2010-06-08 Andrew Pinski <pinskia@gmail.com>
626 Shujing Zhao <pearly.zhao@oracle.com>
629 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
630 implicit bad conversions is initialization.
631 (error_init): Use gmsgid instead of msgid for argument name and change
633 (pedwarn_init): Use gmsgid instead of msgid for argument name and
634 change the call for pedwarn.
635 (warning_init): Use gmsgid instead of msgid for argument name and
636 change the call for warning.
638 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
640 * config/mips/mips-protos.h (mips_print_operand): Delete.
641 (mips_print_operand_address): Delete.
642 * config/mips/mips.h (mips_print_operand_punct): Delete.
643 (PRINT_OPERAND): Delete.
644 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
645 (PRINT_OPERAND_ADDRESS): Delete.
646 * config/mips/mips.c (mips_print_operand_punct): Make static.
647 (mips_print_operand_address): Make static.
648 (mips_print_operand): Make static. Call
649 mips_print_operand_punct_valid_p.
650 (mips_print_operand_punct_valid_p): New function.
651 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
652 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
654 2010-06-07 Jan Hubicka <jh@suse.cz>
657 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
660 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
662 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
665 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
667 * doc/sourcebuild.texi (Effective-Target Keywords, Other
668 attributes): Document gas.
670 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
672 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
673 <TYPE_LEA>: Split instruction.
674 <default>: Remove alternative 2 handling.
675 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
676 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
677 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
679 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
680 (ashift_zext lea splitter): Use DImode for multiplication.
682 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
683 to generate addition.
685 2010-06-07 Joseph Myers <joseph@codesourcery.com>
687 * common.opt (fira-verbose): Use Var.
688 (fpcc-struct-return): Use Init instead of VarExists.
689 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
691 * flags.h (flag_signed_char, flag_short_enums,
692 flag_pcc_struct_return, flag_ira_verbose,
693 flag_detailed_statistics, flag_remove_unreachable_functions):
695 * toplev.c (flag_detailed_statistics, flag_signed_char,
696 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
697 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
698 * toplev.h (flag_crossjumping, flag_if_conversion,
699 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
700 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
701 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
702 flag_cprop_registers, time_report, flag_ira_loop_pressure,
703 flag_ira_coalesce, flag_ira_move_spills,
704 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
706 2010-06-07 Jan Hubicka <jh@suse.cz>
708 * df-core.c (df_analyze_problem): Do verification after allocation.
710 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
711 (df_lr_alloc): Initialize problem data; move bitmaps to
713 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
714 (df_lr_verify_solution_start): Do not initialize problem data;
715 allocate bitmaps in lr_bitmaps.
716 (df_lr_verify_solution_end): Do not free problem data.
718 2010-06-07 Jan Hubicka <jh@suse.cz>
720 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
721 if caller is noreturn.
722 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
723 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
724 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
725 * ipa-pure-const.c (check_decl): Add IPA parameter.
726 (state_from_flags): New function.
727 (better_state, worse_state): New functions.
728 (check_call): When in IPA mode, do not care about callees.
729 (check_load, check_store): Update.
730 (check_ipa_load, check_ipa_store): New.
731 (check_stmt): When in IPA mode, use IPA checkers.
732 (analyze_function): Use state_from_flags.
733 (propagate): Check indirect edges and references.
735 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
737 PR rtl-optimization/44404
738 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
739 of count_occurrences to see if it's safe to modify mem_insn.insn.
741 2010-06-07 Richard Guenther <rguenther@suse.de>
743 * gimplify.c (gimplify_cleanup_point_expr): For empty body
744 and EH-only cleanup drop the cleanup instead of inserting it
747 2010-06-07 Ira Rosen <irar@il.ibm.com>
749 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
751 * targhooks.c (default_builtin_vectorization_cost): New function.
752 * targhooks.h (default_builtin_vectorization_cost): Declare.
753 * target.h (enum vect_cost_for_stmt): Define.
754 (builtin_vectorization_cost): Change argument and comment.
755 * tree-vectorizer.h: Remove cost model macros.
756 * tree-vect-loop.c: Include target.h.
757 (vect_get_cost): New function.
758 (vect_estimate_min_profitable_iters): Replace cost model macros with
759 calls to vect_get_cost.
760 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
761 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
762 default implementation.
763 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
764 calls to target hook builtin_vectorization_cost.
765 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
767 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
768 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
769 implementation to return costs.
770 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
771 * config/spu/spu.h: Remove vectorizer cost model macros.
772 * config/i386/i386.h: Likewise.
773 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
774 a call to target hook builtin_vectorization_cost.
776 2010-06-06 Sriraman Tallam <tmsriram@google.com>
779 * config/i386/i386.c (override_options): Turn zee pass on for level 2
780 and above and defer till target is known.
781 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
784 2010-05-25 Jan Hubicka <jh@suse.cz>
786 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
787 (df_compact_blocks): Likewise.
788 * df.h (struct df): Turn hardware_regs_used,
789 regular_block_artificial_uses, eh_block_artificial_uses,
790 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
792 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
793 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
794 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
795 df_scan_blocks, df_insn_delete, df_insn_rescan,
796 df_insn_rescan_debug_internal, df_insn_rescan_all,
797 df_process_deferred_rescans, df_process_deferred_rescans,
798 df_notes_rescan, df_get_call_refs, df_get_call_refs,
799 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
800 df_record_entry_block_defs, df_record_exit_block_uses,
801 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
802 df_scan_verify): Update.
804 2010-05-25 Dodji Seketeli <dodji@redhat.com>
807 * c-common.c (is_typedef_decl): Move this definition ...
808 * tree.c (is_typedef_decl): ... here.
809 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
810 * c-common.h (is_typedef_decl): Move this declaration ...
811 * tree.h (is_typedef_decl): ... here.
812 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
813 * dwarf2out.c (is_naming_typedef_decl): New function.
814 (gen_tagged_type_die): Split out of ...
815 (gen_type_die_with_usage): ... this function. When an anonymous
816 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
817 is emitted for the typedef.
818 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
819 anonymous tagged types.
821 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
824 * c-decl.c (grokdeclarator): Delete warning.
826 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
828 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
829 newly built CALL_EXPR.
830 * tree-profile.c (tree_profiling): Don't profile functions produced
833 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
837 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
838 endianness-independent.
840 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
842 * c-common.c: Move to c-family/.
843 * c-common.def: Likewise.
844 * c-common.h: Likewise.
845 * c-cppbuiltin.c: Likewise.
846 * c-dump.c: Likewise.
847 * c-format.c: Likewise.
848 * c-format.h : Likewise.
849 * c-gimplify.c: Likewise.
853 * c-opts.c: Likewise.
855 * c-ppoutput.c: Likewise.
856 * c-pragma.c: Likewise.
857 * c-pragma.h: Likewise.
858 * c-pretty-print.c: Likewise.
859 * c-pretty-print.h: Likewise.
860 * c-semantics.c: Likewise.
861 * stub-objc.c: Likewise.
863 * gengtype.c (get_file_langdir): Special-case files in c-family/.
864 (get_output_file_with_visibility): Fix name for c-common.h.
865 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
867 * c-tree.h: Update include path for moved files.
868 * c-lang.c: Likewise.
869 * c-lang.h: Likewise.
870 * c-parser.c: Likewise.
871 * c-convert.c: Likewise.
872 * c-decl.c: Likewise.
873 * c-objc-common.c: Likewise.
874 * configure.ac: Make sure c-family/ exists in the build directory.
875 * configure: Regenerate.
876 * Makefile.in: Update paths for moved files. Regroup files per
877 location and update dependencies. Move generated_files down after
880 * config/spu/spu-c.c: Update paths for moved files.
881 * config/mep/mep-pragma.c: Likewise.
882 * config/darwin-c.c: Likewise.
883 * config/i386/msformat-c.c: Likewise.
884 * config/i386/i386-c.c: Likewise.
885 * config/avr/avr-c.c: Likewise.
886 * config/sol2-c.c: Likewise.
887 * config/ia64/ia64-c.c: Likewise.
888 * config/rs6000/rs6000-c.c: Likewise.
889 * config/arm/arm.c: Likewise.
890 * config/arm/arm-c.c: Likewise.
891 * config/h8300/h8300.c: Likewise.
892 * config/v850/v850-c.c: Likewise.
894 * config/t-darwin: Fix dependencies for moved files.
895 * config/t-sol2: Fix dependencies for moved files.
896 * config/mep/t-mep: Fix dependencies for moved files.
897 * config/ia64/t-ia64: Fix dependencies for moved files.
898 * config/rs6000/t-rs6000: Fix dependencies for moved files.
899 * config/v850/t-v850: Fix dependencies for moved files.
900 * config/v850/t-v850e: Fix dependencies for moved files.
902 * config/m32c/m32c-pragma.c
904 * po/exgettext: Look in c-family/ also.
906 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
908 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
909 (mark_control_dependent_edges_necessary): Call it instead of marking
910 the last statement manually.
911 (propagate_necessity): Likewise.
913 2010-06-05 Jan Hubicka <jh@suse.cz>
915 * basic-block.h (compute_dominance_frontiers): Updated.
916 (compute_idf): Likewise.
918 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
919 for dominance frontiers.
920 (rewrite_into_ssa): Update for bitmap heads in dominance
922 (insert_updated_phi_nodes_for): Likewise.
923 (update_ssa): Likewise.
924 * cfganal.c (compute_dominance_frontiers_1): Likewise.
925 (compute_dominance_frontiers): Likewise.
926 (compute_idf): Likewise.
927 * df-problems.c (df_md_local_compute): Likewise.
929 2010-06-05 Anatoly Sokolov <aesok@post.ru>
931 * target.h (struct gcc_target): Add memory_move_cost field.
932 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
933 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
934 * targhooks.c (default_memory_move_cost): New function.
935 * targhooks.h (default_memory_move_cost): Declare function.
936 * reload.h (memory_move_cost): Declare.
937 (memory_move_secondary_cost): Change type of 'in' argument to bool.
938 * reginfo.c (memory_move_cost): New function.
939 (memory_move_secondary_cost): Change type of 'in' argument to bool.
940 * ira.h (ira_memory_move_cost): Update comment.
941 * ira.c: (ira_memory_move_cost): Update comment.
942 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
943 with memory_move_cost.
944 * postreload.c (reload_cse_simplify_set): (Ditto.).
945 * reload1.c (choose_reload_regs): (Ditto.).
946 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
947 (MEMORY_MOVE_COST): Revise documentation.
949 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
950 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
951 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
952 type of 'in' argument to bool.
953 (TARGET_MEMORY_MOVE_COST): Define.
955 2010-06-05 Jan Hubicka <jh@suse.cz>
957 * ipa-pure-const.c (propagate): Fix typo in handling of functions
958 that cannot return. Be more careful when merging the results with
959 previously known ones.
961 2010-06-05 Matthias Klose <doko@ubuntu.com>
963 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
964 function to add the -iplugindir option.
965 (find_plugindir_spec_function): Add new declaration and function.
966 (static_spec_func): Use it for "find-plugindir".
968 2010-06-05 Jakub Jelinek <jakub@redhat.com>
971 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
972 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
973 statement expression.
975 2010-06-05 Jan Hubicka <jh@suse.cz>
977 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
978 (df_rd_problem_data): Convert sparse_invalidated_by_call,
979 dense_invalidated_by_call to bitmap head.
980 (df_rd_alloc, df_rd_bb_local_compute_process_def,
981 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
982 df_rd_start_dump, df_lr_verify_transfer_functions,
983 df_live_verify_transfer_functions, df_chain_create_bb,
984 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
985 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
986 df_simulate_one_insn_forwards, df_md_alloc,
987 df_md_bb_local_compute_process_def,
988 df_md_bb_local_compute_process_def, df_md_local_compute,
989 df_md_transfer_function df_md_free): Update.
991 2010-06-05 Joseph Myers <joseph@codesourcery.com>
994 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
995 target type for ADDR_EXPR; require no changes to qualifiers except
997 * c-tree.h (c_build_type_variant): Remove.
999 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1001 * genautomata.c (get_excl_set): Do work per element, not per char.
1002 (check_presence_pattern_sets): Similar.
1003 (check_absence_pattern_sets): Similar.
1005 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1007 * genautomata.c (curr_state_pass_num): Delete.
1008 (min_issue_delay_pass_states): Delete.
1009 (min_issue_delay): Delete.
1010 (initiate_min_issue_delay_pass_states): Delete.
1011 (output_min_issue_delay_table): Compute min_issue_delay_vect
1012 using a breadth-first search variant.
1013 (output_tables): Don't call initiate_min_issue_delay_pass_states.
1015 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
1018 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
1019 (df_byte_lr_bb_local_compute): Likewise.
1021 2010-06-03 Jason Merrill <jason@redhat.com>
1023 Implement noexcept operator (5.3.7)
1024 * c-common.c (c_common_reswords): Add noexcept.
1025 * c-common.h (enum rid): Add RID_NOEXCEPT.
1027 2010-06-04 Joseph Myers <joseph@codesourcery.com>
1029 * config/darwin-driver.c (darwin_default_min_version): Use
1030 GCC-specific formats in diagnostics.
1031 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
1033 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
1034 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
1035 eval_spec_function, handle_braces, process_brace_body, main,
1036 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
1037 getenv_spec_function, compare_version_strings,
1038 version_compare_spec_function): Use GCC-specific formats in
1041 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1043 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
1044 that operand 0 and operand 1 are equal.
1045 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
1046 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
1047 and operand 1 are equal.
1048 <default>: Ditto. Remove ??? comment.
1049 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
1050 and operand 1 are equal.
1051 <default>: Ditto. Remove ??? comment.
1052 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
1054 (*add<mode>_4) <default>: Ditto.
1055 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
1057 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
1059 * config/i386/i386-protos.h (ix86_print_operand): Declare.
1060 * config/i386/i386.c (ix86_print_operand): Make non-static.
1061 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
1062 * output.h (output_operand): Declare.
1063 * final.c (output_operand): Make non-static.
1065 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
1067 PR rtl-optimization/44013
1068 * sched-deps.c (add_dependence_list_and_free): Don't free lists
1069 when processing debug insns.
1072 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
1073 recursing. Check that recursion is bounded. Rename inner var
1074 to avoid hiding incoming argument.
1076 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1078 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
1083 (*addqi_ext_1_rex64): Ditto.
1084 (*addqi_ext_1): Ditto.
1086 (*addqi_4): Check for incdec_operand in QImode.
1088 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
1089 using SWI mode iterator.
1090 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
1091 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
1093 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
1094 using SWI mode iterator.
1096 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1099 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
1100 * c-format.c (gcc_diag_flag_specs): Add hash.
1101 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
1102 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
1103 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
1104 pp_c_cv_qualifiers. Handle qualifiers spelling here.
1105 (pp_c_type_qualifier_list): Call the function above.
1106 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
1107 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
1108 (WARN_FOR_QUALIFIERS): New macro.
1109 (convert_for_assignment): Use it.
1111 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
1113 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
1115 2010-06-04 Jan Hubicka <jh@suse.cz>
1117 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
1118 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
1119 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
1120 DF_BYTE_LR_OUT): Update for embedded bitmaps.
1121 * fwprop.c (single_def_use_enter_block): Likewise.
1122 * ddg.c (create_ddg_dep_from_intra_loop_link,
1123 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
1124 * loop-iv.c (latch_dominating_def): Likewise.
1125 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
1126 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
1127 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
1128 df_rd_transfer_function, df_rd_top_dump,
1129 df_rd_bottom_dump): Update.
1130 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
1131 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
1132 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
1133 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
1134 df_lr_verify_solution_start, df_lr_verify_solution_end,
1135 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
1136 df_live_free_bb_info, df_live_alloc, df_live_reset,
1137 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
1138 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
1139 df_live_verify_solution_start, df_live_verify_solution_end,
1140 df_live_verify_transfer_functions, df_chain_create_bb,
1141 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
1142 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1143 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1144 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
1145 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
1146 df_byte_lr_transfer_function, df_byte_lr_top_dump,
1147 df_byte_lr_bottom_dump, df_create_unused_note,
1148 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
1149 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
1150 df_md_transfer_function, df_md_init, df_md_confluence_0,
1152 df_md_top_dump, df_md_bottom_dump): Update.
1153 (struct df_lr_problem_data): Embedd bitmap headers.
1155 2010-06-04 Jan Hubicka <jh@suse.cz>
1157 * dce.c (dce_process_block): Do not re-scan already marked
1160 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
1162 PR rtl-optimization/39871
1163 PR rtl-optimization/40615
1164 PR rtl-optimization/42500
1165 PR rtl-optimization/42502
1166 * ira.c (init_reg_equiv_memory_loc: New function.
1167 (ira): Call it twice.
1168 * reload.h (calculate_elim_costs_all_insns): Declare.
1169 * ira-costs.c: Include "reload.h".
1170 (regno_equiv_gains): New static variable.
1171 (init_costs): Allocate it.
1172 (finish_costs): Free it.
1173 (ira_costs): Call calculate_elim_costs_all_insns.
1174 (find_costs_and_classes): Take estimated elimination costs
1176 (ira_adjust_equiv_reg_cost): New function.
1177 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
1178 * reload1.c (init_eliminable_invariants, free_reg_equiv,
1179 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
1180 (elim_bb): New static variable.
1181 (reload): Move code out of here into init_eliminable_invariants and
1182 free_reg_equiv. Call them.
1183 (calculate_elim_costs_all_insns): New function.
1184 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
1185 all callers changed. If FOR_COSTS is true, don't call alter_reg,
1186 but call note_reg_elim_costly if we turned a valid memory address
1187 into an invalid one.
1188 * Makefile.in (ira-costs.o): Depend on reload.h.
1190 2010-06-04 Julian Brown <julian@codesourcery.com>
1192 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
1195 2010-06-04 Richard Guenther <rguenther@suse.de>
1198 * cgraph.h (struct varpool_node): Add lto_file_data field.
1199 * lto-cgraph.c (input_varpool_node): Initialize it.
1201 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1203 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
1204 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
1205 predicate in "type" attribute calculation.
1206 (*addsi_1_zext): Ditto.
1207 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
1208 (*addsi_2_zext): Ditto.
1209 (*add<mode>_3): Ditto.
1210 (*addsi_3_zext): Ditto.
1211 (*add<mode>_5): Ditto.
1213 2010-06-03 Jan Hubicka <jh@suse.cz>
1215 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
1217 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1219 2010-06-03 Jan Hubicka <jh@suse.cz>
1221 * df-problems.c (df_create_unused_note, df_note_bb_compute):
1222 micro-optimize the checks when to add new note.
1224 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
1226 * final.c (output_asm_insn): Call
1227 targetm.asm_out.print_operand_punct_valid_p. Update comments.
1228 (output_operand): Call targetm.asm_out.print_operand. Update comments.
1229 (output_address): Call targetm.asm_out.print_operand_address.
1231 * target.h (struct gcc_target): Add print_operand,
1232 print_operand_address, and print_operand_punct_valid_p fields.
1233 * targhooks.h (default_print_operand): Declare.
1234 (default_print_operand_address): Declare.
1235 (default_print_operand_punct_valid_p): Declare.
1236 * targhooks.c (default_print_operand): Define.
1237 (default_print_operand_address): Define.
1238 (default_print_operand_punct_valid_p): Define.
1239 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
1240 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
1241 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1242 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
1243 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
1244 * vmsdbgout.c (addr_const_to_string): Update comment.
1245 * config/i386/i386.c (print_operand): Rename to...
1246 (ix86_print_operand): ...this. Make static.
1247 (print_operand_address): Rename to...
1248 (ix86_print_operand_address): ...this. Make static. Call
1249 ix86_print_operand instead of PRINT_OPERAND.
1250 (ix86_print_operand_punct_valid_p): New function.
1251 (TARGET_PRINT_OPERAND): Define.
1252 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1253 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1254 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
1255 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1256 (PRINT_OPERAND): Delete.
1257 (PRINT_OPERAND_ADDRESS): Delete.
1258 * config/i386/i386-protos.h (print_operand): Delete prototype.
1259 (print_operand_address): Delete prototype.
1261 2010-06-03 Richard Guenther <rguenther@suse.de>
1263 PR tree-optimization/44403
1264 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1265 Preserve pointer qualifiers.
1266 (vect_create_data_ref_ptr): Likewise.
1268 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
1271 * defaults.h (MAX_FIXED_MODE_SIZE): New.
1273 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
1275 2010-06-03 Jakub Jelinek <jakub@redhat.com>
1278 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
1279 return false if merging the bbs would lead to goto_locus
1280 location being lost from the IL.
1282 2010-06-03 Jan Hubicka <jh@suse.cz>
1283 Jakub Jelinek <jakub@redhat.com>
1285 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
1286 set->regs[i] is NULL or has just one entry.
1288 2010-06-03 Jan Hubicka <jh@suse.cz>
1290 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
1291 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
1293 2010-06-03 Paul Brook <paul@codesourcery.com>
1295 * config/arm/arm.c (FL_TUNE): Define.
1296 (arm_default_cpu, arm_cpu_select): Remove.
1297 (all_cores): Populate core field.
1298 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
1299 (arm_find_cpu): New function.
1300 (arm_handle_option): Lookup cpu/architecture names.
1301 (arm_override_options): Cleanup mcpu/march/mtune handling.
1302 (arm_file_start): Ditto.
1304 2010-06-03 Alan Modra <amodra@gmail.com>
1307 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
1308 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
1309 rtx to gen_load_toc_v4_PIC_1b. Tidy.
1310 (rs6000_emit_load_toc_table): Likewise.
1312 2010-06-02 Jan Hubicka <jh@suse.cz>
1314 * passes.c (init_optimization_passes): Put ipa reference
1315 after ipa pure-const.
1317 2010-06-02 Jan Hubicka <jh@suse.cz>
1319 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
1320 calls_read_all and calls_write_all.
1321 (get_reference_optimization_summary): Fix formatting.
1322 (is_proper_for_analysis): Check that decl is not readonly.
1323 (propagate_bits): Check CONST/PURE/noreturn flags.
1324 (ipa_init): Move all_module_statics to optimization_summary_obstack.
1325 (analyze_function): Ignore indirect edges.
1326 (copy_global_bitmap): For all module statics, do nothing.
1327 (generate_summary): Do not print calls_read_all/calls_write_all.
1328 (read_write_all_from_decl): Take node as argument; check
1329 cgraph_node_cannot_return.
1330 (propagate): Reorganize read_all/write_all computation;
1331 check indirect edges; check ecf flags; use all_module_statics
1332 in the results; do not free all_module_statics.
1333 (stream_out_bitmap): Handle all_module_statics.
1334 (ipa_reference_write_optimization_summary): Likewise; use
1335 varpool/cgraph encoders to get boundaries.
1336 (ipa_reference_read_optimization_summary): Read in all_module_statics;
1337 use it when possible.
1339 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1342 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
1343 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
1345 * doc/extend.texi (powerpc builtins): Document vec_recip,
1346 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
1348 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
1349 (rs6000_emit_swrsqrt): Ditto.
1350 (rs6000_emit_swdivsf): Delete.
1351 (rs6000_emit_swdivdf): Ditto.
1352 (rs6000_emit_swrsqrtsf): Ditto.
1354 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
1355 describe the reciprocal estimate support for each type.
1356 (recip_options): Map -mrecip=<opt> into option bits.
1357 (gen_2arg_fn_t): New typedef for binary rtx gen function.
1358 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
1359 reciprocal estimate instructions.
1360 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
1361 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
1362 Set up rs6000_recip_bits based on the -mrecip* options. Print the
1363 cost information if -mdebug=cost or -mdebug=reg.
1364 (rs6000_override_options): Set -mrecip-precision for power6, and
1365 power7 machines. If -mvsx or -mdfp, enable various options that
1366 came in previous instruction set ISAs, unless the option was
1367 explicitly disabled by the command line option. Parse
1368 -mrecip=<opt> options.
1369 (rs6000_builtin_vectorized_function): Add support for vectorizing
1370 the reciprocal estimate builtins and expansions.
1371 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
1372 (bdesc_2arg): Add reciprocal estimate builtins.
1373 (bdesc_1arg): Add reciprocal square root estimate builtins.
1374 (rs6000_expand_builtin): Rewrite to use a switch statement,
1375 instead of multiple if/then/elses. Add reciprocal estimate builtins.
1376 (rs6000_init_builtins): Create declarations for reciprocal
1378 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
1379 sized, prefer traditional floating point registers, if integer
1380 vector types, prefer altivec registers. Don't actually look at
1381 the memory address any more.
1382 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
1384 (rs6000_load_constant_and_splat): New helper function to load up
1385 the constant for reciprocal estimate instructions.
1386 (rs6000_emit_madd): New helper function for generating
1387 multiply/add type instructions, based on the current switches.
1388 (rs6000_emit_msub): Ditto.
1389 (rs6000_emit_mnsub): Ditto.
1390 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
1391 replace a divide with a reciprocal estimate and fixup, adding
1392 support for machines with high precision and vectors.
1393 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
1394 low precision machines.
1395 (rs6000_emit_swdiv): New common function to be called to replace a
1396 division with reciprocal estimate and fixup.
1397 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
1398 for double and vector types. Add support for high precision machines.
1400 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
1401 the reciprocal estimate instructions can be generated.
1402 (TARGET_FRE): Ditto.
1403 (TARGET_FRSQRTES): Ditto.
1404 (TARGET_FRSQRTE): Ditto.
1405 (RS6000_RECIP_*): New macros for reciprocal estimate support.
1407 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
1408 square root estimate on vectors.
1409 (re<mode>2): New insn for reciprocal division estimate on vectors.
1411 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
1413 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
1414 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
1415 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
1416 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
1417 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
1418 (RS6000_BUILTIN_RSQRT): Ditto.
1419 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
1420 floating point builtin.
1422 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1423 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
1424 __RECIP_PRECISION__ based on the command line switches.
1425 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
1427 * config/rs6000/rs6000.opt (-mrecip): Document add support for
1428 replacing division instructions with reciprocal estimate and fixup.
1429 (-mrecip=<opt>): New option.
1430 (-mrecip-precision): Ditto.
1432 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
1433 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
1434 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
1437 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
1438 (UNSPEC_VREFP): Ditto.
1439 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
1440 conterparts with regard to support of -mno-fused-madd and -ffast-math.
1441 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
1442 reciprocal estimate instructions to be generated.
1443 (altivec_vrefp): Ditto.
1445 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
1447 (rreg): New mode attribute for reciprocal estimate support.
1448 (recip<mode>3): New insn for division using reciprocal estimate
1450 (divide define_split): New define_split to convert floating point
1451 division to use reciprocal estimate if the user used the
1452 appropriate options and the split is run when we can add new
1453 pseudo registers for the fixup.
1454 (rsqrt<mode>2): New insn for reciprocal square root support.
1455 (recipsf3): Move into recip<mode>3.
1457 (fres): Use TARGET_FRES.
1458 (rsqrtsf2): Move into rsqrt<mode>2.
1459 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
1460 (copysignsf3): Add support for VSX.
1461 (fred): Use TARGET_FRE.
1463 (rsqrtdf_internal1): New function for frsqrte instruciton.
1465 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
1468 2010-06-03 Richard Guenther <rguenther@suse.de>
1471 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
1472 (set_user_assembler_libfunc): Likewise.
1474 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
1476 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
1478 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
1480 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
1481 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
1482 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
1483 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
1484 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
1485 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
1486 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
1487 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
1488 * defaults.h: Updated for above mentioned changes.
1490 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
1492 * c-common.c: Remove header include of tm_p.h.
1493 * Makefile.in (c-common.o): Remove TM_P_H dependency.
1495 2010-06-02 Jakub Jelinek <jakub@redhat.com>
1497 * tree.h (struct tree_decl_map): New type.
1498 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
1499 (tree_decl_map_hash): New prototype.
1500 (debug_expr_for_decl, value_expr_for_decl): Change into
1501 tree_decl_map hashtab from tree_map.
1502 (init_ttree): Adjust initialization.
1503 (tree_decl_map_hash): New function.
1504 (decl_debug_expr_lookup, decl_debug_expr_insert,
1505 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
1507 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1509 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
1511 * configure: Regenerate.
1512 * config.in: Regenerate.
1514 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
1515 (X86_64_EMULATION): Define.
1516 (TARGET_LD_EMULATION): Use them.
1518 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
1519 (SPARC64_EMULATION): Define.
1520 (LINK_ARCH_SPEC): Use them.
1522 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
1524 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
1525 smallest_mode_for_size for computing the precision types of new
1526 graphite IVs. Do not call lang_hooks.types.type_for_size.
1528 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
1530 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
1532 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
1534 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
1537 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
1538 return false instead.
1540 2010-06-02 Jan Hubicka <jh@suse.cz>
1543 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
1544 create new cgraph node to check callee.
1546 2010-06-02 Richard Guenther <rguenther@suse.de>
1548 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
1550 2010-06-02 Richard Guenther <rguenther@suse.de>
1552 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
1553 (lto_wrapper_cleanup): ... this. Do not exit.
1554 (fatal): Adjust. Exit here.
1555 (fatal_perror): Likewise.
1556 (fatal_signal): New function.
1557 (main): Set up signal handlers to cleanup temporary files.
1558 * Makefile.in (lto-wrapper.o): Adjust dependencies.
1560 2010-06-02 Richard Guenther <rguenther@suse.de>
1562 PR tree-optimization/44377
1563 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
1565 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1567 * config/s390/2097.md (z10_fhex): Remove insn reservation.
1568 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
1569 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
1570 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
1572 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
1574 2010-06-02 Jan Hubicka <jh@suse.cz>
1576 * bitmap.c (bitmap_descriptor): Add search_iter.
1577 (bitmap_find_bit): Increment it.
1578 (print_statistics): Print it.
1580 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
1582 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
1583 instead of gimple_build_call_vec. Delete unnecessary local variable.
1585 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
1587 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
1588 change from yesterday.
1590 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
1592 * c-ada-spec.c: Clean up redundant includes.
1594 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
1596 * gimplify.c: Do not include except.h and optabs.h.
1597 (gimplify_body): Do not initialize RTL profiling.
1598 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
1599 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
1600 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
1601 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
1604 * tree-pretty-print.h: Include pretty-print.h.
1605 * gimple-pretty-print.h: Include pretty-print.h.
1607 * tree-pretty-print.c: Do not include diagnostic.h.
1608 * tree-vrp.c: Likewise.
1609 * tree-tailcall.c: Likewise
1610 * tree-scalar-evolution.c: Likewise
1611 * tree-ssa-dse.c: Likewise
1612 * tree-chrec.c: Likewise
1613 * tree-ssa-sccvn.c: Likewise
1614 * tree-ssa-copyrename.c: Likewise
1615 * tree-nomudflap.c: Likewise
1616 * tree-call-cdce.c: Likewise
1617 * tree-stdarg.c: Likewise
1618 * tree-ssa-math-opts.c: Likewise
1619 * tree-nrv.c: Likewise
1620 * tree-ssa-sink.c: Likewise
1621 * tree-browser.c: Likewise
1622 * tree-ssa-loop-ivcanon.c: Likewise
1623 * tree-ssa-loop.c: Likewise
1624 * tree-parloops.c: Likewise
1625 * tree-ssa-address.c: Likewise
1626 * tree-ssa-ifcombine.c: Likewise
1627 * tree-if-conv.c: Likewise
1628 * tree-data-ref.c: Likewise
1629 * tree-affine.c: Likewise
1630 * tree-ssa-phiopt.c: Likewise
1631 * tree-ssa-coalesce.c: Likewise
1632 * tree-ssa-pre.c: Likewise
1633 * tree-ssa-live.c: Likewise
1634 * tree-predcom.c: Likewise
1635 * tree-ssa-forwprop.c: Likewise
1636 * tree-ssa-dce.c: Likewise
1637 * tree-ssa-ter.c: Likewise
1638 * tree-ssa-loop-prefetch.c: Likewise
1639 * tree-optimize.c: Likewise
1640 * tree-ssa-phiprop.c: Likewise
1641 * tree-object-size.c: Likewise
1642 * tree-outof-ssa.c: Likewise
1643 * tree-ssa-structalias.c: Likewise
1644 * tree-switch-conversion.c: Likewise
1645 * tree-ssa-reassoc.c: Likewise
1646 * tree-ssa-operands.c: Likewise
1647 * tree-vectorizer.c: Likewise
1648 * tree-vect-data-refs.c: Likewise
1649 * tree-vect-generic.c: Likewise
1650 * tree-vect-stmts.c: Likewise
1651 * tree-vect-patterns.c: Likewise
1652 * tree-vect-slp.c: Likewise
1653 * tree-vect-loop.c: Likewise
1654 * tree-ssa-loop-ivopts.c: Likewise
1655 * tree-ssa-loop-im.c: Likewise
1656 * tree-ssa-loop-niter.c: Likewise
1657 * tree-ssa-loop-unswitch.c: Likewise
1658 * tree-ssa-loop-manip.c: Likewise
1659 * tree-ssa-loop-ch.c: Likewise
1660 * tree-dump.c: Likewise
1661 * tree-complex.c: Likewise
1663 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
1664 * tree-ssa-uninit.c: Likewise
1665 * tree-ssa-threadupdate.c: Likewise
1666 * tree-ssa-uncprop.c: Likewise
1667 * tree-ssa-ccp.c: Likewise
1668 * tree-ssa-dom.c: Likewise
1669 * tree-ssa-propagate.c: Likewise
1670 * tree-ssa-alias.c: Likewise
1671 * tree-dfa.c: Likewise
1672 * tree-cfgcleanup.c: Likewise
1673 * tree-sra.c: Likewise
1674 * tree-ssa-copy.c: Likewise
1675 * tree-ssa.c: Likewise
1676 * tree-profile.c: Likewise
1677 * tree-cfg.c: Likewise
1678 * tree-ssa-threadedge.c: Likewise
1679 * tree-vect-loop-manip.c: Likewise
1681 * tree-inline.c: Do not include diagnostic.h and expr.h.
1683 (copy_decl_for_dup_finish): Do not use NULL_RTX.
1685 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
1686 * tree-loop-distribution.c: Likewise.
1688 2010-06-01 Jan Hubicka <jh@suse.cz>
1690 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
1692 2010-06-01 Jan Hubicka <jh@suse.cz>
1694 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
1695 remove return value.
1696 (split_bbs_on_noreturn_calls) .... here.
1697 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
1698 * tree-flow.h (fixup_noreturn_call): New.
1700 2010-06-01 Jan Hubicka <jh@suse.cz>
1702 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
1704 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
1706 * tree.h (build_nt_call_list): Delete.
1707 * tree.c (build_nt_call_list): Delete.
1709 2010-06-01 Jan Hubicka <jh@suse.cz>
1711 * fwprop.c: Make emit-rtl.h include last.
1712 * rtlanal.c: Include emit-rtl.h.
1713 * genautomata.c: Output emit-rtl include into insn-automata.c
1714 * df-scan.c: Include emit-rtl.h.
1715 * haifa-sched.c: Indlude emit-rtl.h.
1716 * mode-switching.c: Indlude emit-rtl.h.
1717 * graph.c: Indlude emit-rtl.h.
1718 * sel-sched.c: Include emit-rtl.h.
1719 * sel-sched-ir.c: Include emit-rtl.h.
1720 * ira-build.c: Include emit-rtl.h.
1721 * emit-rtl.c: (first_insn, last_insn): Remove defines.
1722 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
1724 (set_new_first_and_last_insn, get_last_insn_anywhere,
1725 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
1726 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
1727 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
1728 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
1729 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
1730 Use accessor functions.
1731 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
1732 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
1733 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
1734 mem_expr_equal_p): Move here from rtl.h.
1735 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
1736 Move here from emit-rtl.c; make inline.
1737 * cfglayout.h: Include emit-rtl.h.
1738 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
1739 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
1740 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
1741 mem_expr_equal_p, get_insns, set_first-insn,
1742 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
1743 * reg-stack.c: Include emit-rtl.h.
1746 2010-06-01 Jan Hubicka <jh@suse.cz>
1748 * cgraph.h (tree_function_versioning): Update prototype.
1749 (cgraph_function_versioning): Update prototype.
1750 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
1752 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
1753 (cgraph_materialize_clone, save_inline_function_body): Update use of
1754 tree_function_versioning.
1755 * tree-inline.c (copy_bb): Look for previous copied block to link
1756 after; fix debug output.
1757 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
1758 (copy_body): Likewise.
1759 (expand_call_inline): Update use of copy_body.
1760 (tree_function_versioning): Update use of copy body; accept
1761 blocks_to_copy and new_entry.
1763 2010-06-01 Jan Hubicka <jh@suse.cz>
1765 * gegenrtl.c: Remove unnecesary prototypes.
1767 (gendef): Produce static inline.
1769 (main): Do not decode parameters; generate header only.
1770 * Makefile.in (genrtl.c): Remove.
1772 2010-06-01 Jan Hubicka <jh@suse.cz>
1774 * tree-switch-conversion.c (build_one_array): Make it readonly.
1776 2010-06-01 Richard Guenther <rguenther@suse.de>
1778 * optabs.c (init_optabs): Guard all accesses to reinit.
1779 * ipa-pure-const.c (propagate): Fix another typo.
1780 * opts.c (common_handle_option): Split assignment to bool.
1781 * c-opts.c (c_common_handle_option): Likewise.
1783 2010-06-01 Arnaud Charlet <charlet@adacore.com>
1784 Matthew Gingell <gingell@adacore.com>
1786 * doc/invoke.texi: Mention -fdump-ada-spec.
1787 * tree-dump.c (dump_files): Add ada-spec.
1788 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
1789 * tree-pass.h (tree_dump_index): Add TDI_ada.
1790 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
1791 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
1792 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
1793 * c-decl.c: Include c-ada-spec.h.
1794 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
1796 (c_write_global_declarations): Add handling of -fdump-ada-spec.
1797 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
1798 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
1799 * c-ada-spec.h, c-ada-spec.c: New files.
1801 2010-06-01 Richard Guenther <rguenther@suse.de>
1804 * ipa-pure-const.c (get_function_state): Hand back varying state
1805 if we do not have one.
1806 (has_function_state): New function.
1807 (duplicate_node_data): Adjust.
1808 (remove_node_data): Likewise.
1809 (pure_const_write_summary): Likewise.
1810 (propagate): Likewise. Fix typo.
1812 2010-06-01 Jan Hubicka <jh@suse.cz>
1814 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
1815 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
1816 (execute_all_ipa_transforms): Do not play with the states.
1818 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
1820 * config/arm/t-linux-androideabi: New.
1821 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
1823 2010-06-01 Jan Hubicka <jh@suse.cz>
1825 * tree-inline.c (estimate_num_insns): For stdarg functions look
1826 into call statement to count cost of argument passing.
1828 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
1830 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
1831 argument for fprintf.
1832 (ix86_output_addr_diff_elt): Likewise.
1833 (x86_function_profiler): Likewise.
1834 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
1835 (LPREFIX): Likewise.
1836 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1838 2010-05-31 Jakub Jelinek <jakub@redhat.com>
1841 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
1842 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
1843 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
1844 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
1845 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
1846 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
1847 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
1848 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
1851 2010-05-31 Jan Hubicka <jh@suse.cz>
1853 * tree.h (tree_range_check_failed): Declare noreturn.
1855 2010-05-31 Jan Hubicka <jh@suse.cz>
1857 * gimple.c (gimple_call_builtin_p): New function.
1858 * gimple.h (gimple_call_builtin_p): Declare.
1859 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
1861 (execute_warn_function_return): BUILT_IN_RETURN is return.
1862 (split_critical_edges): Return edges are not critical.
1863 (is_ctrl_altering_stmt): Builtin_in_return is altering.
1864 (gimple_verify_flow_info): Handle built_in_return.
1865 (execute_warn_function_return): Handle built_in_return.
1866 * ipa-pure-const.c (check_call): Ignore builtin_return.
1868 2010-05-31 Jakub Jelinek <jakub@redhat.com>
1871 * expr.c (expand_assignment): Don't store anything for out-of-bounds
1872 array accesses with non-MEM.
1874 PR tree-optimization/44182
1875 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
1876 newly needs to end a bb is followed by debug stmts, instead return
1877 true from the function at the end.
1878 (maybe_move_debug_stmts_to_successors): New function.
1879 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
1881 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
1884 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
1886 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
1888 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
1889 for nested functions in non-optimized compilation.
1891 2010-05-31 Richard Guenther <rguenther@suse.de>
1893 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
1895 2010-05-30 Jan Hubicka <jh@suse.cz>
1897 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
1899 2010-05-30 Richard Guenther <rguenther@suse.de>
1902 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
1903 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
1906 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
1908 * config/darwin.c (output_objc_section_asm_op): Add comment.
1909 (name_needs_quotes): Add '_' to list of valid comment chars.
1910 (machopic_output_function_base_name): Remove unneeded quotes.
1911 (darwin_encode_section_info): Adjust asm whitespace.
1912 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
1913 (ASM_OUTPUT_LOCAL): Ditto.
1914 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
1915 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
1916 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
1918 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
1920 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
1921 RS6000_OUTPUT_BASENAME unconditionally.
1922 (rs6000_output_function_epilogue): Likewise.
1924 2010-05-30 Jan Hubicka <jh@suse.cz>
1926 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
1929 2010-05-30 Richard Guenther <rguenther@suse.de>
1931 * tree-cfg.c (verify_gimple_assign_single): Implement
1932 verification for COND_EXPR rhs.
1934 2010-05-30 Jan Hubicka <jh@suse.cz>
1936 * cgraph.h (cgraph_dump_file): Declare.
1937 * cgraphunit.c (cgraph_dump_file): Export.
1938 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
1940 2010-05-30 Jan Hubicka <jh@suse.cz>
1942 * dwarf2out.c (reference_to_unused,
1943 premark_types_used_by_global_vars_helper): Avoid creation of new
1946 2010-05-30 Jan Hubicka <jh@suse.cz>
1948 * cgraph.h (cgraph_node_cannot_return,
1949 cgraph_edge_cannot_lead_to_return): New functions.
1950 * cgraph.c (cgraph_node_cannot_return,
1951 cgraph_edge_cannot_lead_to_return): Use them.
1952 * ipa-pure-const.c (pure_const_names): New static var.
1953 (check_call): Handle calls not leading to return.
1954 (pure_const_read_summary): Dump info read.
1955 (propagate): Dump info about propagation process; ignore side effects
1956 of functions not leading to exit; fix handling of pure functions.
1958 2010-05-30 Jan Hubicka <jh@suse.cz>
1960 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
1961 for tail call epilogues.
1963 2010-05-30 Jan Hubicka <jh@suse.cz>
1965 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
1966 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
1969 2010-05-29 Jan Hubicka <jh@suse.cz>
1971 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
1972 node; remove references in node we no longer keep in cgrpah but need
1975 2010-05-29 Jan Hubicka <jh@suse.cz>
1977 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
1979 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1982 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
1984 2010-05-29 Jan Hubicka <jh@suse.cz>
1986 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
1987 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
1988 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
1989 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
1990 debug_names_replaced_by, debug_update_ssa): Likewise.
1991 * sbitmap.c (debug_sbitmap): Likewise.
1992 * genrecog.c (debug_decision, debug_decision_list): Likewise.
1993 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
1994 debug_tree_chain): Likewise.
1995 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
1996 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
1997 * optabs.c (debug_optab_libfuncs): Likewise.
1998 (verify_loop_closed_ssa): Likewise.
1999 * value-prof.c (verify_histograms): Likewise.
2000 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
2001 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
2002 * cfghooks.c (verify_flow_info): Likewise.
2003 * fold-const.c (debug_fold_checksum): Likewise.
2004 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
2005 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
2007 * omega.c (debug_omega_problem): Likewise.
2008 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
2009 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
2010 * dominance.c (verify_dominators, debug_dominance_info,
2011 debug_dominance_tree): Likewise.
2012 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
2013 * df_regno_debug, df_ref_debug,
2014 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
2015 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
2016 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
2017 * sel-sched.c (debug_state): Likewise.
2018 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
2020 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
2021 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
2022 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
2023 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
2025 * c-pretty-print.c (debug_c_tree): Likewise.
2026 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
2027 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
2028 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
2029 * ebitmap.c (debug_ebitmap): Likewise.
2030 * function.c (debug_find_var_in_block_tree): Likewise.
2031 * print-rtl.c (debug_rtx): Likewise.
2032 (debug_rtx_count): Likewise.
2033 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
2034 * stor-layout.c (debug_rli): Likewise.
2035 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
2036 * tree-data-ref.c (debug_data_references,
2037 debug_data_dependence_relations, debug_data_reference,
2038 debug_data_dependence_relation, debug_rdg_vertex,
2039 debug_rdg_component, debug_rdg): Likewise.
2040 * tree-affine.c (debug_aff): Likewise.
2041 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
2043 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
2044 * emit-rtl.c (verify_rtl_sharing): Likewise.
2045 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
2046 debug_value_expressions): Likewise.
2047 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
2048 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
2049 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
2050 * cfglayout.c (verify_insn_chain): Likewise.
2051 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
2052 debug_clast_stmt, debug_generated_program): Likewise.
2053 * ggc-page.c (debug_print_page_list): Likewise.
2054 * tree-ssa-ter.c (debug_ter): Likewise.
2055 * graphite-dependences.c (debug_pddr): Likewise.
2056 * sched-deps.c (debug_ds): Likewise.
2057 * tree-ssa.c (verify_ssa): Likewise.
2058 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
2059 debug_scattering_functions, debug_iteration_domains, debug_pdr,
2060 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
2061 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
2062 * tree-inline.c (debug_find_tree): Likewise.
2063 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
2064 debug_ppl_powerset_matrix): Likewise.
2065 * var-tracking.c (debug_dv): Likewise.
2066 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
2067 * cfgloop.c (verify_loop_structure): Likewise.
2068 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
2069 * c-common.c (verify_sequence_points): Likewise.
2070 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
2071 debug_candidates, debug_rgn_dependencies): Likewise.
2072 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
2073 * debug_constraint_graph, debug_solution_for_var,
2074 debug_sa_points_to_info): Likewise.
2075 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
2077 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
2078 debug_loops, debug_loop, debug_loop_num): Likewise.
2079 * passes.c (debug_pass): Likewise.
2080 (dump_properties): Likewise; add cfglayout property.
2081 (debug_properties): Likewise.
2082 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
2083 * varpool.c (debug_varpool): Likewise.
2084 * regcprop.c (debug_value_data): Likewise.
2085 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
2086 debug_immediate_uses_for): Likewise.
2088 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2091 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
2092 Filter out insn-flags.h.
2094 2010-05-29 Jan Hubicka <jh@suse.cz>
2096 * cgraph.h (struct varpool_node_set_def,
2097 struct cgraph_node_set_def): Remove unused AUX pointer.
2098 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
2101 2010-05-29 Jan Hubicka <jh@suse.cz>
2104 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
2106 2010-05-29 Richard Guenther <rguenther@suse.de>
2108 * lto-streamer.c (cached_bp): New global variable.
2109 (bitpack_create): Return the cached bitpack, if available.
2110 (bitpack_delete): Clear and cache the bitpack, if appropriate.
2111 (bp_pack_value): Remove redundant asserts.
2113 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2116 * tree-if-conv.c (is_true_predicate): New.
2117 (is_predicated): Use is_true_predicate.
2118 (add_to_predicate_list): Same. Do not use unshare_expr.
2119 (add_to_dst_predicate_list): Same.
2121 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2123 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
2125 (predicate_bbs): Same.
2126 (clean_predicate_lists): Same.
2127 (find_phi_replacement_condition): Do not AND the predicate from
2130 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2133 * Makefile.in (build/gencondmd.o): Add a missing `\'.
2135 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2138 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
2139 (negdf2): Adjust expander pattern and use negdf2_slow.
2142 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
2144 * basic-block.h (struct control_flow_graph): Move last_label_uid field
2146 * df.h (struct df_base_ref): Move regno field up.
2147 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
2148 * expr.h (struct separate_ops): Move location field up.
2149 * optabs.h (struct optab_d): Move libcall_basename field down.
2150 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
2151 * config/i386/i386.h (struct machine_function): Convert call_abi field
2152 into a bitfield. Move cfa field to the end of the structure.
2154 2010-05-29 Jan Hubicka <jh@suse.cz>
2156 * varpool.c (varpool_get_node): Fix lookup.
2158 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2160 * config/spu/spu-protos.h: Do not include rtl.h. Protect
2161 RTL specific prototypes with #ifdef RTX_CODE.
2162 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
2163 * config/spu/t-spu-elf: Fix dependencies.
2165 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
2167 2010-05-29 Mike Stump <mikestump@comcast.net>
2170 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
2171 TM_H when building to avoid dependency loops.
2173 2010-05-29 Jan Hubicka <jh@suse.cz>
2175 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
2176 refs and body; not the whole node for masters of materialized
2179 2010-05-29 Mike Stump <mikestump@comcast.net>
2181 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
2183 2010-05-29 Jan Hubicka <jh@suse.cz>
2185 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
2186 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
2187 use of clone_function_name.
2188 * cgraph.h (cgraph_create_virtual_clone,
2189 cgraph_function_versioning): update prototypes.
2190 (clone_function_name): Declare.
2191 * ipa-cp.c (ipcp_insert_stage): Update call of
2192 cgraph_create_virtual_clone.
2193 * omp-low.c (create_omp_child_function_name): Use
2194 cgraph_create_virtual_clone.
2195 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
2196 (cgraph_function_versioning): Take SUFFIX argument; produce new name
2197 and make decl local.
2199 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2201 * vec.h: Include statistics.h
2202 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
2205 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2207 * c-lex.c: Do not include c-tree.h.
2208 * c-pretty-print.c: Likewise.
2209 * c-opts.c: Likewise.
2210 * c-gimplify.c: Likewise.
2211 * c-common.c: Likewise.
2212 * c-dump.c: Likewise. Include c-common.h.
2214 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2216 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
2217 before including diagnostic-core.h.
2218 (c_cpp_error): New prototype moved from c-tree.h.
2219 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
2220 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
2221 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
2222 (c_cpp_error): Prototype moved to c-common.h.
2223 * Makefile.in: Update dependency for C_COMMON_H.
2225 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2227 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
2228 * c-common.c (c_register_addr_space): Remove here.
2229 * c-decl.c (c_register_addr_space): Re-add here.
2231 2010-05-28 Mike Stump <mikestump@comcast.net>
2233 * config/darwin-c.c: Remove c-tree.h include.
2235 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2237 * gcc.c: Include diagnostic.h.
2238 (error_count): Remove. All users changed to use errorcount.
2239 (programname): Remove. All users changed to use progname.
2240 (fancy_abort, internal_error, fatal_error, error, warning, inform,
2242 (execute): Don't include "Internal error" and bug reporting
2243 information in argument of internal_error call.
2244 (process_command): Don't increment error_count after calling
2246 (input_filename): Rename to gcc_input_filename. All users
2248 (main): Call diagnostic_initialize. Register delete_temp_files
2249 with atexit. Use seen_error to test for errors.
2250 * gcc.h: Include diagnostic-core.h.
2251 (fatal_error, error, warning): Remove.
2252 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
2253 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
2254 (gcc.o): Update dependencies.
2256 2010-05-28 Jeff Law <law@redhat.com>
2258 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
2260 * ira.h (ira_bad_reload_regno): Declare
2261 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
2263 * ira-color.c (update_curr_costs): Free updated hard reg costs.
2264 (ira_reassign_conflict_allocnos): Remove bogus asserts.
2265 (allocno_reload_assign): Likewise.
2267 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
2269 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
2272 2010-05-28 Richard Guenther <rguenther@suse.de>
2275 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
2276 Stream fixed-point constants mode.
2277 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
2279 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
2280 Stream fixed-point constants mode.
2281 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
2284 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2286 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
2287 only place it was called from.
2288 (number_of_latch_executions): Do not return chrec_dont_know when the
2289 may_be_zero is a runtime condition: instead, return a COND_EXPR
2290 including the may_be_zero condition.
2291 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
2293 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
2296 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2298 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
2299 generate COND_EXPRs for degenerate_phi_result.
2301 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2304 * tree-if-conv.c (if_convertible_loop_p): Check the
2305 if-convertibility of phi nodes in non predicated BBs.
2307 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2309 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
2311 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2314 * gcc.c (inform, warning, inform): New functions.
2315 (fatal_ice): Rename to internal_error; change cmsgid parameter to
2316 gmsgid. All callers changed.
2317 (notice): Rename to fnotice; add parameter fp. All callers
2319 (fatal_error): Rename to fatal_signal. All users changed.
2320 (fatal): Rename to fatal_error; change cmsgid parameter to
2321 gmsgid. All callers changed.
2322 (process_command): Use warning instead of error for warnings.
2323 (end_going_arg): Don't use _() around argument of error.
2324 (do_spec_1): Use inform for message from %n specs. Use warning
2325 instead of error for warnings.
2326 (main): Use inform for comparison messages. Use warning for
2327 message about unused linker input.
2328 (error): Increment error_count. Print "error: ".
2329 * gcc.h (fatal): Change to fatal_error.
2331 * config/darwin-driver.c (darwin_default_min_version): Use warning
2332 instead of fprintf for warnings.
2333 * cppspec.c (lang_specific_driver): Use fatal_error instead of
2336 2010-05-28 Julian Brown <julian@codesourcery.com>
2338 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
2339 (*thumb2_addsi3_compare0_scratch): New.
2340 * config/arm/constraints.md (Pv): New.
2341 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
2343 (*addsi3_compare0_scratch): Likewise.
2345 2010-05-28 Jan Hubicka <jh@suse.cz>
2347 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
2349 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
2350 only on local statics.
2352 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
2354 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
2356 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2359 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
2360 (OPTION_GLIBC): Define.
2362 2010-05-28 Jakub Jelinek <jakub@redhat.com>
2365 * dwarf2out.c (double_int_type_size_in_bits): New function.
2366 (round_up_to_align): Change first argument and return value to
2368 (field_byte_offset): Work internally on double_ints.
2371 * builtins.c (expand_movstr): Use a temporary pseudo instead
2372 of target even when target is not NULL and not const0_rtx, but
2373 fails movstr predicate.
2374 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
2376 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2378 * final.c (rest_of_clean_state): Use %m in errors instead of
2380 * gengtype.c (read_input_list, close_output_files): Use xstrerror
2381 instead of strerror.
2382 * toplev.c (process_options): Use %m in errors instead of strerror
2384 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
2387 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
2389 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
2390 (ix86_canonical_va_list_type): Make static. Add declaration.
2391 (ix86_enum_va_list): Make static. Reindent.
2392 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
2393 (ix86_canonical_va_list_type): Ditto.
2394 (ix86_enum_va_list): Ditto.
2396 2010-05-28 Richard Guenther <rguenther@suse.de>
2398 * lto-wrapper.c (run_gcc): With -save-temps generate a
2399 user-visible ltrans filename. Fixup ltrans unit numbering.
2401 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
2403 * c-common.c (c_common_nodes_and_builtins): Replace use
2404 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
2405 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
2406 to ix86_enum_va_list.
2407 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
2408 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
2409 (TARGET_ENUM_VA_LIST_P): Add hook description.
2410 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
2411 * target.h (gcc_target): Add enum_va_list hook.
2414 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
2415 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
2416 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
2418 2010-05-28 Alan Modra <amodra@gmail.com>
2421 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2422 emit_library_call machinery to set up __tls_get_addr calls.
2424 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2426 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
2428 2010-05-28 Dodji Seketeli <dodji@redhat.com>
2430 Revert fix for PR c++/44188
2431 * c-common.c (is_typedef_decl): Revert the moving of this
2433 * tree.c (is_typedef_decl): ... here.
2434 (typdef_variant_p): Revert the moving of this definition
2435 here from gcc/cp/tree.c.
2436 * c-common.h (is_typedef_decl): Revert the moving of this
2438 * tree.h (is_typedef_decl): ... here.
2439 (typedef_variant_p): Revert the moving of this declaration here
2440 from gcc/cp/cp-tree.h
2441 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
2442 (gen_tagged_type_die): Revert the splitting out of ...
2443 (gen_type_die_with_usage): ... this function. Revert the anonymous
2444 tagged type handling.
2445 (gen_typedef_die): Revert emitting DW_TAG_typedef for
2446 typedefs naming anonymous tagged types.
2448 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
2450 * config/rs6000/rs6000-modes.def (PSImode): Delete.
2452 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
2454 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
2455 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
2457 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
2459 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
2460 XER_REGS to CA_REGS throughout.
2461 * config/rs6000/rs6000.h: Same.
2462 (ADDITIONAL_REGISTER_NAMES): Add "xer".
2463 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
2464 that mode_iterator "P" is the size for arithmetic carries as well.
2465 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
2467 2010-05-28 Jakub Jelinek <jakub@redhat.com>
2470 * combine.c (struct rtx_subst_pair): Define unconditionally.
2471 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
2472 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
2473 Call make_compound_operation on pair->to.
2474 (propagate_for_debug): Don't call make_compound_operation here.
2475 Always use simplify_replace_fn_rtx.
2477 2010-05-27 Sterling Augustine <sterling@tensilica.com>
2479 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
2480 * config/xtensa/xtensa.c (override_options): Check
2481 TARGET_FORCE_NO_PIC and set flag_pic.
2482 * config/xtensa/xtensa.opt: Document -mforce-no-pic
2484 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
2487 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
2488 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
2490 2010-05-27 Joseph Myers <joseph@codesourcery.com>
2492 * diagnostic-core.h: New. Contents moved from diagnostic.h and
2494 * diagnostic.c: Don't include toplev.h.
2495 (progname): Define. Moved from toplev.c.
2496 (seen_error): New function.
2497 * diagnostic.h: Include diagnostic-core.h.
2498 (diagnostic_t, emit_diagnostic): Don't declare here.
2499 * toplev.c (progname): Move to toplev.c.
2500 (emit_debug_global_declarations, compile_file, finalize,
2501 do_compile, toplev_main): Use seen_error.
2502 * toplev.h: Include diagnostic-core.h.
2503 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
2504 internal_error, warning, warning_at, error, error_n, error_at,
2505 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
2506 verbatim, fnotice, progname): Move to diagnostic-core.h.
2507 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
2508 (expand_builtin_expect): Use seen_error.
2509 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
2510 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
2511 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
2512 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
2513 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
2514 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
2515 errorcount for errors.
2516 * c-opts.c (c_common_finish): Use seen_error.
2517 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
2518 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
2519 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
2520 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
2521 (get_coverage_counts): Use seen_error.
2522 * dwarf2out.c (dwarf2out_finish): Use seen_error.
2523 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
2524 gimplify_body): Use seen_error.
2525 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
2526 * ipa-pure-const.c (gate_pure_const): Use seen_error.
2527 * ipa-reference.c (gate_reference): Use seen_error.
2528 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
2529 * lambda-code.c: Include diagnostic-core.h instead of
2531 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
2532 * lto-compress.c: Include diagnostic-core.h instead of
2534 * lto-section-in.c: Include diagnostic-core.h instead of
2536 * lto-streamer-out.c: Include diagnostic-core.h instead of
2538 * lto-streamer.c: Include diagnostic-core.h instead of
2540 (gate_lto_out): Use seen_error.
2541 * matrix-reorg.c: Include diagnostic-core.h instead of
2543 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
2544 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
2545 (gate_expand_omp, lower_omp_1): Use seen_error.
2546 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
2547 (rest_of_decl_compilation, rest_of_type_compilation,
2548 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
2549 * tree-cfg.c (label_to_block_fn): Use seen_error.
2550 * tree-inline.c (optimize_inline_calls): Use seen_error.
2551 * tree-mudflap.c (mudflap_finish_file): Use
2553 * tree-optimize.c (gate_all_optimizations,
2554 gate_all_early_local_passes, gate_all_early_optimizations): Use
2556 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
2557 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
2558 (varpool_remove_unreferenced_decls,
2559 varpool_assemble_pending_decls): Use seen_error.
2560 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
2561 (TOPLEV_H, DIAGNOSTIC_H): Update.
2562 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
2563 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
2564 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
2565 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
2566 coverage.o, lambda-code.o): Update dependencies.
2568 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2571 * c-common.c (is_typedef_decl): Move this definition ...
2572 * tree.c (is_typedef_decl): ... here.
2573 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2574 * c-common.h (is_typedef_decl): Move this declaration ...
2575 * tree.h (is_typedef_decl): ... here.
2576 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2577 * dwarf2out.c (is_naming_typedef_decl): New function.
2578 (gen_tagged_type_die): Split out of ...
2579 (gen_type_die_with_usage): ... this function. When an anonymous
2580 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2581 is emitted for the typedef.
2582 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2583 anonymous tagged types.
2585 2010-05-27 Jason Merrill <jason@redhat.com>
2587 * print-tree.c (debug_vec_tree): New fn.
2588 (print_vec_tree): New fn.
2589 * tree.h: Declare them.
2590 * gdbinit.in (pvt): New command.
2592 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
2594 * gdbinit.in (pdd): New command.
2596 2010-05-27 Jan Hubicka <jh@suse.cz>
2598 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
2599 (update_caller_keys): Return early if there are no callers;
2600 only update fibheap when decresing the key.
2601 (update_callee_keys): Avoid recursion.
2602 (decide_inlining_of_small_functions): When badness does not match;
2603 re-insert into fibheap.
2605 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
2607 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
2608 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
2609 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
2610 (ALL_HOST_OBJS): Now a union of the above two.
2611 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
2612 all files in ALL_HOST_FRONTEND_OBJS.
2613 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
2615 * c-common.c: Pretend to be a backend file by undefining
2616 IN_GCC_FRONTEND (still need rtl.h here).
2618 2010-05-27 Jan Hubicka <jh@suse.cz>
2620 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
2621 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
2623 2010-05-27 Jan Hubicka <jh@suse.cz>
2625 * sched-ebb.c: Rename struct deps to struct deps_desc.
2627 * sel-sched-ir.c: Likewise.
2628 * sched-deps.c: Likewise.
2629 * sched-int.h: Likewise.
2630 * sched-rgn.c: Likewise.
2632 2010-05-27 Jon Beniston <jon@beniston.com>
2635 * config/lm32/lm32.h: Remove definition of
2636 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
2638 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
2641 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
2643 2010-05-27 Richard Guenther <rguenther@suse.de>
2645 PR tree-optimization/44284
2646 * tree-vect-stmts.c (vectorizable_assignment): Handle
2647 sign-changing conversions as simple copy.
2649 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2651 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
2653 (__gthread_active_p): Check for pthread_create if compiling against
2656 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2658 Support compilation for Android platform. Reimplement -mandroid.
2660 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
2661 (*android*): Set ANDROID_DEFAULT.
2662 (arm*-*-linux*): Include linux-android.h.
2663 (arm*-*-eabi*): Don't include previous -mandroid implementation.
2664 * config/arm/eabi.h: Remove, move Android-specific parts ...
2665 * config/linux-android.h: ... here. New file.
2666 * config/arm/eabi.opt: Rename to ...
2667 * config/linux-android.opt: ... this.
2668 (mandroid): Allow -mno-android option. Initialize based on
2670 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
2671 Move logic to corresponding LINUX_TARGET_* macros.
2672 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
2673 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
2674 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
2675 Android definitions.
2676 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
2677 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
2680 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2682 Add support for Bionic C library
2684 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
2686 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
2687 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
2689 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
2690 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
2691 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
2692 to support multiple C libraries. Handle Bionic.
2693 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
2694 (BIONIC_DYNAMIC_LINKER64): Define.
2695 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
2697 (TARGET_HAS_SINCOS): Enable for Bionic.
2699 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
2700 the last option specified on command line take effect.
2701 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
2703 (mglibc, muclibc): Update.
2705 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
2706 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
2709 * doc/invoke.texi (-mglibc, -muclibc): Update.
2710 (-mbionic): Document.
2712 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2714 * c-common.h (c_register_addr_space): Add prototype.
2715 (ADDR_SPACE_KEYWORD): Remove.
2716 * c-common.c (c_register_addr_space): New function.
2717 (c_addr_space_name): Reimplement.
2718 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
2720 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
2721 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
2723 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
2724 Remove TARGET_ADDR_SPACE_KEYWORDS.
2726 2010-05-27 Joseph Myers <joseph@codesourcery.com>
2728 * input.c: New file.
2729 * input.h (main_input_filename): Move declaration to toplev.h.
2730 * toplev.c (input_location, line_table): Move to input.c
2731 * toplev.h (main_input_filename): Move declaration from input.h.
2732 * tree.c (expand_location): Move to input.c.
2733 * Makefile.in (OBJS-common): Add input.o.
2734 (input.o): Add dependencies.
2736 2010-05-27 Richard Guenther <rguenther@suse.de>
2738 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
2739 for non-existant files.
2740 (fork_execute): Mark args_name file as deleted.
2742 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
2745 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
2746 (narrow_signed_type): Likewise.
2748 2010-05-26 Jan Hubicka <jh@suse.cz>
2750 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
2751 edge only when checking is enabled; check using former_clone_of;
2752 check inline clones too.
2753 (cgraph_materialize_clone): Record former_clone_of pointer.
2754 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
2755 combining redirections; dump args_to_skip bitmap
2756 (cgraph_materialize_all_clones): Do no redirection here.
2757 * ipa-inline.c (inline_transform): Do redirection here.
2758 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
2761 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2763 * config/avr/avr-c.c: Do not include regs.h.
2764 Include cpplib.h for cpp_define and tree.h for c-common.h.
2765 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
2766 * config/avr/t-avr: Fix dependencies for avr-c.o.
2768 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2770 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
2771 string instead of SYMBOL_REF rtx.
2772 * rtl.h (set_stack_check_libfunc): Move prototype from here...
2773 * libfuncs.h: ...to here. Adjust for explow.c change.
2775 2010-05-26 Joseph Myers <joseph@codesourcery.com>
2777 * pretty-print.c: Don't include ggc.h.
2778 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
2779 (identifier_to_locale): Use them for allocation.
2780 * pretty-print.h (identifier_to_locale_alloc,
2781 identifier_to_locale_free): Declare.
2782 * toplev.c (alloc_for_identifier_to_locale): New.
2783 (general_init): Set identifier_to_locale_alloc and
2784 identifier_to_locale_free.
2785 * Makefile.in (pretty-print.o): Update dependencies.
2787 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
2789 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
2790 pointer types if they have different alignment or mode.
2792 2010-05-26 Anatoly Sokolov <aesok@post.ru>
2794 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2795 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2796 * config/sparc/sparc-protos.h (function_value): Remove declaration.
2797 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
2798 sparc_function_value_regno_p): New functions.
2799 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2800 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2801 (function_value): Rename to...
2802 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
2803 argument to 'outgoing'.
2804 (function_arg_record_value, function_arg_union_value,
2805 function_arg_vector_value): Update comment.
2807 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
2809 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
2810 (fde_needed_for_eh_p): New predicate.
2811 (output_call_frame_info): Use it throughout to decide whether FDEs
2812 are needed for EH purpose.
2813 (dwarf2out_begin_prologue): Reorder assignments.
2815 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2817 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
2818 special case loop->header.
2819 (is_predicated): New.
2820 (if_convertible_loop_p): Call it.
2822 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2824 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
2825 iterator in parameter. Do not generate code during the analysis.
2826 (tree_if_convert_cond_stmt): Removed.
2827 (tree_if_convert_stmt): Removed.
2828 (predicate_bbs): New.
2829 (if_convertible_loop_p): Call predicate_bbs.
2830 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
2831 now contains all the analysis part.
2833 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2835 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
2836 statements in the analysis part.
2837 (tree_if_convert_stmt): Update comment.
2838 (remove_conditions_and_labels): New.
2839 (combine_blocks): Call remove_conditions_and_labels.
2840 (tree_if_conversion): Update comment.
2842 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2844 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
2845 than 2 predecessors or more than 2 successors.
2847 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2849 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
2850 of loops in which the data dependence analysis fails.
2852 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2854 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
2855 CDI_POST_DOMINATORS.
2856 (tree_if_conversion): Same.
2858 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2860 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
2862 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2864 * tree-if-conv.c: Update copyright years. Fix comments.
2867 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
2869 * builtin-types.def (BT_INT128): New primitive type.
2870 (BT_UINT128): Likewise.
2871 * c-common.c (c_common_r): Add __int128 keyword.
2872 (c_common_type_for_size): Handle __int128.
2873 (c_common_type_for_mode): Likewise.
2874 (c_common_signed_or_unsigned_type): Likewise.
2875 (c_common_nodes_and_builtins): Add builtin type
2876 if target supports 128-bit integer scalar.
2877 * c-common.h (enum rid): Add RID_INT128.
2878 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
2879 if target supports 128-bit integer scalar.
2880 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
2881 (finish_declspecs): Likewise.
2882 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
2883 (c_token_starts_declspecs): Likewise.
2884 (c_parser_declspecs): Likewise.
2885 (c_parser_attributes): Likewise.
2886 (c_parser_objc_selector): Likewise.
2887 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
2888 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
2889 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
2890 * tree.c (make_or_reuse_type): Likewise.
2891 (make_unsigned_type): Likewise.
2892 (build_common_tree_nodes_2): Likewise.
2893 * tree.h (enum integer_type_kind): Add itk_int128 and
2894 itk_unsigned_int128.
2895 (int128_integer_type_node): New define.
2896 (int128_unsigned_type_node): New define.
2897 * doc/extend.texi: Add documentation about __int128 type.
2899 2010-05-26 Richard Guenther <rguenther@suse.de>
2901 * tree-ssa-sccvn.c (copy_nary): Adjust.
2902 (copy_phis): Rename to ...
2903 (copy_phi): ... this. Adjust.
2904 (copy_references): Rename to ...
2905 (copy_reference): ... this. Adjust.
2906 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
2907 result into the valid table.
2909 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2911 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
2912 insn-config.h, insn-codes.h, recog.h, and optabs.h.
2914 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2916 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
2918 2010-05-26 Richard Guenther <rguenther@suse.de>
2920 * opts.c (common_handle_option): Handle OPT_Ofast.
2922 2010-05-26 Joseph Myers <joseph@codesourcery.com>
2924 * diagnostic.c: Don't include opts.h.
2925 (permissive_error_option): Define.
2926 (diagnostic_initialize): Take n_opts parameter. Allocate memory
2927 for classify_diagnostic. Don't use memset for
2928 classify_diagnostic. Initialize new and recently added fields.
2929 (diagnostic_classify_diagnostic): Use context->n_opts instead of
2931 (diagnostic_report_diagnostic): Pass context parameter to
2932 diagnostic_report_warnings_p. Use option_enabled and option_name
2934 (emit_diagnostic): Use permissive_error_option.
2935 (permerror): Likewise.
2936 * diagnostic.h: Don't include options.h.
2937 (struct diagnostic_context): Add n_opts, opt_permissive,
2938 inhibit_warnings, warn_system_headers, option_enabled and
2939 option_name fields. Change classify_diagnostic to a pointer.
2940 * opts-diagnostic.h: New file.
2941 * opts.c: Include opts-diagnostic.h.
2942 (common_handle_option): Set global_dc fields for -Wfatal-errors,
2943 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
2944 (option_name): New function.
2945 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
2946 (c_common_handle_option): Set global_dc->permissive for
2948 * c-common.c (c_cpp_error): Save and restore
2949 global_dc->warn_system_headers, not variable warn_system_headers.
2950 * toplev.c: Include opts-diagnostic.h.
2951 (general_init): Update call to diagnostic_initialize. Set
2952 global_dc->show_column, global_dc->option_enabled and
2953 global_dc->option_name.
2954 (process_options): Don't set global_dc fields here.
2955 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
2956 (diagnostic.o, opts.o, toplev.o): Update dependencies.
2958 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2960 * config/picochip/picochip.md (movsi): Split a movsi from a
2963 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2965 * ggc-zone.c: Update copyright year.
2966 (poison_region): Mark memory for Valgrind as undefined before
2967 memset () call and inaccessible afterwards.
2968 (ggc_pch_total_size): Change type of i to int.
2970 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2972 * ggc-common.c (ggc_free_overhead): Allow empty slot.
2974 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2976 * ggc-common.c: Update copyright year.
2977 (ggc_rlimit_bound): Remove prototype. Compile only if
2978 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
2979 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
2980 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
2981 (ggc_min_heapsize_heuristic): Likewise.
2983 2010-05-26 Richard Guenther <rguenther@suse.de>
2985 PR rtl-optimization/44164
2986 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
2987 no-common access-path disambiguation.
2988 (indirect_ref_may_alias_decl_p): Adjust.
2989 (indirect_refs_may_alias_p): Likewise.
2990 (refs_may_alias_p_1): Likewise.
2992 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2994 * c-typeck.c: Do not include expr.h.
2996 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2998 * rtl.h (decl_default_tls_model): Move prototype from here...
2999 * output.h: ...to here.
3000 * c-decl.c: Do not include rtl.h.
3001 * c-pragma.c: Likewise.
3002 * c-parser.c: Likewise.
3003 * c-gimplify.c: Likewise. And also not hard-reg-set.
3004 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
3005 FIXME note for it. Add a FIXME note for expr.h.
3006 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
3007 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
3010 2010-05-26 Jakub Jelinek <jakub@redhat.com>
3013 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
3014 or total_size is larger than red zone size for non-V4 ABI, emit a
3015 stack_tie resp. frame_tie insn before stack pointer restore.
3016 * config/rs6000/rs6000.md (frame_tie): New insn.
3018 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
3020 * function.h (struct function): Add can_throw_non_call_exceptions bit.
3021 * lto-streamer-in.c (input_function): Stream it in.
3022 * lto-streamer-out.c (output_function): Stream it out.
3023 * function.c (allocate_struct_function): Set it.
3024 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
3025 for flag_non_call_exceptions.
3026 * cfgbuild.c (control_flow_insn_p): Likewise.
3027 (make_edges): Likewise.
3028 * cfgexpand.c (expand_stack_alignment): Likewise.
3029 * combine.c (distribute_notes): Likewise.
3030 * cse.c (cse_extended_basic_block): Likewise.
3031 * except.c (insn_could_throw_p): Likewise.
3032 * gcse.c (simple_mem): Likewise.
3033 * ipa-pure-const.c (check_call): Likewise.
3034 (check_stmt ): Likewise.
3035 * lower-subreg.c (lower-subreg.c): Likewise.
3036 * optabs.c (emit_libcall_block): Likewise.
3037 (prepare_cmp_insn): Likewise.
3038 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
3039 * postreload.c (rest_of_handle_postreload): Likewise.
3040 * reload1.c (reload_as_needed): Likewise.
3041 (emit_input_reload_insns): Likewise.
3042 (emit_output_reload_insns): Likewise.
3043 (fixup_abnormal_edges): Likewise.
3044 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
3045 * store-motion.c (find_moveable_store): Likewise.
3046 * tree-eh.c (stmt_could_throw_p): Likewise.
3047 (tree_could_throw_p): Likewise.
3048 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3049 * config/arm/arm.c (arm_expand_prologue): Likewise.
3050 (thumb1_expand_prologue): Likewise.
3051 * config/rx/rx.md (cbranchsf4): Likewise.
3053 * config/s390/s390.c (s390_emit_prologue): Likewise.
3054 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
3055 (inline_forbidden_into_p): New predicate.
3056 (expand_call_inline): Use it to forbid inlining.
3057 (tree_can_inline_p): Likewise.
3059 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3061 * config/i386/i386-c.c: Do not include rtl.h.
3062 * config/i386/t-i386: Update dependencies.
3064 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3066 * attribs.c: Do not include rtl.h.
3067 * Makefile.in: Update dependencies.
3069 2010-05-25 Anatoly Sokolov <aesok@post.ru>
3071 * double-int.h (double_int_and): New.
3072 * combine.c (try_combine): Clean up, use double_int_* and
3073 immed_double_int_const functions.
3075 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3077 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
3078 stderr to /dev/null instead of grep -q.
3079 * configure: Regenerate.
3081 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3083 * Makefile.in (EXCEPT_H): Fix typo.
3085 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
3087 * ira-build.c (update_conflict_hard_reg_costs): New.
3088 (ira_build): Call update_conflict_hard_reg_costs.
3090 2010-05-25 Jakub Jelinek <jakub@redhat.com>
3093 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
3095 (intersect_loc_chains): Walk the s2var's loc_chain together
3096 with s1node chain as long as the locations are equal, don't
3097 call find_loc_in_1pdv in that case.
3100 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
3101 (copy_bind_expr): ... instead of here.
3102 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
3103 if the block hasn't been remapped.
3104 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
3105 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
3107 2010-05-25 Richard Guenther <rguenther@suse.de>
3110 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
3111 out-of-bounds array accesses.
3113 2010-05-25 Richard Guenther <rguenther@suse.de>
3115 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
3116 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
3117 (run_gcc): Re-organize to make cleanup easier.
3119 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3121 * config/s390/s390.c (optimization_options): Fix and move the
3122 flag_prefetch_loop_arrays override ...
3123 (override_options): ... here.
3125 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3127 * diagnostic.c: Don't include plugin.h.
3128 (diagnostic_report_diagnostic): Don't handle plugins specially
3129 here. Pass context to internal_error callback.
3130 * diagnostic.h (struct diagnostic_context): Add context parameter
3131 to internal_error callback.
3132 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
3133 * plugin.h (struct diagnostic_context): Declare.
3134 (warn_if_plugins, plugins_internal_error_function): Declare.
3135 * toplev.c (general_init): Set global_dc->internal_error.
3136 * Makefile.in (diagnostic.o): Update dependencies.
3138 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
3140 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
3141 * config/rs6000/t-darwin64: New.
3142 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
3145 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
3148 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
3149 match the original (and intended) behaviour before r159557. This
3150 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
3153 2010-05-25 Richard Guenther <rguenther@suse.de>
3155 * doc/invoke.texi: Document -Ofast.
3156 * target.h (struct gcc_target): Add handle_ofast.
3157 * target-def.h (TARGET_HANDLE_OFAST): Add.
3158 (TARGET_INITIALIZER): Adjust.
3159 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
3160 * common.opt (Ofast): Add.
3162 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
3164 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
3165 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
3167 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
3170 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
3171 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
3172 false_rtx. Use false_rtx to compute the correct *ptest for reversed
3173 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
3175 2010-05-25 Jakub Jelinek <jakub@redhat.com>
3177 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
3178 DW_OP_minus with negated offset instead of DW_OP_plus.
3179 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
3181 2010-05-25 Wei Guozhi <carrot@google.com>
3183 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
3184 tst instruction and a new alternative.
3185 * config/arm/constraints.md (Pu): New constraint.
3187 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
3189 * function.c (assign_stack_local_1): Initialize variable
3190 to avoid warning when bootstrapping at -O3.
3192 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
3194 * configure.ac (all_lang_makefiles): Remove everything related to it.
3195 * configure: Regenerate.
3196 * Makefile.in: Fix reference to ada Make-lang.in.
3197 Remove support for LANG_MAKEFILES.
3199 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
3200 Sandra Loosemore <sandra@codesourcery.com>
3202 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
3203 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
3204 description. Add arm_neon_fp16_ok.
3205 (Add Options): Add arm_neon and arm_neon_fp16.
3207 2010-05-24 Joseph Myers <joseph@codesourcery.com>
3209 * diagnostic.c: Don't include flags.h.
3210 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
3211 context parameters. Check flags in the context passed as a parameter.
3212 (diagnostic_build_prefix): Add context parameter. Check
3213 show_column flag in context.
3214 (diagnostic_action_after_output): Check fatal_errors flag in context.
3215 (diagnostic_report_current_module): Check show_column flag in context.
3216 (default_diagnostic_starter): Update call to
3217 diagnostic_build_prefix.
3218 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
3219 (emit_diagnostic): Pass context to permissive_error_kind.
3220 (permerror): Pass context to permissive_error_kind.
3221 * diagnostic.h (struct diagnostic_context): Add show_column,
3222 pedantic_errors, permissive and fatal_errors fields.
3223 (diagnostic_build_prefix): Update prototype.
3225 * toplev.c (process_options): Set flags in global_dc from
3226 flag_show_column, flag_pedantic_errors, flag_permissive,
3228 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
3229 to diagnostic_build_prefix.
3230 * Makefile.in (diagnostic.o): Update dependencies.
3232 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
3234 * config/i386/ia32intrin.h (__crc32q): Define only if
3235 __SSE4_2__ is defined.
3237 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
3241 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
3242 DECL_VISIBILITY_SPECIFIED.
3243 (emutls_decl): Set DECL_PRESERVE_P and copy
3244 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
3245 (emutls_finalize_control_var): New callback.
3246 (emutls_finish): Finalize emutls control variables.
3247 * toplev.c (compile_file): Move the call to emutls_finish ()
3248 before varpool_assemble_pending_decls ().
3250 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
3252 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
3253 added to the preprocessor condition.
3255 2010-05-24 Paul Brook <paul@codesourcery.com>
3257 * gengtype-lex.l: Add HARD_REG_SET.
3258 * expr.c (expand_expr_real_1): Record writes to hard registers.
3259 * function.c (rtl_data): Add asm_clobbers.
3260 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
3261 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
3262 Use crtl->asm_clobbers.
3264 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3266 * doc/makefile.texi (Makefile): Mention stages 'profile'
3267 and 'feedback' for profiledbootstrap.
3269 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
3272 * config/i386/i386.c (def_builtin): Properly check
3273 OPTION_MASK_ISA_64BIT.
3275 2010-05-23 Joseph Myers <joseph@codesourcery.com>
3277 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
3278 typedefs with different but compatible types. Allow duplicate
3279 typedefs with the same type except for pedantic non-C1X, but give
3280 warning for variably modified types.
3281 * c-typeck.c (tagged_types_tu_compatible_p,
3282 function_types_compatible_p, type_lists_compatible_p,
3283 comptypes_internal): Add parameter different_types_p; set
3284 *different_types_p for different but compatible types. All
3286 (comptypes_check_different_types): New.
3287 * c-tree.h (comptypes_check_different_types): Declare.
3289 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
3291 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
3292 * jump.c: Include basic-block.h.
3293 * profile.c: Likewise.
3294 * tree-profile.c: Likewise.
3295 * coverage.c: Likewise.
3296 * basic-block.h (optimize_function_for_size_p): Move to function.h.
3297 (optimize_function_for_speed_p): Likewise.
3298 * function.h (optimize_function_for_size_p,
3299 optimize_function_for_speed_p): Moved here from basic-block.h.
3300 * Makefile.in: Update dependencies.
3302 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3304 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
3305 before calling make; allow override through $MAKE.
3306 * doc/invoke.texi (Optimize Options): Document override.
3308 2010-05-23 Anatoly Sokolov <aesok@post.ru>
3310 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
3311 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3312 (rs6000_mode_dependent_address_ptr): Make static.
3313 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3314 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
3317 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
3320 * config/i386/i386.c: Make sure that the correct regparm is passed.
3322 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
3324 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
3325 * sbitmap.c: ...to here to internalize sbitmap element access.
3326 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
3327 Explain why basic-block.h is included.
3328 * function.h: Include tm.h for CUMULATIVE_ARGS.
3329 * Makefile.in: Update dependencies.
3331 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
3333 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
3335 * sbitmap.h (struct sbitmap_def): Do not typedef here.
3336 * sbitmap.c: Include sbitmap.h.
3337 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
3338 hard-reg-set.h. Split everything related to regsets out from here...
3339 * regset.h: ...to here. New file.
3340 * df.h: Include regset.h and sbitmap.h.
3341 * tree-flow.h: Likewise.
3342 * cfgloop.h: Likewise.
3343 * except.h: Do not include sbitmap.h. Include hashtab.h.
3344 * cgraph.h: Include vec.h and function.h.
3345 * reload.h (struct insn_chain): Change types of live_throughout
3346 and dead_or_set from regset_head to bitmap_head.
3347 (compute_use_by_pseudos): Be defined also if regset.h is not included.
3348 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
3349 spilled_regs from regset_head to bitmap_head to avoid dependency
3351 * sel-sched-ir.h: Include regset.h.
3352 * reload.c: Include df.h before reload.h.
3353 * caller-save.c: Likewise.
3354 * reload1.c: Likewise.
3356 (mark_elimination): Update type of r to bitmap, consistent with
3358 * dominance.c: Include bitmap.h.
3359 * modulo-sched.c: Include df.h.
3360 * cfganal.c: Include bitmap.h and sbitmap.h.
3361 * cfgbuild.c: Include sbitmap.h.
3362 * lcm.c: Include sbitmap.h.
3363 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
3364 * domwalk.c: Include sbitmap.h, exclude ggc.h.
3365 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
3366 * cselib.c: Include bitmap.h.
3367 * tree-optimize.c: Include regset.h.
3368 * stmt.c: Include bitmap.h.
3369 * Makefile.in: Update dependencies.
3371 2010-05-22 Jan Hubicka <jh@suse.cz>
3373 * cgraph.h (struct varpool_node): Add same_comdat_group.
3374 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
3376 (output_varpool): Update call of lto_output_varpool_node.
3377 (input_varpool): Read same_comdat_group pointer.
3378 (input_varpool_1): Fixup same_comdat_group pointer.
3379 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
3380 group is needed, all are.
3381 * varpool.c (varpool_remove_node): Remove node from same comdat group
3383 (varpool_analyze_pending_decls): Walk same comdat groups.
3385 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
3387 * rtl.h (union rtunion_def): Remove rt_bit member.
3388 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
3389 * print-rtl (print_rtx): Do not print the member.
3390 * gengtype.c (adjust_field_rtx_def): Do not handle it.
3391 * gengenrtl.c (type_from_format): Likewise.
3392 (accessor_from_format): Likewise.
3394 2010-05-22 Joseph Myers <joseph@codesourcery.com>
3396 * dbgcnt.c: Include toplev.h instead of errors.h.
3397 * ira-emit.c: Don't include errors.h.
3398 * ira.c: Include toplev.h instead of errors.h.
3399 * lto-compress.c: Include toplev.h instead of errors.h.
3400 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
3401 ira.o, dbgcnt.o): Update dependencies.
3403 2010-05-22 Richard Guenther <rguenther@suse.de>
3405 * gimple.c (gimple_types_compatible_p): Check type qualifications
3406 before merging pointer to complete and pointer to incomplete type.
3407 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
3408 we use our own resolution algorithm. The gold linker plugin
3409 doesn't do the job we want it to do here.
3411 2010-05-22 Anatoly Sokolov <aesok@post.ru>
3413 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3414 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3415 (sparc_mode_dependent_address_p): New function.
3417 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3419 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
3421 * timevar.c: Do not include any core headers.
3422 (timevar_print): De-i18n-ize.
3423 (print_time): Likewise.
3424 * timevar.h (timevar_push, timevar_pop): Make inline functions.
3426 2010-05-21 Joseph Myers <joseph@codesourcery.com>
3428 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
3430 (diagnostic_initialize): Initialize x_data not last_function.
3431 (diagnostic_report_current_function): Move to tree-diagnostic.c.
3432 (default_diagnostic_starter): Call
3433 diagnostic_report_current_module not
3434 diagnostic_report_current_function.
3435 (diagnostic_report_diagnostic): Initialize x_data not
3437 (verbatim): Likewise.
3438 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
3440 (struct diagnostic_context): Change last_function to x_data.
3441 (diagnostic_auxiliary_data): Replace with
3442 diagnostic_context_auxiliary_data and
3443 diagnostic_info_auxiliary_data.
3444 (diagnostic_last_function_changed, diagnostic_set_last_function,
3445 diagnostic_report_current_function): Move to tree-diagnostic.h.
3446 (print_declaration, dump_generic_node, print_generic_stmt,
3447 print_generic_stmt_indented, print_generic_expr,
3448 print_generic_decl, debug_c_tree, dump_omp_clauses,
3449 print_call_name, debug_generic_expr, debug_generic_stmt,
3450 debug_tree_chain, default_tree_printer): Move to
3451 tree-pretty-print.h.
3452 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
3453 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
3454 gimple-pretty-print.h.
3455 * pretty-print.c: Don't include tree.h
3456 (pp_base_format): Don't handle %K here.
3457 (pp_base_tree_identifier): Move to tree-pretty-print.c.
3458 * pretty-print.h (text_info): Change abstract_origin to x_data.
3459 (pp_tree_identifier, pp_unsupported_tree,
3460 pp_base_tree_identifier): Move to tree-pretty-print.h.
3461 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
3462 tree-pretty-print.h: New files.
3463 * tree-pretty-print.c: Include tree-pretty-print.h.
3464 (percent_K_format): New. Moved from pretty-print.c.
3465 (pp_base_tree_identifier): Move from pretty-print.c.
3466 * c-objc-common.c: Include tree-pretty-print.h.
3467 (c_tree_printer): Handle %K here.
3468 * langhooks.c: Include tree-diagnostic.h.
3469 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
3470 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
3471 (default_tree_printer): Handle %K using percent_K_format.
3472 (general_init): Use default_tree_diagnostic_starter.
3473 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
3474 (free_lang_data): Use default_tree_diagnostic_starter.
3475 * c-pretty-print.c: Include tree-pretty-print.h.
3476 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3477 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3478 * dwarf2out.c: Include tree-pretty-print.h.
3479 * except.c: Include tree-pretty-print.h.
3480 * gimple-pretty-print.c: Include tree-pretty-print.h and
3481 gimple-pretty-print.h.
3482 * gimplify.c: Include tree-pretty-print.h.
3483 * graphite-poly.c: Include tree-pretty-print.h and
3484 gimple-pretty-print.h.
3485 * ipa-cp.c: Include tree-pretty-print.h.
3486 * ipa-inline.c: Include gimple-pretty-print.h.
3487 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3488 * ipa-pure-const.c: Include gimple-pretty-print.h.
3489 * ipa-struct-reorg.c: Include tree-pretty-print.h and
3490 gimple-pretty-print.h.
3491 * ipa-type-escape.c: Include tree-pretty-print.h.
3492 * print-rtl.c: Include tree-pretty-print.h.
3493 * print-tree.c: Include gimple-pretty-print.h.
3494 * sese.c: Include tree-pretty-print.h.
3495 * tree-affine.c: Include tree-pretty-print.h.
3496 * tree-browser.c: Include tree-pretty-print.h.
3497 * tree-call-cdce.c: Include gimple-pretty-print.h.
3498 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3499 * tree-chrec.c: Include tree-pretty-print.h.
3500 * tree-data-ref.c: Include tree-pretty-print.h and
3501 gimple-pretty-print.h.
3502 * tree-dfa.c: Include tree-pretty-print.h.
3503 * tree-if-conv.c: Include tree-pretty-print.h and
3504 gimple-pretty-print.h.
3505 * tree-inline.c: Include tree-pretty-print.h.
3506 * tree-into-ssa.c: Include tree-pretty-print.h and
3507 gimple-pretty-print.h.
3508 * tree-nrv.c: Include tree-pretty-print.h.
3509 * tree-object-size.c: Include tree-pretty-print.h and
3510 gimple-pretty-print.h.
3511 * tree-outof-ssa.c: Include tree-pretty-print.h and
3512 gimple-pretty-print.h.
3513 * tree-parloops.c: Include tree-pretty-print.h and
3514 gimple-pretty-print.h.
3515 * tree-predcom.c: Include tree-pretty-print.h and
3516 gimple-pretty-print.h.
3517 * tree-scalar-evolution.c: Include tree-pretty-print.h and
3518 gimple-pretty-print.h.
3519 * tree-sra.c: Include tree-pretty-print.h.
3520 * tree-ssa-address.c: Include tree-pretty-print.h.
3521 * tree-ssa-alias.c: Include tree-pretty-print.h.
3522 * tree-ssa-ccp.c: Include tree-pretty-print.h and
3523 gimple-pretty-print.h.
3524 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
3525 * tree-ssa-copy.c: Include tree-pretty-print.h and
3526 gimple-pretty-print.h.
3527 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
3528 * tree-ssa-dce.c: Include tree-pretty-print.h and
3529 gimple-pretty-print.h.
3530 * tree-ssa-dom.c: Include tree-pretty-print.h and
3531 gimple-pretty-print.h.
3532 * tree-ssa-dse.c: Include gimple-pretty-print.h.
3533 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
3534 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
3535 * tree-ssa-live.c: Include tree-pretty-print.h and
3536 gimple-pretty-print.h.
3537 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
3538 gimple-pretty-print.h.
3539 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
3540 gimple-pretty-print.h.
3541 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
3542 gimple-pretty-print.h.
3543 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
3544 gimple-pretty-print.h.
3545 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
3546 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
3547 * tree-ssa-operands.c: Include tree-pretty-print.h and
3548 gimple-pretty-print.h.
3549 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
3550 gimple-pretty-print.h.
3551 * tree-ssa-pre.c: Include tree-pretty-print.h and
3552 gimple-pretty-print.h.
3553 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
3554 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
3555 gimple-pretty-print.h.
3556 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
3557 gimple-pretty-print.h.
3558 * tree-ssa-sink.c: Include gimple-pretty-print.h.
3559 * tree-ssa-ter.c: Include tree-pretty-print.h and
3560 gimple-pretty-print.h.
3561 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
3562 * tree-ssa.c: Include tree-pretty-print.h and
3563 gimple-pretty-print.h.
3564 * tree-stdarg.c: Include gimple-pretty-print.h.
3565 * tree-switch-conversion.c: Include gimple-pretty-print.h.
3566 * tree-tailcall.c: Include tree-pretty-print.h and
3567 gimple-pretty-print.h.
3568 * tree-vect-data-refs.c: Include tree-pretty-print.h and
3569 gimple-pretty-print.h.
3570 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
3571 gimple-pretty-print.h.
3572 * tree-vect-loop.c: Include tree-pretty-print.h and
3573 gimple-pretty-print.h.
3574 * tree-vect-patterns.c: Include gimple-pretty-print.h.
3575 * tree-vect-slp.c: Include tree-pretty-print.h and
3576 gimple-pretty-print.h.
3577 * tree-vect-stmts.c: Include tree-pretty-print.h and
3578 gimple-pretty-print.h.
3579 * tree-vectorizer.c: Include tree-pretty-print.h.
3580 * tree-vrp.c: Include tree-pretty-print.h and
3581 gimple-pretty-print.h.
3582 * value-prof.c: Include tree-pretty-print.h and
3583 gimple-pretty-print.h.
3584 * var-tracking.c: Include tree-pretty-print.h.
3585 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
3586 (tree-diagnostic.o): New dependencies.
3587 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
3588 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
3589 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
3590 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
3591 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
3592 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
3593 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
3594 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
3595 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
3596 tree-ssa-address.o, tree-ssa-loop-niter.o,
3597 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
3598 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
3599 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
3600 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
3601 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
3602 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
3603 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
3604 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
3605 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
3606 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
3607 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
3608 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
3609 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
3610 tree-switch-conversion.o, var-tracking.o, value-prof.o,
3611 cfgexpand.o, pretty-print.o): Update dependencies.
3613 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
3615 * tree-ssa-structalias.c: Remove tm_p.h from include.
3617 2010-05-21 Jeff Law <law@redhat.com>
3619 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
3621 2010-05-21 Jason Merrill <jason@redhat.com>
3623 * tree-eh.c (cleanup_is_dead_in): New.
3624 (lower_try_finally): Don't generate a dead cleanup region.
3625 (lower_cleanup): Likewise.
3627 2010-05-21 Jakub Jelinek <jakub@redhat.com>
3630 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
3631 unchain each use from the cyclic next_regno_use chain first.
3633 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3635 * real: Do not include gmp.h, mpfr.h, and mpc.h.
3636 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
3637 (real_value_negate, real_value_abs): New prototypes.
3638 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
3639 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
3640 new include file for interface between MPFR and REAL_VALUE_TYPE.
3641 * real.c: Include realmpfr.h.
3642 (real_arithmetic2): Remove legacy function.
3643 (real_value_negate): New.
3644 (real_value_abs): New.
3645 (mfpr_from_real, real_from_mpfr): Move from here...
3646 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
3647 * builtins.c: Include realmpfr.h.
3648 * fold-const.c: Include realmpfr.h.
3649 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
3650 (fold_negate_const): Likewise.
3651 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
3652 * toplev.c: Include realmpfr.h.
3653 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
3654 and real_value_negate.
3655 * fixed-value.c (check_real_for_fixed_mode): Likewise.
3656 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
3657 (vfp3_const_double_index): Likewise.
3658 (arm_print_operand): Likewise.
3659 * Makefile.in: Update dependencies.
3661 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3663 * config/s390/s390.c (override_options): Increase the default
3664 of max-completely-peel-times.
3666 2010-05-21 Julian Brown <julian@codesourcery.com>
3667 Mark Mitchell <mark@codesourcery.com>
3669 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
3670 sibling calls for Thumb-1.
3671 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
3672 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
3674 (*call_insn, *call_value_insn): Don't use for Thumb-2.
3675 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
3677 (return): New expander.
3678 (*arm_return): New name for ARM return insn.
3679 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
3681 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
3683 * config.gcc (sparc64-*-rtems*): New target.
3685 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
3687 * tree.c (build_function_decl_skip_args): Fix grammar.
3688 (build_function_type_list_1): Fix typos, adjust formatting.
3690 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3692 * tree.h: Include real.h and fixed-value.h as basic datatypes.
3693 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
3694 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
3695 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
3696 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
3697 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
3698 tree-pretty-print.c, tree-loop-distribution.c,
3699 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
3700 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
3701 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
3702 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
3703 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
3704 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
3705 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
3706 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
3707 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
3708 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
3709 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
3710 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
3711 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
3712 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
3713 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
3714 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
3715 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
3716 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
3717 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
3718 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
3719 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
3720 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
3721 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
3722 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
3723 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
3724 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
3725 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
3726 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
3727 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
3728 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
3729 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
3730 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
3731 config/score/score7.c, config/score/score.c, config/arm/arm.c,
3732 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
3733 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
3734 config/bfin/bfin.c: Clean up redundant includes.
3735 * Makefile.in: Update accordingly.
3737 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
3740 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
3741 statement has no arguments.
3743 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
3746 * varasm.c (emutls_decl): Merge attributes to new decl.
3748 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
3751 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
3752 around the uniquized constructor if its type requires a conversion.
3754 2010-05-21 Jakub Jelinek <jakub@redhat.com>
3757 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
3758 at -O0 goto_locus of any of the incoming edges differs from
3759 goto_locus of outgoing edge, or gimple_location of any of the
3762 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
3764 * ira.c (ira_non_ordered_class_hard_regs): Define.
3765 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
3766 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
3767 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
3768 cost of unaligned hard regs when allocating multi-reg pseudos.
3770 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
3772 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
3773 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
3774 for TARGET_NO_FLOAT.
3775 * config/mips/mips.c (mips_file_start): Expand conditional expression
3776 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
3777 (mips_override_options): Move -mno-float override -msoft-float and
3779 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
3780 Condition(TARGET_SUPPORTS_NO_FLOAT).
3781 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
3782 __mips_no_float here.
3783 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
3784 (TARGET_SUPPORTS_NO_FLOAT): Define.
3785 * config/mips/sdemtk.opt: Delete.
3787 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
3789 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
3791 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
3794 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
3795 * configure: Regenerate.
3796 * config.in: Regenerate.
3797 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
3798 instead of sahf only for 64bit targets.
3800 2010-05-20 Jakub Jelinek <jakub@redhat.com>
3803 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
3804 setup_ref_regs for DEBUG_INSNs.
3806 2010-05-20 Jan Hubicka <jh@suse.cz>
3809 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
3811 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3814 * df-scan.c (df_ref_compare): Stabilize sort.
3816 2010-05-20 Jakub Jelinek <jakub@redhat.com>
3818 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
3819 argument. Don't use DW_OP_piece if offset is non-zero,
3820 put offset into second DW_OP_bit_piece argument.
3821 (dw_sra_loc_expr): Adjust callers. For memory expressions
3824 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
3827 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
3828 settings for 16-bit-constant "addo" alternative.
3830 2010-05-19 James E. Wilson <wilson@codesourcery.com>
3832 * config/mips/mips-dsp.md (add<DSPV:mode>3,
3833 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
3836 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
3837 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
3840 2010-05-19 Joseph Myers <joseph@codesourcery.com>
3842 * diagnostic.c (FLOAT, FFS): Don't undefine.
3843 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
3844 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
3847 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3849 * combine.c (propagate_for_debug): Call make_compound_operation
3850 on the source value.
3851 (try_combine): When implementing a split chosen by find_split_point,
3852 either copy i2src or set it to null. Assert that i2src is not null
3853 before substituting into CALL_INSN_FUNCTION_USAGE.
3855 2010-05-19 Anatoly Sokolov <aesok@post.ru>
3857 * double-int.h (double_int_ior): New function.
3858 * tree.h (build_int_cst_wide_type): Remove.
3859 * tree.c (build_int_cst_wide_type): Remove.
3860 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
3861 of build_int_cst_wide_type.
3862 * stor-layout.c (set_sizetype): (Ditto.).
3863 * dojump.c (do_jump): Use build_int_cstu instead of
3864 build_int_cst_wide_type.
3866 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3868 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
3869 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
3870 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
3871 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
3872 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
3873 propagate the 'data' argument to copy_tree_r.
3874 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
3875 Propagate 'data' argument to walk_tree.
3876 (copy_if_shared): New function.
3877 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
3878 (unmark_visited): New function.
3879 (unshare_body): Call copy_if_shared instead of doing it manually.
3880 (unvisit_body): Call unmark_visited instead of doing it manually.
3882 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
3884 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
3885 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
3886 * hooks.c: Likewise.
3887 * target-def.h (TARGET_FOLD_BUILTIN): Define to
3888 hook_tree_tree_int_treep_bool_null.
3889 * target.h (struct gcc_target): Update signature of fold_builtin
3891 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
3892 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
3893 instead of the call expression.
3894 (fold_builtin_call_array): Pass n and argarray directly.
3895 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
3897 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
3898 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
3899 `i' and use it in place of `arity'.
3900 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
3901 Dereference `args' directly.
3902 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
3904 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3906 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3908 (Directives): Document optional dg-require-effective-target
3911 2010-05-19 Richard Guenther <rguenther@suse.de>
3914 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
3916 2010-05-19 Richard Guenther <rguenther@suse.de>
3918 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
3919 * common.opt (fwhopr=): New.
3920 * opts.c (common_handle_option): Handle OPT_fwhopr.
3921 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
3922 * collect2.c (main): Match -fwhopr*.
3923 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
3924 Execute ltrans stage in parallel when jobs is bigger than 1.
3926 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3928 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3929 pentiumpro on Solaris 8/x86 with Sun as.
3930 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
3932 (gcc_cv_as_ix86_quad): Check for .quad directive.
3933 * configure: Regenerate.
3934 * config.in: Regenerate.
3935 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
3937 2010-05-19 Martin Jambor <mjambor@suse.cz>
3939 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
3940 also for indirect edges. Actual printing moved...
3941 (ipa_print_node_jump_functions_for_edge): ...here.
3942 (ipa_compute_jump_functions): Renamed to
3943 ipa_compute_jump_functions_for_edge and made static.
3944 (ipa_compute_jump_functions): New function.
3945 (make_edge_direct_to_target): Check if the number of arguments on
3946 the newly direct edge is the same as the number of parametrs of
3948 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
3949 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
3950 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3951 analysis functions unconditionally, call the new
3952 ipa_analyze_params_uses on the node instead of every edge.
3954 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
3956 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
3958 (dump_mem_ref): Adopt debug code to handle a tree as step. This
3959 also checks for a constant int vs. non-constant but
3960 loop-invariant steps.
3961 (find_or_create_group): Change the sort algorithm to only consider
3962 steps that are constant ints.
3963 (idx_analyze_ref): Adopt code to handle a tree instead of a
3964 HOST_WIDE_INT for step.
3965 (gather_memory_references_ref): Handle tree instead of int and be
3966 prepared to see a NULL_TREE.
3967 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
3968 prefetches if the step cannot be calculated at compile time.
3969 (issue_prefetch_ref): Issue prefetches for non-constant but
3970 loop-invariant steps.
3972 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3975 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3977 * tree.h (build_call_list): Remove.
3978 * tree.c (build_call_list): Remove.
3980 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3982 * tree.h (build_call_list): Remove.
3983 * tree.c (build_call_list): Remove.
3985 2010-05-18 Jan Hubicka <jh@suse.cz>
3987 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
3989 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
3991 PR rtl-optimization/43332
3992 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
3994 2010-05-18 Anatoly Sokolov <aesok@post.ru>
3996 * tree.h (build_int_cstu): Implement as static inline.
3997 * tree.c (build_int_cstu): Remove function.
3998 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
4001 2010-05-18 Richard Guenther <rguenther@suse.de>
4004 * lto-wrapper.c (verbose): New variable. Initialize from -v.
4005 (debug): Initialize from -save-temps.
4006 (collect_execute): Print command-line when verbose.
4007 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
4008 for ltrans invocation. Produce -dumpbase flag again.
4009 (process_args): Remove.
4011 * collect2.c (maybe_run_lto_and_relink): Only pass object
4012 files to lto-wrapper.
4013 * gcc.c (LINK_COMMAND_SPEC): Likewise.
4015 2010-05-18 Jan Hubicka <jh@suse.cz>
4017 * opts.c (decode_options): Do not disable whopr at ipa_cp.
4018 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
4020 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
4023 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
4025 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
4028 2010-05-18 Jakub Jelinek <jakub@redhat.com>
4031 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
4034 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
4036 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
4037 lto-macho as lto_binary_reader.
4039 * darwin.c (darwin_asm_named_section): Do not add assembler comment
4040 after .section directive; just print it before the directive instead.
4042 2010-05-17 Jan Hubicka <jh@suse.cz>
4044 * cgraph.c (cgraph_create_virtual_clone): Only check
4045 versionable_function_p when not in wpa and checking is enabled.
4046 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
4047 there are no more functions to materialize.
4049 2010-05-17 Jan Hubicka <jh@suse.cz>
4051 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
4052 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
4054 (output_cgraph): Call output_cgraph_opt_summary.
4055 (input_cgrpah): Call input_cgraph_opt_summary.
4056 (output_cgraph_opt_summary_p, output_node_opt_summary,
4057 input_node_opt_summary, input_cgraph_opt_section): New functions.
4058 * lto-section-in.c (lto_section_name): Add cgraphopt.
4059 * tree-inline.c (tree_function_versioning): Handle parm_num.
4060 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
4061 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
4063 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
4065 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
4066 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
4067 the insn to prefetch ratio heuristic to loops with known trip count.
4069 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
4071 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
4072 (schedule_prefetches): Do not generate a prefetch if the unroll factor
4073 is far from what is required by the prefetch.
4075 2010-05-17 Jan Hubicka <jh@suse.cz>
4077 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
4078 (ipcp_estimate_growth): Likewise.
4079 (ipcp_const_param_count): Likewise.
4080 (ipcp_insert_stage): Likewise.
4081 * ipa-prop.c (visit_load_for_mod_analysis): New function.
4082 (visit_store_addr_for_mod_analysis): Set used flag.
4083 (ipa_detect_param_modifications): Set used flag for SSE params;
4084 update use of walk_stmt_load_store_addr_ops.
4085 (ipa_print_node_params): Print used flag.
4086 (ipa_write_node_info): Stream used flag.
4087 (ipa_read_node_info): Likewise.
4088 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
4089 (ipa_is_param_used): New function.
4090 (lto_ipa_fixup_call_notes): Remove unused declaration.
4092 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4095 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
4096 * configure: Regenerate.
4097 * config.in: Regenerate.
4098 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
4099 !HAVE_AS_IX86_REP_LOCK_PREFIX.
4100 Don't emit whitespace.
4101 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
4102 (*rep_movsi): Likewise.
4103 (*rep_movsi_rex64): Likewise.
4104 (*rep_movqi): Likewise.
4105 (*rep_movqi_rex64): Likewise.
4106 (*rep_stosdi_rex64): Likewise.
4107 (*rep_stossi): Likewise.
4108 (*rep_stossi_rex64): Likewise.
4109 (*rep_stosqi): Likewise.
4110 (*rep_stosqi_rex64): Likewise.
4111 (*cmpstrnqi_nz_1): Use {%;} after repz.
4112 (*cmpstrnqi_nz_rex_1): Likewise.
4113 (*cmpstrnqi_1): Likewise.
4114 (*cmpstrnqi_rex_1): Likewise.
4115 (*strlenqi_1): Use {%;} after repnz.
4116 (*strlenqi_rex_1): Likewise.
4117 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
4118 (*sync_compare_and_swap<mode>): Likewise.
4119 (sync_double_compare_and_swap<mode>): Likewise.
4120 (*sync_double_compare_and_swapdi_pic): Likewise.
4121 (sync_old_add<mode>): Likewise.
4122 (sync_add<mode>): Likewise.
4123 (sync_sub<mode>): Likewise.
4124 (sync_<code><mode>): Likewise.
4126 2010-05-17 Martin Jambor <mjambor@suse.cz>
4128 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
4129 otr_token and polymorphic.
4130 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
4131 (cgraph_clone_edge): Copy the above fields.
4132 * tree.c (get_binfo_at_offset): New function.
4133 * tree.h (get_binfo_at_offset): Declare.
4134 * ipa-prop.h (enum jump_func_type): Added known_type jump function
4135 type, reordered items, updated comments.
4136 (union jump_func_value): Added base_type field, reordered fields.
4137 (enum ipa_lattice_type): Moved down in the file.
4138 (struct ipa_param_descriptor): New field polymorphic.
4139 (ipa_is_param_polymorphic): New function.
4140 * ipa-prop.c: Include gimple.h and gimple-fold.h.
4141 (ipa_print_node_jump_functions): Print known type jump functions.
4142 (compute_complex_pass_through): Renamed to...
4143 (compute_complex_assign_jump_func): this.
4144 (compute_complex_ancestor_jump_func): New function.
4145 (compute_known_type_jump_func): Likewise.
4146 (compute_scalar_jump_functions): Create known type and complex ancestor
4148 (ipa_note_param_call): New parameter polymorphic, set the corresponding
4149 flag in the call note accordingly.
4150 (ipa_analyze_call_uses): Renamed to...
4151 (ipa_analyze_indirect_call_uses): this. New parameter target, define
4152 variable var only in the block where it is used.
4153 (ipa_analyze_virtual_call_uses): New function.
4154 (ipa_analyze_call_uses): Likewise.
4155 (combine_known_type_and_ancestor_jfs): Likewise.
4156 (update_jump_functions_after_inlining): Implemented handling of a
4157 number of new jump function types combination.
4158 (print_edge_addition_message): Removed.
4159 (make_edge_direct_to_target): New function.
4160 (try_make_edge_direct_simple_call): Likewise.
4161 (try_make_edge_direct_virtual_call): Likewise.
4162 (update_call_notes_after_inlining): Renamed to...
4163 (update_indirect_edges_after_inlining): this. Moved edge creation for
4164 indirect calls to try_make_edge_direct_simple_call, also calls
4165 try_make_edge_direct_virtual_call for virtual calls.
4166 (ipa_print_node_params): Changed the header message.
4167 (ipa_write_jump_function): Stream also known type jump functions.
4168 (ipa_read_jump_function): Likewise.
4169 (ipa_write_indirect_edge_info): Stream new fields in
4170 cgraph_indirect_call_info.
4171 (ipa_read_indirect_edge_info): Likewise.
4172 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
4175 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4177 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
4179 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
4181 * tree.h (CALL_EXPR_ARGS): Delete.
4182 (call_expr_arglist): Delete.
4183 * tree.c (call_expr_arglist): Delete.
4184 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
4185 targetm.fold_builtin.
4186 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
4187 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
4188 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
4189 arglist parameter. Use CALL_EXPR_ARG.
4190 (picochip_expand_builtin_3op): Likewise.
4191 (picochip_expand_builtin_2opvoid): Likewise.
4192 (picochip_expand_array_get): Likewise.
4193 (picochip_expand_array_put): Likewise.
4194 (picochip_expand_array_testport): Likewise.
4195 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
4196 rather than arglist.
4197 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
4199 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
4200 than TREE_VALUE and TREE_CHAIN.
4201 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
4202 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
4205 2010-05-17 Jakub Jelinek <jakub@redhat.com>
4208 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
4209 to have no fallthru edge.
4212 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
4213 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
4214 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
4215 add BARRIER after previous bb if needed.
4217 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
4219 * tree.c (build_function_type_list_1): Remove bogus assert condition.
4221 2010-05-17 Alan Modra <amodra@gmail.com>
4223 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
4224 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
4225 with copy_reg rtx param.
4226 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
4227 Correct cases where code for ABI_V4 did not initialise the reg
4228 used to access frame. Also leave frame_reg_rtx as sp for large
4229 frames that save no regs.
4231 2010-05-17 Martin Jambor <mjambor@suse.cz>
4234 * tree-sra.c (create_access_replacement): New parameter rename, mark
4235 the replaement for renaming only when it is true.
4236 (get_access_replacement): Pass true in the rename parameter of
4237 create_access_replacement.
4238 (get_unrenamed_access_replacement): New function.
4239 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
4240 replacement declaration from it.
4242 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
4244 * function.c (try_fit_stack_local, add_frame_space): New static
4246 (assign_stack_local_1): Use them. Look for opportunities to use
4247 space previously wasted on alignment.
4248 * function.h (struct frame_space): New.
4249 (struct rtl_data): Add FRAME_SPACE_LIST member.
4250 * reload1.c (something_was_spilled): New static variable.
4251 (alter_reg): Set it.
4252 (reload): Test it in addition to testing if the frame size changed.
4254 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
4256 * config/s390/s390.c: Define sane prefetch settings and activate
4257 flag_prefetch_loop_arrays on -O3.
4258 * config/s390/s390.h: Declare that read can use write prefetch.
4260 2010-05-17 Jakub Jelinek <jakub@redhat.com>
4262 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
4265 2010-05-16 Jan Hubicka <jh@suse.cz>
4267 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
4268 function body; do not check stdarg field of struct function.
4270 2010-05-16 Jan Hubicka <jh@suse.cz>
4272 * cgraph.c (dump_cgraph_node): Dump versionable flag.
4273 * cgraph.h (cgraph_local_info): Add versionable flag.
4274 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
4275 (ipcp_versionable_function_p): Use it.
4276 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
4279 2010-05-16 Jan Hubicka <jh@suse.cz>
4281 * cgraph.c (cgraph_clone_node): Take decl argument and insert
4282 clone into hash when it is different from orig.
4283 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
4284 * cgraph.h (cgraph_clone_node): Update prototype.
4285 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
4286 (lto_cgraph_encoder_delete): Delete body map.
4287 (lto_cgraph_encoder_size): Move to header.
4288 (lto_cgraph_encoder_encode_body_p,
4289 lto_set_cgraph_encoder_encode_body): New.
4290 (lto_output_node): Do not take written_decls argument; output clone_of
4292 (add_node_to): Add include_body_argument; call
4293 lto_set_cgraph_encoder_encode_body on master of the clone.
4294 (add_references): Update use of add_node_to.
4295 (compute_ltrans_boundary): Likewise.
4296 (output_cgraph): Do not create written_decls bitmap.
4297 (input_node): Take nodes argument; stream in clone_of correctly.
4298 (input_cgraph_1): Update use of input_node.
4299 * lto-streamer-out.c (lto_output): Use encoder info to decide
4300 what bodies to output.
4301 * ipa-inline.c (cgraph_clone_inlined_nodes,
4302 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
4303 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
4304 (lto_cgraph_encoder_size): Define here.
4305 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
4308 2010-05-16 Richard Guenther <rguenther@suse.de>
4310 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
4312 * ipa-type-escape.c (gate_type_escape_vars): Run when
4313 -fipa-struct-reorg runs.
4314 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
4315 * common.opt (fipa-type-escape): Remove.
4317 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
4319 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
4320 (decode_options): Likewise.
4321 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
4323 2010-05-16 Jan Hubicka <jh@suse.cz>
4325 * ipa.c (function_and_variable_visibility): Also bring local all
4328 2010-05-16 Richard Guenther <rguenther@suse.de>
4330 * alias.c (nonoverlapping_memrefs_p): Remove use of
4331 IPA type-escape information.
4333 2010-05-16 Joseph Myers <joseph@codesourcery.com>
4335 * c-common.c (c_common_reswords): Add _Static_assert for C.
4336 * c-parser.c (c_token_starts_declaration,
4337 c_parser_next_token_starts_declaration,
4338 c_parser_static_assert_declaration_no_semi,
4339 c_parser_static_assert_declaration): New.
4340 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
4341 Handle static assertions if static_assert_ok.
4342 (c_parser_external_declaration, c_parser_declaration_or_fndef,
4343 c_parser_compound_statement_nostart, c_parser_label,
4344 c_parser_for_statement, c_parser_objc_methodprotolist,
4345 c_parser_omp_for_loop): All callers of
4346 c_parser_declaration_or_fndef changed.
4347 (c_parser_struct_declaration): Handle static assertions.
4348 (c_parser_compound_statement_nostart): Use
4349 c_parser_next_token_starts_declaration and
4350 c_token_starts_declaration to detect start of declarations.
4351 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
4354 2010-05-16 Anatoly Sokolov <aesok@post.ru>
4356 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4357 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4358 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4359 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4360 (mmix_function_outgoing_value): Rename to...
4361 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
4362 (mmix_function_value_regno_p): Make static.
4363 (mmix_libcall_value): New function.
4364 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
4365 mmix_function_value_regno_p): Remove declaration.
4367 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
4369 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
4370 BUILT_IN_ALLOCA if stack checking is enabled.
4372 2010-05-16 Richard Guenther <rguenther@suse.de>
4374 * var-tracking.c (vars_copy_1): Inline ...
4375 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
4376 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
4377 (variable_merge_over_cur): Adjust. Merge asserts.
4378 (variable_merge_over_src): Likewise.
4379 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
4380 (variable_post_merge_new_vals): Merge asserts.
4381 (variable_post_merge_perm_vals): Likewise.
4382 (find_mem_expr_in_1pdv): Likewise.
4383 (dataflow_set_different_value): Remove.
4384 (onepart_variable_different_p): Merge asserts.
4385 (variable_different_p): Likewise.
4386 (dataflow_set_different_1): Inline ...
4387 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
4388 (emit_notes_for_differences_1): Merge asserts.
4390 2010-05-16 Richard Guenther <rguenther@suse.de>
4392 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
4393 * optabs.c (libfunc_decl_hash): Likewise.
4394 * varasm.c (emutls_decl): Likewise.
4396 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
4398 * c-decl.c: Don't include gimple.h.
4399 (merge_decls): Do not copy gimple_body.
4401 2010-05-15 Jason Merrill <jason@redhat.com>
4403 * c.opt: Add -fnothrow-opt.
4405 2010-05-15 Jan Hubicka <jh@suse.cz>
4407 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
4409 * passes.c (ipa_write_summaries): Write all analyzed nodes.
4411 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
4413 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
4414 * Makefile.in: Add it.
4415 Fix all other Makefile dependencies for changes below.
4416 * tree.h: Include it instead of defining VEC primitives here.
4417 * gimple.h: Likewise.
4419 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
4420 * except.h: Include vecir.h, break dependence on tree.h.
4422 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
4424 * tree-iterator.c: ...to here.
4425 * tree-iterator.h: Fix file introduction comment. Add extern markers.
4427 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
4429 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
4430 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
4431 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
4432 tree-mudflap.h, and target.h.
4433 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
4434 predict.h, tree-inline.h, gimple.h, and langhooks.h.
4435 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
4436 Add FIXME for why gimple.h is still included (should be unnecessary
4437 since GCC 4.5 gimplification unit-at-a-time).
4438 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
4439 * c-pragma.c: Add FIXME for why function.h needs to be included just
4440 for cfun, at front-end level.
4441 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
4442 Do not include ggc.h, but include vecprim.h for VEC(char).
4443 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
4444 Explain why target.h is included.
4445 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
4446 Explain why gimple.h is included.
4447 * c-ppoutput.c: Do not include tm.h.
4448 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
4449 * c-parses.c: Explain why rtl.h is included, and that this (and only
4450 this) is also why tm.h must be included.
4451 Do not include except.h.
4452 * c-lang.c: Do not include ggc.h.
4454 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
4456 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
4458 2010-05-15 Joseph Myers <joseph@codesourcery.com>
4460 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
4461 unions by default if those structs and unions have no tags. Do
4462 not condition anonymous struct and unions handling on flag_iso.
4463 Allow anonymous structs and unions for C1X.
4464 (finish_struct): Do not diagnose lack of named fields when
4465 anonymous structs and unions present for C1X. Accept flexible
4466 array members in structure with anonymous structs or unions but no
4467 directly named fields.
4468 * doc/extend.texi (Unnamed Fields): Update.
4470 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
4472 * gimple.h (compare_field_offset): Rename into...
4473 (gimple_compare_field_offset): ...this.
4474 * gimple.c (compare_field_offset): Rename into...
4475 (gimple_compare_field_offset): ...this. Compare the full access if
4476 the offset is self-referential.
4477 (gimple_types_compatible_p): Adjust for above renaming.
4478 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
4479 DECL_NONADDRESSABLE_P flag of fields before merging them.
4481 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
4483 * tree.h (ctor_to_list): Delete.
4484 * tree.c (ctor_to_list): Delete.
4486 2010-05-15 Jan Hubicka <jh@suse.cz>
4488 * ipa-reference.c: Include toplev.h
4489 (is_proper_for_analysis): Only add to all_module_statics
4491 (write_node_summary_p, stream_out_bitmap,
4492 ipa_reference_write_optimization_summary,
4493 ipa_reference_read_optimization_summary): New.
4494 (struct ipa_opt_pass_d pass_ipa_reference): Add
4495 optimization summary streaming.
4496 * lto-cgraph.c (referenced_from_this_partition_p,
4497 reachable_from_this_partition_p): New functions.
4498 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4499 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
4500 * opts.c (decode_options): Enable ipa_reference.
4501 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
4502 * lto-streamer.h (referenced_from_this_partition_p,
4503 reachable_from_this_partition_p): Declare.
4505 2010-05-15 Richard Guenther <rguenther@suse.de>
4507 PR tree-optimization/44038
4508 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
4509 taking the address of a V_C_E of a constant.
4511 2010-05-14 Jan Hubicka <jh@suse.cz>
4513 * tree.h (memory_identifier_string): Remove.
4514 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
4515 (ipa_reference_global_vars_info_d): Remove statics_not_read and
4516 statics_not_written.
4517 (ipa_reference_optimization_summary_d): New structure.
4518 (ipa_reference_optimization_summary_t): New type and vector.
4519 (ipa_reference_vars_info_d): Embedd structures instead of using
4521 (reference_vars_to_consider): Remove out of GGC space.
4522 (module_statics_escape): Remove.
4523 (global_info_obstack): Rename to ...
4524 (optimization_summary_obstack): ... this one.
4525 (initialization_status_t): Remove.
4526 (memory_identifier_string): Remove.
4527 (get_reference_vars_info): Fix indenting.
4528 (set_reference_vars_info): Likewise.
4529 (get_reference_optimization_summary): New.
4530 (set_reference_optimization_summary): New.
4531 (get_global_reference_vars_info): Remove.
4532 (ipa_reference_get_read_global): Remove.
4533 (ipa_reference_get_written_global): Remove.
4534 (ipa_reference_get_not_read_global): Update.
4535 (ipa_reference_get_not_written_global): Update.
4536 (is_proper_for_analysis): Outlaw addressable.
4537 (propagate_bits): Update for new datastructures.
4538 (analyze_variable): Remove.
4539 (init_function_info): Update for new datastructures.
4540 (clean_function_local_data): Remove.
4541 (clean_function): Remove.
4542 (copy_global_bitmap): Use optimizations_summary_obstack.
4543 (duplicate_node_data): Duplicate optimization summary only.
4544 (remove_node_data): Remove optimization summary only.
4545 (generate_summary): Do not analyze variables; do not compute
4546 module_statics_escape; do not prune solutions by it.
4547 (read_write_all_from_decl): Fix typos in comments.
4548 (propagate): Doscover readonly and nonaddressable first;
4549 update for new datastructures; share global bitmaps.
4550 * ipa-reference.h (ipa_reference_get_read_global,
4551 ipa_reference_get_written_global): Remove.
4552 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
4553 * Makefile.in: Remove ipa-refereference from GT files.
4555 2010-05-14 Jakub Jelinek <jakub@redhat.com>
4558 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
4559 for all SYMBOL_REF_DECLs.
4561 2010-05-14 Jan Hubicka <jh@suse.cz>
4563 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
4564 (varpool_all_refs_explicit_p): New inline function.
4565 * ipa-reference.c: Update comment.
4566 (module_statics_written): Remove.
4567 (get_static_decl): Remove.
4568 (ipa_init): Do not initialize module_statics_written.
4569 (analyze_function): Likewise.
4570 (generate_summary): Likewise; do not compute module_statics_readonly
4571 and do not update variable flags.
4572 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
4573 * ipa.c: Inlucde flags.h
4574 (cgraph_local_node_p): New.
4575 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
4576 promote functions to local.
4577 (ipa_discover_readonly_nonaddressable_vars): New function.
4578 (function_and_variable_visibility): Use cgraph_local_node_p.
4579 * varpool.c (varpool_finalize_decl): Set force_output for
4580 DECL_PRESERVE_P vars.
4582 2010-05-14 Jan Hubicka <jh@suse.cz>
4584 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
4586 2010-05-14 Richard Guenther <rguenther@suse.de>
4588 PR tree-optimization/44119
4589 * tree-ssa-pre.c (eliminate): Properly mark replacement of
4590 a PHI node necessary.
4592 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
4594 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
4596 2010-05-14 Jason Merrill <jason@redhat.com>
4599 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
4600 (gimple_call_set_nothrow): New.
4601 * gimple.c (gimple_build_call_from_tree): Call it.
4602 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
4605 * gimplify.c (gimplify_seq_add_stmt): No longer static.
4606 * gimple.h: Declare it.
4607 * gimple.c (gimple_build_eh_filter): No ops.
4609 2010-05-14 Jan Hubicka <jh@suse.cz>
4611 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
4612 nodes already in queue.
4613 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
4616 2010-05-14 Jakub Jelinek <jakub@redhat.com>
4619 * cfgexpand.c (expand_debug_expr): If non-memory op0
4620 has BLKmode, return NULL.
4622 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
4624 * config.gcc: Add support for --with-cpu option for bdver1.
4625 * config/i386/i386.h (TARGET_BDVER1): New macro.
4626 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
4627 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
4628 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
4629 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
4630 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
4631 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
4632 (processor_type): Add PROCESSOR_BDVER1.
4633 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
4634 processor_type in config/i386/i386.h.
4635 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
4636 movaps <reg, reg> instead of movapd <reg, reg> when replacing
4637 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
4638 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4639 to emit packed xor instead of packed double/packed integer
4640 xor for SSE and AVX when moving a zero value.
4641 * config/i386/sse.md: Add check for
4642 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
4643 movapd/movdqa for SSE and AVX.
4644 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
4645 single logical operations i.e and, or and xor instead of packed double
4646 logical operations for SSE and AVX.
4647 * config/i386/i386-c.c (ix86_target_macros_internal):
4648 Add PROCESSOR_BDVER1.
4649 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
4650 (has_fma4, has_xop): New.
4651 * config/i386/i386.c (bdver1_cost): New variable.
4652 (m_BDVER1): New macro.
4653 (m_AMD_MULTIPLE): Add m_BDVER1.
4654 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
4655 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
4656 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
4657 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
4658 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
4659 x86_tune_sse_partial_reg_dependency,
4660 x86_tune_sse_unaligned_load_optimal,
4661 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
4662 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
4663 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
4664 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
4665 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
4666 Enable/disable for bdver1.
4667 (processor_target_table): Add bdver1_cost.
4668 (cpu_names): Add bdver1.
4669 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
4670 processor_alias_table.
4671 (ix86_expand_vector_move_misalign): Change.
4672 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
4673 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
4674 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
4675 of movupd/movdqu for SSE and AVX.
4676 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
4677 (ix86_tune_adjust_cost): Add code for bdver1.
4678 (standard_sse_constant_opcode): Add check for
4679 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
4680 of packed double xor for SSE and AVX.
4682 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
4684 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
4687 2010-05-14 Tristan Gingold <gingold@adacore.com>
4689 * toplev.c (default_debug_hooks): Remove this variable.
4690 (process_options): Remove assignments to default_debug_hooks.
4692 2010-05-14 Martin Jambor <mjambor@suse.cz>
4694 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
4695 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
4696 * langhooks.h (struct lang_hooks_for_decls): Removed field
4698 * tree.c (free_lang_data): Remove assignment to
4699 lang_hooks.fold_obj_type_ref.
4700 * tree.def (OBJ_TYPE_REF): Update comment.
4702 2010-05-14 Richard Guenther <rguenther@suse.de>
4704 PR tree-optimization/44124
4705 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
4707 2010-05-14 Alan Modra <amodra@gmail.com>
4710 * config/rs6000/rs6000.c (struct machine_function): Reorder
4711 fields for better packing. Add lr_save_state.
4712 (rs6000_ra_ever_killed): Return lr_save_state if set.
4713 (rs6000_emit_eh_reg_restore): Set lr_save_state.
4715 2010-05-13 Jan Hubicka <jh@suse.cz>
4717 * varpool.c (decide_is_variable_needed): Drop code checking
4718 TREE_SYMBOL_REFERENCED.
4720 2010-05-13 Jan Hubicka <jh@suse.cz>
4722 * final.c (output_addr_const): Do not call mark_decl_referenced.
4723 * cgraphunit.c (process_function_and_variable_attributes): Use
4724 mark_needed_node dirrectly.
4725 (assemble_thunk): Do not call mark_decl_referenced.
4727 2010-05-13 Anatoly Sokolov <aesok@post.ru>
4729 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
4731 2010-05-13 Jeff Law <law@redhat.com>
4733 * ira-conflicts.c (print_allocno_conflicts): New function broken out
4735 (print_conflicts): Call print_allocno_conflicts.
4737 2010-05-13 Jakub Jelinek <jakub@redhat.com>
4740 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
4743 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
4745 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
4746 t-mingw-w64 or t-mingw-w32 for multilib configuration.
4747 * config/i386/t-mingw-w32: New.
4748 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
4750 2010-05-13 Martin Jambor <mjambor@suse.cz>
4752 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
4754 * gimple-fold.c (get_base_binfo_for_type): New function.
4755 (gimple_get_relevant_ref_binfo): Likewise.
4756 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4757 (gimple_fold_obj_type_ref): Likewise.
4758 (fold_gimple_call): Simplify condition for folding virtual calls
4759 and call gimple_fold_obj_type_ref.
4760 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
4761 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4763 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
4765 * config/rs6000/rs6000-protos.h
4766 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
4767 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
4768 (rs6000_debug_mode_dependent_address)
4769 (rs6000_mode_dependent_address_ptr): Likewise.
4771 2010-05-13 Jakub Jelinek <jakub@redhat.com>
4774 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
4776 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
4777 * tree-sra.c (create_access_replacement): Call unshare_expr before
4778 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
4779 * dwarf2out.c: Include tree-flow.h.
4780 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
4781 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4782 Handle DW_OP_bit_piece.
4783 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
4784 construct_piece_list, adjust_piece_list): New functions.
4785 (add_var_loc_to_decl): Handle SRA optimized variables.
4786 Adjust for var_loc_note to loc field renaming.
4787 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
4788 in VAR_LOCATION note.
4789 (new_loc_descr_op_bit_piece): New function.
4790 (dw_sra_loc_expr): New function.
4791 (dw_loc_list): Use it. Don't handle the last range after the
4792 loop, handle it inside of the loop. Adjust for var_loc_note
4793 to loc field renaming.
4794 (add_location_or_const_value_attribute): Only special case
4795 single entry loc lists if loc is NOTE_P. Adjust for
4796 var_loc_note to loc field renaming.
4797 (dwarf2out_var_location): Don't set newloc->var_loc_note
4798 and newloc->next here.
4800 2010-05-12 Jan Hubicka <jh@suse.cz>
4802 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
4804 * cgraph.h (cgraph_only_called_directly_p,
4805 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
4806 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
4807 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
4809 * ipa.c (cgraph_remove_unreachable_nodes): Use
4810 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
4812 * tree-inline.c (copy_bb): Check address_taken flag.
4813 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
4814 externally_visible flag.
4816 2010-05-12 Jason Merrill <jason@redhat.com>
4820 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
4821 * sdbout.c (plain_type_1): Likewise.
4822 * dwarf2out.c (is_base_type): Likewise.
4823 (gen_type_die_with_usage): Likewise. Generate
4824 DW_TAG_unspecified_type for any LANG_TYPE.
4826 2010-05-12 Jan Hubicka <jh@suse.cz>
4828 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
4830 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
4831 (cgraph_clone_edge): Update.
4832 (cgraph_node_remove_callees): Remove indirect calls too.
4833 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
4834 (cgraph_create_indirect_edge): Update prototype.
4835 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
4836 is_proper_for_analysis.
4837 (add_new_function, visited_nodes, function_insertion_hook_holder,
4838 get_local_reference_vars_info, mark_address_taken, mark_address,
4839 mark_load, mark_store, check_asm_memory_clobber, check_call,
4840 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
4841 (ipa_init): Do not initialize visited_nodes;
4842 function_insertion_hook_holder.
4843 (analyze_variable): Rewrite.
4844 (analyze_function): Rewrite.
4845 (copy_local_bitmap): Remove.
4846 (duplicate_node_dat): Do not duplicate local info.
4847 (generate_summary): Simplify to only walk cgraph.
4848 (write_node_summary_p, ipa_reference_write_summary,
4849 ipa_reference_read_summary): Remove.
4850 (propagate): Do not remove function insertion;
4852 (pass_ipa_reference): NULLify summary handling fields.
4853 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
4854 (input_edge): Input ecf_flags.
4855 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
4856 (update_indirect_edges_after_inlining): Ignore edges with unknown
4859 2010-05-12 Sriraman Tallam <tmsriram@google.com>
4861 * implicit-zee.c: New file.
4862 * tree-pass.h (pass_implicit_zee): Declare.
4863 * passes.c (init_optimization_passes): Add zee pass.
4864 * common.opt (fzee): New flag.
4865 * timevar.def (TV_ZEE): Define.
4866 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
4868 * Makefile.in (implicit-zee.o): Add new build file.
4870 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
4871 Nathan Froyd <froydnj@codesourcery.com>
4873 * c-common.c (sync_resolve_params): Remove write-only variable.
4875 2010-05-12 Anatoly Sokolov <aesok@post.ru>
4877 * target.h (struct gcc_target): Add mode_dependent_address_p field.
4878 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
4879 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
4880 * targhooks.c (default_mode_dependent_address_p): New function.
4881 * targhooks.h (default_mode_dependent_address_p): Declare function.
4882 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
4883 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
4884 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
4885 target hook. Change return type to bool.
4886 * recog.h (mode_dependent_address_p): Change return type to bool.
4888 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
4889 Nathan Froyd <froydnj@codesourcery.com>
4891 * tree-mudflap.c (build_function_type_0, build_function_type_1,
4892 build_function_type_2, build_function_type_3): Remove.
4893 (mudflap_init): Use build_function_type_list.
4895 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
4896 Nathan Froyd <froydnj@codesourcery.com>
4898 * coverage.c (build_fn_info_value): Call build_constructor instead of
4899 build_constructor_from_list.
4900 (build_ctr_info_value): Likewise.
4901 (build_gcov_info): Likewise.
4903 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
4905 * tree.c (build_constructor): Compute TREE_CONSTANT for the
4906 resultant constructor.
4907 (build_constructor_single): Don't set TREE_CONSTANT.
4908 (build_constructor_from_list): Don't compute TREE_CONSTANT.
4910 2010-05-12 Jan Hubicka <jh@suse.cz>
4912 * cgraph.h (struct varpool_node): Add aux.
4913 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
4914 * varpool.c (varpool_remove_node): Do not remove initializer.
4915 (varpool_reset_queue): Export.
4916 (varpool_finalize_decl): Volatile vars are forced to be output.
4917 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
4919 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
4920 process_references, varpool_can_remove_if_no_refs): New functions.
4921 (cgraph_remove_unreachable_nodes): Handle variables too.
4923 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
4926 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
4928 2010-05-12 Jakub Jelinek <jakub@redhat.com>
4931 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
4932 change value of ORT_TASK.
4933 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
4934 (omp_notice_threadprivate_variable): New function.
4935 (omp_notice_variable): Call it for threadprivate variables.
4936 If enclosing ctx is a task, print enclosing task rather than
4937 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
4938 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
4939 if task has untied clause.
4942 * dwarf2out.c (base_type_die): Don't add name attribute here.
4943 (modified_type_die): Instead of sizetype use
4944 its underlying original type. If a DW_TAG_base_type doesn't
4945 have name added, add __unknown__.
4946 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
4947 always call force_type_die instead.
4949 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
4951 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
4952 for __stack_chk_guard.
4954 2010-05-11 Jakub Jelinek <jakub@redhat.com>
4956 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
4957 don't call start_source_file debug hook here...
4958 (finish_options): ... but here, after outputting predefined and
4959 command line defines and undefs.
4962 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
4964 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
4965 optimizing away empty bb with no successors, move over its
4966 footer chain to fallthru predecessor.
4967 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
4968 (rtl_split_edge): For asm goto call patch_jump_insn even if
4969 splitting fallthru edge.
4972 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
4973 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
4974 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
4975 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
4979 * c-parser.c (c_parser_expression): Mark LHS of a comma
4980 expression as read if it is a decl, handled component or
4981 COMPOUND_EXPR with that on the RHS.
4982 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
4983 if it is a decl or handled component.
4985 2010-05-11 Jan Hubicka <jh@suse.cz>
4987 * lto-symtab.c (lto_symtab_free): New function.
4988 * lto-streamer.h (lto_symtab_free): Declare.
4990 2010-05-11 Jan Hubicka <jh@suse.cz>
4992 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
4993 that if function is needed it is reachable.
4994 (lto_output_node): See if it the function is reachable or referenced.
4995 (output_cgraph): Update call of lto_output_node.
4996 * lto-streamer.h (reachable_from_other_partition_p): Declare.
4998 2010-05-11 Jan Hubicka <jh@suse.cz>
5000 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
5003 2010-05-11 Jan Hubicka <jh@suse.cz>
5005 PR tree-optimize/44063
5006 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
5008 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
5010 (estimate_function_body_sizes): Compute sizes even when disregarding.
5012 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
5014 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
5016 2010-05-11 Jan Hubicka <jh@suse.cz>
5018 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
5019 into every boundary.
5021 2010-05-11 Jan Hubicka <jh@suse.cz>
5023 * matrix-reorg.c (matrix_reorg): Rebuild edges.
5025 2010-05-11 Jan Hubicka <jh@suse.cz>
5027 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
5028 lto_streamer_cache_delete): Put nodes into heap.
5029 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
5032 2010-05-11 Jan Hubicka <jh@suse.cz>
5034 * cgraphbuild.c (cgraph_rebuild_references): New.
5035 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
5037 * cgraph.h (cgraph_rebuild_references): Declare.
5038 * tree-inline.c (tree_function_versioning): Use it.
5039 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
5041 2010-05-11 Jan Hubicka <jh@suse.cz>
5043 * cgraph.c: Include ipa-utils.h
5044 (cgraph_create_virtual_clone): Update references.
5045 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
5047 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
5049 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
5050 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
5053 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
5055 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
5057 2010-05-11 Jakub Jelinek <jakub@redhat.com>
5059 * gcc.c (execute): For -### don't quote arguments that
5060 contain just alphanumerics and _/-. characters.
5061 * doc/invoke.texi: Document that change for -###.
5064 * df-problems.c (struct dead_debug): Add to_rescan field.
5065 (dead_debug_init): Clear to_rescan field.
5066 (dead_debug_finish): Rescan all debug insns in to_rescan
5067 bitmap and free the bitmap.
5068 (dead_debug_insert_before): Instead of rescanning debug insns
5069 immediately queue their rescanning until dead_debug_finish.
5070 (df_note_bb_compute): After dead_debug_add do continue instead
5073 2010-05-10 Jakub Jelinek <jakub@redhat.com>
5076 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
5077 clear also INSN_REG_USE_LIST.
5079 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5081 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
5083 2010-05-10 Jan Hubicka <jh@suse.cz>
5085 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
5088 2010-05-10 Jan Hubicka <jh@suse.cz>
5090 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
5092 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
5093 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
5094 (lto_streamer_cache_create): Init alloc pool.
5095 (lto_streamer_cache_delete): Free alloc pool.
5096 * lto-streamer.h: Include alloc pool.
5097 (lto_streamer_cache_d): Use alloc pool.
5098 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
5100 2010-05-10 Jan Hubicka <jh@suse.cz>
5102 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
5103 * cgraphbuild.c: Include except.h
5104 (record_type_list, record_eh_tables): New function.
5105 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
5107 2010-05-10 Jan Hubicka <jh@suse.cz>
5109 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
5110 __frame_dummy_init_array_entry, force_to_data): Attribute as used
5113 2010-05-10 Michael Matz <matz@suse.de>
5115 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
5116 (can_reassociate_p): Use FLOAT_TYPE_P.
5117 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
5118 (vect_force_simple_reduction): ... this.
5119 * tree-parloops.c (gather_scalar_reductions): Use
5120 vect_force_simple_reduction.
5121 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
5122 vect_is_simple_reduction, add modify argument, if true rewrite
5123 "a-b" into "a+(-b)".
5124 (vect_is_simple_reduction, vect_force_simple_reduction): New
5126 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
5128 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
5129 Vladimir Makarov <vmakarov@redhat.com>
5131 PR rtl-optimization/44012
5132 * ira-build.c (remove_unnecessary_allocnos): Nullify
5133 regno_allocno_map of the removed allocno.
5135 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5137 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
5139 * configure: Regenerate.
5141 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5143 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
5145 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
5146 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
5148 * configure: Regenerate.
5150 2010-05-10 Richard Guenther <rguenther@suse.de>
5152 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
5153 marked if the entry identifier is marked.
5155 2010-05-10 Richard Guenther <rguenther@suse.de>
5157 * c-common.c (struct c_common_attributes): Add fnspec attribute.
5158 (handle_fnspec_attribute): New function.
5159 * gimple.h (gimple_call_return_flags): Declare.
5160 (gimple_call_arg_flags): Likewise.
5161 * gimple.c (gimple_call_arg_flags): New function.
5162 (gimple_call_return_flags): Likewise.
5163 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
5165 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
5167 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
5168 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
5170 (make_heapvar_for): ... this new function.
5171 (handle_rhs_call): Handle fnspec attribute argument specifiers.
5172 (handle_lhs_call): Likewise.
5173 (find_func_aliases): Adjust.
5175 2010-05-10 Richard Guenther <rguenther@suse.de>
5177 PR tree-optimization/44050
5178 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
5180 2010-05-10 Wei Guozhi <carrot@google.com>
5183 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
5185 2010-05-09 Joseph Myers <joseph@codesourcery.com>
5188 * c-typeck.c (lookup_field): Take a type directly. Update
5190 (build_component_ref): Update call to lookup_field.
5191 (set_init_label): Use lookup_field to find initialized field.
5192 Handle returned list of fields like a sequence of designators.
5194 2010-05-09 Richard Guenther <rguenther@suse.de>
5197 * fold-const.c (tree_single_nonzero_warnv_p): Properly
5198 handle &FUNCTION_DECL.
5200 2010-05-09 Joseph Myers <joseph@codesourcery.com>
5203 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
5204 structures and unions recursively.
5205 (detect_field_duplicates): Move duplicate detection with a hash to
5206 detect_field_duplicates_hash. Always use a hash if anonymous
5207 structures or unions are present.
5208 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
5211 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
5214 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
5215 detect Atom, Core 2 and Core i7.
5217 2010-05-09 Richard Guenther <rguenther@suse.de>
5219 * gcc.c (store_arg): Handle temporary file deletion for
5222 2010-05-09 Richard Guenther <rguenther@suse.de>
5225 * ipa-inline.c (estimate_function_body_sizes): Return after
5226 disregarding inline limits.
5228 2010-05-09 Richard Guenther <rguenther@suse.de>
5230 * gcc.c (store_arg): Revert last change.
5232 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
5235 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
5236 (optimize_ops_list): Call it.
5238 2010-05-08 Richard Guenther <rguenther@suse.de>
5240 PR tree-optimization/44030
5241 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
5242 NECESSARY flag if we propagate from a inserted expression.
5244 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5246 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
5247 domain types as equal if they are both PLACEHOLDER_EXPRs.
5249 2010-05-08 Richard Guenther <rguenther@suse.de>
5251 * lto-wrapper.c (run_gcc): Remove linker output from
5252 command line for LTRANS invocation.
5254 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
5256 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5257 lto-macho as lto_binary_reader.
5258 * target.h (struct gcc_target): New hooks lto_start and lto_end.
5259 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
5260 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
5261 in lto_start and lto_end calls.
5262 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
5264 (scan_prog_file): Update is_elf_or_coff call.
5265 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
5267 * collect2.c (main): Fix enum comparison.
5269 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
5271 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
5272 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
5273 and TARGET_ASM_LTO_END.
5274 * darwin.c: Include obstack.h and lto-streamer.h.
5275 (lto_section_names_offset, lto_section_names_obstack,
5276 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
5278 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
5279 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
5280 to a temporary file.
5281 (darwin_asm_lto_end): New function. Restore asm_out_file.
5282 (darwin_asm_named_section): For LTO sections, replace the name with
5283 the offset of the section name in a string table, and build this
5285 (darwin_file_start): Initialize global vars for LTO support.
5286 (darwin_file_end): If output to asm_out_file was redirected, append it
5287 to the proper asm_out_file here. Add the section names section.
5289 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
5291 * c-pragma.c (pending_weak_d, pending_weak): New.
5292 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
5293 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
5294 handle_pragma_weak): Update the uses of pending_weaks.
5296 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5298 PR documentation/44016
5299 * doc/standards.texi (Standards): Link to unversioned
5300 cxx0x_status.html page.
5302 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
5305 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
5306 in addition to TREE_USED, to avoid "set but unused" warnings.
5308 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
5310 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
5311 (is_loop_prefetching_profitable): Do not insert prefetches
5312 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
5313 times the prefetch ahead distance.
5315 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
5317 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
5318 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
5319 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
5322 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
5324 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
5325 a diagnostic info when the insn-to-mem ratio is too small.
5327 2010-05-07 Richard Guenther <rguenther@suse.de>
5329 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
5331 (store_arg): Queue temp_filename for deletion instead of
5334 2010-05-07 Richard Guenther <rguenther@suse.de>
5336 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
5337 (run_gcc): Handle LTRANS phase invocation.
5338 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
5340 2010-05-07 Jakub Jelinek <jakub@redhat.com>
5342 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
5343 this is also meaningful on PARM_DECLs and RESULT_DECLs.
5345 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5347 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
5349 2010-05-07 Richard Guenther <rguenther@suse.de>
5351 PR tree-optimization/44020
5352 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
5353 code when PRE is not yet initialized.
5355 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5357 * config/mips/dbxmdebug.h: Remove.
5358 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
5360 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
5362 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
5363 with null pointer and also warn about ordered comparison of zero with
5366 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5368 * graphite-blocking.c
5369 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
5370 * graphite-clast-to-gimple.c
5371 (clast_to_gcc_expression): Same.
5372 (precision_for_value): Same.
5373 (precision_for_interval): Same.
5374 (gcc_type_for_interval): Same.
5375 (graphite_create_new_guard): Same.
5376 (compute_bounds_for_level): Same.
5377 (graphite_create_new_loop_guard): Same.
5378 * graphite-interchange.c
5379 (build_linearized_memory_access): Same.
5380 (pdr_stride_in_loop): Same.
5381 (memory_strides_in_loop_1): Same.
5382 (memory_strides_in_loop): Same.
5383 (extend_scattering): Same.
5384 (psct_scattering_dim_for_loop_depth): Same.
5385 (pbb_number_of_iterations): Same.
5387 (debug_iteration_domains): Same.
5389 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5390 (ppl_set_inhomogeneous_gmp): Same.
5391 (ppl_strip_loop): Same.
5392 (ppl_lexico_compare_linear_expressions): Same.
5393 (ppl_read_polyhedron_matrix): Same.
5394 (ppl_max_for_le_pointset): Same.
5396 (ppl_read_polyhedron_matrix): Same.
5397 (tree_int_to_gmp): Same.
5398 (gmp_cst_to_tree): Same.
5399 (ppl_set_inhomogeneous): Same.
5400 (ppl_set_inhomogeneous_tree): Same.
5401 (ppl_set_coef): Same.
5402 (ppl_set_coef_tree): Same.
5403 * graphite-sese-to-poly.c
5404 (build_pbb_scattering_polyhedrons): Same.
5405 (build_scop_scattering): Same.
5406 (scan_tree_for_params_right_scev): Same.
5407 (scan_tree_for_params): Same.
5408 (find_params_in_bb): Same.
5409 (find_scop_parameters): Same.
5410 (add_upper_bounds_from_estimated_nit): Same.
5411 (build_loop_iteration_domains): Same.
5412 (add_condition_to_domain): Same.
5413 (pdr_add_memory_accesses): Same.
5415 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5417 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
5418 CLooG's value_* macros to their respective mpz_* counterparts.
5419 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
5420 (graphite_create_new_loop_guard): Same.
5421 * graphite-interchange.c (build_linearized_memory_access): Same.
5422 (pdr_stride_in_loop): Same.
5423 (memory_strides_in_loop_1): Same.
5424 (1st_interchange_profitable_p): Same.
5425 * graphite-poly.c (extend_scattering): Same.
5426 (psct_scattering_dim_for_loop_depth): Same.
5427 (pbb_number_of_iterations): Same.
5428 (pbb_number_of_iterations_at_time): Same.
5429 * graphite-poly.h (new_1st_loop): Same.
5430 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
5431 (oppose_constraint): Same.
5432 (insert_constraint_into_matrix): Same.
5433 (ppl_set_inhomogeneous_gmp): Same.
5434 (ppl_set_coef_gmp): Same.
5435 (ppl_strip_loop): Same.
5436 (ppl_lexico_compare_linear_expressions): Same.
5437 (ppl_max_for_le_pointset): Same.
5438 (ppl_min_for_le_pointset): Same.
5439 (ppl_build_realtion): Same.
5440 * graphite-ppl.h (gmp_cst_to_tree): Same.
5441 (ppl_set_inhomogeneous): Same.
5442 (ppl_set_inhomogeneous_tree): Same.
5443 (ppl_set_coef): Same.
5444 (ppl_set_coef_tree): Same.
5445 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5446 (build_scop_scattering): Same.
5447 (add_value_to_dim): Same.
5448 (scan_tree_for_params_right_scev): Same.
5449 (scan_tree_for_params_int): Same.
5450 (scan_tree_for_params): Same.
5451 (find_params_in_bb): Same.
5452 (find_scop_parameters): Same.
5453 (add_upper_bounds_from_estimated_nit): Same.
5454 (build_loop_iteration_domains): Same.
5455 (create_linear_expr_from_tree): Same.
5456 (add_condition_to_domain): Same.
5457 (pdr_add_memory_accesses): Same.
5459 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
5460 Jason Merrill <jason@redhat.com>
5462 * c-common.c (c_common_reswords): Add nullptr.
5463 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
5464 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
5465 (gen_type_die_with_usage): Likewise.
5466 * dbxout.c (dbxout_type): Likewise.
5467 * sdbout.c (plain_type_1): Likewise.
5469 2010-05-06 Jason Merrill <jason@redhat.com>
5471 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
5472 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
5474 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
5476 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
5477 stripping WITH_SIZE_EXPR.
5478 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
5481 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5483 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
5484 list of obsolete configurations.
5485 Disabled check for obsolete configurations.
5486 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
5487 Removed support for previous versions.
5488 * config/mips/iris.h: Removed.
5489 * config/mips/iris5.h: Removed.
5490 * config/mips/iris6.h: Merged old iris.h contents.
5491 (TARGET_IRIX): Removed.
5492 (DRIVER_SELF_SPECS): Removed mabi=32.
5493 (IDENT_ASM_OP): Removed undef.
5494 (STARTFILE_SPEC): Removed mabi=32.
5495 (ENDFILE_SPEC): Likewise.
5496 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
5497 (MACHINE_TYPE): Update for IRIX 6.5.
5498 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
5499 TARGET_IRIX by TARGET_IRIX6.
5500 (mips_file_start): Likewise.
5501 (mips_output_external): Remove IRIX 5/6 O32 support.
5502 (mips_output_function_prologue): Likewise.
5503 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
5505 (TARGET_CPU_CPP_BUILTINS): Likewise.
5506 (TARGET_IRIX): Removed.
5507 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
5508 (MULTILIB_DIRNAMES): Removed 32.
5509 (MULTILIB_OSDIRNAMES): Removed ../lib.
5510 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
5511 (Specific, mips-sgi-irix5): Document removal.
5512 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
5513 Remove references to older IRIX 6 releases and the O32 ABI.
5515 2010-05-06 Jakub Jelinek <jakub@redhat.com>
5518 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
5519 instead of DF_REF_REAL_REG.
5521 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
5524 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
5525 handling to still return true for x64 targets.
5527 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5529 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
5531 2010-05-06 Jan Hubicka <jh@suse.cz>
5533 PR tree-optimization/43791
5534 * ipa-inline.c (update_caller_keys): Remove bogus
5535 disregard_inline_limits check.
5537 2010-05-06 Michael Matz <matz@suse.de>
5539 PR tree-optimization/43984
5540 * tree-ssa-pre.c (inserted_phi_names): Remove.
5541 (inserted_exprs): Change to bitmap.
5542 (create_expression_by_pieces): Set bits, don't append to vector.
5543 (insert_into_preds_of_block): Don't handle inserted_phi_names.
5544 (eliminate): Don't look at inserted_phi_names, remove deleted
5545 insns from inserted_exprs.
5546 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
5547 (init_pre, fini_pre): Allocate and free bitmaps.
5548 (execute_pre): Insert insns on edges before elimination.
5550 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5552 * tree.c (initializer_zerop): Handle STRING_CST.
5554 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5557 * doc/invoke.texi (Wimplicit): Document as C only.
5558 * opts.c (common_handle_option): Add argument kind.
5559 (handle_option): Rename as read_cmdline_option. Factor out code to...
5560 (handle_option): ... here. New.
5561 (handle_options): Rename as read_cmdline_options.
5562 (decode_options): Update call.
5563 (set_option): Use option index instead of option pointer. Classify
5564 diagnostics correctly.
5565 (enable_warning_as_error): Call handle_option.
5566 * opts.h (set_option): Update declaration.
5567 (handle_option): Declare.
5568 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
5569 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
5570 * c-opts.c (set_Wimplicit): Delete.
5571 (c_family_lang_mask): New static constant.
5572 (c_common_handle_option): Add argument kind. Use handle_option
5573 instead of set_Wimplicit.
5574 (c_common_post_options): warn_implicit and warn_implicit_int
5575 are disabled by default.
5576 * c-common.c (warn_implicit): Do not define here.
5577 * c-common.h (warn_implicit): Do not declare here.
5578 (c_common_handle_option): Update declaration.
5579 * lto-opts.c (lto_reissue_options): Update call to set_option.
5581 2010-05-06 Richard Guenther <rguenther@suse.de>
5583 PR tree-optimization/43571
5584 * domwalk.c (walk_dominator_tree): Walk the dominator
5585 sons in more optimal order.
5587 2010-05-06 Richard Guenther <rguenther@suse.de>
5589 PR tree-optimization/43934
5590 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
5591 (stmt_cost): Likewise.
5592 (extract_true_false_args_from_phi): New helper.
5593 (determine_max_movement): For PHI nodes verify we can hoist them
5594 and compute their cost.
5595 (determine_invariantness_stmt): Handle PHI nodes.
5596 (move_computations_stmt): Likewise. Hoist PHI nodes in
5597 if-converted form using COND_EXPRs.
5598 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
5599 (tree_ssa_lim): Likewise.
5600 * tree-flow.h (tree_ssa_lim): Adjust prototype.
5601 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
5603 2010-05-06 Richard Guenther <rguenther@suse.de>
5605 PR tree-optimization/43987
5606 * tree-ssa-structalias.c (could_have_pointers): For possibly
5607 address-taken variables force pointers to be recorded.
5608 (create_variable_info_for_1): Likewise.
5609 (push_fields_onto_fieldstack): Pass in wheter all fields
5611 (find_func_aliases): Query types instead of vars whether
5612 they contain pointers where appropriate.
5614 2010-05-06 Jan Hubicka <jh@suse.cz>
5616 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
5617 (record_reference, mark_address, mark_load, mark_store): Record
5619 (record_references_in_initializer): Update call of record_references.
5620 (rebuild_cgraph_edges): Remove all references before rebuiding.
5621 * cgraph.c (cgraph_create_node): Clear ref list.
5622 (cgraph_remove_node): Remove references.
5623 (dump_cgraph_node): Dump references.
5624 (cgraph_clone_node): Clone references.
5625 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
5626 (struct cgraph_node, varpool_node): Add ref_lst.
5627 * ipa-ref.c: New file.
5628 * ipa-ref.h: New file.
5629 * ipa-ref-inline.h: New file.
5630 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
5631 (referenced_from_other_partition_p): New function.
5632 (lto_output_varpool_node): Take set arugment; call
5633 referenced_from_other_partition.
5634 (lto_output_ref): New.
5635 (add_references): New.
5637 (output_cgraph): Compute boundary based on references; output refs.
5638 (output_varpool): Accept cgraph_node_set argument.
5641 (input_cgraph): Call input_refs.
5642 * lto-section-in.c (lto_section_name): Add refs.
5643 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
5644 (ipa-ref.o): New file.
5645 * varpool.c (varpool_node): Clear ipa ref list.
5646 (varpool_remove_node): Remove references.
5647 (dump_varpool_node): Dump references.
5648 (varpool_assemble_decl): Only compile finalized ones.
5649 (varpool_extra_name_alias): Initialize ref list.
5650 * lto-streamer.c (lto-get_section_name): Add .refs section.
5651 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
5652 (referenced_from_other_partition_p): Declared.
5654 2010-05-06 Ira Rosen <irar@il.ibm.com>
5656 PR tree-optimization/43901
5657 * tree-vect-stmts.c (vectorizable_call): Assert that vector
5658 type is not NULL if it's transformation phase, and return
5659 FALSE if it's analysis.
5660 (vectorizable_conversion, vectorizable_operation,
5661 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
5663 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5665 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
5667 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
5669 * config/mips/mips-protos.h
5670 (mips_small_register_classes_for_mode_p): Delete prototype.
5672 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
5674 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
5675 * config/arm/arm.c (multiple_operation_profitable_p,
5676 compute_offset_order): New static functions.
5677 (load_multiple_sequence, store_multiple_sequence): Use them.
5678 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
5679 memory offsets, not register numbers.
5680 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
5682 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
5684 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
5685 (get_pending_sizes, put_pending_size, put_pending_sizes):
5686 Update the uses of pending_sizes.
5687 * c-decl.c (store_parm_decls): Likewise.
5688 * c-tree.h (struct c_arg_info): Likewise.
5689 * tree.h: Update the prototype for get_pending_sizes and
5692 2010-05-05 Jason Merrill <jason@redhat.com>
5695 * c-common.c (handle_aligned_attribute): Respect
5696 ATTR_FLAG_TYPE_IN_PLACE.
5699 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
5700 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5701 (TARGET_INITIALIZER): Use it.
5702 * c-common.c (attribute_takes_identifier_p): Call it.
5703 * c-common.h: Update prototype.
5704 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
5705 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5707 2010-05-05 Jakub Jelinek <jakub@redhat.com>
5710 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
5711 DW_ID_down_case for Fortran compilation units.
5713 2010-05-05 Jan Hubicka <jh@suse.cz>
5715 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
5718 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
5720 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
5721 a variable-sized RESULT_DECL.
5723 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
5725 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
5727 2010-05-05 Jason Merrill <jason@redhat.com>
5730 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
5732 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
5734 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
5735 Jakub Jelinek <jakub@redhat.com>
5738 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
5739 (dead_debug_init, dead_debug_finish): New functions.
5740 (dead_debug_add, dead_debug_insert_before): Likewise.
5741 (df_note_bb_compute): Initialize a dead_debug object, add dead
5742 debug uses to it, insert debug bind insns before death insns,
5743 reset debug insns that refer to pending uses at the end.
5744 * rtl.h (make_debug_expr_from_rtl): New prototype.
5745 * varasm.c (make_debug_expr_from_rtl): New function.
5747 2010-05-05 Jan Hubicka <jh@suse.cz>
5749 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
5750 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
5751 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
5752 lto_varpool_encoder_deref, lto_varpool_encoder_size,
5753 lto_varpool_encoder_encode_initializer_p,
5754 lto_set_varpool_encoder_encode_initializer): New functions.
5755 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
5756 call output_varpool.
5757 (input_varpool_node): Do not always set analyzed.
5758 (input_cgraph_1): Return vector of cgraph nodes.
5759 (input_varpool_1): Return vector of varpools.
5760 (input_cgraph): Free the vectors.
5761 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5762 output only initializers needed.
5763 (lto_output): Only call output_cgraph.
5764 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
5765 * lto-section-out.c (lto_new_out_decl_state): Initialize
5766 state->varpool_node_encoder.
5767 * lto-streamer.h (lto_varpool_encoder_d): New.
5768 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
5769 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
5770 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
5771 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
5772 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
5774 (output_varpool, input_varpool): Remove declarations.
5776 2010-05-05 Jan Hubicka <jh@suse.cz>
5778 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
5779 with body can prevail.
5781 2010-05-05 Jan Hubicka <jh@suse.cz>
5783 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
5786 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5788 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
5790 * gengtype.h (erro_at_line): Constify pos argument.
5792 * gengtype.c: Include hashtab.h.
5793 (enum gc_used): Document GC_MAYBE_POINTED_TO.
5794 (error_at_line): Constify pos argument.
5795 (do_typedef): Initialize p->opt field.
5796 (get_file_gtfilename): Fix comment typo.
5797 (struct walk_type_data): Constify line field.
5798 (get_output_file_for_structure): New function.
5799 (write_local_func_for_structure): Constify orig_s argument.
5800 Use get_output_file_for_structure.
5801 (write_func_for_structure): Use get_output_file_for_structure.
5802 (INDENT): New define.
5803 (dump_pair, dump_type, dump_type_list, dump_typekind)
5804 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
5805 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
5807 (seen_types): New variable.
5808 (main): New variable do_dump. Process "-d" command line option.
5809 Call dump_everything if dump requested.
5811 2010-05-05 Jakub Jelinek <jakub@redhat.com>
5813 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
5814 in a temporary instead of invoking the macro multiple times.
5815 (track_expr_p): Likewise.
5817 2010-05-04 Neil Vachharajani <nvachhar@google.com>
5819 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
5821 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
5822 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
5823 conditions for printing notes.
5824 * common.opt (-Wcoverage-mismatch): Allow negative, default to
5825 true, update documentation.
5826 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
5828 2010-05-04 Jakub Jelinek <jakub@redhat.com>
5831 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
5834 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
5837 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
5838 (*sse_prologue_save_insn1): Likewise.
5839 (SSE prologue save splitter): Likewise.
5841 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
5843 * tree.c (free_lang_data_in_one_sizepos): New inline function.
5844 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
5845 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
5846 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
5847 all decls. Call it on DECL_FIELD_OFFSET of fields.
5848 (find_decls_types_r): Follow DECL_VALUE_EXPR.
5849 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
5851 2010-05-04 Martin Jambor <mjambor@suse.cz>
5853 * tree-sra.c (build_access_from_expr_1): The first parameter type
5854 changed to simple tree.
5855 (build_access_from_expr): Likewise, gsi parameter was eliminated.
5856 (scan_assign_result): Renamed to assignment_mod_result, enum elements
5858 (build_accesses_from_assign): Removed all parameters except for a
5859 simple gimple statement. Now returns a simple bool.
5860 (scan_function): All non-analysis parts moved to separate functions
5861 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
5862 parameters and updated both callers.
5863 (sra_modify_expr): Removed parameter data.
5864 (sra_modify_function_body): New function.
5865 (perform_intra_sra): Call sra_modify_function_body to modify the
5867 (replace_removed_params_ssa_names): Parameter data changed into
5869 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
5870 changed the parameter dont_convert to convert with the opposite
5872 (sra_ipa_modify_assign): Parameter data changed into adjustments
5873 vector, return value changed to bool.
5874 (ipa_sra_modify_function_body): New function.
5875 (sra_ipa_reset_debug_stmts): Updated a comment.
5876 (modify_function): Use ipa_sra_modify_function_body to modify function
5879 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
5882 * alias.c (true_dependence): Handle the same VALUE in x and mem.
5883 (canon_true_dependence): Likewise.
5884 (write_dependence_p): Likewise.
5886 2010-05-04 Jan Hubicka <jh@suse.cz>
5888 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
5889 * cgraphbuild.c: Include ipa-utils.h
5890 (record_reference_ctx): New struct.
5891 (record_reference): Simplify to work on initializers; not statements.
5892 (mark_address, mark_load, mark_store): New.
5893 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
5895 (record_references_in_initializer): Update use of record_reference.
5896 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
5899 2010-05-04 Jan Hubicka <jh@suse.cz>
5901 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
5902 node will be removed anyway.
5903 (lto_varpool_replace_node): Allow also unanalyzed nodes;
5904 relink aliases of node into prevailing node.
5905 * varpool.c (varpool_remove_node): Remove aliases properly;
5906 when removing node, remove all its aliases too; remove DECL_INITIAL
5907 of removed node; ggc_free the varpool node.
5909 2010-05-04 Richard Guenther <rguenther@suse.de>
5911 PR tree-optimization/43879
5912 * tree-ssa-structalias.c (alias_get_name): Use
5913 DECL_ASSEMBLER_NAME if available.
5914 (create_function_info_for): Return the varinfo node.
5915 (ipa_pta_execute): Associate same-body aliases and extra names
5916 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
5918 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
5920 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
5922 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
5925 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
5926 only if HONOR_REG_ALLOC_ORDER is not defined.
5928 2010-05-04 Richard Guenther <rguenther@suse.de>
5930 PR tree-optimization/43949
5931 * tree-vrp.c (extract_range_from_binary_expr): Only handle
5934 2010-04-26 Jason Merrill <jason@redhat.com>
5936 * c.opt (-fstrict-enums): New.
5937 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
5939 2010-05-03 David Ung <davidu@mips.com>
5940 James E. Wilson <wilson@codesourcery.com>
5942 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
5943 emit the trap instruction before the divide for TUNE_74K.
5945 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
5947 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
5948 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
5949 based on the above, for new target hook.
5951 * hooks.c (hook_bool_mode_true): New generic hook.
5952 * hooks.h (hook_bool_mode_true): Add prototype.
5954 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
5956 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
5957 target hook, set to hook_bool_mode_false.
5958 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
5959 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
5960 with targetm.small_register_classes_for_mode_p.
5961 (find_reusable_reload): Likewise.
5962 (combine_reloads): Likewise.
5963 * reload1.c (reload_as_needed): Likewise.
5964 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
5965 * ifcvt.c (noce_process_if_block, check_cond_move_block,
5966 dead_or_predicable): Likewise.
5967 * regmove.c (optimize_reg_copy_1): Likewise.
5968 * calls.c (prepare_call_address): Likewise.
5969 (precompute_register_parameters): Likewise.
5971 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
5973 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
5974 implementation of the hook that considers all register classes
5975 small except for SH64.
5976 (sh_override_options): Use the new hook.
5977 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
5980 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
5982 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
5983 implementation of the hook that considers all register classes
5985 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
5988 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
5990 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
5991 implementation of the hook that considers all register classes
5993 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
5996 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
5998 * config/m32c/m32c.h: Likewise.
5999 * config/pdp11/pdp11.h: Likewise.
6000 * config/avr/avr.h: Likewise.
6001 * config/xtensa/xtensa.h: Likewise.
6002 * config/m68hc11/m68hc11.h: Likewise.
6003 * config/mn10300/mn10300.h: Likewise.
6004 * config/mcore/mcore.h: Likewise.
6005 * config/h8300/h8300.h: Likewise.
6006 * config/bfin/bfin.h: Likewise.
6008 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
6009 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
6011 2010-05-03 Anatoly Sokolov <aesok@post.ru>
6013 * double-int.h (tree_to_double_int): Remove macro.
6014 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
6015 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
6016 (tree_to_double_int): New function.
6017 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
6019 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
6021 2010-05-03 Richard Guenther <rguenther@suse.de>
6023 PR tree-optimization/43971
6024 * tree-ssa-structalias.c (get_constraint_for_1): Fix
6025 constraints in the !flag_delete_null_pointer_checks case.
6027 2010-05-03 Jakub Jelinek <jakub@redhat.com>
6030 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
6031 result mode matches original rtl mode.
6033 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
6036 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
6038 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6040 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
6041 when processing flag options.
6043 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6045 * gcov-iov.c (main): Change format string placeholder
6046 from %#08x to 0x%08x.
6047 * genchecksum.c (dosum): Change format string placeholder
6048 from %#02x to 0x%02x.
6050 2010-05-02 Richard Guenther <rguenther@suse.de>
6052 PR tree-optimization/43879
6053 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
6055 2010-05-02 Bruno Haible <bruno@clisp.org>
6057 * doc/extend.texi (Function Attributes): Fix a typo.
6059 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6062 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
6063 placeholder from 0x%x to %#x.
6064 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
6065 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
6066 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
6067 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
6068 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
6069 * config/i386/i386.c (ix86_target_string): Ditto.
6070 * config/i386/i386.c (output_pic_addr_const): Ditto.
6071 (print_operand): Ditto.
6073 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6075 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
6076 placeholder from 0x%x to %#x.
6077 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
6078 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
6079 (ASM_OUTPUT_DEBUG_DATA): Ditto.
6080 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
6081 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
6082 * optc-gen.awk: Ditto.
6083 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
6084 (HOST_WIDE_INT_PRINT_HEX): Ditto.
6085 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
6086 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
6088 2010-05-01 Anatoly Sokolov <aesok@post.ru>
6090 * target.h (struct calls): Add function_value_regno_p field.
6091 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6092 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
6093 * targhooks.c (default_function_value_regno_p): New function.
6094 * targhooks.h (default_function_value_regno_p): Declare function.
6095 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
6096 * builtins.c. (apply_result_size): (Ditto.).
6097 * combine.c. (likely_spilled_retval_p): (Ditto.).
6098 * mode-switching.c. Include 'target.h'.
6099 (create_pre_exit): Use function_value_regno_p hook.
6100 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
6101 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
6102 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
6104 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
6105 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
6106 (ix86_function_value_regno_p): Declare as static, change argument
6107 type to const unsigned int.
6108 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
6110 2010-05-01 Richard Guenther <rguenther@suse.de>
6112 PR tree-optimization/43949
6113 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
6115 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
6117 2010-05-01 Anatoly Sokolov <aesok@post.ru>
6119 * rtl.h (CONST_DOUBLE_P): Define.
6120 (rtx_to_double_int): Declare.
6121 * emit-rtl.c (rtx_to_double_int): New function.
6122 * dwarf2out.c (insert_double): New function.
6123 (loc_descriptor, add_const_value_attribute): Clean up, use
6124 rtx_to_double_int and insert_double functions.
6126 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
6128 * doc/extend.texi (Inline): Add missing return keyword to examples.
6129 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
6132 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
6134 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
6135 the variable part of the offset as well. Use highest_pow2_factor for
6136 all alignment checks.
6138 2010-04-30 Richard Guenther <rguenther@suse.de>
6140 PR tree-optimization/43879
6141 * tree-ssa-structalias.c (type_could_have_pointers): Functions
6144 2010-04-30 Jan Hubicka <jh@suse.cz>
6146 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
6148 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
6150 2010-04-30 Jan Hubicka <jh@suse.cz>
6152 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
6154 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
6155 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
6156 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
6157 cgraph_node_set_needs_ltrans_p): Remove.
6159 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
6161 * sdbout.c: Include vec.h, do not include varray.h.
6162 (deferred_global_decls, sdbout_global_decl,
6163 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
6164 * toplev.c: Do not include varray.h.
6165 (dump_memory_report): Do not dump VARRAY statistics.
6166 * gengtype.c (open_base_file): Ignore varray.h.
6167 * Makefile.in: Update for abovementioned changes.
6168 Remove all traces of varray.c and varray.h.
6169 * varray.c: Remove file.
6170 * varray.h: Remove file.
6172 2010-04-30 Jan Hubicka <jh@suse.cz>
6174 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
6177 2010-04-30 Jan Hubicka <jh@suse.cz>
6179 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
6182 2010-04-30 Richard Guenther <rguenther@suse.de>
6184 * tree-ssa-structalias.c (get_constraint_for_1): Generate
6185 constraints for CONSTRUCTOR.
6187 2010-04-30 Richard Guenther <rguenther@suse.de>
6190 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
6191 first after all lowering passes.
6193 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
6195 * toplev.c: Include varray.h for statistics dumping.
6196 * tree.h: Do not declare varray_head_tag.
6197 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
6198 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
6199 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
6200 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
6201 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
6202 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
6203 c-common.c, c-common.h, reg-stack.c, basic-block.h,
6204 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
6206 * Makefile.in: Update for abovementioned changes.
6208 2010-04-30 Jakub Jelinek <jakub@redhat.com>
6211 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
6213 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
6215 * config/picochip/picochip.c (picochip_legitimize_address): Define.
6216 Use this function to do machine-specific conversion.
6217 (picochip_legitimize_reload_address): Likewise.
6218 (picochip_legitimate_address_p): Check valid base register only if
6220 (picochip_check_conditional_copy): Check for modw only if opnd is
6222 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
6223 to call the function in c.
6224 * config/picochip/picochip-protos.h
6225 (picochip_legitimize_reload_address): Define.
6226 * config/picochip/picochip.md (supported_compare1): Define.
6228 2010-04-30 Jan Hubicka <jh@suse.cz>
6230 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
6231 (cgraph_global_info): Remove inlined.
6232 (LTO_cgraph_tag_names): Remove.
6233 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
6234 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
6235 simplify cgraph tags and document.
6236 (lto_output_node): Use only LTO_cgraph_unavail_node and
6237 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
6238 for_functions_valid, global info, process and output flags.
6239 (input_overwrite_node): Initialize estimated stack size and
6240 estimated growth. Do not read flags we no longer store.
6241 (input_node): Likewise do not read info no longer stored.
6242 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
6245 2010-04-30 Richard Guenther <rguenther@suse.de>
6247 PR tree-optimization/43879
6248 * tree-ssa-structalias.c (get_constraint_for_1): Properly
6249 handle non-zero initializers.
6251 2010-04-30 Richard Guenther <rguenther@suse.de>
6253 * builtins.c (fold_builtin_1): Delete free (0).
6255 2010-04-29 Jan Hubicka <jh@suse.cz>
6257 * gengtype.c (open_base_files): Add lto-streamer.h
6258 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
6259 (pass_ipa_cp): GGC collect.
6260 * toplev. (compile_file): Do not output symbols.
6261 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
6262 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
6263 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
6264 * lto-section-in.c: Include ggc.h
6265 (lto_new_in_decl_state): Alloc in GGC.
6266 (lto_delete_in_decl_state): Likewise.
6267 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
6270 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
6273 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
6274 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
6275 (HONOR_REG_ALLOC_ORDER): Describe new macro.
6276 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
6277 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
6278 account only if HONOR_REG_ALLOC_ORDER is not defined.
6279 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
6280 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
6282 2010-04-29 Jon Grant <04@jguk.org>
6284 * collect2.c (vflag): Change type from int to bool.
6286 (helpflag): New global bool.
6287 (main): Set vflag and debug with boolean, not integer truth values.
6288 Accept new "--help" option and output usage text if found.
6289 * collect2.h (vflag): Update prototype.
6292 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
6295 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
6297 2010-04-29 Richard Guenther <rguenther@suse.de>
6300 * plugin.h (invoke_plugin_callbacks): Annotate arguments
6301 with ATTRIBUTE_UNUSED.
6303 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
6306 * config/i386/i386.c (get_some_local_dynamic_name): Replace
6307 INSN_P with NONDEBUG_INSN_P.
6308 (distance_non_agu_define): Likewise.
6309 (distance_agu_use): Likewise.
6311 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
6313 From Dominique d'Humieres <dominiq@lps.ens.fr>
6315 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
6318 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
6320 * plugin.h (invoke_plugin_callbacks): New inline function.
6321 * plugin.c (flag_plugin_added): New global flag.
6322 (add_new_plugin): Initialize above flag.
6323 (invoke_plugin_callbacks): Rename to ...
6324 (invoke_plugin_callbacks_full): ... this.
6326 2010-04-28 Jan Hubicka <jh@suse.cz>
6328 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
6329 (lto_varpool_replace_node): New.
6330 (lto_symtab_resolve_symbols): Resolve varpool nodes.
6331 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
6332 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
6333 * cgraph.h (varpool_node_ptr): New type.
6334 (varpool_node_ptr): New vector.
6335 (varpool_node_set_def): New structure.
6336 (varpool_node_set): New type.
6337 (varpool_node_set): New vector.
6338 (varpool_node_set_element_def): New structure.
6339 (varpool_node_set_element, const_varpool_node_set_element): New types.
6340 (varpool_node_set_iterator): New type.
6341 (varpool_node): Add prev pointers, add used_from_other_partition,
6343 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
6344 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
6345 varpool_get_node, varpool_remove_node): Declare.
6346 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
6347 varpool_node_set_size): New inlines.
6348 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
6349 * tree-pass.h (varpool_node_set_def): Forward declare.
6350 (ipa_opt_pass_d): Summary writting takes vnode sets too.
6351 (ipa_write_optimization_summaries): Update prototype.
6352 * ipa-cp.c (ipcp_write_summary): Update.
6353 * ipa-reference.c (ipa_reference_write_summary): Update.
6354 * lto-cgraph.c (lto_output_varpool_node): New static function.
6355 (output_varpool): New function.
6356 (input_varpool_node): New static function.
6357 (input_varpool_1): New function.
6358 (input_cgraph): Input varpool.
6359 * ipa-pure-const.c (pure_const_write_summary): Update.
6360 * lto-streamer-out.c (lto_output): Update, output varpool too.
6361 (write_global_stream): Kill WPA hack.
6362 (produce_asm_for_decls): Update.
6363 (output_alias_pair_p): Handle variables.
6364 (output_unreferenced_globals): Output only needed partition of varpool.
6365 * ipa-inline.c (inline_write_summary): Update.
6366 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
6368 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
6369 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
6370 varpool_node_set_new, varpool_node_set_add,
6371 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
6372 debug_varpool_node_set): New functions.
6373 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
6374 (execute_one_pass): Process new decls too.
6375 (ipa_write_summaries_2): Pass around vsets.
6376 (ipa_write_summaries_1): Likewise.
6377 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
6379 (ipa_write_optimization_summaries_1): Pass around vsets.
6380 (ipa_write_optimization_summaries): Likewise.
6381 * varpool.c (varpool_get_node): New.
6382 (varpool_node): Update doubly linked lists.
6383 (varpool_remove_node): New.
6384 (dump_varpool_node): More dumping.
6385 (varpool_enqueue_needed_node): Update doubly linked lists.
6386 (decide_is_variable_needed): Kill ltrans hack.
6387 (varpool_finalize_decl): Kill lto hack.
6388 (varpool_assemble_decl): Skip decls in other partitions.
6389 (varpool_assemble_pending_decls): Update doubly linkes lists.
6390 (varpool_empty_needed_queue): Likewise.
6391 (varpool_extra_name_alias): Likewise.
6392 * lto-streamer.c (lto_get_section_name): Add vars section.
6393 * lto-streamer.h (lto_section_type): Update.
6394 (output_varpool, input_varpool): Declare.
6396 2010-04-28 Mike Stump <mikestump@comcast.net>
6398 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
6400 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6402 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
6403 record or union type with RECORD_OR_UNION_TYPE_P predicate.
6404 (lto_input_ts_type_tree_pointers): Likewise.
6405 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
6406 (lto_output_ts_type_tree_pointers): Likewise.
6408 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6410 Uniquization of constants at the Tree level
6411 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
6412 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
6414 (tree_output_constant_def): Declare.
6415 * gimplify.c (gimplify_init_constructor): When using block copy, first
6416 uniquize the constant constructor on the RHS.
6417 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
6418 DECL_IN_CONSTANT_POOL flag.
6419 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
6420 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
6422 (assemble_variable): Deal with symbols belonging to the tree constant
6424 (get_constant_section): Add ALIGN parameter and simplify.
6425 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
6426 (assemble_constant_contents): Use the expression of the VAR_DECL.
6427 (output_constant_def_contents): Use the alignment of the VAR_DECL.
6428 (tree_output_constant_def): New global function.
6429 (mark_constant): Use the expression of the VAR_DECL.
6430 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
6432 (output_object_block): Likewise and assemble the expression.
6434 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6436 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
6437 hash_tree, eq_tree): New tree hash table.
6438 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
6439 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
6440 lto_orig_address_remove): Reimplement.
6442 2010-04-28 Xinliang David Li <davidxl@google.com>
6445 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
6446 (compute_uninit_opnds_pos): New function.
6447 (is_non_loop_exit_postdominating): New function.
6448 (compute_control_dep_chain): New function.
6449 (find_pdom): New function.
6450 (convert_control_dep_chain_into_preds): New function.
6451 (find_predicates): New function.
6452 (find_control_equiv_block): New function.
6453 (collect_phi_def_edges): New function.
6454 (find_def_preds): New function.
6455 (find_dom): New function.
6456 (dump_predicates): New function.
6457 (get_cmp_code): New function.
6458 (is_value_included_in): New function.
6459 (find_matching_predicate_in_rest_chains): New function.
6460 (use_pred_not_overlap_with_undef_path_pred): New function.
6461 (is_use_properly_guarded): New function.
6462 (normalize_cond_1): New function.
6463 (is_and_or_or): New function.
6464 (normalize_cond): New function.
6465 (is_gcond_subset_of): New function.
6466 (is_subset_of_any): New function.
6467 (is_or_set_subset_of): New function.
6468 (is_and_set_subset_of): New function.
6469 (is_norm_cond_subset_of): New function.
6470 (is_pred_expr_subset_of): New function.
6471 (is_pred_chain_subset_of): New function.
6472 (is_included_in): New function.
6473 (is_superset_of): New function.
6474 (find_uninit_use): New function.
6475 (warn_uninitialized_phi): New function.
6476 (compute_possibly_undefined_names): New function.
6477 (ssa_undefined_value_p): New function.
6478 (execute_late_warn_uninitialized): New function.
6479 * tree-ssa.c (ssa_undefined_value_p): Removed.
6480 (warn_uninit): Changed to extern.
6481 (warn_uninitialized_phi): Removed.
6482 (warn_uninitialized_vars): Changed to extern.
6483 (execute_late_warn_uninitialized): Removed
6484 * tree-flow.h: Add new prototypes.
6485 * timevar.def: Add new time variable.
6486 * Makefile.in: Add new build file.
6488 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
6490 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
6493 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6496 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
6498 2010-04-28 Martin Jambor <mjambor@suse.cz>
6500 * cgraph.h (struct cgraph_node): New field indirect_calls.
6501 (struct cgraph_indirect_call_info): New type.
6502 (struct cgraph_edge): Removed field indirect_call. New fields
6503 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
6504 (cgraph_create_indirect_edge): Declare.
6505 (cgraph_make_edge_direct): Likewise.
6506 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
6507 * ipa-prop.h (struct ipa_param_call_note): Removed.
6508 (struct ipa_node_params): Removed field param_calls.
6509 (ipa_create_all_structures_for_iinln): Declare.
6510 * cgraph.c: Described indirect edges and uids in initial comment.
6511 (cgraph_add_edge_to_call_site_hash): New function.
6512 (cgraph_edge): Search also among the indirect edges, use
6513 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
6514 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
6515 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
6517 (initialize_inline_failed): Assign a reason to indirect edges.
6518 (cgraph_create_edge_1): New function.
6519 (cgraph_create_edge): Moved some functionality to
6520 cgraph_create_edge_1.
6521 (cgraph_create_indirect_edge): New function.
6522 (cgraph_edge_remove_callee): Add an assert checking for
6524 (cgraph_edge_remove_caller): Special-case indirect edges.
6525 (cgraph_remove_edge): Likewise.
6526 (cgraph_set_edge_callee): New function.
6527 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
6528 (cgraph_make_edge_direct): New function.
6529 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
6530 the declaration of the call statement matches.
6531 (cgraph_node_remove_callees): Special-case indirect edges.
6532 (cgraph_clone_edge): Likewise.
6533 (cgraph_clone_node): Clone also the indirect edges.
6534 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
6535 indirect_call, dump count of indirect_calls edges.
6536 * ipa-prop.c (iinlining_processed_edges): New variable.
6537 (ipa_note_param_call): Create indirect edges instead of
6538 creating notes. New parameter node.
6539 (ipa_analyze_call_uses): New parameter node, pass it on to
6540 ipa_note_param_call.
6541 (ipa_analyze_stmt_uses): Likewise.
6542 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
6543 (print_edge_addition_message): Work on edges rather than on notes.
6544 (update_call_notes_after_inlining): Likewise, renamed to
6545 update_indirect_edges_after_inlining.
6546 (ipa_create_all_structures_for_iinln): New function.
6547 (ipa_free_node_params_substructures): Do not free notes.
6548 (ipa_edge_duplication_hook): Propagate bits within
6549 iinlining_processed_edges bitmap.
6550 (ipa_node_duplication_hook): Do not duplicate notes.
6551 (free_all_ipa_structures_after_ipa_cp): Renamed to
6552 ipa_free_all_structures_after_ipa_cp.
6553 (free_all_ipa_structures_after_iinln): Renamed to
6554 ipa_free_all_structures_after_iinln.
6555 (ipa_write_param_call_note): Removed.
6556 (ipa_read_param_call_note): Removed.
6557 (ipa_write_indirect_edge_info): New function.
6558 (ipa_read_indirect_edge_info): Likewise.
6559 (ipa_write_node_info): Do not stream notes, do stream information
6561 (ipa_read_node_info): Likewise.
6562 (lto_ipa_fixup_call_notes): Removed.
6563 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
6564 * ipa-inline.c (pass_ipa_inline): Likewise.
6565 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
6566 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
6567 * tree-inline.c (copy_bb): Removed an unnecessary double check for
6569 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
6571 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
6572 (output_cgraph): Stream also indirect edges.
6573 (lto_output_edge): Added capability to stream indirect edges.
6574 (input_edge): Likewise.
6575 (input_cgraph_1): Likewise.
6576 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
6579 2010-04-28 Richard Guenther <rguenther@suse.de>
6581 PR tree-optimization/43879
6582 PR tree-optimization/43909
6583 * tree-ssa-structalias.c (struct variable_info): Add
6584 only_restrict_pointers flag.
6585 (new_var_info): Initialize it. Increment stats.total_vars here.
6586 (create_function_info_for): Do not increment stats.total_vars here.
6587 (get_function_part_constraint): Fix build with C++.
6588 (insert_into_field_list): Remove.
6589 (push_fields_onto_fieldstack): Properly merge fields.
6590 (create_variable_info_for): Split and simplify.
6591 (create_variable_info_for_1): New piece.
6592 (intra_create_variable_infos): Properly make restrict constraints
6595 2010-04-28 Richard Guenther <rguenther@suse.de>
6598 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
6600 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
6601 Jan Hubicka <hubicka@ucw.cz>
6603 * doc/invoke.texi (-Wsuggest-attribute=const,
6604 -Wsuggest-attribute=pure): Document.
6605 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
6606 (function_always_visible_to_compiler_p,
6607 suggest_attribute, warn_function_pure, warn_function_const):
6609 (check_call): Improve debug info.
6610 (analyze_function): Do not check availability.
6611 (add_new_function): Check availability.
6612 (propagate): Output warnings.
6613 (skip_function_for_local_pure_const): New function.
6614 (local_pure_const): Use it; output warnings.
6615 * common.opt (Wsuggest-attribute=const,
6616 Wsuggest-attribute=pure): New.
6618 2010-04-27 Jakub Jelinek <jakub@redhat.com>
6620 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
6621 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
6622 or DW_CFA_def_cfa_offset{,_sf}.
6624 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
6626 * tree.h: Fix truncated long macros.
6628 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
6630 * collect2.c (TARGET_64BIT): Redefine to target's default.
6631 * tlink.c: Likewise.
6632 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
6633 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
6634 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
6635 for underscoring __USER_LABEL_PREFIX__.
6636 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
6637 (SUB_LINK_ENTRY32): New.
6638 (SUB_LINK_ENTRY64): New.
6639 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
6640 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
6641 (SUB_LINK_ENTRY64): New.
6642 (SUB_LINK_ENTRY): New.
6643 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
6644 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
6645 x64 target is choosen.
6646 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
6647 * configure: Regenerated.
6648 * configure.ac (leading-mingw64-underscores): Option added.
6650 2010-04-27 Jan Hubicka <jh@suse.cz>
6652 * doc/invoke.texi (-fipa-profile): Document.
6653 * opts.c (decode_options): Enable ipa-profile at -O1.
6654 * timevar.def (TV_IPA_PROFILE): Define.
6655 * common.opt (fipa-profile): Add.
6656 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
6658 (cgraph_propagate_frequency): Handle only local ones.
6659 * tree-pass.h (pass_ipa_profile): Declare.
6660 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
6661 (pass_ipa_profile): Use TV_IPA_PROFILE.
6662 * ipa.c (ipa_profile): New function.
6663 (gate_ipa_profile): Likewise.
6664 (pass_ipa_profile): New global variable.
6665 * passes.c (pass_ipa_profile): New.
6667 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
6669 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
6671 2010-04-27 Martin Jambor <mjambor@suse.cz>
6674 * ipa.c (dissolve_same_comdat_group_list): New function.
6675 (function_and_variable_visibility): Call
6676 dissolve_same_comdat_group_list when comdat group contains external or
6678 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
6679 lists are circular and that they contain only DECL_ONE_ONLY nodes.
6681 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
6683 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
6684 (const_hash_1) <VECTOR_CST>: New case.
6685 (compare_constant) <VECTOR_CST>: Likewise.
6686 <ADDR_EXPR>: Deal with LABEL_REFs.
6687 (copy_constant) <VECTOR_CST>: New case.
6689 2010-04-27 Jan Hubicka <jh@suse.cz>
6691 * cgraph.c (cgraph_propagate_frequency): New function.
6692 * cgraph.h (cgraph_propagate_frequency): Declare.
6693 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
6694 cgraph_propagate_frequency.
6696 2010-04-27 Jakub Jelinek <jakub@redhat.com>
6698 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
6700 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
6703 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
6704 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
6705 here to determine which regs to push and how much stack to reserve.
6707 2010-04-27 Jie Zhang <jie@codesourcery.com>
6709 * doc/gimple.texi (gimple_statement_with_ops): Remove
6710 addresses_taken field.
6711 (gimple_statement_with_memory_ops): Likewise.
6713 2010-04-27 Jan Hubicka <jh@suse.cz>
6715 * tree-inline.c (eni_inlining_weights): Remove.
6716 (estimate_num_insns): Special case more builtins.
6718 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
6721 * c-typeck.c (build_binary_op): Move forward check for comparison
6722 pointer with null pointer constant and adjust the diagnostic message.
6724 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
6727 * configure.ac (gcc_cv_as_section_has_align): Set if installed
6728 binutils supports extended .section directive needed by LTO, or
6729 warn if older binutils found.
6730 (LTO_BINARY_READER): New AC_SUBST'd variable.
6731 (LTO_USE_LIBELF): Likewise.
6732 * gcc/config.gcc (lto_binary_reader): New target-specific configure
6734 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
6735 (LTO_USE_LIBELF): Likewise.
6736 * configure: Regenerate.
6738 * collect2.c (is_elf): Rename from this ...
6739 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
6740 object files in addition to ELF-formatted ones.
6741 (scan_prog_file): Caller updated. Also allow for LTO info marker
6742 symbol to be prefixed or not by an extra underscore.
6744 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
6745 * config/i386/winnt.c: Also #include lto-streamer.h
6746 (i386_pe_asm_named_section): Specify 1-byte section alignment for
6748 (i386_pe_asm_output_aligned_decl_common): Add comment.
6749 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
6751 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
6754 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
6755 Add missing earlyclobber for second alternative.
6757 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
6759 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
6760 bits for artificial defs at the top of the block.
6761 * fwprop.c (single_def_use_enter_block): Don't call it.
6763 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
6766 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
6767 instead of "$gcc_cv_objdump -T".
6768 Use "-undefined dynamic_lookup" on darwin.
6769 * gcc/configure: Regenerate.
6771 2010-04-26 Jakub Jelinek <jakub@redhat.com>
6774 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
6776 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
6778 * c-parser.c (struct c_token): Move location field up.
6779 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
6780 (struct c_declspecs): Convert typespec_word, storage_class, and
6781 default_int_p into bitfields.
6782 (struct c_declarator): Move loc field up.
6784 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
6786 * cfgloop.h (struct loop): Move can_be_parallel field up.
6787 * ipa-prop.h (struct ip_node_params): Move bitfields up.
6788 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
6790 (struct iv_cand): Convert pos field into a bitfield.
6791 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
6793 (struct _stmt_vec_info): Shuffle fields for better packing.
6795 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
6797 * varasm.c (IN_NAMED_SECTION): Remove guard.
6798 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
6799 (IN_NAMED_SECTION_P): ...this.
6800 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
6801 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6803 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
6805 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
6806 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
6807 of shadowing it. Fix comments.
6809 2010-04-26 Jan Hubicka <jh@suse.cz>
6811 * cgraph.c (cgraph_create_node): Set node frequency to normal.
6812 (cgraph_clone_node): Copy function frequency.
6813 * cgraph.h (node_frequency): New enum
6814 (struct cgraph_node): Add.
6815 * final.c (rest_of_clean_state): Update.
6816 * lto-cgraph.c (lto_output_node): Output node frequency.
6817 (input_overwrite_node): Input node frequency.
6818 * tre-ssa-loop-ivopts (computation_cost): Update.
6819 * lto-streamer-out.c (output_function): Do not output function
6821 * predict.c (maybe_hot_frequency_p): Update and handle functions
6823 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
6825 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
6826 (compute_function_frequency): Set noreturn functions to be executed
6828 (choose_function_section): Update.
6829 * lto-streamer-in.c (input_function): Do not input function frequency.
6830 * function.c (allocate_struct_function): Do not initialize function
6832 * function.h (function_frequency): Remove.
6833 (struct function): Remove function frequency.
6834 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
6835 (try_update): Update.
6836 * tree-inline.c (initialize_cfun): Do not update function frequency.
6837 * passes.c (pass_init_dump_file): Update.
6838 * i386.c (ix86_compute_frame_layout): Update.
6839 (ix86_pad_returns): Update.
6841 2010-04-26 Jie Zhang <jie@codesourcery.com>
6843 PR tree-optimization/43833
6844 * tree-vrp.c (range_int_cst_p): New.
6845 (range_int_cst_singleton_p): New.
6846 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
6847 when both operands are constants. Use range_int_cst_p in
6850 2010-04-26 Jan Hubicka <jh@suse.cz>
6852 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
6854 2010-04-26 Richard Guenther <rguenther@suse.de>
6857 * gimple.c (gimple_decl_printable_name): Deal gracefully
6858 with a NULL DECL_NAME.
6860 2010-04-26 Richard Guenther <rguenther@suse.de>
6863 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
6864 if emitting debug information and it is either a function
6865 or a namespace decl.
6867 2010-04-26 Ira Rosen <irar@il.ibm.com>
6869 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
6870 determine if the statement is vectorizable, and a macro to access it.
6871 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6872 Skip statements that can't be vectorized. If the analysis fails,
6873 mark the statement as unvectorizable if vectorizing basic block.
6874 (vect_compute_data_refs_alignment): Likewise.
6875 (vect_verify_datarefs_alignment): Skip statements marked as
6876 unvectorizable. Add print.
6877 (vect_analyze_group_access): Skip statements that can't be
6878 vectorized. If the analysis fails, mark the statement as
6879 unvectorizable if vectorizing basic block.
6880 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
6881 * tree-vect-stmts.c (vectorizable_store): Fix the number of
6882 generated stmts for SLP.
6883 (new_stmt_vec_info): Initialize the new field.
6884 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
6885 statements marked as unvectorizable.
6887 2010-04-25 Joseph Myers <joseph@codesourcery.com>
6889 * c-common.c (flag_isoc1x): New.
6890 (flag_isoc99): Update comment.
6891 * c-common.h (flag_isoc1x): New.
6892 (flag_isoc99): Update comment.
6893 * c-cppbuiltin.c (builtin_define_float_constants): Also define
6894 __<type>_DECIMAL_DIG__.
6895 * c-opts.c (set_std_c1x): New.
6896 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
6897 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
6898 * c.opt (-std=c1x, -std=gnu1x): New options.
6899 * doc/cpp.texi: Mention -std=c1x.
6900 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
6901 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
6902 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
6903 * doc/standards.texi: Mention C1X.
6904 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
6905 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
6906 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
6909 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
6911 * config/i386/gmon-sol2.c (_mcleanup): Change format string
6912 placeholder from 0x%x to %#x.
6913 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
6914 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
6915 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
6916 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
6917 * config/i386/i386.c (ix86_target_string): Ditto.
6918 (output_pic_addr_const): Ditto.
6919 (print_operand): Ditto.
6921 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
6923 * combine.c (find_split_point): Add third argument. Use it
6924 to find nested multiply-accumulate instructions. Adjust calls.
6925 (try_combine): Adjust call to find_split_point.
6927 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6929 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
6931 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
6933 PR tree-optimization/41442
6934 * fold-const.c (merge_truthop_with_opposite_arm): New function.
6935 (fold_binary_loc): Call it.
6937 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6939 * toplev.c (general_init): Set default for fdiagnostics-show-option.
6940 * opts.c (common_handle_option): Allow disabling it.
6941 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
6943 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
6945 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
6946 between modes if both types are integral.
6948 2010-04-23 Richard Guenther <rguenther@suse.de>
6950 PR tree-optimization/43572
6951 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
6953 2010-04-23 Richard Guenther <rguenther@suse.de>
6956 * tree-inline.c (tree_can_inline_p): Also check compatibility
6959 2010-04-23 Martin Jambor <mjambor@suse.cz>
6961 PR tree-optimization/43846
6962 * tree-sra.c (struct access): New flag grp_assignment_read.
6963 (build_accesses_from_assign): Set grp_assignment_read.
6964 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
6965 (enum mark_read_status): New type.
6966 (analyze_access_subtree): Propagate grp_assignment_read, create
6967 accesses also if both direct_read and root->grp_assignment_read.
6969 2010-04-23 Martin Jambor <mjambor@suse.cz>
6972 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
6973 function does not have type attributes.
6975 2010-04-23 Richard Guenther <rguenther@suse.de>
6978 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
6981 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6983 * sese.h (create_if_region_on_edge): Remove.
6985 * sese.c (create_if_region_on_edge): Make static.
6987 * tree-inline.c: Do not include ggc.h.
6989 * expr.c: Do not include ggc.h.
6991 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
6994 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
6997 * config/sh/sh.c (find_barrier): Don't emit a constant pool
6998 in the middle of insns for casesi_worker_2.
7000 2010-04-22 David Edelsohn <edelsohn@gnu.org>
7002 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
7004 2010-04-22 Ira Rosen <irar@il.ibm.com>
7006 PR tree-optimization/43842
7007 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
7008 loop unrolling in update of exit phis. Fix comment.
7009 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
7010 least two reduction statements in the loop before starting SLP
7013 2010-04-22 Nick Clifton <nickc@redhat.com>
7015 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
7017 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
7019 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
7022 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7024 * tree-parloops.c (loop_parallel_p): New argument
7025 parloop_obstack. Pass it down.
7026 (parallelize_loops): New variable parloop_obstack. Initialize it,
7027 pass it down, free it.
7029 * tree-loop-linear.c (linear_transform_loops): Pass down
7032 * tree-data-ref.h (lambda_compute_access_matrices): New argument
7033 of type struct obstack *.
7035 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
7036 scratch_obstack. Initialize it, pass down, free it.
7038 * lambda.h (lambda_loop_new): Remove.
7039 (lambda_matrix_new, lambda_matrix_inverse)
7040 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
7041 argument of type struct obstack *.
7043 * lambda-trans.c (lambda_trans_matrix_new): New argument
7044 lambda_obstack. Pass it down, use obstack allocation for ret.
7045 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
7048 * lambda-mat.c (lambda_matrix_get_column)
7049 (lambda_matrix_project_to_null): Remove.
7050 (lambda_matrix_new): New argument lambda_obstack. Use obstack
7052 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
7055 * lambda-code.c (lambda_loop_new): New function.
7056 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
7057 (lambda_compute_auxillary_space, lambda_compute_target_space)
7058 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
7059 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
7060 (build_access_matrix): New argument lambda_obstack. Use obstack
7062 (lambda_compute_step_signs, lambda_compute_access_matrices): New
7063 argument lambda_obstack. Pass it down.
7065 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7067 * optabs.h (expand_widening_mult): Declare.
7069 2010-04-22 Richard Guenther <rguenther@suse.de>
7071 PR tree-optimization/43845
7072 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
7073 lookup the CALL_EXPR function and arguments.
7075 2010-04-22 Nick Clifton <nickc@redhat.com>
7077 * config/stormy16/stormy16.c
7078 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
7079 * config/stormy16/stormy16.h: Tidy up formatting.
7080 (DONT_USE_BUILTIN_SETJMP): Remove definition.
7081 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
7082 (ineqbranchsi): Delete pattern.
7083 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
7084 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
7085 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
7086 stormy16-lib2-ucmpsi2.c.
7088 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7090 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
7091 df_simulate_find_noclobber_defs as appropriate. Keep track of an
7092 extra set merge_set_noclobber, and use it to relax the final test
7094 * df.h (df_simulate_find_noclobber_defs): Declare.
7095 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
7097 (df_simulate_find_noclobber_defs): New function.
7099 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
7101 * config/i386/i386.md: Use {} around multi-line preparation statements.
7103 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7105 * c-tree.h (push_init_level, pop_init_level, set_init_index)
7106 (process_init_element): New argument of type struct obstack *.
7108 * c-typeck.c (push_init_level, pop_init_level, set_designator)
7109 (set_init_index, set_init_label, set_nonincremental_init)
7110 (set_nonincremental_init_from_string, find_init_member)
7111 (output_init_element, output_pending_init_elements)
7112 (process_init_element): New argument braced_init_obstack. Pass it
7114 (push_range_stack, add_pending_init): New argument
7115 braced_init_obstack. Use obstack allocation.
7117 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
7118 braced_init_obstack. Pass it down.
7119 (c_parser_braced_init): New variables ret, braced_init_obstack.
7120 Initialize obstack, pass it down and finally free it.
7122 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7125 * tree-pass.h (pass_optimize_widening_mul): Declare.
7126 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
7127 gate_optimize_widening_mul): New static functions.
7128 (pass_optimize_widening_mul): New.
7129 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
7130 <case MULT_EXPR>: Remove support for widening multiplies.
7131 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
7132 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
7133 simplify_gen_unary rather than directly building extensions.
7134 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
7136 * expmed.c (expand_widening_mult): New function.
7137 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
7139 2010-04-21 Jan Hubicka <jh@suse.cz>
7141 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
7142 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
7143 * lto-wpa-fixup.c: Remove.
7144 * Makefile.in (lto-wpa-fixup.o): Remove.
7145 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
7146 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
7147 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
7149 2010-04-21 Jan Hubicka <jh@suse.cz>
7151 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
7152 add write_optimization_summary, read_optimization_summary.
7153 (ipa_write_summaries_of_cgraph_node_set): Remove.
7154 (ipa_write_optimization_summaries): Declare.
7155 (ipa_read_optimization_summaries): Declare.
7156 * ipa-cp.c (pass_ipa_cp): Update.
7157 * ipa-reference.c (pass_ipa_reference): Update.
7158 * ipa-pure-const.c (pass_ipa_pure_const): Update.
7159 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
7161 * ipa-inline.c (pass_ipa_inline): Update.
7162 * ipa.c (pass_ipa_whole_program): Update.
7163 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
7164 * passes.c (ipa_write_summaries_1): Do not test wpa.
7165 (ipa_write_optimization_summaries_1): New.
7166 (ipa_write_optimization_summaries): New.
7167 (ipa_read_summaries): Do not test ltrans.
7168 (ipa_read_optimization_summaries_1): New.
7169 (ipa_read_optimization_summaries): New.
7171 2010-04-21 Jan Hubicka <jh@suse.cz>
7173 * lto-cgraph.c (lto_output_node): Do not output comdat groups
7175 (output_cgraph): Do not arrange comdat groups for boundary nodes.
7177 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7180 * dwarf2out.c (add_name_and_src_coords_attributes): Add
7181 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
7183 2010-04-21 Jan Hubicka <jh@suse.cz>
7185 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
7187 2010-04-21 Jan Hubicka <jh@suse.cz>
7189 * varpool.c (decide_is_variable_needed): Variable is always needed
7192 2010-04-21 Jan Hubicka <jh@suse.cz>
7194 * opts.c (decode_options): Enable pure-const pass for whopr.
7196 2010-04-21 Jan Hubicka <jh@suse.cz>
7198 * cgraph.c (dump_cgraph_node): Dump also assembler name.
7199 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
7201 (cgraph_decide_inlining): Do not expect callee to be removed in all
7204 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
7206 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
7208 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
7210 * config/i386/i386.md (x86_shrd): Add athlon_decode and
7211 amdfam10_decode attributes.
7213 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7216 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
7217 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
7218 (lower_copyprivate_clauses): Use private var in outer
7219 context instead of original var. Make sure the types
7220 are correct for VLAs.
7222 2010-04-21 Richard Guenther <rguenther@suse.de>
7224 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
7225 to non-pointer objects.
7227 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7229 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
7230 last chain entry if it starts with the still current label.
7231 (add_location_or_const_value_attribute): Check that
7232 loc_list->first->next is NULL instead of comparing ->first with ->last.
7233 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
7234 to add_var_loc_to_decl.
7236 * dwarf2out.c (output_call_frame_info): For dw_cie_version
7237 >= 4 add also address size and segment size fields into CIE header.
7239 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
7240 long as address size is the same as sizeof (void *) and
7242 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
7243 address size or segment size is unexpected, return DW_EH_PE_omit.
7244 (classify_object_over_fdes): If get_cie_encoding returned
7245 DW_EH_PE_omit, return -1.
7246 (init_object): If classify_object_over_fdes returned -1,
7247 pretend there were no FDEs at all.
7249 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
7251 * config/i386/i386.md (bswap<mode>2): Macroize expander from
7252 bswap{si,di}2 using SWI48 mode iterator.
7253 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
7254 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
7255 set modrm attribute of bswap insn to 0 and remove length attribute.
7256 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
7257 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
7258 set mode attribute to <MODE> and remove length attribute.
7260 2010-04-20 James E. Wilson <wilson@codesourcery.com>
7262 PR rtl-optimization/43520
7263 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
7264 zero available registers.
7266 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7268 * builtins.c (fold_builtin_cproj): Fold more cases.
7270 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7272 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
7273 (fold_builtin_1): Fold builtin cproj.
7274 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
7275 Use ATTR_CONST_NOTHROW_LIST.
7277 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
7279 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
7280 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
7281 ffsi2_no_cmove for !TARGET_CMOVE.
7282 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
7283 (ffssi2): Remove expander.
7284 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
7286 (ctz<mode>2): Ditto from ctz{si,di}2.
7287 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
7289 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
7292 2010-04-20 Jakub Jelinek <jakub@redhat.com>
7294 * dwarf2out.c (AT_linkage_name): Define.
7295 (clone_as_declaration): Handle DW_AT_linkage_name.
7296 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
7297 of DW_AT_MIPS_linkage_name.
7298 (move_linkage_attr): Likewise.
7299 (dwarf2out_finish): Likewise.
7301 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
7304 * fold-const.c (fold_comparison): New folding rule.
7306 2010-04-20 Anatoly Sokolov <aesok@post.ru>
7308 * double-int.h (double_int_setbit): Declare.
7309 * double-int.c (double_int_setbit): New function.
7310 * rtl.h (immed_double_int_const): Declare.
7311 * emit-rtl.c (immed_double_int_const): New function.
7312 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
7313 and immed_double_int_const functions.
7314 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
7315 expand_copysign_bit): (Ditto.).
7316 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
7317 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
7318 * dojump.c (prefer_and_bit_test): (Ditto.).
7319 * expr.c (convert_modes, reduce_to_bit_field_precision,
7320 const_vector_from_tree): (Ditto.).
7321 * expmed.c (mask_rtx, lshift_value): (Ditto.).
7323 2010-04-20 Jan Hubicka <jh@suse.cz>
7325 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
7326 (dump_cgraph_node): Dump new flags.
7327 * cgraph.h (struct cgraph_node): Add flags
7328 reachable_from_other_partition and in_other_partition.
7329 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
7330 other partition can not be removed.
7331 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
7332 the other partition must be output; silence sanity checking on
7333 leaking functions bodies from other paritition.
7334 * lto-cgraph.c (reachable_from_other_partition_p): New function.
7335 (lto_output_node): Output new flags; do not sanity check that inline
7336 clones are output; drop lto_forced_extern_inline_p code; do not mock
7337 visibility flags at partition boundaries.
7338 (add_node_to): New function.
7339 (output_cgraph): Use it to sort functions so masters appear before
7341 (input_overwrite_node): Input new flags.
7342 * passes.c (ipa_write_summaries): Do not call
7343 lto_new_extern_inline_states.
7344 * lto-section-out.c (forced_extern_inline,
7345 lto_new_extern_inline_states lto_delete_extern_inline_states,
7346 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
7347 * lto-streamer.h (lto_new_extern_inline_states,
7348 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
7349 lto_forced_extern_inline_p): Kill.
7351 2010-04-20 Richard Guenther <rguenther@suse.de>
7353 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
7354 from vars that can have pointers.
7355 (process_constraint): Dump useless constraints.
7357 2010-04-20 Richard Guenther <rguenther@suse.de>
7359 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
7360 (dump_sa_points_to_info): Remove asserts.
7361 (init_base_vars): nothing_id isn't an escape point nor does it
7364 2010-04-20 Jakub Jelinek <jakub@redhat.com>
7366 * tree.h (TYPE_REF_IS_RVALUE): Define.
7367 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
7368 should_move_die_to_comdat, prune_unused_types_walk): Handle
7369 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
7370 (modified_type_die, gen_reference_type_die): Emit
7371 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
7372 if TYPE_REF_IS_RVALUE and -gdwarf-4.
7374 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7377 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
7378 calls for -fpic -m31 if they have been sibcall optimized.
7380 2010-04-19 James E. Wilson <wilson@codesourcery.com>
7382 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
7383 ar.lc fixed and call-used.
7385 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
7387 2010-04-19 Jan Hubicka <jh@suse.cz>
7389 * opts.c (decode_options): Disable whpr incompatible passes.
7390 * lto/lto.c (lto_1_to_1_map): Skip clones.
7391 (read_cgraph_and_symbols): Do not mark everything as needed.
7392 (do_whole_program_analysis): Do map only after optimizing;
7393 set proper cgraph_state; use passmanager.
7395 2010-04-19 DJ Delorie <dj@redhat.com>
7397 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
7398 POINTER_PLUS_EXPR and fix them.
7400 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
7402 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
7403 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
7404 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
7405 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
7406 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
7407 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
7408 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
7409 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
7410 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
7411 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
7412 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
7414 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
7416 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
7417 (check_cond_move_block): Likewise.
7418 (cond_move_process_if_block): Likewise.
7419 (noce_find_if_block): Improve formatting.
7420 (find_if_header): Pass 0 to memset and tweak conditions.
7421 (cond_exec_find_if_block): Fix long lines and tweak conditions.
7423 2010-04-19 Jakub Jelinek <jakub@redhat.com>
7425 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
7429 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
7430 with non-local decl doesn't need chain.
7432 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
7434 * ira-color.c (allocno_reload_assign): Avoid accumulating
7435 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
7437 2010-04-19 Martin Jambor <mjambor@suse.cz>
7439 * gimple.h (create_tmp_reg): Declare.
7440 * gimplify.c (create_tmp_reg): New function.
7441 (gimplify_return_expr): Use create_tmp_reg.
7442 (gimplify_omp_atomic): Likewise.
7443 (gimple_regimplify_operands): Likewise.
7444 * tree-dfa.c (make_rename_temp): Likewise.
7445 * tree-predcom.c (predcom_tmp_var): Likewise.
7446 (reassociate_to_the_same_stmt): Likewise.
7447 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
7448 (get_replaced_param_substitute): Likewise.
7449 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
7450 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
7451 * tree-ssa-pre.c (get_representative_for): Likewise.
7452 (create_expression_by_pieces): Likewise.
7453 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
7454 (create_tailcall_accumulator): Likewise.
7456 2010-04-19 Martin Jambor <mjambor@suse.cz>
7458 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
7460 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
7462 2010-04-19 Richard Guenther <rguenther@suse.de>
7464 PR tree-optimization/43796
7465 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
7466 from SCEV in the lattice.
7467 (vrp_visit_phi_node): Dump change.
7469 2010-04-19 Richard Guenther <rguenther@suse.de>
7471 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
7472 * configure: Re-generated.
7474 2010-04-19 Richard Guenther <rguenther@suse.de>
7476 PR tree-optimization/43783
7477 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
7478 constant ARRAY_REF operands two and three if possible.
7480 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
7483 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
7485 2010-04-19 Jie Zhang <jie@codesourcery.com>
7488 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
7490 2010-04-19 Ira Rosen <irar@il.ibm.com>
7492 PR tree-optimization/37027
7493 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
7494 and macro to access it.
7495 (vectorizable_reduction): Add argument.
7496 (vect_get_slp_defs): Likewise.
7497 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
7498 statements for possible use in SLP.
7499 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
7500 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
7501 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
7503 (vectorizable_reduction): Likewise.
7504 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
7506 (vectorizable_type_demotion, vectorizable_type_promotion,
7507 vectorizable_store): Likewise.
7508 (vect_analyze_stmt): Update call to vectorizable_reduction.
7509 (vect_transform_stmt): Likewise.
7510 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
7511 (vect_build_slp_tree): Fix indentation. Check that there are no loads
7512 from different interleaving chains in same node.
7513 (vect_slp_rearrange_stmts): New function.
7514 (vect_supported_load_permutation_p): Allow load permutations for
7515 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
7516 inside SLP nodes if necessary.
7517 (vect_analyze_slp_instance): Handle reductions.
7518 (vect_analyze_slp): Try to build SLP instances originating from groups
7520 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
7521 (vect_get_constant_vectors): Create initial vectors for reductions
7522 according to reduction code. Add new argument.
7523 (vect_get_slp_defs): Add new argument, pass it to
7524 vect_get_constant_vectors.
7525 (vect_schedule_slp_instance): Remove SLP tree root statements.
7527 2010-04-19 Jakub Jelinek <jakub@redhat.com>
7529 * tree.h (ENUM_IS_SCOPED): Define.
7530 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
7531 for ENUM_IS_SCOPED enums.
7533 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
7535 * fold-const.c (fold_comparison): Use ssizetype.
7536 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7537 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
7538 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
7539 * tree-object-size.c (compute_object_sizes): Use size_type_node.
7541 * tree.h (initialize_sizetypes): Remove parameter.
7542 (build_common_tree_nodes): Remove second parameter.
7543 * stor-layout.c (initialize_sizetypes): Remove parameter.
7544 Always create an unsigned type.
7545 (set_sizetype): Assert that the passed type is unsigned and simplify.
7546 * tree.c (build_common_tree_nodes): Remove second parameter.
7547 Adjust call to initialize_sizetypes.
7548 * c-decl.c (c_init_decl_processing): Remove second argument in call to
7549 build_common_tree_nodes.
7551 2010-04-18 Matthias Klose <doko@ubuntu.com>
7553 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
7555 2010-04-18 Ira Rosen <irar@il.ibm.com>
7557 PR tree-optimization/43771
7558 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
7559 load permutation doesn't have gaps.
7561 2010-04-18 Jan Hubicka <jh@suse.cz>
7563 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
7564 (sse_prologue_save_insn expander): Use new pattern.
7565 (sse_prologue_save_insn1): New pattern and splitter.
7566 (sse_prologue_save_insn): Update to deal also with 64bit aligned
7568 * i386.c (setup_incoming_varargs_64): Do not compute jump
7570 (ix86_gimplify_va_arg): Update alignment needed.
7571 (ix86_local_alignment): Do not align all local arrays to 128bit.
7573 2010-04-17 Jan Hubicka <jh@suse.cz>
7575 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
7577 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
7579 * arm.md (negdi2): Remove redundant code to force values into a
7582 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
7584 * arm/bpabi.S: Add EABI alignment attributes to objects.
7585 * arm/bpabi-v6m.S: Likewise.
7586 * arm/crti.asm: Likewise.
7587 * arm/crtn.asm: Likewise.
7588 * arm/lib1funcs.asm: Likewise.
7589 * arm/libunwind.S: Likewise.
7591 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
7593 * arm-protos.h (tune_params): New structure.
7594 * arm.c (current_tune): New variable.
7595 (arm_constant_limit): Delete.
7596 (struct processors): Add pointer to the tune parameters.
7597 (arm_slowmul_tune): New tuning option.
7598 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
7599 (all_cores): Adjust to pick up the tuning model.
7600 (arm_constant_limit): New function.
7601 (arm_override_options): Select the appropriate tuning model. Delete
7602 initialization of arm_const_limit.
7603 (arm_split_constant): Use the new constant-limit model.
7604 (arm_rtx_costs): Pick up the current tuning model.
7605 * arm.md (is_strongarm, is_xscale): Delete.
7606 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
7607 for Xscale variant architectures.
7608 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
7610 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7612 * config/arm/arm.c (arm_gen_constant): Remove unused variable
7614 (arm_rtx_costs_1): Remove unused variable extra_cost.
7615 (arm_unwind_emit_set): Use variable offset.
7616 (thumb1_output_casesi): Remove unused variable flags.
7618 2010-04-16 Jeff Law <law@redhat.com>
7620 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
7621 needing assignment rather than doing a two-phase assignment. Remove
7622 unused variable 'm'.
7624 2010-04-16 Jakub Jelinek <jakub@redhat.com>
7627 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
7629 2010-04-16 Doug Kwan <dougkwan@google.com>
7631 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
7632 (next_operand_entry_id): New static variable.
7633 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
7634 (add_to_ops_vec): Assigned unique ID to operand entry.
7635 (struct oecount_s): New field ID.
7636 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
7637 (undistribute_ops_list): Assign unique IDs to oecounts.
7638 (init_reassoc): reset next_operand_entry_id.
7640 2010-04-16 Doug Kwan <dougkwan@google.com>
7642 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
7643 missing left parenthesis.
7645 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
7647 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
7648 *btdi_rex64 using SWI48 mode iterator.
7649 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
7650 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
7651 *jcc_btdi_mask_rex64.
7653 2010-04-16 Anatoly Sokolov <aesok@post.ru>
7655 * double-int.h (tree_to_double_int): Convert to macro.
7656 * double-int.c (tree_to_double_int): Remove.
7658 2010-04-16 Jakub Jelinek <jakub@redhat.com>
7661 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
7662 with want_address 2 and in case a single element list might be
7663 possible, call it again with want_address 0.
7665 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
7667 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
7668 case 'W' print operands for HI mode.
7669 * config/h8300/h8300.h (Y0, Y2) : New constraints.
7670 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
7671 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
7672 * config/h8300/predicate.md (bit_register_indirect_operand): New.
7674 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
7676 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
7677 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
7678 #xx:3 and #xx:4 mode.
7680 * config/h8300/h8300.md (inverted load with HImode dest): Add
7681 support for H8300SX.
7683 * config/h8300/predicate.md (bit_operand): Allow immediate values that
7684 satisfy 'U' constraint.
7686 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7688 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
7689 * configure: Regenerate.
7690 * config.in: Regenerate.
7691 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
7694 2010-04-16 Richard Guenther <rguenther@suse.de>
7696 * tree.h (struct tree_decl_minimal): Move pt_uid ...
7697 (struct tree_decl_common): ... here.
7698 (DECL_PT_UID): Adjust.
7699 (SET_DECL_PT_UID): Likewise.
7700 (DECL_PT_UID_SET_P): Likewise.
7702 2010-04-16 Richard Guenther <rguenther@suse.de>
7704 PR tree-optimization/43572
7705 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
7706 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
7707 * tree-flow.h (is_call_clobbered): Remove.
7708 * tree-flow-inline.h (is_call_clobbered): Likewise.
7709 * tree-dfa.c (dump_variable): Do not dump call clobber state.
7710 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
7711 (execute_return_slot_opt): Adjust.
7712 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
7713 check for call clobbered vars here.
7714 (find_tail_calls): Move tailcall verification to the
7717 2010-04-16 Diego Novillo <dnovillo@google.com>
7719 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
7721 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
7724 * config/arm/arm.md (cbranchqi4): New pattern.
7725 * config/arm/predicates.md (const0_operand,
7726 cbranchqi4_comparison_operator): New predicates.
7728 2010-04-16 Richard Guenther <rguenther@suse.de>
7730 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
7731 (dump_gimple_stmt): Likewise.
7733 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
7735 * recog.h (struct recog_data): New field is_operator.
7736 (struct insn_operand_data): New field is_operator.
7737 * recog.c (extract_insn): Set recog_data.is_operator.
7738 * genoutput.c (output_operand_data): Emit code to set the
7740 * reload.c (find_reloads): Use it rather than testing for an
7741 empty constraint string.
7744 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
7745 If the previous insn is a cbranchsi4_insn with the same arguments,
7746 omit the compare instruction.
7748 * config/arm/arm.md (addsi3_cbranch): If destination is a high
7749 register, inputs must be low registers and we need a low register
7750 scratch. Handle alternative 2 like alternative 3.
7752 2010-04-16 Jakub Jelinek <jakub@redhat.com>
7754 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
7755 don't call get_addr on both. If one expression is a VALUE and
7756 the other a REG, check VALUE's locs if the REG isn't among them.
7758 2010-04-16 Christian Bruel <christian.bruel@st.com>
7760 * config/sh/sh.h (sh_frame_pointer_required): New function.
7761 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
7762 (flag_omit_frame_pointer) Set.
7763 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
7764 (rounded_frame_size): Adjust size with outgoing_args_size.
7765 (sh_set_return_address): Must return from stack pointer.
7766 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
7767 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
7768 (ACCUMULATE_OUTGOING_ARGS): Define.
7769 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
7770 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
7772 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
7775 * config/sh/sh.c (sh_legitimize_reload_address): Use
7776 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
7777 Remove a unneeded check for offset_base.
7779 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
7781 * configure: Regenerated.
7783 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7785 * config/s390/s390.c (s390_call_save_register_used): Switch back
7786 to HARD_REGNO_NREGS.
7788 2010-04-15 Richard Guenther <rguenther@suse.de>
7790 * alias.c (alias_set_subset_of): Handle alias-set zero
7793 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
7794 Julian Brown <julian@codesourcery.com>
7796 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
7797 alternatives according to use of high and low regs.
7798 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7799 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
7800 optimizing for size on Thumb-2.
7802 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
7804 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
7806 2010-04-15 Richard Guenther <rguenther@suse.de>
7808 * tree-ssa-structalias.c (struct variable_info): Add
7810 (new_var_info): Initialize it.
7811 (dump_constraints): Support printing last added constraints.
7812 (debug_constraints): Adjust.
7813 (dump_constraint_graph): Likewise.
7814 (make_heapvar_for): Check for NULL cfun.
7815 (get_function_part_constraint): New function.
7816 (get_fi_for_callee): Likewise.
7817 (find_func_aliases): Properly implement IPA PTA constraints.
7818 (process_ipa_clobber): New function.
7819 (find_func_clobbers): Likewise.
7820 (insert_into_field_list_sorted): Remove.
7821 (create_function_info_for): Properly allocate vars for IPA mode.
7822 Do not use insert_into_field_list_sorted.
7823 (create_variable_info_for): Properly generate constraints for
7824 global vars in IPA mode.
7825 (dump_solution_for_var): Always dump the solution.
7826 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
7827 (find_what_var_points_to): Adjust.
7828 (pt_solution_set): Change.
7829 (pt_solution_ior_into): New function.
7830 (pt_solution_empty_p): Export.
7831 (pt_solution_includes_global): Adjust.
7832 (pt_solution_includes_1): Likewise.
7833 (pt_solutions_intersect_1): Likewise.
7834 (dump_sa_points_to_info): Check some invariants.
7835 (solve_constraints): Move constraint dumping ...
7836 (compute_points_to_sets): ... here.
7837 (ipa_pta_execute): ... and here.
7838 (compute_may_aliases): Do not re-compute points-to info
7839 locally if IPA info is available.
7840 (ipa_escaped_pt): New global var.
7841 (ipa_pta_execute): Properly implement IPA PTA.
7842 * tree-into-ssa.c (dump_decl_set): Support dumping
7843 decls not in referenced-vars.
7844 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
7845 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
7846 (dump_points_to_solution): Likewise.
7847 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
7848 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
7849 (remap_gimple_stmt): Reset call clobber/use information if necessary.
7850 (copy_decl_to_var): Copy DECL_PT_UID.
7851 (copy_result_decl_to_var): Likewise.
7852 * tree.c (make_node_stat): Initialize DECL_PT_UID.
7853 (copy_node_stat): Copy it.
7854 * tree.h (DECL_PT_UID): New macro.
7855 (SET_DECL_PT_UID): Likewise.
7856 (DECL_PT_UID_SET_P): Likewise.
7857 (struct tree_decl_minimal): Add pt_uid member.
7858 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
7859 (pt_solution_empty_p): Declare.
7860 (pt_solution_set): Adjust.
7861 (ipa_escaped_pt): Declare.
7862 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
7863 * gimple-pretty-print.c (pp_points_to_solution): New function.
7864 (dump_gimple_call): Dump call clobber/use information.
7865 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
7866 * tree-pass.h (TDF_ALIAS): New dump option.
7867 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
7868 * doc/invoke.texi (-fipa-pta): Update documentation.
7870 2010-04-15 Richard Guenther <rguenther@suse.de>
7872 * Makefile.in (OBJS-common): Add gimple-fold.o.
7873 (gimple-fold.o): New rule.
7874 * tree.h (maybe_fold_offset_to_reference,
7875 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
7877 * gimple.h: ... here.
7878 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
7879 may_propagate_address_into_dereference): Move prototypes ...
7880 * gimple.h: ... here.
7881 * tree-ssa-ccp.c (get_symbol_constant_value,
7882 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
7883 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
7884 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
7885 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
7886 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
7887 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
7888 gimplify_and_update_call_from_tree): Move ...
7889 * gimple-fold.c: ... here. New file.
7890 (ccp_fold_builtin): Rename to ...
7891 (gimple_fold_builtin): ... this.
7892 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
7894 2010-04-15 Richard Guenther <rguenther@suse.de>
7896 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
7897 fit_double_type, force_fit_type_double, add_double_with_sign,
7898 neg_double, mul_double_with_sign, lshift_double, rshift_double,
7899 lrotate_double, rrotate_double, div_and_round_double): Move ...
7900 * double-int.c: ... here.
7901 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
7902 add_double, neg_double, mul_double_with_sign, mul_double,
7903 lshift_double, rshift_double, lrotate_double, rrotate_double,
7904 div_and_round_double): Move prototypes ...
7905 * double-int.h: ... here.
7907 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
7910 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
7911 matching constraints to ensure inputs match the output.
7913 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
7916 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
7917 in an input-only operand.
7919 2010-04-15 Anatoly Sokolov <aesok@post.ru>
7921 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
7922 (double_int_not, double_int_lshift, double_int_rshift): Declare.
7923 (double_int_negative_p): Convert to static inline function.
7924 * double-int.c (double_int_lshift, double_int_lshift): New functions.
7925 (double_int_negative_p): Remove.
7926 * tree.h (lshift_double, rshift_double):
7927 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
7928 * fold-const.c (fold_convert_const_int_from_real,
7929 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
7930 (lshift_double): Change type of arith argument to bool.
7931 (rshift_double): Change type of arith argument to bool. Correct
7933 * expmed.c (mask_rtx, lshift_value): (Ditto.).
7935 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
7938 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
7939 at the start and end of the then/else blocks, and omit them from the
7941 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
7942 argument; all callers changed. Pass zero to old_insns_match_p instead.
7943 (flow_find_head_matching_sequence): New function.
7944 (old_insns_match_p): Check REG_EH_REGION notes for calls.
7945 * basic-block.h (flow_find_cross_jump,
7946 flow_find_head_matching_sequence): Declare functions.
7948 2010-04-14 Jason Merrill <jason@redhat.com>
7951 * c-common.c (attribute_takes_identifier_p): New fn.
7952 * c-common.h: Declare it.
7954 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7956 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
7958 (*udivmod<mode>4): Ditto.
7960 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7962 * config/i386/i386.md (maxmin_int): Rename code attribute from
7963 maxminiprefix and update all users.
7964 (maxmin_float): Ditto from maxminfprefix.
7965 (logic): Ditto from logicprefix.
7966 (absneg_mnemonic): Ditto from absnegprefix.
7967 * config/i386/mmx.md: Update all users of maxminiprefix,
7968 maxminfprefix and logicprefix for rename.
7969 * config/i386/sse.md: Ditto.
7970 * config/i386/sync.md (sync_<code><mode>): Update for
7973 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7976 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
7977 warnings converted to errors.
7979 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7981 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
7982 used insn_type variable.
7983 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
7984 to avoid set-but-not-used warning.
7986 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7988 * df-core.c (df_ref_debug): Change format string placeholder
7990 * dwarf2asm.c (dw2_asm_output_data_raw,
7991 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
7992 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
7993 * dwarf2out.c (output_cfi, output_cfi_directive,
7994 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
7995 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
7997 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
7998 * print-rtl.c (print_rtx): Ditto.
8000 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8003 * builtins.c (expand_builtin_pow_root): New function to expand pow
8004 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
8005 series of sqrt and cbrt calls under -ffast-math.
8006 (expand_builtin_pow): Call it.
8008 2010-04-14 Michael Matz <matz@suse.de>
8010 PR tree-optimization/42963
8011 * tree-cfg.c (touched_switch_bbs): New static variable.
8012 (group_case_labels_stmt): New function broken out from ...
8013 (group_case_labels): ... here, use the above.
8014 (start_recording_case_labels): Allocate touched_switch_bbs.
8015 (end_recording_case_labels): Deallocate it, call
8016 group_case_labels_stmt.
8017 (gimple_redirect_edge_and_branch): Remember index of affected BB.
8019 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8021 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
8024 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8026 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
8028 2010-04-13 Jan Hubicka <jh@suse.cz>
8030 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
8031 of optimized out static functions.
8032 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
8033 cost computation. Also sanity check for overflows.
8034 (update_caller_keys): Update cgraph_edge_badness call; properly
8035 update fibheap and sanity check that it is up to date.
8036 (add_new_edges_to_heap): Update cgraph_edge_badness.
8037 (cgraph_decide_inlining_of_small_function): Likewise;
8038 add sanity checking that badness in heap is up to date;
8039 improve dumping of reason; Update badness of calls to the
8040 offline copy of function currently inlined; dump badness
8041 of functions not inlined because of unit growth limits.
8043 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8046 * c-common.c (pointer_int_sum): Disregard overflow that occured only
8047 because of sign-extension change when converting to sizetype here...
8048 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
8050 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
8051 the folding to constants. Remove redundant final conversion.
8052 (fold_binary) <associate>: Do not associate if the re-association of
8053 constants alone overflows.
8054 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
8055 to the end of the list.
8056 (multiple_of_p) <COND_EXPR>: New case.
8058 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8060 * opt-functions.awk (opt_sanitized_name): New.
8062 * optc-gen.awk: Use it
8063 * opth-gen.awk: Use it.
8065 2010-04-13 Martin Jambor <mjambor@suse.cz>
8067 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
8068 (sra_modify_assign): Delete stmts loading dead data even if racc has no
8069 children. Call replace_uses_with_default_def_ssa_name to handle
8072 2010-04-13 Michael Matz <matz@suse.de>
8075 * builtins.c (expand_builtin_interclass_mathfn): Also create
8076 a register if the predicate doesn't match.
8078 2010-04-13 Diego Novillo <dnovillo@google.com>
8080 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
8081 * c-pch.c: Include timevar.h.
8082 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
8083 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
8084 * ggc-common.c: Include timevar.h.
8085 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
8086 * timevar.def (TV_PCH_SAVE): Define.
8087 (TV_PCH_CPP_SAVE): Define.
8088 (TV_PCH_PTR_REALLOC): Define.
8089 (TV_PCH_PTR_SORT): Define.
8090 (TV_PCH_RESTORE): Define.
8091 (TV_PCH_CPP_RESTORE): Define.
8093 2010-04-13 Michael Matz <matz@suse.de>
8095 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
8097 (can_reassociate_p): New function.
8098 (break_up_subtract_bb, reassociate_bb): Use it.
8100 2010-04-13 Richard Guenther <rguenther@suse.de>
8103 * builtins.c (c_readstr): Fix assert.
8105 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
8107 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
8108 when generating cltd insn.
8110 (*ashl<mode>3_1): Remove special handling for register operand 2.
8111 (*ashlsi3_1_zext): Ditto.
8112 (*ashlhi3_1): Ditto.
8113 (*ashlhi3_1_lea): Ditto.
8114 (*ashlqi3_1): Ditto.
8115 (*ashlqi3_1_lea): Ditto.
8116 (*<shiftrt_insn><mode>3_1): Ditto.
8117 (*<shiftrt_insn>si3_1_zext): Ditto.
8118 (*<shiftrt_insn>qi3_1_slp): Ditto.
8119 (*<rotate_insn><mode>3_1): Ditto.
8120 (*<rotate_insn>si3_1_zext): Ditto.
8121 (*<rotate_insn>qi3_1_slp): Ditto.
8123 2010-04-13 Richard Guenther <rguenther@suse.de>
8125 * tree-ssa-structalias.c (callused_id): Remove.
8126 (call_stmt_vars): New.
8127 (get_call_vi): Likewise.
8128 (lookup_call_use_vi): Likewise.
8129 (lookup_call_clobber_vi): Likewise.
8130 (get_call_use_vi): Likewise.
8131 (get_call_clobber_vi): Likewise.
8132 (make_transitive_closure_constraints): Likewise.
8133 (handle_const_call): Adjust to do per-call call-used handling.
8134 (handle_pure_call): Likewise.
8135 (find_what_var_points_to): Remove general callused handling.
8136 (init_base_vars): Likewise.
8137 (init_alias_vars): Initialize call_stmt_vars.
8138 (compute_points_to_sets): Process call-used and call-clobbered
8139 vars for call statements.
8140 (delete_points_to_sets): Free call_stmt_vars.
8142 2010-04-13 Richard Guenther <rguenther@suse.de>
8144 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8145 Only add RW dependence for dependence distance zero.
8146 Adjust maximal vectorization factor according to dependences.
8147 Move alignment handling ...
8148 (vect_find_same_alignment_drs): ... here. New function.
8149 (vect_analyze_data_ref_dependences): Adjust.
8150 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
8151 (vect_analyze_data_refs): Adjust minimal vectorization factor
8152 according to data references.
8153 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
8154 dependences before determining the vectorization factor.
8155 Analyze alignment after determining the vectorization factor.
8156 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
8157 dependences before alignment.
8158 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
8160 (vect_analyze_data_refs): Likewise.
8161 (MAX_VECTORIZATION_FACTOR): New define.
8163 2010-04-13 Duncan Sands <baldrick@free.fr>
8165 * except.h (lang_eh_type_covers): Remove.
8166 * except.c (lang_eh_type_covers): Likewise.
8168 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8169 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8171 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
8172 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
8173 UNITS_PER_LONG where it is ABI relevant.
8174 (s390_return_addr_rtx): Likewise.
8175 (s390_back_chain_rtx): Likewise.
8176 (s390_frame_area): Likewise.
8177 (s390_frame_info): Likewise.
8178 (s390_initial_elimination_offset): Likewise.
8179 (save_gprs): Likewise.
8180 (s390_emit_prologue): Likewise.
8181 (s390_emit_epilogue): Likewise.
8182 (s390_function_arg_advance): Likewise.
8183 (s390_function_arg): Likewise.
8184 (s390_va_start): Likewise.
8185 (s390_gimplify_va_arg): Likewise.
8186 (s390_function_profiler): Likewise.
8187 (s390_optimize_prologue): Likewise.
8188 (s390_rtx_costs): Likewise.
8189 (s390_secondary_reload): Likewise.
8190 (s390_promote_function_mode): Likewise.
8191 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
8192 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
8193 registers available.
8194 (s390_unwind_word_mode): New function.
8195 (s390_function_value): Split 64 bit values into register pair if
8196 used as return value.
8197 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
8198 function call parameters. Handle parallels.
8199 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
8200 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
8201 (DWARF_CIE_DATA_ALIGNMENT): New macro.
8202 (s390_expand_setmem): Remove unused variable src_addr.
8203 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
8204 deal with 64 bit registers.
8205 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
8206 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
8207 (UNITS_PER_LONG): New macro.
8208 * libjava/include/s390-signal.h: Define extended ucontext
8209 structure containing the upper halfs of the 64 bit registers.
8211 2010-04-13 Simon Baldwin <simonb@google.com>
8213 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
8215 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8217 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
8218 rvalue on the RHS if the LHS is of a non-renamable type.
8219 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
8221 2010-04-13 Matthias Klose <doko@ubuntu.com>
8223 * gcc.c (cc1_options): Handle -iplugindir before processing
8224 the cc1 spec. Only add -iplugindir once.
8225 (cpp_unique_options): Add -iplugindir option if -fplugin* options
8227 * common.opt (iplugindir): Remove `Separate' property, initialize.
8228 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
8230 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
8231 (distclean): Remove plugin dir.
8232 * doc/invoke.texi: Document -iplugindir.
8234 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
8236 * doc/plugins.texi (Loading Plugins): Document short
8237 -fplugin=foo option.
8238 (Plugin API): Mention default_plugin_dir_name function.
8240 * gcc.c (find_file_spec_function): Add new declaration.
8241 (static_spec_func): Use it for "find-file".
8242 (find_file_spec_function): Add new function.
8243 (cc1_options): Add -iplugindir option if -fplugin* options found.
8245 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
8247 * plugin.c (add_new_plugin): Updated comment, and handle short
8249 (default_plugin_dir_name): Added new function.
8251 * common.opt (iplugindir): New option to set the plugin directory.
8253 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
8255 * config/i386/i386.md (any_rotate): New code iterator.
8256 (rotate_insn): New code attribute.
8258 (SWIM124): New mode iterator.
8259 (<rotate_insn>ti3): New expander.
8260 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
8261 any_rotate code iterator.
8262 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
8263 using any_rotate code iterator and SWIM124 mode iterator.
8264 (ix86_rotlti3): New insn_and_split pattern.
8265 (ix86_rotrti3): Ditto.
8266 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
8267 ix86_rotl{di,ti}3 patterns.
8268 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
8269 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
8270 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
8271 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
8272 code iterator and SWI mode iterator.
8273 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
8274 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
8276 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
8277 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
8278 (bswap rotatert splitter): Add splitter.
8279 (bswap splitter): Macroize splitter using any_rotate code iterator.
8280 Add insn predicate to split only for TARGET_USE_XCHGB or when
8281 optimizing function for size.
8283 2010-04-12 Steve Ellcey <sje@cup.hp.com>
8285 * config/pa/pa.c (emit_move_sequence): Remove use of
8286 deleted variable flag_argument_noalias.
8288 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8290 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
8292 Add to unsupported targets list.
8293 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
8294 sparc*-sun-solaris2.[567]* from target lists.
8295 * configure: Regenerate.
8296 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
8298 Remove Solaris 7 patch references.
8299 (Specific, sparc-sun-solaris2.7): Removed.
8300 (sparc-sun-solaris2*): Update Solaris 7 example.
8301 (sparc64-*-solaris2*): Likewise.
8303 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8305 * config.build (alpha*-dec-osf4*): Remove.
8306 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
8307 of obsolete configurations.
8308 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
8310 * config/alpha/t-osf4: Renamed to ...
8311 * config/alpha/t-osf5: ... this.
8312 * config/alpha/osf.h: Renamed to ...
8313 * config/alpha/osf5.h: ... this.
8314 Merged old osf5.h contents.
8316 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
8317 (EXTRA_SPECS): Removed.
8318 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
8319 reflect removal of Tru64 UNIX V4.0/V5.0 support.
8322 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8324 * doc/contrib.texi (Contributors, Rainer Orth): Update.
8326 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
8329 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
8330 __thiscall convention.
8332 2010-04-12 Steve Ellcey <sje@cup.hp.com>
8334 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
8336 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
8338 2010-04-12 Steve Ellcey <sje@cup.hp.com>
8340 * function.c (assign_parms_initialize_all): Add unused attribute
8343 2010-04-12 Richard Guenther <rguenther@suse.de>
8345 * gsstruct.def (GSS_CALL): New.
8346 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
8347 * gimple.h: Include tree-ssa-alias.h.
8348 (struct gimple_statement_call): New.
8349 (union gimple_statement_struct_d): Add gimple_call member.
8350 (gimple_call_reset_alias_info): Declare.
8351 (gimple_call_use_set): New function.
8352 (gimple_call_clobber_set): Likewise.
8353 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
8354 * gimple.c (gimple_call_reset_alias_info): New function.
8355 (gimple_build_call_1): Call it.
8356 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8357 * tree-inline.c (remap_gimple_stmt): Likewise.
8358 (expand_call_inline): Remove callused handling.
8359 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
8360 * tree-dfa.c (dump_variable): Likewise.
8361 * tree-parloops.c (parallelize_loops): Likewise.
8362 * tree-ssa.c (init_tree_ssa): Likewise.
8363 (delete_tree_ssa): Likewise.
8364 * tree-flow-inline.h (is_call_used): Remove.
8365 * tree-flow.h (struct gimple_df): Remove callused member.
8366 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
8367 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
8368 (ref_maybe_used_by_call_p_1): Simplify.
8369 (call_may_clobber_ref_p_1): Likewise.
8370 * tree-ssa-structalias.c (compute_points_to_sets): Set
8371 the call stmt used and clobbered sets.
8372 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
8373 (find_tail_calls): Verify the tail call.
8375 2010-04-12 Richard Guenther <rguenther@suse.de>
8377 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
8378 single-iteration always-inline inlining.
8379 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
8380 (cgraph_decide_inlining): Do not handle always-inline specially.
8381 (try_inline): Remove always-inline cycle detection special case.
8382 Do not recurse on always-inlines.
8383 (cgraph_early_inlining): Do not iterate if not optimizing.
8384 (cgraph_gate_early_inlining): remove.
8385 (pass_early_inline): Run unconditionally.
8386 (gate_cgraph_decide_inlining): New function.
8387 (pass_ipa_inline): Use it. Do not run the IPA inliner if
8388 not inlining or optimizing.
8389 (cgraph_decide_inlining_of_small_functions): Also consider
8390 always-inline functions.
8391 (cgraph_default_inline_p): Return true for nodes which should
8392 disregard inline limits.
8393 (estimate_function_body_sizes): Assume zero size and time for
8394 nodes which are marked as disregarding inline limits.
8395 (cgraph_decide_recursive_inlining): Do not perform recursive
8396 inlining on always-inline nodes.
8398 2010-04-12 Jakub Jelinek <jakub@redhat.com>
8401 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
8402 for exprs satisfying handled_component_p.
8404 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
8406 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
8407 non-constant aggregate elements.
8409 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
8410 is a real initialization.
8412 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
8415 * c-decl.c (start_function): Move forward check for nested function.
8417 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
8419 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
8420 * config/sh/sh.c: Include reload.h.
8421 (sh_legitimize_reload_address): New.
8422 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
8423 sh_legitimize_reload_address.
8425 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8427 * config/sh/sh.md (*movqi_pop): New insn pattern.
8428 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
8430 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
8432 * config/i386/i386.md (any_shiftrt): New code iterator.
8433 (shiftrt_insn): New code attribute.
8435 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
8436 using any_shiftrt code iterator.
8437 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
8438 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
8439 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
8440 pattern from corresponding peephole2 patterns.
8441 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
8442 using any_shiftrt code iterator.
8443 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
8444 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
8445 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
8446 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
8447 *{ashr,lshr}<mode>3_cmp_zext.
8448 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
8450 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
8452 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
8454 (*lshr<mode>3_cconly): Ditto.
8456 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
8458 * config/i386/i386.md (lshr<mode>3): Macroize expander from
8459 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
8460 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
8461 pattern from *lshr{di,ti}3_1 and corresponding splitters using
8463 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
8464 from corresponding peephole2 patterns.
8465 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
8466 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
8467 and *lshrdi3_1_rex64 using SWI mode iterator.
8468 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
8469 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
8470 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
8471 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
8472 and *lshrdi3_cmp_rex64 using SWI mode iterator.
8473 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
8474 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
8475 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
8476 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
8479 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
8481 * config/i386/i386.md (ashr<mode>3): Macroize expander from
8482 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
8483 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
8484 pattern from *ashr{di,ti}3_1 and corresponding splitters using
8486 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
8487 from corresponding peephole2 patterns.
8488 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
8489 (ashrsi3_cvt): Rename from ashrsi3_31.
8490 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
8491 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
8492 and x86_64_shift_adj_3 using SWI48 mode iterator.
8493 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
8494 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
8495 and *ashrdi3_1_rex64 using SWI mode iterator.
8496 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
8497 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
8498 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
8499 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
8500 and *ashrdi3_cmp_rex64 using SWI mode iterator.
8501 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
8502 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
8503 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
8504 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
8506 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
8507 * config/i386/i386.c (ix86_split_ashr): Update for renamed
8508 x86_shift<mode>_adj_3 expanders.
8510 2010-04-10 Wei Guozhi <carrot@google.com>
8513 * config/arm/arm.c (arm_pic_static_addr): New function.
8514 (legitimize_pic_address): Call arm_pic_static_addr when it detects
8516 (arm_output_addr_const_extra): Output expression for new pattern.
8517 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
8519 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
8521 * ira-costs.c (record_reg_classes): Ignore alternatives that are
8524 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
8525 * web.c: Include "insn-config.h" and "recog.h".
8526 (union_match_dups): New function.
8527 (web_main): Call it.
8528 (union_defs): Don't try to recognize match_dups.
8530 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
8531 if doing so would replace the entire pattern.
8533 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
8537 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
8538 and splitter pattern. Change splitter operand 1 predicate to
8541 2010-04-09 Martin Jambor <mjambor@suse.cz>
8543 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
8544 lattices are addresses of CONST_DECLs with the same initial value.
8545 (ipcp_print_all_lattices): Print values of CONST_DECLs.
8546 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
8548 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8549 Bernd Schmidt <bernds@codesourcery.com>
8551 * loop-invariant.c (replace_uses): New static function.
8552 (move_invariant_reg): Use it to ensure we can replace the uses.
8554 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
8556 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
8558 (picochip_override_options): Enable section anchors only above -O1.
8559 (picochip_reorg): Fixed a couple of build warnings.
8561 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8563 * configure.ac (plugin -rdynamic test): Log result.
8564 * configure: Regenerate.
8565 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
8566 (RDYNAMIC_SPEC): Define.
8567 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
8569 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571 * configure.ac: Determine Sun ld version numbers.
8572 (comdat_group): Restrict GNU ld version checks to gld.
8573 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
8574 (enable_comdat): Support --enable-comdat.
8575 * configure: Regenerate.
8576 * doc/install.texi (Configuration): Document --enable-comdat.
8578 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8580 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
8581 * config/sol2-gld.h: ... here.
8582 * config.gcc (sparc*-*-solaris2*): Reflect this.
8583 (i[34567]86-*-solaris2*): Use it.
8585 2010-04-09 Steve Ellcey <sje@cup.hp.com>
8587 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
8589 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
8591 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8594 * diagnostic.c (diagnostic_initialize): Initialize
8595 some_warnings_are_errors.
8596 (diagnostic_finish): New.
8597 (diagnostic_action_after_output): Call it before exiting.
8598 (diagnostic_report_diagnostic): Do not print message here. Set
8599 some_warnings_are_errors.
8600 * diagnostic.h (diagnostic_context): Delete
8601 issue_warnings_are_errors_message. Add some_warnings_are_errors.
8602 (diagnostic_finish): Declare.
8603 * toplev.c (toplev_main): Call it before exit.
8605 2010-04-09 Jason Merrill <jason@redhat.com>
8608 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
8609 for incomplete type.
8612 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
8613 based on a warning flag.
8615 2010-04-09 Richard Guenther <rguenther@suse.de>
8617 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
8619 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
8622 * varasm.c (default_assemble_visibility): Wrap vars that are
8623 set, but unused, by targets without GAS.
8624 * config/rs6000/rs6000.c (paired_emit_vector_compare):
8625 Remove set, but unused, vars.
8626 (rs6000_legitimize_tls_address): Likewise.
8627 (altivec_expand_dst_builtin): Likewise.
8628 * config/darwin.c (machopic_classify_symbol): Likewise.
8629 (machopic_indirection_name): Likewise.
8631 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
8633 * config/i386/i386.md (DWI): New mode iterator.
8634 (S): New mode attribute.
8635 (shift_operand): Ditto.
8636 (shift_immediate_operand): Ditto.
8637 (ashl_input_operand): Ditto.
8638 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
8639 using SDWIM mode iterator.
8640 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
8641 pattern from *ashl{di,ti}3_1 and corresponding splitters using
8643 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
8644 from corresponding peephole2 patterns.
8645 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
8646 and x86_64_shift_adj_1 using SWI48 mode iterator.
8647 (x86_shift<mode>_adj_2): Ditto.
8648 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
8649 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
8650 using SWI48 mode iterator.
8651 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
8652 *ashldi3_cmp_rex64 using SWI mode iterator.
8653 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
8654 *ashldi3_cconly_rex64 using SWI mode iterator.
8655 * config/i386/i386.c (ix86_split_ashl): Update for renamed
8656 x86_shift<mode>_adj_{1,2}.
8657 (ix86_split_ashr): Ditto.
8658 (ix86_split_lshr): Ditto.
8660 2010-04-09 Richard Guenther <rguenther@suse.de>
8662 * target.h (builtin_conversion): Pass in input and output types.
8663 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
8664 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
8665 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
8666 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
8668 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
8670 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
8672 2010-04-09 Richard Guenther <rguenther@suse.de>
8675 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
8677 2010-04-09 Richard Guenther <rguenther@suse.de>
8679 * tree-vectorizer.h (struct _stmt_vec_info): Document
8680 that vectype is the type of the LHS.
8681 (supportable_widening_operation, supportable_narrowing_operation):
8682 Get both input and output vector types as arguments.
8683 (vect_is_simple_use_1): Declare.
8684 (get_same_sized_vectype): Likewise.
8685 * tree-vect-loop.c (vect_determine_vectorization_factor):
8686 Set STMT_VINFO_VECTYPE to the vector type of the def.
8687 (vectorizable_reduction): Adjust.
8688 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
8689 Adjust. Specify the output vector type.
8690 (vect_pattern_recog_1): Adjust.
8691 * tree-vect-stmts.c (get_same_sized_vectype): New function.
8692 (vectorizable_call): Adjust.
8693 (vectorizable_conversion): Likewise.
8694 (vectorizable_operation): Likewise.
8695 (vectorizable_type_demotion): Likewise.
8696 (vectorizable_type_promotion): Likewise.
8697 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
8699 (vect_is_simple_use_1): New function.
8700 (supportable_widening_operation): Get both input and output
8702 (supportable_narrowing_operation): Likewise.
8703 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
8705 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
8707 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
8708 __thiscall and _thiscall as predefined macros.
8709 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
8710 thiscall attribute handling.
8711 (ix86_comp_type_attributes): Likewise.
8712 (ix86_function_regparm): Likewise.
8713 (ix86_return_pops_args): Likewise.
8714 (init_cumulative_args): Likewise.
8715 (find_drap_reg): Likewise.
8716 (ix86_static_chain): Likewise.
8717 (x86_this_parameter): Likewise.
8718 (x86_output_mi_thunk): Likewise.
8719 (ix86_attribute_table): Add description for thiscall attribute.
8720 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
8721 * doc/extend.texi: Add documentation for thiscall.
8723 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8726 * c.opt (Wint-to-pointer-cast): Available in C++.
8727 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
8729 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
8731 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
8732 * calls.c (expand_call): Pass the function type to aggregate_value_p.
8733 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
8734 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
8735 function type instead. Reorder and simplify checks.
8737 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
8739 2010-04-08 Jing Yu <jingyu@google.com>
8740 Zdenek Dvorak <ook@ucw.cz>
8742 PR tree-optimization/42720
8743 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
8744 loop unswitch conditions here from ...
8745 (tree_unswitch_single_loop): ... here.
8747 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
8749 * tree-if-conv.c: Fix comments and simplify logic.
8751 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
8753 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
8754 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
8755 (main_tree_if_conversion): Update call to tree_if_conversion.
8757 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8760 * doc/invoke.texi (-b,-V): Delete.
8761 * doc/tm.texi: Do not mention -b.
8762 * gcc.c (display_help): Delete -b and -V.
8763 (process_command): Delete -b and -V.
8764 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
8766 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
8767 Wolfgang Gellerich <gellerich@de.ibm.com>
8769 Implement target hook for loop unrolling
8770 * target.h (loop_unroll_adjust): Add a new target hook function.
8771 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
8772 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
8773 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
8774 (s390_loop_unroll_adjust): Implement the new target hook for s390.
8775 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
8777 (decide_unroll_stupid): Likewise.
8779 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8782 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
8784 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8786 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
8787 (Specific, *-*-solaris2*): Likewise.
8788 Don't prefer Sun as over GNU as.
8790 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
8792 * config/s390/s390.c (override_options): Adjust the z10 defaults
8793 for max-unroll-times, max-completely-peeled-insns
8794 and max-completely-peel-times.
8796 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8798 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
8799 instructions for z10.
8800 (s390_expand_setmem): Likewise.
8801 (s390_expand_cmpmem): Likewise.
8803 2010-04-08 Richard Guenther <rguenther@suse.de>
8805 PR tree-optimization/43679
8806 * tree-ssa-pre.c (eliminate): Only propagate copies.
8808 2010-04-08 Jakub Jelinek <jakub@redhat.com>
8811 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
8812 set but not used variable warning.
8814 2010-04-08 Wei Guozhi <carrot@google.com>
8817 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
8818 (arm_size_rtx_costs): Call the new function when optimized for size.
8820 2010-04-08 Jakub Jelinek <jakub@redhat.com>
8823 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
8824 op0 is not a MEM, just return NULL instead of assertion
8826 (discover_nonconstant_array_refs): Don't walk debug stmts.
8828 2010-04-08 Doug Kwan <dougkwan@google.com>
8830 * configure.ac: Recognize gold and do not use its version number
8831 to test ld features.
8832 * configure: Regenerate.
8834 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
8837 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
8838 (negate_value): Move code to push elements to broken_up_substracts ...
8839 (eliminate_plus_minus_pair): ... here. Push operands that have no
8840 negative pair to plus_negates.
8841 (repropagate_negates, init_reassoc, fini_reassoc): Update.
8843 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8845 * doc/install.texi (Configuration): Move description of
8846 --enable-lto, --with-libelf*, --enable-gold from Java section to
8849 * doc/generic.texi (Working with declarations)
8850 (Function Properties, C and C++ Trees): Fix typos.
8851 * doc/sourcebuild.texi (Top Level): Likewise.
8853 2010-04-07 Jakub Jelinek <jakub@redhat.com>
8856 * tree.h (DECL_READ_P): Define.
8857 (struct tree_decl_common): Add decl_read_flag.
8858 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
8859 a set but not used warning.
8860 (merge_decls): Merge DECL_READ_P flag.
8861 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
8862 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
8863 * c-common.c (handle_used_attribute, handle_unused_attribute):
8865 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
8867 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
8869 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
8870 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
8871 c_parser_binary_expression, c_parser_cast_expression,
8872 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
8873 Call default_function_array_read_conversion instead of
8874 default_function_array_conversion where needed.
8875 (c_parser_unary_expression, c_parser_conditional_expression,
8876 c_parser_postfix_expression_after_primary, c_parser_initelt):
8877 Likewise. Call mark_exp_read where needed.
8878 (c_parser_statement_after_labels, c_parser_asm_operands,
8879 c_parser_typeof_specifier, c_parser_sizeof_expression,
8880 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
8882 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
8884 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
8885 (warn_unused_but_set_parameter): Default to warn_unused
8887 * doc/invoke.texi: Document -Wunused-but-set-variable and
8888 -Wunused-but-set-parameter.
8890 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
8891 used count variable.
8892 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
8893 when operandN variables aren't used in the body of the expander
8895 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
8896 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
8897 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
8898 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
8899 FOR_EACH_IMM_USE_ON_STMT): Likewise.
8900 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
8901 * tree.c (PROCESS_ARG): Likewise.
8903 2010-04-07 Simon Baldwin <simonb@google.com>
8905 * diagnostic.h (diagnostic_override_option_index): New macro to
8906 set a diagnostic's option_index.
8907 * c-tree.h (c_cpp_error): Add warning reason argument.
8908 * opts.c (_warning_as_error_callback): New.
8909 (register_warning_as_error_callback): Store callback for
8910 warnings enabled via enable_warning_as_error.
8911 (enable_warning_as_error): Call callback, minor code tidy.
8912 * opts.h (register_warning_as_error_callback): Declare.
8913 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
8914 response to -Werror=.
8915 (c_common_init_options): Register warning_as_error_callback in opts.c.
8916 * common.opt: Add -Wno-cpp option.
8917 * c-common.c (struct reason_option_codes_t): Map cpp warning
8918 reason codes to gcc option indexes.
8919 * (c_option_controlling_cpp_error): New function, lookup the gcc
8920 option index for a cpp warning reason code.
8921 * (c_cpp_error): Add warning reason argument, call
8922 c_option_controlling_cpp_error for diagnostic_override_option_index.
8923 * doc/invoke.texi: Document -Wno-cpp.
8925 2010-04-07 Richard Guenther <rguenther@suse.de>
8927 * ipa-reference.c (mark_load): Use get_base_address.
8928 (mark_store): Likewise.
8930 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
8931 inserting GIMPLE_NOPs into the IL.
8932 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8933 Explicitly strip handled components and indirect references.
8935 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
8936 folding address expressions.
8937 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
8938 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
8939 operand_equal_p to compare decls.
8940 (ptr_deref_may_alias_decl_p): Likewise.
8941 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
8942 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
8943 Handle reversed comparison ops.
8944 * tree-sra.c (asm_visit_addr): Use get_base_address.
8945 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
8946 * ipa-reference.c (mark_address): Use get_base_address.
8948 2010-04-07 Richard Guenther <rguenther@suse.de>
8950 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
8951 Propagate constants everywhere.
8953 2010-04-07 Jakub Jelinek <jakub@redhat.com>
8956 * tree.c (MAX_INT_CACHED_PREC): Define.
8957 (nonstandard_integer_type_cache): New array.
8958 (build_nonstandard_integer_type): Cache results for precision
8959 <= MAX_INT_CACHED_PREC.
8961 2010-04-07 Richard Guenther <rguenther@suse.de>
8963 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
8964 -fargument-noalias-global, -fargument-noalias-anything): Remove.
8965 * common.opt: Likewise.
8966 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
8967 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
8968 (nonoverlapping_memrefs_p): Likewise.
8969 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8970 * opts.c (common_handle_option): Handle OPT_fargument_alias,
8971 OPT_fargument_noalias, OPT_fargument_noalias_anything and
8972 OPT_fargument_noalias_global for backward compatibility.
8974 2010-04-07 Richard Guenther <rguenther@suse.de>
8976 PR tree-optimization/43270
8977 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
8978 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
8979 * tree-ssa-pre.c (phi_translate_1): Adjust.
8980 (fully_constant_expression): Split out vn_reference handling to ...
8981 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
8982 Fold reads from constant strings.
8983 (vn_reference_lookup): Handle fully constant references.
8984 (vn_reference_lookup_pieces): Likewise.
8985 * Makefile.in (expmed.o-warn): Add -Wno-error.
8987 2010-04-07 Martin Jambor <mjambor@suse.cz>
8989 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
8991 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
8994 * gcc.c: Add -static-libstdc++ to list of recognized options.
8996 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8998 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
9000 2010-04-07 Richard Guenther <rguenther@suse.de>
9003 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
9004 bases build simple mem attributes to retain points-to information.
9006 2010-04-07 Richard Guenther <rguenther@suse.de>
9009 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
9010 preserve points-to related information.
9012 2010-04-07 Richard Guenther <rguenther@suse.de>
9015 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
9016 discard plain indirect references.
9017 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
9018 * tree.c (tree_nop_conversion): Likewise.
9020 2010-04-07 Dodji Seketeli <dodji@redhat.com>
9023 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
9025 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
9027 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
9028 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
9030 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9032 * tree-if-conv.c: Fix indentation and comments.
9034 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9036 * tree-if-conv.c: Sort static functions in topological order.
9038 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9040 * tree-if-conv.c: Fix indentation and comments.
9042 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9045 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
9046 lang_hooks.types.type_for_size instead of
9047 build_nonstandard_integer_type.
9048 When converting an unsigned type to signed, double its precision.
9049 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
9050 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
9051 (graphite_create_new_loop_guard): When ub + 1 wraps around,
9054 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9057 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9058 POINTER_PLUS_EXPR for pointer types.
9060 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9063 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
9064 * graphite-clast-to-gimple.c: Include langhooks.h.
9065 (max_signed_precision_type): New.
9066 (max_precision_type): Takes two types as arguments.
9067 (precision_for_value): New.
9068 (precision_for_interval): New.
9069 (gcc_type_for_interval): New.
9070 (gcc_type_for_value): New.
9071 (gcc_type_for_clast_term): New.
9072 (gcc_type_for_clast_red): New.
9073 (gcc_type_for_clast_bin): New.
9074 (gcc_type_for_clast_expr): Split up into several functions.
9075 (gcc_type_for_clast_eq): Rewritten.
9076 (compute_bounds_for_level): New.
9077 (compute_type_for_level_1): New.
9078 (compute_type_for_level): New.
9079 (gcc_type_for_cloog_iv): Removed.
9080 (gcc_type_for_iv_of_clast_loop): Rewritten.
9081 (graphite_create_new_loop): Compute the lower and upper bound types
9082 with gcc_type_for_clast_expr.
9083 (graphite_create_new_loop_guard): Same.
9084 (find_cloog_iv_in_expr): Removed.
9085 (compute_cloog_iv_types_1): Removed.
9086 (compute_cloog_iv_types): Removed.
9087 (gloog): Do not call compute_cloog_iv_types.
9088 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
9090 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
9091 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
9092 (GBB_CLOOG_IV_TYPES): Removed.
9094 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9096 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
9097 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
9098 (detect_commutative_reduction): Same.
9100 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9102 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
9103 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
9105 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
9106 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
9107 (rewrite_commutative_reductions_out_of_ssa): Same.
9108 * passes.c (execute_function_todo): Call verify_ssa for every pass
9109 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
9110 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
9111 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
9112 with an extra argument.
9113 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
9114 verify_ssa only when the extra argument is true.
9115 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
9116 with an extra argument.
9117 (tree_transform_and_unroll_loop): Same.
9119 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9121 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
9122 for all the passes of the LNO having LOOP_CLOSED_SSA.
9123 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
9124 * tree-loop-distribution.c (pass_loop_distribution): Same.
9125 * tree-pass.h (TODO_verify_loops): Removed.
9126 * tree-ssa-loop.c (pass_tree_loop_init): Same.
9128 (pass_tree_unswitch): Same.
9129 (pass_predcom): Same.
9130 (pass_vectorize): Same.
9131 (pass_linear_transform): Same.
9132 (pass_graphite_transforms): Same.
9133 (pass_iv_canon): Same.
9134 (pass_complete_unroll): Same.
9135 (pass_complete_unrolli): Same.
9136 (pass_parallelize_loops): Same.
9137 (pass_loop_prefetch): Same.
9138 (pass_iv_optimize): Same.
9140 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
9143 * passes.c (init_optimization_passes): Move pass_lim before
9144 pass_copy_prop and pass_dce_loop.
9146 2010-04-06 Jakub Jelinek <jakub@redhat.com>
9149 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
9150 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
9151 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
9152 MULTI_* defines for 4 argument vpermil2p* builtins.
9154 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
9156 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
9157 * config/i386/i386.c (x86_maybe_negate_const_int): New.
9158 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
9159 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
9160 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
9161 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
9162 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
9163 Use x86_maybe_negate_const_int to output insn mnemonic.
9164 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
9165 check from instruction predicate. Update comments.
9166 * config/i386/sync.md (sync_add<mode>): Use
9167 x86_maybe_negate_const_int to output insn mnemonic.
9169 2010-04-06 Jan Hubicka <jh@suse.cz>
9171 PR tree-optimization/42906
9172 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
9173 IGNORE_SELF argument. Set visited_control_parents for fully
9175 (find_obviously_necessary_stmts): Update call of
9176 mark_control_dependent_edges_necessary.
9177 (propagate_necessity): Likewise. Handle PHI edges more curefully.
9179 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
9181 * config/i386/i386.md: Remove comment about 'e' and 'E'
9184 2010-04-06 Richard Guenther <rguenther@suse.de>
9186 PR tree-optimization/43627
9187 * tree-vrp.c (extract_range_from_unary_expr): Widenings
9188 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
9191 2010-04-06 Jakub Jelinek <jakub@redhat.com>
9193 * BASE-VER: Change to 4.6.0.
9196 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
9199 2010-04-06 Richard Guenther <rguenther@suse.de>
9202 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
9204 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9206 * doc/invoke.texi (Optimize Options): Document that LTO
9207 won't remove object access purely due to incompatible
9210 2010-04-04 Matthias Klose <doko@ubuntu.com>
9212 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
9213 Initialize variable.
9215 2010-04-03 Richard Guenther <rguenther@suse.de>
9218 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
9219 require a non-NULL MEM_OFFSET.
9221 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
9223 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
9224 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
9225 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
9226 config/alpha/predicates.md, config/arm/arm.md,
9227 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
9228 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
9229 config/darwin9.h, config/darwin.c, config/darwin.h,
9230 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
9231 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
9232 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
9233 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
9234 config/mips/mips.md, config/mn10300/mn10300.c,
9235 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
9236 config/rs6000/aix.h, config/rs6000/dfp.md,
9237 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
9238 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
9239 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
9240 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
9241 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
9242 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
9243 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
9244 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
9245 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
9246 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
9247 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
9248 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
9249 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
9250 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
9251 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
9252 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
9253 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
9254 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
9255 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
9256 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
9257 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
9258 opt-functions.awk, opth-gen.awk, params.def, passes.c,
9259 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
9260 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
9261 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
9262 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
9263 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
9264 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9265 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
9266 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
9267 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
9268 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
9269 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
9270 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
9271 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
9272 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
9274 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9277 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
9278 * aclocal.m4: Regenerate.
9280 2010-04-02 Richard Guenther <rguenther@suse.de>
9282 PR tree-optimization/43629
9283 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
9284 if we have seen a constant value.
9286 2010-04-02 Joseph Myers <joseph@codesourcery.com>
9288 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
9290 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
9293 * arm.c (legitimize_tls_address): Adjust call to
9294 gen_tls_load_dot_plus_four.
9295 (arm_note_pic_base): New function.
9296 (arm_cannot_copy_insn_p): Use it.
9297 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
9300 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9305 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9307 * Makefile.in ($(out_object_file)): Depend on
9308 gt-$(basename $(notdir $(out_file))).h.
9310 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
9312 * config.gcc (lm32-*-rtems*): Add t-lm32.
9314 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
9316 * config.gcc: Add lm32-*-rtems*.
9317 * config/lm32/rtems.h: New file.
9319 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
9322 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
9324 2010-04-01 Jakub Jelinek <jakub@redhat.com>
9326 * dwarf2out.c (output_compilation_unit_header): For
9327 -gdwarf-4 use version 4 instead of version 3.
9328 (output_line_info): For version 4 and above emit additional
9329 maximum ops per insn header field.
9330 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
9332 * dwarf2out.c (is_c_family, is_java): Remove.
9333 (lower_bound_default): New function.
9334 (add_bound_info, gen_descr_array_type_die): Use it.
9336 2010-04-01 Dodji Seketeli <dodji@redhat.com>
9339 * dwarf2out.c (gen_variable_die): Allow debug info for variable
9340 re-declaration when it happens in a function.
9342 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
9344 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
9345 (cgraph_remove_function_insertion_hook): Same.
9346 (cgraph_call_function_insertion_hooks): Same.
9348 2010-04-01 Richard Guenther <rguenther@suse.de>
9351 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
9352 and TREE_THIS_VOLATILE.
9353 (copy_ref_info): Likewise.
9354 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
9355 * tree.c (build6_stat): Ignore side-effects of all but arg5
9356 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
9359 2010-04-01 Richard Guenther <rguenther@suse.de>
9361 PR tree-optimization/43607
9362 * ipa-type-escape.c (check_call): Do not access non-existing
9365 2010-04-01 Richard Guenther <rguenther@suse.de>
9369 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
9370 Jack Howarth <howarth@bromo.med.uc.edu>
9372 * tree-profile.c (tree_init_ic_make_global_vars): Make static
9375 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9377 * doc/install.texi (Prerequisites): Document libelf usability on
9378 IRIX 5/6 and Solaris 2.
9379 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
9380 Update GNU as, GNU ld requirements.
9381 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
9382 Document Sun Studio compiler download.
9383 Update and simplify as, ld recommendations.
9384 (Specific, *-*-solaris2.7): Note obsoletion, removal.
9386 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9388 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
9389 with_tune_32 to pentium4.
9391 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
9393 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
9395 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9397 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
9398 obsoletion, removal.
9400 Document GNU as requirement.
9401 Update configure requirements.
9402 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
9403 Recomment IRIX 6.5.18+.
9404 Document IDF/IDL requirement.
9405 Document GNU as requirement.
9406 Document GNU ld bootstrap failure.
9407 Remove freeware.sgi.com reference.
9409 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9411 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
9412 UNIX V4.0, V5.0 obsoletion, removal.
9413 Remove --with-gc=simple reference.
9414 Update VM requirements during bootstrap.
9415 Remove -oldas bootstrap description.
9416 Update binutils reference.
9417 Remove comparison failure note.
9419 2010-03-31 Richard Guenther <rguenther@suse.de>
9420 Zdenek Dvorak <ook@ucw.cz>
9421 Sebastian Pop <sebastian.pop@amd.com>
9424 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
9425 with multiple arguments.
9426 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
9428 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9430 * graphite-dependences.c (print_pddr): Call print_pdr with an
9432 * graphite-poly.c (debug_pdr): Add an extra argument for the
9435 (print_pbb_domain): Same.
9437 (print_scop_context): Same.
9439 (print_cloog): Same.
9440 (debug_pbb_domain): Same.
9444 (debug_scop_context): Same.
9446 (debug_cloog): Same.
9447 (print_scop_params): Same.
9448 (debug_scop_params): Same.
9449 (print_iteration_domain): Same.
9450 (print_iteration_domains): Same.
9451 (debug_iteration_domain): Same.
9452 (debug_iteration_domains): Same.
9453 (print_scattering_function): Same.
9454 (print_scattering_functions): Same.
9455 (debug_scattering_function): Same.
9456 (debug_scattering_functions): Same.
9457 * graphite-poly.h (debug_pdr): Update declaration.
9459 (print_pbb_domain): Same.
9461 (print_scop_context): Same.
9463 (print_cloog): Same.
9464 (debug_pbb_domain): Same.
9468 (debug_scop_context): Same.
9470 (debug_cloog): Same.
9471 (print_scop_params): Same.
9472 (debug_scop_params): Same.
9473 (print_iteration_domain): Same.
9474 (print_iteration_domains): Same.
9475 (debug_iteration_domain): Same.
9476 (debug_iteration_domains): Same.
9477 (print_scattering_function): Same.
9478 (print_scattering_functions): Same.
9479 (debug_scattering_function): Same.
9480 (debug_scattering_functions): Same.
9482 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9484 * graphite-poly.c (print_scattering_function_1): New.
9485 (print_scattering_function): Call it.
9486 (print_scop_params): Remove spaces at the end of lines.
9489 * graphite-poly.h (print_cloog): Declared.
9490 (debug_cloog): Declared.
9492 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9494 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
9496 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
9497 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
9498 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
9499 to switch between adding the IV bump in loop->latch or in loop->header.
9501 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9503 * graphite-poly.c (print_scattering_function): Pretty print following
9506 (print_pbb_domain): Same.
9507 (dump_gbb_cases): Same.
9508 (dump_gbb_conditions): Same.
9511 (print_scop_params): Same.
9512 (print_scop_context): Same.
9514 (print_pbb_body): New.
9515 (lst_indent_to): New.
9516 (print_lst): Start new lines with a #.
9517 * graphite-poly.h (pbb_bb): New.
9518 (pbb_index): Use pbb_bb.
9519 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
9521 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
9523 2010-03-31 Jakub Jelinek <jakub@redhat.com>
9525 * dwarf2out.c (size_of_die): For -gdwarf-4 use
9526 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
9527 and 0 instead of 1 for dw_val_class_flag.
9528 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
9529 dw_val_class_range_list, dw_val_class_loc_list,
9530 dw_val_class_lineptr and dw_val_class_macptr, use
9531 DW_FORM_flag_present for dw_val_class_flag and
9532 DW_FORM_exprloc for dw_val_class_loc.
9533 (output_die): For -gdwarf-4 print dw_val_class_loc
9534 size as uleb128 instead of 1 or 2 bytes and don't print
9535 anything for dw_val_class_flag.
9537 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
9538 instead of cselib_lookup following by tweaking locs->setting_insn.
9541 * cselib.c (cselib_process_insn): Clear cselib_current_insn
9542 even before returning from label, setjmp call or volatile asm
9545 2010-03-31 Richard Guenther <rguenther@suse.de>
9548 * cgraphunit.c (cgraph_output_in_order): Do not allocate
9549 temporary data on stack.
9551 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9553 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
9554 (PUSHSECTION_ASM_OP): Remove.
9555 (POPSECTION_ASM_OP): Remove.
9556 (PUSHSECTION_FORMAT): Remove.
9557 * config/sol2.h (PUSHSECTION_FORMAT): Define.
9558 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
9559 * config/sol2.c (solaris_output_init_fini): Use it.
9561 2010-03-31 Jie Zhang <jie@codesourcery.com>
9564 * opt-functions.awk (var_type_struct): Use signed char type
9565 for simple variables.
9567 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9569 * config/sol2.c: Include output.h.
9570 (solaris_assemble_visibility): New function.
9571 * config/t-sol2 (sol2.o): Add output.h dependency.
9572 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
9573 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
9576 2010-03-31 Jakub Jelinek <jakub@redhat.com>
9579 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
9580 V2SImode or XFmode on PRE_DEC.
9583 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
9586 2010-03-31 Jie Zhang <jie@codesourcery.com>
9589 * reload.h (caller_save_initialized_p): Declare.
9590 * toplev.c (backend_init_target): Don't call
9591 init_caller_save but set caller_save_initialized_p to false.
9592 * caller-save.c (caller_save_initialized_p): Define.
9593 (init_caller_save): Check caller_save_initialized_p.
9594 * ira.c (ira): Call init_caller_save if flag_caller_saves.
9596 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9599 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
9600 and soft-fp/t-softfp to tmake_file.
9601 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
9602 (LIBGCC2_TF_CEXT): Define.
9605 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
9608 * cselib.c (n_useless_values): Document handling of debug locs.
9609 (n_useless_debug_values, n_debug_values): New variables.
9610 (new_elt_loc_list): Don't add to debug values, keep count.
9611 (promote_debug_loc): New.
9612 (cselib_reset_table): Zero new variables.
9613 (entry_and_rtx_equal_p): Promote debug locs.
9614 (discard_useless_locs): Increment n_useless_debug_values for
9616 (remove_useless_values): Adjust n_useless_values and n_debug_values
9617 with n_useless_debug_values.
9618 (add_mem_for_addr): Promote debug locs.
9619 (cselib_lookup_mem): Likewise.
9620 (cselib_lookup_addr): Renamed to...
9621 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
9622 (cselib_log_lookup): ... this. Turn into...
9623 (cselib_lookup_addr): ... new wrapper.
9624 (cselib_lookup_from_insn): New.
9625 (cselib_invalidate_regno): Increment n_useless_debug_values for
9627 (cselib_invalidate_mem): Likewise.
9628 (cselib_process_insn): Take n_deleted and n_debug_values into
9629 account to guard remove_useless_value call.
9630 (cselib_finish): Zero n_useless_debug_values.
9631 * cselib.h (cselib_lookup_from_insn): Declare.
9632 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
9633 (sched_analyze_2): Likewise.
9635 2010-03-30 Jakub Jelinek <jakub@redhat.com>
9637 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
9639 (adjust_mems): Replace narrowing SUBREG of expression containing
9640 just PLUS, MINUS, MULT and ASHIFT of registers and constants
9641 with operations in the narrower mode.
9644 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
9645 regs_invalidated_by_call instead all call_used_reg_set registers.
9647 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
9650 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
9651 pointer comparisons with types_compatible_p.
9652 * tree-vect-stmts.c (vectorizable_call): Same.
9653 (vectorizable_condition): Same.
9655 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9657 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
9658 stack check if the mask would be zero.
9660 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
9661 Jack Howarth <howarth@bromo.med.uc.edu>
9663 * tree-profile.c (tree_init_ic_make_global_vars): Make static
9666 2010-03-30 Joseph Myers <joseph@codesourcery.com>
9669 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
9671 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
9672 Include ___unordxf2 and ___unordtf2.
9673 * config/i386/libgcc-glibc.ver: Do not define inheritance from
9676 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
9678 * config/lm32/t-lm32: New file.
9679 * config.gcc: Use the above file when targetting lm32.
9681 2010-03-28 Duncan Sands <baldrick@free.fr>
9683 * Makefile.in (PLUGIN_HEADERS): Add except.h.
9685 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
9688 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
9689 Improve vectorization cost model diagnostic.
9691 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
9694 * tree-vect-data-refs.c (vect_analyze_data_refs): When
9695 compute_data_dependences_for_loop returns false, early exit
9696 and output an extra diagnostic for the failed data reference
9699 2010-03-29 Richard Guenther <rguenther@suse.de>
9701 PR tree-optimization/43560
9702 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
9703 (can_sm_ref_p): Treat stores to readonly locations as trapping.
9705 2010-03-29 Jie Zhang <jie@codesourcery.com>
9708 * toplev.c (process_options): Set optimization_default_node
9709 and optimization_current_node.
9710 * opts.c (decode_options): Don't set optimization_default_node
9711 and optimization_current_node.
9713 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
9715 * config/rtems.h: Abandon -qrtems_debug.
9717 2010-03-28 Jan Hubicka <jh@suse.cz>
9719 PR tree-optimization/43505
9720 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
9721 map should not be copied.
9723 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9726 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
9727 cdtors, set DECL_PRESERVE_P.
9728 * ipa.c (cgraph_externally_visible_p): Return true if declaration
9731 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
9733 PR tree-optimization/43528
9734 * stor-layout.c (place_field): Check that constant fits into
9735 unsigned HWI when skipping calculation of MS bitfield layout.
9737 2010-03-27 Jan Hubicka <jh@suse.cz>
9740 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
9741 notice_global_symbol work.
9743 2010-03-27 Jakub Jelinek <jakub@redhat.com>
9745 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
9746 instead of dwarf2out_decl.
9747 (struct var_loc_node): Remove section_label field.
9748 (dwarf2out_function_decl): New function.
9749 (dwarf2out_var_location): Don't set section_label field.
9750 (dwarf2out_begin_function): Don't empty decl_loc_table here.
9752 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9754 PR tree-optimization/43544
9755 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9756 First argument for builtin vectorized function hook is now a
9757 tree to be able to distinguish between machine specific and
9759 * targhooks.c (default_builtin_vectorized_function): Ditto.
9760 * targhooks.h (default_builtin_vectorized_function): Ditto.
9761 * target.h (struct gcc_target): Ditto.
9762 * tree-vect-stmts.c (vectorizable_function): Ditto.
9763 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
9764 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9767 2010-03-26 Joseph Myers <joseph@codesourcery.com>
9770 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
9771 nested binding iff it is a FUNCTION_DECL.
9772 (store_parm_decls_newstyle): Pass nested=true to bind for
9773 FUNCTION_DECLs amongst parameters.
9775 2010-03-26 Jakub Jelinek <jakub@redhat.com>
9777 * var-tracking.c (vt_expand_loc_callback): Don't run
9778 cselib_expand_value_rtx_cb in dummy mode if
9779 cselib_dummy_expand_value_rtx_cb returned false.
9781 * var-tracking.c (emit_note_insn_var_location): For one part
9782 notes with offset 0, don't add EXPR_LIST around the location.
9783 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
9784 add_location_or_const_value_attribute): Adjust for that change.
9787 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
9788 into first operand and location into second.
9789 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
9790 dw_cfi_oprnd_loc for DW_CFA_expression.
9791 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
9792 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
9793 assume first argument is regnum and second argument is location.
9795 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
9798 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
9799 of scratch register to DImode. Split to DImode comparison operator.
9800 Use SImode subreg of scratch register in the multiplication.
9801 (*cmp_sadd_sidi): Ditto.
9802 (*cmp_ssub_si): Ditto.
9803 (*cmp_ssub_sidi): Ditto.
9805 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
9808 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
9809 Remove invalid assert and wrong comment.
9811 2010-03-26 Jakub Jelinek <jakub@redhat.com>
9814 * flags.h (final_insns_dump_p): New extern.
9815 * final.c (final_insns_dump_p): New variable.
9816 (rest_of_clean_state): Set it before -fdump-final-insns=
9817 dumping, clear afterwards.
9818 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
9819 MEM_ALIAS_SET on MEMs.
9821 2010-03-26 David S. Miller <davem@davemloft.net>
9823 * configure.ac: Fix sparc GOTDATA_OP bug check.
9824 * configure: Rebuild.
9826 2010-03-26 Alan Modra <amodra@gmail.com>
9828 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
9830 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9832 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
9833 TLS_SECTION_ASM_FLAG.
9835 2010-03-25 Jakub Jelinek <jakub@redhat.com>
9838 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
9839 Clear first_function_block_is_cold.
9842 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
9843 argument if the argument is truth_value_p.
9845 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9847 * config/rs6000/constraints.md: Update copyright year for my changes.
9850 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
9851 used in reg+reg addressing, swap registers.
9853 2010-03-24 Jakub Jelinek <jakub@redhat.com>
9856 * target.h (struct gcc_target): Add code_end hook.
9857 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
9859 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
9860 * toplev.c (compile_file): Call targetm.asm_out.code_end
9861 hook before unwind info/debug info output.
9862 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
9863 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
9864 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
9865 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
9866 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
9867 * config/i386/i386.c (ix86_file_end): Renamed to...
9868 (ix86_code_end): ... this. Make static. Don't call
9869 file_end_indicate_exec_stack. Emit unwind info using
9870 final_start_function/final_end_function.
9871 (darwin_x86_file_end): Remove.
9872 (TARGET_ASM_CODE_END): Define.
9873 * config/i386/i386.h (TARGET_ASM_FILE_END,
9874 NEED_INDICATE_EXEC_STACK): Don't define.
9875 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
9876 (TARGET_ASM_FILE_END): Define to darwin_file_end.
9877 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
9878 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
9881 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
9882 at the beginning and final_end_function at the end.
9883 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9885 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9887 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
9888 and Sun as TLS syntax.
9889 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
9890 * configure: Regenerate.
9891 * config.in: Regenerate.
9892 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
9893 (default_elf_asm_named_section): Use it.
9894 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
9895 (i386_output_dwarf_dtprel): Likewise.
9896 (output_addr_const_extra): Likewise.
9897 (output_pic_addr_const): Lowercase @GOTTPOFF.
9898 (output_addr_const_extra): Likewise.
9899 (output_pic_addr_const): Lowercase @GOTNTPOFF.
9900 (output_addr_const_extra): Likewise.
9901 (output_pic_addr_const): Lowercase @INDNTPOFF.
9902 (output_addr_const_extra): Likewise.
9903 (output_pic_addr_const): Lowercase @NTPOFF.
9904 (output_addr_const_extra): Likewise.
9905 (output_pic_addr_const): Lowercase @TPOFF.
9906 (output_addr_const_extra): Likewise.
9907 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
9908 (*tls_global_dynamic_64): Likewise.
9909 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
9910 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
9912 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
9913 (ASM_OUTPUT_TLS_COMMON): Use it.
9914 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
9917 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
9918 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
9919 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
9920 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
9921 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
9922 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
9924 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9926 * config/i386/i386.c (override_options): Don't accept
9927 -mtls-dialect=sun any longer.
9928 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
9929 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
9930 (*tls_local_dynamic_base_32_sun): Likewise.
9931 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
9933 2010-03-24 Jakub Jelinek <jakub@redhat.com>
9936 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9937 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
9940 * ira.c (adjust_cleared_regs): New function.
9941 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
9945 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
9947 * expr.c (expand_expr_real): Restore previous
9948 curr_insn_source_location and curr_insn_block after
9949 expand_expr_real_1 call.
9950 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
9951 instead of expand_expr_real_1.
9953 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
9955 PR rtl-optimization/43413
9956 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
9959 2010-03-22 James E. Wilson <wilson@codesourcery.com>
9962 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
9963 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
9965 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
9967 * config/i386/i386.c (ix86_target_string): Add -mfma.
9968 Fix a typo in comment.
9970 2010-03-22 Mike Stump <mikestump@comcast.net>
9973 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
9974 Don't overly align based upon packed packed fields.
9976 2010-03-22 Jason Merrill <jason@redhat.com>
9978 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
9979 Use () rather than [], and move before the element type.
9981 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9983 * doc/configfiles.texi (Configuration Files): Removed
9984 fixinc/Makefile*, intl/Makefile.*.
9985 * doc/makefile.texi: Fixed markup. Abstract from version
9986 control system used.
9987 (Makefile): Removed obsolete gcc/java/parse.y example.
9988 * doc/sourcebuild.texi: Likewise.
9989 (Top Level): Added config, gnattools, libdecnumber, libgcc,
9990 libgomp, libssp. Removed fastjar.
9991 (Miscellaneous Docs): Clarify location.
9992 Added COPYING3, COPYING3.LIB.
9993 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
9995 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9998 * config/i386/i386.c (x86_function_profiler)
9999 [!NO_PROFILE_COUNTERS]: Fix typo.
10000 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
10003 2010-03-22 Janis Johnson <janis187@us.ibm.com>
10004 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10006 * doc/sourcebuild.texi (Test Directives): Split into six
10007 subsections, with most of the current text in new subsections
10008 Directives, Selectors, and Final Actions.
10009 (Directives): Split list of test directives into multiple
10011 (Selectors): Describe use and syntax of selectors.
10012 (Effective-Target Keywords): Describe all existing keywords.
10013 (Add Options): Describe features for dg-add-options.
10014 (Require Support): Describe variants of dg-require-support.
10015 (Final Actions): Describe commands to use in dg-final.
10017 2010-03-22 Michael Matz <matz@suse.de>
10019 PR middle-end/43475
10020 * recog.c (validate_replace_rtx_group): Replace also in
10021 REG_EQUAL and REG_EQUIV notes.
10023 2010-03-22 Richard Guenther <rguenther@suse.de>
10025 PR tree-optimization/43390
10026 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
10027 sure vector extracts are type correct.
10029 2010-03-22 Richard Guenther <rguenther@suse.de>
10031 PR middle-end/40106
10032 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
10033 x * sqrt (x) even when optimizing for size if the target
10034 has native support for sqrt.
10036 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10038 * varasm.c (make_decl_rtl_for_debug): Also clear
10039 flag_mudflap for the duration of make_decl_rtl call.
10042 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
10043 locs from preserved VALUEs.
10045 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10047 PR middle-end/42718
10048 * pa.md (movmemsi): Set align to one if zero.
10049 (movmemdi): Likewise.
10051 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
10054 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
10055 with their corresponding prologue pushes.
10057 2010-03-20 Andrew Pinski <pinskia@gmail.com>
10060 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
10061 at the begining or end.
10062 (spu_expand_epilogue): Likewise.
10064 2010-03-20 Richard Guenther <rguenther@suse.de>
10066 PR rtl-optimization/43438
10067 * combine.c (make_extraction): Properly zero-/sign-extend an
10068 extraction of the low part of a CONST_INT. Also handle
10071 2010-03-19 Mike Stump <mikestump@comcast.net>
10073 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
10074 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
10075 (override_options): Use SUBTARGET32_DEFAULT_CPU.
10077 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
10080 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
10083 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
10085 PR rtl-optimization/42258
10086 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
10087 use that may match DEF.
10090 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
10091 the cost of loading the constant rather than assuming
10093 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
10094 outer code is AND, do the same tests as the andsi3 expander and
10095 return COSTS_N_INSNS (1) if and is cheap.
10097 * optabs.c (avoid_expensive_constant): Fix formatting.
10099 2010-03-19 Michael Matz <matz@suse.de>
10102 * attribs.c (decl_attributes): When rebuilding a function pointer
10103 type use the same qualifiers as the original pointer type.
10105 2010-03-19 Martin Jambor <mjambor@suse.cz>
10107 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
10108 and is_gimple_ip_invariant_address.
10110 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10113 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10115 * config/arm/arm.c (arm_override_options): Turn off
10116 flag_dwarf2_cfi_asm for AAPCS variants.
10118 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10121 * config/arm/arm.c (emit_multi_reg_push): Update comments.
10122 Use PRE_MODIFY instead of PRE_DEC.
10123 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
10124 (vfp_emit_fstmd): Likewise.
10126 2010-03-19 Michael Matz <matz@suse.de>
10129 * builtins.c (expand_builtin_interclass_mathfn,
10130 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
10133 2010-03-19 Richard Guenther <rguenther@suse.de>
10135 PR tree-optimization/43415
10136 * tree-ssa-pre.c (phi_translate): Split out worker to ...
10137 (phi_translate_1): ... this.
10138 (phi_translate): Move all caching here. Cache all NARY
10139 and REFERENCE translations.
10141 2010-03-19 David S. Miller <davem@davemloft.net>
10143 With help from Eric Botcazou.
10144 * config/sparc/sparc.c: Include dwarf2out.h.
10145 (emit_pic_helper): Delete.
10146 (pic_helper_symbol_name): Delete.
10147 (pic_helper_emitted_p): Delete.
10148 (pic_helper_needed): New.
10149 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
10150 (get_pc_thunk_name): New.
10151 (load_pic_register): Remove 'delay_pic_helper' arg. Use
10152 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
10153 Set pic_helper_needed to true. Don't call emit_pic_helper.
10154 (sparc_expand_prologue): Update load_pic_register call.
10155 (sparc_output_mi_thunk): Likewise.
10156 (sparc_file_end): Emit a hidden comdat symbol for the PIC
10157 thunk if possible. Output CFI information as needed.
10159 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10160 Jack Howarth <howarth@bromo.med.uc.edu>
10163 * config/i386/i386.h: Fix ABI on darwin x86-32.
10165 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
10167 * tree.h: Declare make_decl_rtl_for_debug.
10168 * varasm.c (make_decl_rtl_for_debug): New.
10169 * dwarf2out.c (rtl_for_decl_location): Call it.
10170 * cfgexpand.c (expand_debug_expr): Call it.
10172 2010-03-18 Jakub Jelinek <jakub@redhat.com>
10175 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
10179 * var-tracking.c (vt_init_cfa_base): Do nothing if
10180 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
10182 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
10185 * var-tracking.c (canonicalize_vars_star): New.
10186 (dataflow_post_merge_adjust): Use it.
10188 2010-03-18 Jakub Jelinek <jakub@redhat.com>
10191 * var-tracking.c (non_suitable_const): New function.
10192 (add_uses): For DEBUG_INSNs with constants, don't record any
10193 value, instead just the constant value itself.
10194 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
10195 is not VAR_LOC_UNKNOWN_P, set var to the constant.
10196 (emit_notes_in_bb): Likewise.
10197 (emit_note_insn_var_location): For onepart variables if
10198 cur_loc is a VOIDmode constant, use DECL_MODE.
10200 2010-03-18 Martin Jambor <mjambor@suse.cz>
10202 PR middle-end/42450
10203 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
10204 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
10205 all non-clones. Moved call redirection...
10206 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
10207 (cgraph_materialize_all_clones): Dispose of all
10208 combined_args_to_skip bitmaps.
10209 (verify_cgraph_node): Do not check for edges pointing to wrong
10210 nodes in inline clones.
10211 * tree-inline.c (copy_bb): Call
10212 cgraph_redirect_edge_call_stmt_to_callee.
10213 * ipa.c (cgraph_remove_unreachable_nodes): Call
10214 cgraph_node_remove_callees even when there are used clones.
10216 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
10218 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
10220 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
10223 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
10226 2010-03-18 Michael Matz <matz@suse.de>
10228 PR middle-end/43419
10229 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
10230 into sqrt(x) if we need to preserve signed zeros.
10232 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
10233 Eric Botcazou <ebotcazou@adacore.com>
10235 PR rtl-optimization/43360
10236 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
10237 note if we don't know its invariant status.
10239 2010-03-18 Michael Matz <matz@suse.de>
10241 PR tree-optimization/43402
10242 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
10243 PHI chains of ssa names registered for update.
10245 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
10248 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
10249 non-offsettable and pre_modify update addressing.
10250 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
10251 and "2" alternatives "#".
10252 (*movdd_softfloat32): Make all alternatives "#";
10253 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
10254 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
10255 (*movdf_softfloat32): Make all alternatives "#";
10256 (movdi): Use the new DIFD mode iterator to create a common splitter
10257 for movdi, movdf and movdd patterns.
10259 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
10261 * common.opt (dumpdir): Remove redundant tab.
10263 2010-03-17 Martin Jambor <mjambor@suse.cz>
10265 PR tree-optimization/43347
10266 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
10267 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
10269 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
10271 PR rtl-optimization/42216
10272 * regrename.c (create_new_chain): New function, broken out from...
10273 (scan_rtx_reg): ... here. Call it. Handle the case where we are
10274 appending a use to an empty chain.
10275 (build_def_use): Remove previous changes that convert OP_INOUT to
10276 OP_OUT operands; instead detect the case where an OP_INOUT operand
10277 uses a previously untracked register and create an empty chain for it.
10279 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10281 * doc/extend.texi (Function Attributes): Rewrite unfinished
10282 sentence in ms_abi documentation.
10284 2010-03-17 Alan Modra <amodra@gmail.com>
10286 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
10287 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
10288 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
10289 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
10291 2010-03-16 Richard Henderson <rth@redhat.com>
10293 PR middle-end/43365
10294 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
10295 (lower_try_finally): Save and restore eh_seq around the expansion
10296 of the try-finally.
10298 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
10300 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
10301 statements before splitting block.
10303 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10305 * doc/sourcebuild.texi (Testsuites): Fix markup.
10306 Use pathnames relative to gcc/testsuite.
10307 (Test Directives): Move description of how timeout is determined.
10308 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
10309 (C Tests): Correct gcc.misc-tests directory.
10310 Framework tests now live in gcc.test-framework.
10312 2010-03-16 Richard Guenther <rguenther@suse.de>
10314 PR middle-end/43379
10315 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
10316 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
10318 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
10319 Alexandre Oliva <aoliva@redhat.com>
10321 PR tree-optimization/42917
10322 * lambda-code.c (remove_iv): Skip debug statements.
10323 (lambda_loopnest_to_gcc_loopnest): Likewise.
10324 (not_interesting_stmt): Debug statements are not interesting.
10326 2010-03-16 Jakub Jelinek <jakub@redhat.com>
10330 * cselib.c (cselib_preserve_constants,
10331 cfa_base_preserved_val): New static variables.
10332 (preserve_only_constants): New function.
10333 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
10334 clear its REG_VALUES. If cselib_preserve_constants, don't
10335 empty the whole hash table, but preserve there VALUEs with constants,
10336 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
10337 (cselib_preserve_cfa_base_value): New function.
10338 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
10339 (cselib_init): Change argument to int bitfield. Set
10340 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
10342 (cselib_finish): Clear cselib_preserve_constants and
10343 cfa_base_preserved_val.
10344 * cselib.h (enum cselib_record_what): New enum.
10345 (cselib_init): Change argument to int.
10346 (cselib_preserve_cfa_base_value): New prototype.
10347 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
10348 * dse.c (dse_step1): Likewise.
10349 * cfgcleanup.c (thread_jump): Likewise.
10350 * sched-deps.c (sched_analyze): Likewise.
10351 * gcse.c (local_cprop_pass): Likewise.
10352 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
10353 If FN is non-NULL, call the callback always and whenever it returns
10354 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
10355 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
10356 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
10357 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
10358 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
10359 * var-tracking.c: Include recog.h.
10360 (bb_stack_adjust_offset): Remove.
10361 (vt_stack_adjustments): Don't call it, instead just gather the
10362 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
10363 (adjust_stack_reference): Remove.
10364 (compute_cfa_pointer): New function.
10365 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
10366 (struct adjust_mem_data): New type.
10367 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
10369 (get_address_mode): New function.
10370 (replace_expr_with_values): Use it.
10371 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
10372 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
10373 (adjust_sets): Remove.
10374 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
10375 Use get_address_mode.
10376 (get_adjusted_src): Remove.
10377 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
10378 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
10379 (add_with_sets): Don't call adjust_sets.
10380 (fp_setter, vt_init_cfa_base): New functions.
10381 (vt_initialize): Change return type to bool. Move most of pool etc.
10382 initialization to the beginning of the function from end. Pass
10383 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
10384 If !frame_pointer_needed, call vt_stack_adjustment before mos
10385 vector is filled, call vt_init_cfa_base if argp/framep has been
10386 eliminated to sp. If frame_pointer_needed and argp/framep has
10387 been eliminated to hard frame pointer, set
10388 hard_frame_pointer_adjustment and call vt_init_cfa_base after
10389 encountering fp setter in the prologue. For MO_ADJUST, call
10390 log_op_type before pusing the op into mos vector, not afterwards.
10391 Call adjust_insn before cselib_process_insn/add_with_sets,
10392 call cancel_changes (0) afterwards.
10393 (variable_tracking_main_1): Adjust for vt_initialize calling
10394 vt_stack_adjustments and returning whether it succeeded or not.
10396 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
10398 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
10401 2010-03-15 Jakub Jelinek <jakub@redhat.com>
10403 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
10405 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
10406 drap_reg has not been set.
10408 2010-03-15 Michael Matz <matz@suse.de>
10410 PR middle-end/43300
10411 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
10412 use it to expand block copies.
10413 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10414 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
10415 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
10417 2010-03-15 Richard Guenther <rguenther@suse.de>
10419 PR tree-optimization/43367
10420 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
10423 2010-03-15 Richard Guenther <rguenther@suse.de>
10425 PR tree-optimization/43317
10426 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
10428 2010-03-15 Martin Jambor <mjambor@suse.cz>
10430 PR tree-optimization/43141
10431 * tree-sra.c (create_abstract_origin): New function.
10432 (modify_function): Call create_abstract_origin.
10434 2010-03-15 Chris Demetriou <cgd@google.com>
10436 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
10439 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10441 PR middle-end/43354
10442 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
10443 call insert_out_of_ssa_copy for default definitions.
10445 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10447 * graphite-clast-to-gimple.c (my_long_long): Defined.
10448 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
10449 * graphite-sese-to-poly.c (my_long_long): Defined.
10450 (scop_ivs_can_be_represented): Use it.
10452 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10454 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
10455 graphite-max-bbs-per-function, and loop-block-tile-size.
10456 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
10458 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
10460 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10462 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
10463 forward declaration.
10464 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
10465 (add_upper_bounds_from_estimated_nit): New.
10466 (build_loop_iteration_domains): Use it.
10468 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10470 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
10472 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10474 PR middle-end/43306
10475 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
10476 should be an INTEGER_CST. Also handle CASE_CONVERT.
10478 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10480 * graphite.c (graphite_initialize): To bound the number of bbs per
10481 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10482 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
10483 * doc/invoke.texi: Document it.
10485 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10487 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
10488 * graphite-sese-to-poly.h (build_poly_scop): Same.
10490 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10492 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
10493 the number of parameters in the scop. Use as an upper bound
10494 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
10495 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
10496 * doc/invoke.texi: Document it.
10498 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
10500 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
10501 * doc/c-tree.texi: Remove.
10502 * doc/generic.texi: Merge c-tree.texi here.
10503 * doc/gccint.texi (Trees): Remove menu entry.
10504 (c-tree.texi): Remove @include.
10505 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
10506 * doc/languages.texi (Reading RTL): Ditto.
10508 2010-03-12 Steve Ellcey <sje@cup.hp.com>
10511 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
10513 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10515 PR middle-end/42431
10516 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
10517 code added to work around reload clobbering CONST insns.
10519 2010-03-12 Jakub Jelinek <jakub@redhat.com>
10521 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
10522 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
10523 (cselib_preserve_only_values): Remove retain argument, don't
10524 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
10525 * cselib.h (cselib_preserve_only_values): Remove retain argument.
10526 * var-tracking.c (micro_operation): Move insn field before union.
10527 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
10528 (struct variable_tracking_info_def): Remove n_mos field, change
10529 mos into a vector of micro_operations.
10530 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
10531 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
10532 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
10533 changing into a vector.
10534 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
10535 come before all other uops generated by add_stores.
10536 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
10538 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
10539 a vector. Run just one pass over the bbs instead of separate counting
10540 and computation phase.
10541 (vt_finalize): Free VTI (bb)->mos vector instead of array.
10544 * tree-inline.c (remap_decls): Put old_var rather than origin_var
10545 into *nonlocalized_list vector.
10546 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
10547 even if origin is non-NULL.
10548 (gen_variable_die): Likewise.
10549 (process_scope_var): Don't change origin.
10550 (gen_decl_die): Likewise.
10551 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
10552 before adding new edges instead of after it, fix moving over
10555 2010-03-11 David S. Miller <davem@davemloft.net>
10557 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
10559 * configure: Rebuild.
10561 2010-03-11 Martin Jambor <mjambor@suse.cz>
10563 PR tree-optimization/43257
10564 * tree.c (assign_assembler_name_if_neeeded): New function.
10565 (free_lang_data_in_cgraph): Assembler name assignment moved to the
10566 above new function.
10567 * tree.h (assign_assembler_name_if_neeeded): Declare.
10568 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
10569 the function if needed.
10571 2010-03-11 Chris Demetriou <cgd@google.com>
10573 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
10574 include/stdint-gcc.h, and include/stdint.h world-readable.
10576 2010-03-11 Richard Guenther <rguenther@suse.de>
10578 PR tree-optimization/43255
10579 * tree-vrp.c (process_assert_insertions_for): Do not insert
10580 asserts for trivial conditions.
10582 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10584 PR tree-optimization/43280
10585 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
10586 generation. Move calculation of size out of the if branch.
10587 (find_bswap): Modify compare number generation.
10589 2010-03-11 Richard Guenther <rguenther@suse.de>
10592 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
10593 (input_gimple_stmt): Fixup handled component types during
10594 operand read. Also fix up decls in ADDR_EXPRs.
10596 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
10598 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
10599 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
10601 2010-03-10 Jan Hubicka <jh@suse.cz>
10604 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
10605 * varasm.c (get_variable_section): Don't do that here...
10606 (make_decl_rtl): ... and here.
10607 (do_assemble_alias): Produce decl RTL.
10608 (assemble_alias): Likewise.
10610 2010-03-10 Jakub Jelinek <jakub@redhat.com>
10613 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
10614 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
10616 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
10617 (based_loc_descr): Only express drap or vdrap regno based expressions
10618 using DW_OP_fbreg when not optimizing.
10619 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
10620 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
10621 REG_CFA_SET_VDRAP note.
10623 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
10625 PR tree-optimization/43236
10626 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
10627 error in calculation of base address in reverse iteration case.
10628 (generate_builtin): Take number of latch executions if the statement
10631 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
10633 PR middle-end/42859
10634 * tree-eh.c: Include pointer-set.h.
10635 (lower_eh_dispatch): Filter out duplicate case labels and
10636 remove the unneeded edge when the label is unused. Return
10637 true when some edges are removed.
10638 (execute_lower_eh_dispatch): When any lowering resulted in
10639 removing an edge, also delete unreachable blocks.
10641 2010-03-10 Jakub Jelinek <jakub@redhat.com>
10644 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10645 UNSPEC_MACHOPIC_OFFSET.
10647 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
10650 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10651 (m68k_delegitimize_address): New function.
10653 2010-03-09 Jakub Jelinek <jakub@redhat.com>
10656 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
10659 * var-tracking.c (adjust_sets): New function.
10660 (count_with_sets, add_with_sets): Use it.
10661 (get_adjusted_src): New inline function.
10662 (add_stores): Use it.
10665 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
10666 call cselib_dummy_expand_value_rtx_cb instead of
10667 cselib_expand_value_rtx_cb.
10670 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
10671 * config/i386/i386.c: Include debug.h and dwarf2out.h.
10672 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
10673 and .cfi_endproc around the pic thunks.
10674 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
10675 all queued unwind info register saves are saved before the call.
10676 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
10677 considered as sp-=4 for unwind info and the pop as sp+=4 which
10678 also clobbers dest, but doesn't actually restore it.
10681 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
10682 RTX_FRAME_RELATED_P.
10684 2010-03-09 Jie Zhang <jie@codesourcery.com>
10686 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
10687 whitespaces in output template.
10689 2010-03-09 Jie Zhang <jie@codesourcery.com>
10691 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
10692 out array boundary.
10694 2010-03-08 Jakub Jelinek <jakub@redhat.com>
10696 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
10697 builtins.exp in a separate job.
10699 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10701 * graphite-sese-to-poly.c (add_param_constraints): Use
10702 lower_bound_in_type and upper_bound_in_type.
10704 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10706 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
10707 instead of unsigned_type_node.
10709 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10710 Reza Yazdani <reza.yazdani@amd.com>
10712 PR middle-end/43065
10713 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
10714 on pointer type parameters.
10716 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10718 PR middle-end/42644
10719 PR middle-end/42130
10720 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
10721 handle conversions from pointer to integers.
10722 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
10723 induction variable, to be able to work with code generated by CLooG.
10724 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
10725 (build_poly_scop): Bail out if we cannot codegen a loop.
10727 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10729 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
10730 code generation with gloog_error.
10732 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10734 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
10735 Call fold_convert on all the returned values.
10736 (expand_scalar_variables_expr): Pass to
10737 expand_scalar_variables_ssa_name the type of the resulting expression.
10739 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10741 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
10742 ppl_min_for_le_pointset.
10743 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
10744 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
10746 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10748 * graphite-dependences.c (map_into_dep_poly): Removed.
10749 (dependence_polyhedron_1): Use combine_context_id_scat.
10751 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10753 * graphite-poly.h (struct poly_scattering): Add layout documentation.
10754 (struct poly_bb): Same.
10755 (combine_context_id_scat): New.
10757 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10759 PR middle-end/42326
10760 * sese.c (name_defined_in_loop_p): Return false for default
10763 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10765 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
10766 and clean up the logic.
10768 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10770 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
10773 2010-03-08 Jakub Jelinek <jakub@redhat.com>
10775 * var-tracking.c (remove_cselib_value_chains): Define only for
10777 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
10778 delete_slot_part, emit_notes_for_differences_1): Don't call
10779 remove_cselib_value_chains here.
10780 (set_slot_part, emit_notes_for_differences_2): Don't call
10781 add_cselib_value_chains here.
10782 (preserved_values): New vector.
10783 (preserve_value): New function.
10784 (add_uses, add_stores, vt_add_function_parameters): Use it
10785 instead of cselib_preserve_value.
10786 (changed_values_stack): New vector.
10787 (check_changed_vars_0): New function.
10788 (check_changed_vars_1, check_changed_vars_2): Use it.
10789 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
10790 changed_values_stack VALUEs.
10791 (vt_emit_notes): For all preserved_values call
10792 add_cselib_value_chains. If ENABLE_CHECKING call
10793 remove_cselib_value_chains before verifying value_chains is empty.
10794 Initialize and free changed_values_stack.
10795 (vt_initialize): Initialize preserved_values.
10796 (vt_finalize): Free preserved_values.
10798 2010-03-08 Richard Guenther <rguenther@suse.de>
10800 PR tree-optimization/43269
10801 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
10804 2010-03-08 Martin Jambor <mjambor@suse.cz>
10806 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
10807 (ipa_is_param_called): Removed.
10808 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
10809 (ipa_print_node_params): Do not print the called flag.
10810 (ipa_write_node_info): Do not stream the called flag.
10811 (ipa_read_node_info): Likewise.
10813 2010-03-07 Jakub Jelinek <jakub@redhat.com>
10816 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
10817 * cselib.c (struct expand_value_data): Add dummy field.
10818 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
10820 (cselib_dummy_expand_value_rtx_cb): New function.
10821 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
10823 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
10824 * var-tracking.c: Include pointer-set.h.
10825 (variable): Change n_var_parts to char from int. Add
10826 cur_loc_changed and in_changed_variables fields.
10827 (variable_canonicalize): Remove.
10828 (shared_var_p): New inline function.
10829 (unshare_variable): Maintain cur_loc_changed and
10830 in_changed_variables fields. If var was in changed_variables,
10831 replace it there with new_var. Just copy cur_loc instead of
10832 resetting it to something else.
10833 (variable_union): Don't recompute cur_loc. Use shared_var_p.
10834 (dataflow_set_union): Don't call variable_canonicalize.
10835 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
10836 of their DEBUG_EXPR_TREE_DECLs.
10837 (canonicalize_loc_order_check): Verify that cur_loc is NULL
10838 and in_changed_variables and cur_loc_changed is false.
10839 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
10840 and cur_loc_changed. Don't update cur_loc here.
10841 (variable_merge_over_src): Don't call variable_canonicalize.
10842 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
10843 removing loc that is equal to cur_loc, clear cur_loc,
10844 set cur_loc_changed and ensure variable_was_changed is called.
10845 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
10846 compare pointers in cur_loc check, if it is equal to loc,
10847 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
10848 (variable_different_p): Remove compare_current_location argument,
10849 don't compare cur_loc.
10850 (dataflow_set_different_1): Adjust variable_different_p caller.
10851 (variable_was_changed): If dv had some var in changed_variables
10852 already, reset in_changed_variables flag for it and propagate
10853 cur_loc_changed over to the new variable. On empty var
10854 always set cur_loc_changed. Set in_changed_variables on whatever
10855 var is added to changed_variables.
10856 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
10857 Use shared_var_p. When removing loc that is equal to cur_loc,
10858 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
10859 end, don't set it to something else, just call variable_was_changed.
10860 (delete_slot_part): Use shared_var_p. When cur_loc equals to
10861 loc being removed, clear cur_loc and set cur_loc_changed.
10862 Set cur_loc_changed if all locations have been removed.
10863 (struct expand_loc_callback_data): New type.
10864 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
10865 allocated. Always create SUBREGs if simplify_subreg failed.
10866 Prefer to use cur_loc, when that fails and still in
10867 changed_variables (and seen first time) recompute it. Set
10868 cur_loc_changed of variables which had to change cur_loc and
10869 compute elcd->cur_loc_changed if any of the subexpressions used
10870 had to change cur_loc.
10871 (vt_expand_loc): Adjust to pass arguments in
10872 expand_loc_callback_data structure.
10873 (vt_expand_loc_dummy): New function.
10874 (emitted_notes): New variable.
10875 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
10876 that weren't used for any other decl in current
10877 emit_notes_for_changes call call vt_expand_loc_dummy to update
10878 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
10879 first loc_chain location if NULL before. Always use just
10880 cur_loc instead of first loc_chain location. When cur_loc_changed
10881 is false, when not --enable-checking=rtl just don't emit any note.
10882 When rtl checking, compute the note and assert it is the same
10883 as previous note. Clear cur_loc_changed and in_changed_variables
10884 at the end before removing from changed_variables.
10885 (check_changed_vars_3): New function.
10886 (emit_notes_for_changes): Traverse changed_vars to call
10887 check_changed_vars_3 on each changed var.
10888 (emit_notes_for_differences_1): Clear cur_loc_changed and
10889 in_changed_variables. Recompute cur_loc of new_var.
10890 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
10891 (vt_emit_notes): Initialize and destroy emitted_notes.
10893 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
10895 PR rtl-optimization/42220
10896 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
10897 Use verify_reg_tracked to determine if we should use OP_OUT rather
10899 (build_def_use): If we see an in-out operand for a register that we
10900 know nothing about, treat is an output if possible, fail the block if
10903 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
10906 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
10909 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
10912 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
10913 uses of relevant DEFs that are dead outside the loop too.
10915 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
10917 * var-tracking.c (dataflow_set_merge): Swap src and src2.
10919 2010-01-13 Jakub Jelinek <jakub@redhat.com>
10921 * var-tracking.c (values_to_unmark): New variable.
10922 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
10923 values_to_unmark vector. Moved body to...
10924 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
10925 instead queue it into values_to_unmark vector.
10926 (vt_find_locations): Free values_to_unmark vector.
10928 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
10930 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
10931 (site.exp): Export them when plugins are enabled.
10933 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
10935 PR middle-end/42326
10936 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
10937 that contain scevs.
10938 (chrec_fold_multiply): Same.
10940 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
10943 * c-decl.c (build_compound_literal): Return early if init is
10944 an error_mark_node.
10946 2010-03-04 Martin Jambor <mjambor@suse.cz>
10948 PR tree-optimization/43164
10949 PR tree-optimization/43191
10950 * tree-sra.c (type_consists_of_records_p): Reject records with
10951 zero-size bit-fields at the end.
10953 2010-03-04 Mike Stump <mikestump@comcast.net>
10955 * Makefile.in (TAGS): Remove *.y.
10957 2010-03-04 Richard Guenther <rguenther@suse.de>
10959 PR tree-optimization/40761
10960 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
10962 (my_rev_post_order_compute): New function.
10963 (init_pre): Call it.
10965 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
10967 PR middle-end/43209
10968 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
10969 decrease the cost of an IV candidate when the cost is infinite.
10971 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10973 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
10974 Use '3DNow!' for the extension of that name, ensure normal space
10976 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
10978 2010-03-03 Jeff Law <law@redhat.com>
10980 * PR middle-end/32693
10981 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
10982 than gen_rtx_SUBREG.
10983 (extract_bit_field_1): Likewise.
10985 2010-03-03 Janis Johnson <janis187@us.ibm.com>
10987 * doc/sourcebuild.texi (Test directives): Document that arguments
10988 include-opts and exclude-opts are now optional for dg-skip-if,
10989 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
10991 2010-03-03 Jason Merrill <jason@redhat.com>
10994 * cgraph.h (varpool_node): Add extra_name field.
10995 * varpool.c (varpool_extra_name_alias): New.
10996 (varpool_assemble_decl): Emit extra name aliases.
10997 (varpool_mark_needed_node): Look past an extra name alias.
10998 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
10999 * lto-streamer-in.c (lto_input_tree): Read it.
11000 * lto-streamer-out.c (output_unreferenced_globals): Write it.
11002 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
11004 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
11005 (sparc*-*-solaris2*): ...this.
11007 2010-03-03 Jakub Jelinek <jakub@redhat.com>
11010 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
11011 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
11012 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
11013 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
11016 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
11017 fallthrough to default handling, just with want_address 0 instead of 2.
11018 For single element lists, add_AT_loc directly, otherwise create an
11019 artificial variable DIE and stick location list to it.
11022 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
11023 (VAL_EXPR_HAS_REVERSE): Define.
11024 (reverse_op): New function.
11025 (add_stores): For reversible operations add an extra MO_VAL_USE.
11027 2010-03-02 Jason Merrill <jason@redhat.com>
11029 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
11031 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
11033 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
11034 (sparc64-*-linux*): Likewise.
11035 (sparc64-*-solaris2*): Include assembler files before linker ones.
11036 (sparc-*-solaris2*): Simplify and reorder to match previous case.
11037 * config/sparc/gas.h: Delete.
11038 * config/sparc/sol2-64.h: Add copyright notice.
11039 * config/sparc/sol2-gas-bi.h: Likewise.
11040 * config/sparc/sol2-gld.h: Likewise.
11041 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
11042 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
11043 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
11044 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
11045 (sparc_elf_asm_named_section): Rename into...
11046 (sparc_solaris_elf_asm_named_section): ...this. Always define.
11048 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
11050 * config/alpha/alpha.c (override_options): Fix -mtune error message.
11052 2010-03-02 Jeff Law <law@redhat.com>
11054 PR middle-end/42431
11055 * reload1.c (rtx_p, substitute_stack): Declare.
11056 (substitute): Record addresses of changed rtxs.
11057 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
11058 Restore the original rtx when complete.
11059 (reload): Free subsitute_stack when complete.
11061 2010-03-02 Janis Johnson <janis187@us.ibm.com>
11063 * doc/gccint.texi (menu): Add Testsuites as a chapter.
11064 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
11066 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
11067 LTO Testing, gcov Testing, profopt Testing, compat Testing,
11068 Torture Tests): Change from subsection to section.
11070 2010-03-02 Jakub Jelinek <jakub@redhat.com>
11071 Steven Bosscher <steven@gcc.gnu.org>
11073 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
11076 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
11078 PR middle-end/42640
11079 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
11080 the assignment from the new induction variable to the assignment
11081 of the value from the original loop PHI function.
11083 2010-03-01 Janis Johnson <janis187@us.ibm.com>
11084 Daniel Jacobowitz <dan@codesourcery.com>
11086 * doc/sourcebuild.texi (Test directives): Clarify options to
11089 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11091 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
11092 Disable cfi directives unless GCC and gas agree on using read-only
11093 .eh_frame sections for 64-bit.
11094 * configure: Regenerate.
11096 2010-03-01 Richard Guenther <rguenther@suse.de>
11098 PR tree-optimization/43220
11099 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
11100 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
11102 2010-03-01 Richard Guenther <rguenther@suse.de>
11103 Martin Jambor <mjambor@suse.cz>
11105 PR middle-end/41250
11106 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
11107 gimplified parameters.
11109 2010-03-01 Christian Bruel <christian.bruel@st.com>
11111 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
11113 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
11115 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
11117 2010-03-01 Richard Guenther <rguenther@suse.de>
11119 PR middle-end/43213
11120 * expr.c (expand_assignment): Use the alias-oracle to tell
11121 if the rhs aliases the result decl.
11123 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11126 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
11127 to sol_gt_pch_get_address.
11128 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
11129 64-bit, SPARC and x86.
11130 (sol_gt_pch_get_address): New function.
11132 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
11134 * toplev.h (inform_n, error_n): Declare.
11135 * diagnostic.c (inform_n, error_n): New function.
11137 2010-03-01 Jakub Jelinek <jakub@redhat.com>
11139 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
11140 has no rtl yet when processing local_decls, queue it and recheck
11141 if deferred stack allocation hasn't assigned it rtl.
11143 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
11145 * config/sh/sh.c (unspec_bbr_uid): New.
11146 (gen_block_redirect): Use it instead of INSN_UID.
11147 (gen_far_branch): Likewise.
11149 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
11151 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
11152 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
11154 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11156 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
11157 (Warning Options): -Wno-conversion-null is valid for
11158 Objective-C++ as well.
11159 * doc/tm.texi (Named Address Spaces): Likewise.
11160 * doc/plugins.texi (Plugins): Replace TABs with spaces.
11161 * doc/tree-ssa.texi (Tree SSA): Likewise.
11163 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11166 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
11167 by default. Don't set the default arch for
11168 i[34567]86-*-darwin*|x86_64-*-darwin*.
11170 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11173 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
11174 default. Set the default 32bit/64bit archs with $with_arch
11175 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
11177 2010-02-27 Richard Guenther <rguenther@suse.de>
11179 PR tree-optimization/43186
11180 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
11181 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
11182 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
11183 unroller iterations.
11185 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11187 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
11188 required and i[34567]86-*-* targets don't support 64bit ISA.
11190 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
11193 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11194 the same alias set.
11196 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
11198 * config.gcc: Set the default arch at least to Prescott for
11199 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
11200 if SSE math is enabled.
11202 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
11204 * diagnostic.c (diagnostic_initialize): Update.
11205 (diagnostic_report_diagnostic): Test inhibit_notes_p for
11207 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
11208 (diagnostic_inhibit_notes): New.
11209 * toplev.c (process_options): inhibit notes with -fcompare-debug.
11211 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
11214 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
11215 * doc/standards.texi: Likewise.
11216 * doc/extend.texi: Likewise.
11217 * doc/trouble.texi: Likewise.
11218 * doc/cppopts.texi: Likewise.
11219 * doc/install.texi: Likewise.
11220 * c.opt (std=c90,std=gnu90): New options.
11221 * c-opts.c (c_common_handle_option): Handle them.
11223 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
11226 * c-decl.c (undeclared_variable): Use an informative note.
11228 2010-02-26 Richard Guenther <rguenther@suse.de>
11230 PR tree-optimization/43186
11231 * gimple.h (gimple_fold): Remove.
11232 * gimple.c (gimple_fold): Remove. Inline into single user ...
11233 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
11234 Try harder for conditions.
11236 2010-02-26 Jakub Jelinek <jakub@redhat.com>
11239 * function.c (used_types_insert): Don't skip through named pointer
11240 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
11241 and it is different from the main variant's type.
11243 2010-02-26 Nick Clifton <nickc@redhat.com>
11245 * config/rx/rx.md (sminsi3): Remove bogus alternative.
11247 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
11249 * config.gcc: Support --with-fpmath=sse for x86.
11251 * config/i386/ssemath.h: New.
11253 * doc/install.texi (--with-fpmath=sse): Documented.
11255 2010-02-26 Richard Guenther <rguenther@suse.de>
11257 PR tree-optimization/43188
11258 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
11259 vector types of over-aligned element type.
11261 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
11264 * config/i386/i386.c (expand_vec_perm_blend): Use correct
11265 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
11267 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11269 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
11271 2010-02-26 Jakub Jelinek <jakub@redhat.com>
11273 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
11274 * var-tracking.c: Include diagnostic.h.
11275 (debug_dv): New function.
11276 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
11279 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
11280 (add_value_chain, add_value_chains, remove_value_chain,
11281 remove_value_chains): Handle DEBUG_EXPRs.
11282 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
11285 * regcprop.c (struct queued_debug_insn_change): New type.
11286 (struct value_data_entry): Add debug_insn_changes field.
11287 (struct value_data): Add n_debug_insn_changes field.
11288 (debug_insn_changes_pool): New variable.
11289 (free_debug_insn_changes, apply_debug_insn_changes,
11290 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
11291 (kill_value_one_regno): Call free_debug_insn_changes if needed.
11292 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
11294 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
11296 (copyprop_hardreg_forward_1): Don't call apply_change_group for
11297 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
11298 changes, call cprop_find_used_regs via note_stores.
11299 (copyprop_hardreg_forward): When copying vd from predecessor
11300 which has any queued DEBUG_INSN changes, make sure the pointers are
11301 cleared. At the end call df_analyze and then if there are any
11302 DEBUG_INSN changes queued at the end of some basic block for still
11303 live registers, apply them.
11304 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
11306 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
11308 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
11311 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
11313 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
11314 targets. Set the default with_cpu/with_arch from arch/cpu.
11315 Allow x86-64 and native for with_cpu/with_arch.
11317 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
11319 * ebitmap.c: Change calls to verify_popcount with calls to
11320 sbitmap_verify_popcount.
11321 (ebitmap_clear_bit): Fixed map->cacheindex test and
11322 map>cache update when bit clearing results in an empty
11325 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11328 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
11329 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
11330 and support both V2DF and V2DI modes.
11331 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
11332 support both V2DF and V2DI modes.
11333 (general): Delete trailing whitespace from a few patterns.
11335 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11336 V2DF/V2DI interleave high/low builtins.
11338 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
11341 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
11342 interleave high/low functions.
11344 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11346 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
11347 #pragma extern_prefix.
11349 2010-02-25 Jakub Jelinek <jakub@redhat.com>
11352 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
11353 BLKmode, assert op0 is a MEM and just adjust its mode.
11356 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
11357 if bitpos isn't multiple of mode's bitsize.
11359 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11361 * c.opt (-ftemplate-depth=): New.
11362 (-ftemplate-depth-): Deprecate.
11363 * optc-gen.awk: Handle -ftemplate-depth=.
11364 * opth-gen.awk: Likewise.
11365 * c-opts.c (c_common_handle_option): Likewise.
11366 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
11368 2010-02-24 Jason Merrill <jason@redhat.com>
11370 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
11372 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11374 * cfg.c (alloc_aux_for_block): Remove inline.
11375 (alloc_aux_for_edge): Likewise.
11377 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11379 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
11381 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11383 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
11384 * config/i386/sol2-gas.h: New file.
11385 * config.gcc (i[34567]86-*-solaris2*): Use it.
11387 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11390 * c-typeck.c (ep_convert_and_check): New.
11391 (build_conditional_expr): Use it.
11392 (build_binary_op): Likewise.
11394 2010-02-24 Jakub Jelinek <jakub@redhat.com>
11396 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
11399 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
11400 bounds even for -O+.
11401 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
11402 expr needs to have DECL_NAME set.
11404 2010-02-24 Nick Clifton <nickc@redhat.com>
11406 * config/mep/mep.c: Include gimple.h.
11407 (mep_function_uses_sp): Delete unused function.
11408 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
11409 parameters. Use unsigned integers to count args. Return a
11410 NULL_RTX instead of an error_mark_node. Toidy up formatting.
11412 2010-02-23 Jakub Jelinek <jakub@redhat.com>
11415 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
11416 greater or equal to nelt instead of 2 * nelt.
11417 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
11420 2010-02-23 Jason Merrill <jason@redhat.com>
11423 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
11424 in cfun->local_decls even if they have register types.
11427 * stor-layout.c (place_field): Don't warn about unnecessary
11428 DECL_PACKED if the type is packed.
11430 2010-02-23 Jakub Jelinek <jakub@redhat.com>
11433 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
11434 GOTOFF relocs, even when the base reg isn't pic pointer.
11436 2010-02-23 Michael Matz <matz@suse.de>
11439 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
11440 (expand_gimple_basic_block): Generate and use debug temps if there
11441 are debug uses left after the last real use of TERed ssa names.
11442 Unlink debug immediate uses when they are expanded.
11444 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11447 * config/i386/i386.c (override_options): Reorganise to provide
11448 better error messages.
11450 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
11452 PR middle-end/43083
11453 * graphite-scop-detection.c (create_single_exit_edge): Move
11454 the call to find_single_exit_edge to....
11455 (create_sese_edges): ...here. Don't handle multiple edges
11456 exiting the function.
11457 (build_graphite_scops): Don't handle multiple edges
11458 exiting the function.
11460 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
11462 PR middle-end/43097
11463 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
11464 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
11466 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
11468 PR middle-end/43026
11469 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
11471 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11474 * c-typeck.c (convert_arguments): Print declaration location.
11475 * c-common.c (validate_nargs): Rename as
11476 builtin_function_validate_nargs.
11477 (check_builtin_function_arguments): Update.
11479 2010-02-22 Richard Guenther <rguenther@suse.de>
11482 * tree-inline.c (declare_return_variable): Use the type of
11483 the call stmt lhs if available.
11485 2010-02-22 Duncan Sands <baldrick@free.fr>
11487 * passes.c (register_pass): Always consider all pass lists when
11488 ref_pass_instance_number is zero.
11490 2010-02-22 Richard Guenther <rguenther@suse.de>
11492 PR tree-optimization/42749
11493 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
11494 parameter. Do arithmetic in the original type.
11495 (update_accumulator_with_ops): Likewise.
11496 (adjust_accumulator_values): Adjust.
11498 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11500 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
11501 (QI to BLKmode splitter): New splitter.
11503 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
11505 * config/i386/i386.c (initial_ix86_tune_features): Turn on
11506 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
11508 2010-02-22 Richard Guenther <rguenther@suse.de>
11510 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
11512 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
11514 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
11515 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
11516 ($(T)crti.o, $(T)crtn.o): Remove rules.
11518 2010-02-21 Tobias Burnus <burnus@net-b.de>
11521 * doc/invoke.texi (-fassociative-math): Document that this
11522 option is automatically enabled for Fortran.
11524 2010-02-20 David S. Miller <davem@davemloft.net>
11526 * configure.ac: Test if linker and assembler properly support
11527 GOTDATA_OP relocations.
11528 * configure: Rebuild.
11529 * config.in: Likewise.
11530 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
11531 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
11532 (movsi_high_pic): Likewise.
11533 (movdi_lo_sum_pic): Likewise.
11534 (movdi_high_pic): Likewise.
11535 (movsi_pic_gotdata_op): New pattern.
11536 (movdi_pic_gotdata_op): Likewise.
11537 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
11538 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
11540 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
11543 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
11544 attribute to ssemul.
11545 (xop_mulv2div2di3_high): Ditto.
11547 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11550 * c.opt (Wconversion-null): New option.
11551 * doc/invoke.texi (Wconversion-null): Document.
11553 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11555 * common.opt (Wlarger-than-): Add Undocumented.
11557 2010-02-19 Mike Stump <mikestump@comcast.net>
11559 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
11561 2010-02-19 Jason Merrill <jason@redhat.com>
11564 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
11565 * configure: Likewise.
11567 2010-02-20 Alan Modra <amodra@gmail.com>
11569 PR middle-end/42344
11570 * cgraph.h (cgraph_make_decl_local): Declare.
11571 * cgraph.c (cgraph_make_decl_local): New function.
11572 (cgraph_make_node_local): Use it.
11573 * cgraphunit.c (cgraph_function_versioning): Likewise.
11574 * ipa.c (function_and_variable_visibility): Likewise.
11576 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11579 * except.c (sjlj_emit_function_enter): Don't call
11580 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
11582 * rtl.h (add_reg_br_prob_note): Remove prototype.
11584 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
11587 * c-common.c (conversion_warning): Remove widening conversions
11588 before checking the conversion of integers to reals.
11590 2010-02-19 Mike Stump <mikestump@comcast.net>
11592 PR middle-end/43125
11593 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
11596 * cgraphunit.c (process_function_and_variable_attributes): Check
11597 DECL_PRESERVE_P instead of looking up attribute "used".
11598 * ipa-pure-const.c (check_decl): Likewise.
11599 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
11600 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
11601 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
11602 instead of attribute "used".
11603 * config/sol2-c.c (solaris_pragma_init): Likewise.
11604 (solaris_pragma_fini): Likewise.
11606 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11608 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
11609 Use XCNEW instead of xcalloc.
11610 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
11611 XNEW instead of xmalloc.
11612 (get_fields): Use XNEWVEC instead of xmalloc.
11615 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
11616 populate vars array.
11617 (create_new_general_access): For debug stmts just reset value.
11618 (get_stmt_accesses): For accesses within debug stmts just record them
11619 using add_access_to_acc_sites instead of preventing the peeling or
11620 counting them as accesses.
11622 PR middle-end/42233
11623 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
11625 2010-02-19 Richard Guenther <rguenther@suse.de>
11627 PR tree-optimization/42916
11628 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
11631 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
11633 * configure.ac: Replace all uses of changequote in macro arguments
11634 with proper quoting.
11636 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11638 PR middle-end/42233
11639 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
11641 2010-02-19 Richard Guenther <rguenther@suse.de>
11643 PR tree-optimization/42944
11644 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
11645 test for aliasing with errno.
11647 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11649 PR middle-end/42233
11650 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
11651 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
11652 * dojump.c: Include output.h.
11653 (inv): New inline function.
11654 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
11655 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
11656 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
11657 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
11658 argument, pass it down to other calls.
11659 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
11660 add REG_BR_PROB note to the conditional jump.
11661 * cfgexpand.c (add_reg_br_prob_note): Removed.
11662 (expand_gimple_cond): Don't call it, add the probability
11663 as last argument to jumpif_1/jumpifnot_1.
11664 * Makefile.in (dojump.o): Depend on output.h.
11665 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
11667 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
11668 * stmt.c (do_jump_if_equal): Likewise.
11669 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
11670 * loop-unswitch.c (compare_and_jump_seq): Likewise.
11671 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
11673 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
11674 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
11675 jumpifnot_1 callers.
11676 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
11678 (store_expr): Adjust jumpifnot caller.
11679 (store_constructor): Adjust jumpif caller.
11681 PR middle-end/42233
11682 * gimplify.c (gimple_boolify): For __builtin_expect call
11683 gimple_boolify also on its first argument.
11685 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
11687 * configure.ac (gnu-unique-object): Wrap regexps using [] in
11689 (__stack_chk_fail): Ditto. Remove quadrigraphs.
11690 * configure: Regenerated.
11692 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11694 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
11695 lang_hooks.types_compatible_p instead of comptypes.
11697 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
11699 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
11700 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
11701 if __prefer_thumb__ is defined.
11703 2010-02-18 Martin Jambor <mjambor@suse.cz>
11705 PR tree-optimization/43066
11706 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
11707 array with zero-sized element type.
11709 2010-02-18 Jakub Jelinek <jakub@redhat.com>
11711 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
11712 rtx, allocate struct var_loc_node here and return it to the
11713 caller, and only if it is actually needed.
11714 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
11715 move it earlier and return immediately if it returns NULL.
11717 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
11719 * config/sparc/gas.h: New file. Restore
11720 TARGET_ASM_NAMED_SECTION to its ELF default.
11721 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
11722 check !HAVE_GNU_AS.
11723 * config/sparc/sparc.c (sparc_elf_asm_named_section):
11724 Likewise. Add ATTRIBUTE_UNUSED to prototype.
11725 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
11726 after sparc/sysv4.h.
11728 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
11730 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
11732 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
11734 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
11735 patterns from predicated pattern.
11737 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
11740 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
11741 for insn mnemonic suffix.
11743 2010-02-17 Richard Guenther <rguenther@suse.de>
11745 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
11748 2010-02-17 Jakub Jelinek <jakub@redhat.com>
11751 * caller-save.c (save_call_clobbered_regs): If BB ends with
11752 a DEBUG_INSN, move any notes in between last real insn and the last
11753 DEBUG_INSN after the last DEBUG_INSN.
11755 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
11757 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
11758 Fix return type. Fix argument type. Explain meaning of return value.
11760 2010-02-16 Richard Guenther <rguenther@suse.de>
11762 PR tree-optimization/41043
11763 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
11764 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
11766 (vrp_visit_phi_node): ... but only for loop PHI nodes.
11768 2010-02-16 Ira Rosen <irar@il.ibm.com>
11770 PR tree-optimization/43074
11771 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
11772 * tree-vect-loop.c (vect_analyze_loop_operations): Add
11773 vectorizable cycles in hybrid SLP check.
11774 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
11776 2010-02-16 Richard Guenther <rguenther@suse.de>
11778 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
11779 (true_dependence): If memrefs_conflict_p computes must-alias
11780 trust it. Move TBAA check after offset-based disambiguation.
11781 (canon_true_dependence): Likewise.
11783 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
11785 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
11786 * doc/invoke.texi: Document it.
11787 * var-tracking.c: Include toplev.h and params.h.
11788 (vt_find_locations): Return bool indicating success. Compute
11789 hash sizes unconditionally. Check new parameter, report.
11790 (variable_tracking_main_1): Check vt_find_locations results and
11791 retry. Renamed from...
11792 (variable_tracking_main): ... this. New wrapper to preserve
11793 flag_var_tracking_assignments.
11794 * Makefile.in (var-tracking.o): Adjust dependencies.
11796 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
11797 Jakub Jelinek <jakub@redhat.com>
11800 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
11801 if weak_import attribute is present.
11802 * config/darwin.c (machopic_select_section): Likewise.
11804 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
11806 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
11807 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
11808 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
11809 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
11811 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
11814 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11815 Fix argument types.
11817 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
11818 Rewrite text to refer to the names.
11820 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
11822 * config/i386/i386-builtin-types.def
11823 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
11824 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
11825 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
11826 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
11827 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
11828 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
11829 IX86_BUILTIN_VPERMIL2PS256.
11830 (MULTI_ARG_4_DF2_DI_I): Defined.
11831 (MULTI_ARG_4_DF2_DI_I1): Defined.
11832 (MULTI_ARG_4_SF2_SI_I): Defined.
11833 (MULTI_ARG_4_SF2_SI_I1): Defined.
11834 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
11835 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
11836 __builtin_ia32_vpermil2ps256.
11837 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
11838 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
11839 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
11840 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
11841 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
11842 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
11843 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
11844 CODE_FOR_xop_vpermil2v8sf3.
11845 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
11846 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
11847 * config/i386/xopintrin.h (_mm_permute2_pd): New.
11848 (_mm256_permute2_pd): New.
11849 (_mm_permute2_ps): New.
11850 (_mm256_permute2_ps): New.
11852 2010-02-15 Nick Clifton <nickc@redhat.com>
11854 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
11855 boolean parameters. Use emit_jump_insn when emitting a pop
11856 instruction containing a return insn.
11857 (push): Use 'true' rather than '1' as second parameter to F.
11858 (h8300_expand_prologue): Likewise.
11859 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
11860 (h8300_expand_epilogue): Likewise.
11862 2010-02-15 Richard Guenther <rguenther@suse.de>
11864 PR middle-end/43068
11865 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
11868 2010-02-15 Nick Clifton <nickc@redhat.com>
11870 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
11873 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
11875 * intl.c (fake_ngettext): New function.
11876 * intl.h (fake_ngettext): Declare.
11877 (ngettext): Define macro.
11878 * collect2.c (notice_translated): New function.
11879 (main): Use notice_translated and ngettext.
11880 * collect2.h (notice_translated): Declare.
11882 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
11884 * reorg.c (delete_computation): Comment fixes.
11885 * caller-save.c (setup_save_areas): Idem.
11886 * sel-sched-dump.c (dump_lv_set): Idem.
11889 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11891 * config/s390/s390.c (s390_sched_init): New function.
11892 (TARGET_SCHED_INIT): Target hook defined.
11894 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
11895 Jack Howarth <howarth@bromo.med.uc.edu>
11896 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11899 Partial revert of unintended change in fix for PR41605.
11900 * config/darwin.h: Fix typo.
11901 * config/darwin9.h: Same.
11903 2010-02-11 Jakub Jelinek <jakub@redhat.com>
11905 * c-pch.c (pch_init): Clear v.
11907 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11909 PR middle-end/42930
11910 * graphite-scop-detection.c (graphite_can_represent_scev): Call
11911 graphite_can_represent_init for MULT_EXPR.
11913 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11915 PR middle-end/42914
11916 PR middle-end/42530
11917 * graphite-sese-to-poly.c (remove_phi): New.
11918 (translate_scalar_reduction_to_array): Call remove_phi.
11920 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11922 PR middle-end/42771
11923 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
11924 * graphite-clast-to-gimple.h (gloog): Update declaration.
11925 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
11926 * graphite-poly.h (struct poly_bb): Add missing comments.
11927 (struct scop): Add poly_scop_p field.
11928 (POLY_SCOP_P): New.
11929 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
11930 * graphite.c (graphite_transform_loops): Build the polyhedral
11931 representation for each scop before code generation.
11932 * sese.c (rename_variables_in_operand): Removed.
11933 (rename_variables_in_expr): Return the renamed expression.
11934 (rename_sese_parameters): New.
11935 * sese.h (rename_sese_parameters): Declared.
11937 2010-02-11 Richard Guenther <rguenther@suse.de>
11939 PR tree-optimization/42998
11940 * tree-ssa-pre.c (create_expression_by_pieces): Treat
11941 POINTER_PLUS_EXPR properly.
11943 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11944 Changpeng Fang <changpeng.fang@amd.com>
11946 PR middle-end/40886
11947 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
11948 the cost of an IV candidate when the IV is used in a test against zero.
11950 * gcc.dg/tree-ssa/ivopts-3.c: New.
11952 2010-02-11 Richard Guenther <rguenther@suse.de>
11955 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
11956 pointer-vs-decl case by swapping refs. Handle some cases
11957 of pointer-vs-decl disambiguations more conservatively.
11958 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
11959 to false after expanding.
11961 2010-02-11 Richard Guenther <rguenther@suse.de>
11964 * gcc.c (process_command): Handle LTO file@offset case more
11967 2010-02-11 Jakub Jelinek <jakub@redhat.com>
11969 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
11970 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
11972 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
11974 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
11975 if MEM's mode size isn't DWARF2_ADDR_SIZE.
11976 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
11977 Optimize eq/ne comparisons when both arguments are known to be
11979 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
11980 Don't mask operands unnecessarily if they are known to be already
11983 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
11985 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
11988 2010-02-10 Richard Guenther <rguenther@suse.de>
11990 PR tree-optimization/43017
11991 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
11992 for wrapping signed arithmetic.
11994 2010-02-10 Jakub Jelinek <jakub@redhat.com>
11997 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
11998 if no debug info should be emitted for it.
12000 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
12002 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
12003 note when flag_exceptions is set.
12005 2010-02-10 Duncan Sands <baldrick@free.fr>
12007 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
12009 2010-02-10 Richard Guenther <rguenther@suse.de>
12012 * tree.c (get_unwidened): Handle constants.
12013 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
12015 2010-02-10 Martin Jambor <mjambor@suse.cz>
12018 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
12019 check for variable argument counts independently.
12021 2010-02-10 Christian Bruel <christian.bruel@st.com>
12024 * config/sh/sh.c (find_barrier): Increase length for non delayed
12025 conditional branches.
12027 2010-02-10 Christian Bruel <christian.bruel@st.com>
12029 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
12031 2010-02-10 Jakub Jelinek <jakub@redhat.com>
12033 * builtins.c (set_builtin_user_assembler_name): Also handle
12034 ffs if int is smaller than word.
12036 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
12038 PR middle-end/42973
12039 * ira-conflicts.c (get_dup): Remove.
12040 (process_reg_shuffles): Add new parameter. Use it as an
12041 additional guard for copy generation.
12042 (add_insn_allocno_copies): Rewrite.
12044 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
12046 * common.opt (fsched2-use-traces): Preserved for backward
12048 * doc/invoke.texi: Remove the documentation about option
12049 -fsched2-use-traces.
12050 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
12051 flag_sched2_use_traces.
12052 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
12053 the backward compatibility flag section.
12055 2010-02-09 Richard Guenther <rguenther@suse.de>
12057 PR tree-optimization/43008
12058 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
12059 make HEAP variables initialized from global memory if they
12060 are not known builtin functions.
12061 (find_func_aliases): Adjust.
12063 2010-02-09 Richard Guenther <rguenther@suse.de>
12065 PR tree-optimization/43000
12066 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
12067 arithmetic manually.
12069 2010-02-08 Jakub Jelinek <jakub@redhat.com>
12071 PR tree-optimization/42931
12072 * tree-loop-linear.c (try_interchange_loops): Don't call
12073 double_int_mul if estimated_loop_iterations failed.
12075 2010-02-08 Martin Jambor <mjambor@suse.cz>
12077 PR middle-end/42898
12078 * tree-sra.c (build_accesses_from_assign): Do not mark in
12079 should_scalarize_away_bitmap if stmt has volatile ops.
12080 (sra_modify_assign): Do not process assigns piecemeal if if stmt
12083 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
12085 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
12087 2010-02-07 Adam Nemet <adambnmet@gmail.com>
12089 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
12090 before the pattern.
12092 2010-02-07 Andrew Pinski <pinskia@gmail.com>
12094 PR middle-end/42946
12095 * df-core.c (df_finish_pass): Change type of saved_flags to int.
12097 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
12099 PR middle-end/42988
12100 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
12101 to unknown_dependence.
12102 (graphite_legal_transform_dr): Handle the unknown_dependence.
12103 (graphite_carried_dependence_level_k): Same.
12105 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
12107 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
12109 2010-02-07 Richard Guenther <rguenther@suse.de>
12111 PR middle-end/42991
12112 * expr.c (get_inner_reference): Always initialize *pbitsize.
12114 2010-02-07 Richard Guenther <rguenther@suse.de>
12116 PR middle-end/42956
12117 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
12118 new ARRAY_REFs on variable size element or minimal index arrays.
12120 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
12121 gimple_fold_indirect_ref.
12123 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
12126 * arm.c (arm_override_options): Just return if the user has specified
12127 an invalid fpu name.
12129 2010-02-03 Jason Merrill <jason@redhat.com>
12132 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
12133 i386_pe_maybe_record_exported_symbol.
12135 2010-02-05 Steve Ellcey <sje@cup.hp.com>
12138 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
12139 (pa_delegitimize_address): New function.
12141 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
12143 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
12144 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
12146 2010-02-05 Richard Guenther <rguenther@suse.de>
12149 * lto-streamer-in.c (get_resolution): Deal with references
12150 to undefined functions.
12152 2010-02-05 Richard Guenther <rguenther@suse.de>
12154 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
12155 (fold_const_aggregate_ref): Likewise.
12156 (ccp_fold_stmt): Substitute loads.
12157 (maybe_fold_reference): Verify types before substituting.
12159 (fold_gimple_assign): Unshare properly.
12160 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
12162 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
12164 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
12165 for rs6000_gen_cell_microcode.
12167 2010-02-04 Richard Guenther <rguenther@suse.de>
12169 PR rtl-optimization/42952
12170 * dse.c (const_or_frame_p): Remove MEM handling.
12172 2010-02-04 Nick Clifton <nickc@redhat.com>
12174 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12175 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
12176 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
12177 (mn10300_asm_output_mi_thunk): New function.
12178 (mn10300_can_output_mu_thunk): New function.
12179 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
12180 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
12181 (FUNCTION_ARG): Delete incorrect comment.
12183 2010-02-03 Jason Merrill <jason@redhat.com>
12186 * fold-const.c (operand_equal_p): Handle erroneous types.
12188 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12190 * config/h8300/h8300.md (can_delay): Fix attibute condition.
12192 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
12194 PR rtl-optimization/42941
12195 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
12198 2010-02-03 Jason Merrill <jason@redhat.com>
12201 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
12203 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
12206 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
12207 (cselib_reset_table): Renamed from...
12208 (cselib_reset_table_with_next_value): ... this.
12209 (cselib_get_next_uid): Renamed from...
12210 (cselib_get_next_unknown_value): ... this.
12211 * cselib.c (next_uid): Renamed from...
12212 (next_unknown_value): ... this.
12213 (cselib_clear_table): Adjust.
12214 (cselib_reset_table): Adjust. Renamed from...
12215 (cselib_reset_table_with_next_value): ... this.
12216 (cselib_get_next_uid): Adjust. Renamed from...
12217 (cselib_get_next_unknown_value): ... this.
12218 (get_value_hash): Use hash.
12219 (cselib_hash_rtx): Likewise.
12220 (new_cselib_val): Adjust. Set and dump uid.
12221 (cselib_lookup_mem): Pass next_uid as hash.
12222 (cselib_subst_to_values): Likewise.
12223 (cselib_log_lookup): Dump uid.
12224 (cselib_lookup): Pass next_uid as hash. Adjust.
12225 (cselib_process_insn): Adjust.
12226 (cselib_init): Initialize next_uid.
12227 (cselib_finish): Adjust.
12228 (dump_cselib_table): Likewise.
12229 * dse.c (canon_address): Dump value uid.
12230 * print-rtl.c (print_rtx): Print value uid.
12231 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
12233 (dv_uid): New function, sort of renamed from...
12234 (dv_htab_hash): ... this, reimplemented in terms of it and...
12235 (dv_uid2hash): ... this. New.
12236 (variable_htab_eq): Drop excess assertions.
12237 (tie_break_pointers): Removed.
12238 (canon_value_cmp): Compare uids.
12239 (variable_post_merge_New_vals): Print uids.
12240 (vt_add_function_parameters): Adjust.
12241 (vt_initialize): Reset table. Adjust.
12243 2010-02-03 Richard Guenther <rguenther@suse.de>
12245 PR tree-optimization/42944
12246 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
12247 (call_may_clobber_ref_p_1): Likewise. Properly handle
12248 malloc and calloc clobbering errno.
12250 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
12252 * doc/invoke.texi: Fix name of sched1 dump.
12254 * opts.c (decode_options): Set flag_tree_switch_conversion
12255 only conditionally on optimize >= 2.
12257 * gcse.c: Assorted comment fixes in pass description.
12259 2010-02-03 Anthony Green <green@moxielogic.com>
12261 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
12262 nop padding in order to maintain alignment of storage location of
12263 target function address.
12264 (moxie_trampoline_init): Store target function address at newly
12266 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
12268 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
12270 2010-02-03 Richard Guenther <rguenther@suse.de>
12272 PR middle-end/42927
12273 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
12275 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12277 * config.gcc: Reenable check for obsolete targets.
12278 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
12279 mips-sgi-irix6.[0-4]*.
12281 2010-02-02 Nick Clifton <nickc@redhat.com>
12283 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
12284 constant size of 4 as being the same as 0.
12285 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
12286 can take values in the range 0..4.
12288 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
12291 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
12292 as _darwin10_Unwind_FindEnclosingFunction().
12293 * libgcc-libsystem.ver: New.
12295 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
12298 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
12299 implicitly set registers.
12301 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
12303 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
12304 (arm_override_options): Allow automatic selection of the thread
12305 pointer register if thumb2.
12306 (legitimize_pic_address): Improve code sequences for Thumb2.
12307 (arm_call_tls_get_addr): Likewise.
12308 (legitimize_tls_address): Likewise.
12309 * arm.md (pic_load_addr_arm): Delete. Replace with ...
12310 (pic_load_addr_32bit): ... this. New named pattern.
12311 * thumb2.md (pic_load_addr_thumb2): Delete.
12312 (pic_load_dot_plus_four): Delete.
12313 (tls_load_dot_plus_four): New named pattern.
12315 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12318 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
12319 Document fix for TLS bug.
12321 2010-01-31 Richard Guenther <rguenther@suse.de>
12323 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
12324 conservatively correct.
12326 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12330 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12332 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12334 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12336 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
12338 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
12340 * config.gcc: Adjust order of makefile fragments for mingw targets.
12342 2010-01-31 Richard Guenther <rguenther@suse.de>
12344 PR middle-end/42898
12345 * gimplify.c (gimplify_init_constructor): For volatile LHS
12346 initialize a temporary.
12348 2010-01-31 Matthias Klose <doko@ubuntu.com>
12350 * configure.ac: Fix __stack_chk_fail check for cross builds configured
12352 * configure: Regenerate.
12354 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
12356 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
12357 the same alias set and their sizes different constantness.
12358 (aliasing_component_refs_p): Revert 2009-10-24 change.
12360 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12362 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
12365 2010-01-29 Richard Guenther <rguenther@suse.de>
12367 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
12368 Assert we successfully updated the call.
12370 2010-01-29 Jakub Jelinek <jakub@redhat.com>
12372 PR rtl-optimization/42889
12373 * df.h (df_set_bb_dirty_nonlr): New prototype.
12374 * df-core.c (df_set_bb_dirty_nonlr): New function.
12375 * df-scan.c (df_insn_rescan): Call it instead of
12376 df_set_bb_dirty for DEBUG_INSNs.
12378 2010-01-29 Richard Guenther <rguenther@suse.de>
12380 PR middle-end/37448
12381 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
12382 quadratic behavior in most cases.
12384 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
12387 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
12388 in the call to gen_x86_movsicc_0_m1.
12390 2010-01-28 Richard Guenther <rguenther@suse.de>
12392 PR tree-optimization/42871
12393 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
12395 2010-01-28 Richard Guenther <rguenther@suse.de>
12397 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
12398 into call arguments.
12400 2010-01-28 Richard Guenther <rguenther@suse.de>
12402 PR middle-end/42883
12403 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
12404 the forwarder if the destination is an EH landing pad.
12406 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
12408 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
12409 block list passed to gimple_duplicate_sese_tail.
12410 (parallelize_loops): Avoid parallelization when the function
12411 has_nonlocal_label.
12412 Avoid parallelization when the preheader is IRREDUCIBLE.
12413 Try to optimize when estimated_loop_iterations_int is unresolved.
12414 Add the loop's location to the dump file.
12415 * tree-cfg.c (add_phi_args_after_redirect): Remove.
12416 (gimple_duplicate_sese_tail): Remove the check for the latch.
12417 Redirect nexits to the exit block.
12418 Remove handling of the incoming edges to the latch.
12419 Redirect the backedge from the copied latch to the exit bb.
12421 2010-01-28 Michael Matz <matz@suse.de>
12424 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
12425 Wrap force_reg into a sequence, emit it before user.
12427 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
12429 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
12431 (arm_legacy_rev): Likewise.
12432 (thumb_legacy_rev): Likewise.
12434 2010-01-27 Jakub Jelinek <jakub@redhat.com>
12436 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
12437 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
12438 on MEM's address failed, try avoid_constant_pool_reference and
12439 recurse if it returned something different.
12440 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
12441 address, try avoid_constant_pool_reference and recurse if it
12442 returned something different.
12443 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
12444 address and avoid_constant_pool_reference returned something
12445 different, don't set have_address.
12447 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
12450 * var-tracking.c (val_store): Add modified argument, obey it.
12452 (count_uses): Move down logging of main.
12453 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
12454 don't need resolution.
12455 (emit_notes_in_bb): Likewise.
12457 2010-01-27 Richard Guenther <rguenther@suse.de>
12459 PR middle-end/42878
12460 * tree-inline.c (remap_decl): Delay remapping of SSA name
12461 default definitions until we need them.
12463 2010-01-27 Jakub Jelinek <jakub@redhat.com>
12465 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
12466 (rs6000_delegitimize_address): New function.
12468 * config/s390/s390.c (s390_delegitimize_address): Call
12469 delegitimize_mem_from_attrs.
12471 PR middle-end/42874
12472 * tree-inline.c (cannot_copy_type_1): Removed.
12473 (copy_forbidden): Don't forbid copying of functions containing
12474 records/unions with variable length fields.
12476 2010-01-27 Christian Bruel <christian.bruel@st.com>
12480 * config/sh/sh.c (find_barrier): Increase length for non delayed
12481 conditional branches.
12483 2010-01-27 Matthias Klose <doko@ubuntu.com>
12485 * configure.ac (gnu-unique-object): Fix ldd version check.
12486 * configure: Regenerate.
12488 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12490 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
12492 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
12493 Test for HAVE_GNU_AS value.
12495 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12497 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
12498 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
12499 INT64_TYPE): Define.
12500 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
12501 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12502 INT_LEAST64_TYPE): Define.
12503 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
12504 UINT_LEAST64_TYPE): Define.
12505 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
12506 INT_FAST64_TYPE): Define.
12507 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12508 UINT_FAST64_TYPE): Define.
12509 (INTMAX_TYPE, UINTMAX_TYPE): Define.
12510 (INTPTR_TYPE, UINTPTR_TYPE): Define.
12511 (SIG_ATOMIC_TYPE): Define.
12513 2010-01-26 Richard Guenther <rguenther@suse.de>
12515 * df-scan.c (df_scan_set_bb_info): Remove assert.
12516 (df_insn_rescan_debug_internal): Merge asserts.
12517 (df_install_ref): Likewise.
12518 (df_mark_reg): Use bitmap_set_range.
12519 (df_hard_reg_used_p): Remove assert.
12520 (df_hard_reg_used_count): Likewise.
12522 2010-01-26 Richard Guenther <rguenther@suse.de>
12524 PR rtl-optimization/42685
12525 * web.c (web_main): Ignore DEBUG_INSNs.
12527 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
12529 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
12531 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
12532 Fix types of fndecl and arglist parameters.
12534 2010-01-26 Richard Guenther <rguenther@suse.de>
12536 PR middle-end/42806
12537 * tree-eh.c (unsplit_eh): Skip debug insns.
12539 2010-01-26 Richard Guenther <rguenther@suse.de>
12541 PR tree-optimization/42250
12542 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
12544 2010-01-26 Jakub Jelinek <jakub@redhat.com>
12547 * omp-low.c (expand_omp_sections): Only use single_pred if
12548 l2_bb is single_pred_p.
12550 2010-01-25 Christian Bruel <christian.bruel@st.com>
12553 * config/sh/sh.c (find_barrier): Increase length for non delayed
12554 conditional branches.
12555 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
12557 2010-01-24 David S. Miller <davem@davemloft.net>
12559 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
12560 define if not using GAS.
12561 * config/sparc/sparc.c (sparc_elf_asm_named_section):
12562 Likewise. Delete SECTION_MERGE code, which is only applicable
12565 2010-01-24 Mark Mitchell <mark@codesourcery.com>
12568 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
12569 mangling of va_list in system headers.
12571 2010-01-23 Toon Moene <toon@moene.org>
12573 * tree-predcom.c (combine_chains): Return NULL, not false.
12575 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
12577 * tree-loop-distribution.c (distribute_loop): Fix declaration and
12578 initialization of variable res to agree with return type.
12580 2010-01-22 Steve Ellcey <sje@cup.hp.com>
12582 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
12583 * tree-sra.c: Add include of expr.h.
12585 2010-01-22 Jakub Jelinek <jakub@redhat.com>
12587 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
12588 insert the debug stmt on the single non-EH edge from the stmt.
12590 2010-01-22 Richard Henderson <rth@redhat.com>
12593 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
12594 the RHS until after generate_subtree_copies has insertted its
12595 code before the current statement.
12597 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
12599 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
12601 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
12603 2010-01-21 Martin Jambor <mjambor@suse.cz>
12605 PR tree-optimization/42585
12606 * tree-sra.c (struct access): New field grp_total_scalarization.
12607 (dump_access): Dump the new field.
12608 (should_scalarize_away_bitmap): New variable.
12609 (cannot_scalarize_away_bitmap): Likewise.
12610 (sra_initialize): Allocate new bitmaps.
12611 (sra_deinitialize): Free new bitmaps.
12612 (create_access_1): New function.
12613 (create_access): Parts moved to create_access_1.
12614 (type_consists_of_records_p): New function.
12615 (completely_scalarize_record): Likewise.
12616 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
12617 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
12618 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
12620 (analyze_all_variable_accesses): Completely scalarize small eligible
12623 2010-01-21 Martin Jambor <mjambor@suse.cz>
12625 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
12627 2010-01-21 Andrew Haley <aph@redhat.com>
12629 * gcc.c (process_command): Move lang_specific_driver before
12630 setting cc_libexec_prefix.
12632 2010-01-21 Richard Guenther <rguenther@suse.de>
12634 PR middle-end/19988
12635 * fold-const.c (negate_expr_p): Pretend only negative
12636 real constants are easily negatable.
12638 2010-01-20 Janis Johnson <janis187@us.ibm.com>
12639 Jason Merrill <jason@redhat.com>
12641 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
12642 (TYPE_TRANSPARENT_AGGR): this, for union and record.
12643 * calls.c (initialize argument_information): Handle it.
12644 * c-common.c (handle_transparent_union_attribute): Use new name.
12645 * c-decl.c (finish_struct): Ditto.
12646 * c-typeck.c (type_lists_compatible_p): Ditto.
12647 (convert_for_assignment): Use new name and also handle record.
12648 * function.c (aggregate_value_p): Handle it.
12649 (pass_by_reference): Ditto.
12650 (assign_parm_data_types): Ditto.
12651 * print-tree.c (print_node): Ditto.
12652 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
12653 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
12654 * tree.c (first_field): New fn.
12656 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
12659 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
12660 even when linking statically, for now.
12662 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
12665 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
12666 without a cselib val.
12667 (count_uses): Accept MO_VAL_SET with no val on stores.
12668 (add_stores): Likewise.
12670 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12672 * var-tracking.c (check_value_val): Add a compile time assertion.
12673 (dv_is_decl_p): Simplify.
12674 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
12675 gcc_assert if ENABLE_CHECKING.
12677 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
12680 * var-tracking.c: Include tree-flow.h.
12681 (mem_dies_at_call): New.
12682 (dataflow_set_preserve_mem_locs): Use it.
12683 (dataflow_set_remove_mem_locs): Likewise.
12684 (dump_var): Renamed from dump_variable. Adjust all callers.
12685 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
12686 * Makefile.in (var-tracking.o): Adjust deps.
12688 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
12690 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
12692 2010-01-20 Richard Guenther <rguenther@suse.de>
12694 PR tree-optimization/42717
12695 * tree-ssa-dce.c (get_live_post_dom): Remove.
12696 (forward_edge_to_pdom): Take an arbitrary edge to copy
12697 degenerate PHI args from.
12698 (remove_dead_stmt): Use the first post-dominator even if it
12699 does not contain live statements as redirection destination.
12701 2010-01-20 Richard Guenther <rguenther@suse.de>
12703 * tree-inline.c (estimate_num_insns): Handle EH builtins.
12705 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12707 * sel-sched.c (create_speculation_check): Remove set but not used
12709 (try_transformation_cache): Remove set but not used variable ds.
12710 (calculate_privileged_insns): Remove set but not used variables
12711 cur_insn and min_spec_insn.
12712 (find_best_expr): Remove set but not used variable avail_n.
12713 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
12715 * cgraphunit.c (assemble_thunk): Remove set but not used variable
12717 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
12718 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
12719 new_scop_exit_edge.
12721 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
12724 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
12725 cpu types. Add support for *-sse3 cpu types.
12726 (x86_64-*-*): Ditto.
12728 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12730 PR middle-end/42803
12731 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
12732 argument, call initializer_constant_valid_p_1 instead of
12733 initializer_constant_valid_p, pass CACHE to it, return NULL
12734 immediately if first call returns NULL.
12735 (initializer_constant_valid_p_1): New function.
12736 (initializer_constant_valid_p): Use it.
12738 2010-01-20 Thomas Quinot <quinot@adacore.com>
12740 * tree.def (PLACEHOLDER_EXPR): Fix comment.
12742 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12744 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
12745 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
12746 (loc_list_from_tree): Don't handle unsigned division. Handle
12747 signed modulo using DW_OP_{over,over,div,mul,minus}.
12748 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
12749 modulo instead of signed.
12751 2010-01-20 DJ Delorie <dj@redhat.com>
12753 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
12755 (h8300_emit_stack_adjustment): Propogate it.
12757 (h8300_expand_prologue): Likewise.
12758 (h8300_expand_epilogue): Likewise.
12760 2010-01-19 Michael Matz <matz@suse.de>
12762 PR tree-optimization/41783
12763 * tree-data-ref.c (toplevel): Include flags.h.
12764 (dump_data_dependence_relation): Also dump the inputs if the
12765 result will be unknown.
12766 (split_constant_offset_1): Look through some conversions.
12767 * tree-predcom.c (determine_roots_comp): Restart a new chain if
12768 the offset from last element is too large.
12769 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
12770 (reassociate_to_the_same_stmt): Handle vector registers.
12771 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
12772 (e.g. conversions).
12773 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
12774 wide_prolog_niters argument, emit widening instructions.
12775 (vect_do_peeling_for_alignment): Adjust caller, use widened
12776 variant of the iteration cound.
12777 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
12779 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12782 * config/arm/neon-testgen.m (emit_automatics): New parameter
12783 features. Adjust for Fixed_return_reg feature.
12784 (test_intrinsic): Call emit_automatics with new feature.
12785 * config/arm/neon.ml: Update copyright years.
12786 (features): New Fixed_return_reg feature.
12787 (ops): Update feature for Vget_low.
12789 2010-01-19 Jakub Jelinek <jakub@redhat.com>
12791 PR tree-optimization/42719
12792 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
12796 * fwprop.c (all_uses_available_at): Return false if def_set dest
12797 is a REG that is used in def_insn.
12799 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
12801 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
12803 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
12804 Add argument names.
12806 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
12808 * target.h (struct gcc_target) <secondary_reload>: Change type
12809 of last argument to secondary_reload_info *.
12811 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
12814 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
12815 memory references with unaligned offsets. Remove CQImode handling.
12816 (unaligned_memory_operand): Return 1 for memory references with
12817 unaligned offsets. Remove CQImode handling.
12819 2010-01-18 Richard Guenther <rguenther@suse.de>
12821 PR middle-end/39954
12822 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
12825 2010-01-18 Richard Guenther <rguenther@suse.de>
12827 PR tree-optimization/42781
12828 * tree-ssa-structalias.c (find_what_var_points_to): Skip
12829 restrict processing only if the original variable was artificial.
12831 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
12833 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
12834 find number of popped argument bytes.
12836 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
12837 Fix the text that describes the return value for invalid insns.
12839 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
12841 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
12842 Clarify what 'cost of the -dependence' is. Fix quoting.
12844 * toplev.c (default_get_pch_validity): Rename argument to "sz".
12845 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
12847 2010-01-17 Jakub Jelinek <jakub@redhat.com>
12849 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12850 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
12852 2010-01-17 Richard Guenther <rguenther@suse.de>
12854 PR middle-end/42248
12855 * function.c (split_complex_args): Take a VEC to modify.
12856 (assign_parms_augmented_arg_list): Build a VEC instead of
12857 a chain of PARM_DECLs.
12858 (assign_parms_unsplit_complex): Take a VEC of arguments.
12859 Do not fixup unmodified parms.
12860 (assign_parms): Deal with the VEC.
12861 (gimplify_parameters): Likewise.
12863 2010-01-17 Richard Guenther <rguenther@suse.de>
12865 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
12866 node existence check.
12867 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
12868 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
12869 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
12870 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
12871 (gimple_execute_on_growing_pred): Likewise.
12873 2010-01-17 Richard Guenther <rguenther@suse.de>
12875 PR tree-optimization/42773
12876 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
12877 (compute_antic_aux): Likewise.
12878 (compute_partial_antic_aux): Likewise.
12880 2010-01-17 Jie Zhang <jie.zhang@analog.com>
12883 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
12886 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
12888 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
12891 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
12892 Fix markup for strict argument.
12894 (TARGET_SCHED_REORDER2): Fix argument types.
12896 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
12897 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
12899 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
12900 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
12902 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
12905 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
12906 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
12907 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
12908 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
12909 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
12911 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
12913 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
12915 (TARGET_ASM_RELOC_RW_MASK): Add return type.
12916 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
12918 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
12920 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
12923 (TARGET_ASM_NAMED_SECTION): Fix argument list.
12925 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
12926 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
12928 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
12930 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
12932 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
12933 referring to it. Fix language.
12935 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
12937 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
12939 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
12941 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
12943 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
12944 '@var{stream}. Remove stray 'and'.
12946 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
12948 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
12950 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
12952 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
12953 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
12955 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
12956 Fix description of return value.
12957 Rename argument "sz" to "len."
12959 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
12960 Clarify meaning of 'true' return value.
12962 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
12964 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
12965 rep_mode versus mode_rep.
12967 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
12969 (TARGET_BUILTIN_DECL): Fix name.
12971 (TARGET_COMMUTATIVE_P): Fix type of first argument.
12973 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
12975 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
12977 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
12979 (TARGET_RELAXED_ORDERING): Use @deftypevr.
12981 (TARGET_GET_DRAP_RTX): Note that this is a hook.
12984 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
12985 Rename argument tm_fn to md_fn.
12987 (TARGET_OPTION_PRINT): Fix argument list.
12989 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
12992 * config/i386/i386.c (ix86_fixup_binary_operands):
12993 Revert FMA4 fixup of operands.
12995 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12998 * Makefile.in (write_entries_to_file, install-plugin):
12999 Use \012 instead of \n with tr.
13001 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
13003 * configure.ac (HAVE_AS_REF): New C macro.
13004 * configure: Regenerate.
13005 * config.in: Likewise.
13006 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
13008 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
13011 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
13013 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
13015 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
13017 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
13019 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
13021 (TARGET_IN_SMALL_DATA_P): Fix argument type.
13023 (TARGET_BINDS_LOCAL_P): Fix argument type.
13025 (TARGET_ASM_FILE_END): Use prototype.
13027 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
13029 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
13031 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
13033 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
13035 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
13036 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
13038 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
13039 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
13041 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
13042 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
13043 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
13044 (TARGET_ADDR_SPACE_CONVERT): Likewise.
13046 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
13048 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
13050 (TARGET_INIT_BUILTINS): Use prototype.
13052 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
13053 Put 'const char *' in braces. Fix parameter types.
13054 (TARGET_INVALID_CONVERSION): Fix parameter types.
13055 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
13056 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
13058 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
13061 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
13063 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
13065 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
13067 * doc/tm.texi (TARGET_HELP): Fix return type.
13069 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
13070 in braces. Fix argument types.
13072 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
13074 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
13076 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
13078 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
13079 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
13081 (TARGET_MANGLE_TYPE): Fix argument types.
13083 (TARGET_IRA_COVER_CLASSES): Use prototype.
13085 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
13087 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
13089 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
13091 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
13093 (TARGET_CALLEE_COPIES): Fix argument types.
13095 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
13097 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
13099 (TARGET_FUNCTION_VALUE): Fix argument types.
13101 (TARGET_RETURN_IN_MSB): Fix argument type.
13103 (TARGET_RETURN_IN_MEMORY): Fix argument types.
13105 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
13107 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
13109 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
13110 agree with return type.
13112 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
13114 2010-01-15 Jing Yu <jingyu@google.com>
13116 PR rtl-optimization/42691
13117 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
13118 a pseudo to a constant and are merged, and adjust comments.
13120 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
13122 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
13124 2010-01-15 Richard Guenther <rguenther@suse.de>
13126 PR middle-end/42739
13127 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
13128 labels of computed or non-local gotos to the destination.
13129 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
13130 landing pad label is the first label.
13132 2010-01-15 Richard Guenther <rguenther@suse.de>
13134 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
13136 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13139 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
13140 to allow generation of the xssqrtdp instruction on power7.
13141 (sqrtdf2_fpr): Ditto.
13143 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13145 PR middle-end/42674
13146 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
13147 functions with noreturn attribute.
13150 * varasm.c (declare_weak): Add weak attribute to decl if it
13151 doesn't have one already.
13152 (assemble_external): Only add decls to weak_decls if they also
13153 have weak attribute.
13155 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
13157 * var-tracking.c (var_reg_delete): Don't delete the association
13158 between REGs and values or one-part variables if the register
13161 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13164 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
13165 because its first operand is a non-localized variable.
13167 2010-01-14 Martin Jambor <mjambor@suse.cz>
13169 PR tree-optimization/42706
13170 * tree-sra.c (encountered_recursive_call): New variable.
13171 (encountered_unchangable_recursive_call): Likewise.
13172 (sra_initialize): Initialize both new variables.
13173 (callsite_has_enough_arguments_p): New function.
13174 (scan_function): Call decl and flags check only for IPA-SRA, check
13175 whether there is a recursive call and whether it has enough arguments.
13176 (all_callers_have_enough_arguments_p): New function.
13177 (convert_callers): Look for recursive calls only when
13178 encountered_recursive_call is set.
13179 (ipa_early_sra): Bail out either if
13180 !all_callers_have_enough_arguments_p or
13181 encountered_unchangable_recursive_call.
13183 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13185 * sel-sched.c: Add 2010 to copyright years.
13186 * sel-sched-ir.c: Likewise.
13187 * sel-sched-ir.h: Likewise.
13189 2010-01-14 Martin Jambor <mjambor@suse.cz>
13191 PR tree-optimization/42714
13192 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
13193 constructors specially.
13195 2010-01-14 Andi Kleen <ak@linux.intel.com>
13197 * config/i386/drivers-i386.c (detect_caches_intel):
13198 Add l2sizekb parameter and fill in.
13199 (host_detect_local_cpu): Add l2sizekb, fill in.
13200 Add Atom small cache heuristic.
13202 2010-01-14 Andi Kleen <ak@linux.intel.com>
13204 * config/i386/drivers-i386.c (detect_caches_cpuid4):
13205 Add level3 parameter and fill in.
13206 (detect_caches_intel): Handle level3 cache.
13208 2010-01-14 Andi Kleen <ak@linux.intel.com>
13210 * config/i386/drivers-i386.c (host_detect_local_cpu):
13211 Fix core duo detection.
13213 2010-01-14 Andi Kleen <ak@linux.intel.com>
13215 * config/i386/drivers-i386.c (host_detect_local_cpu):
13216 Fix Atom detection.
13218 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13220 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
13221 (rs6000_variable_issue_1): this. Use...
13222 (rs6000_variable_issue): here. Reimplement. Print debug info.
13224 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13226 * sel-sched-ir.c (sel_restore_other_notes): Rename to
13227 sel_restore_notes. Update all callers. Call reemit_notes
13230 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13232 PR rtl-optimization/42246
13233 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
13236 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13238 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
13239 all successors is the same as number of successors in current region.
13241 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13243 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
13244 to rename is not separable. Otherwise check that its LHS is not NULL.
13246 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13248 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
13250 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13252 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
13253 available registers when failed to discover LHS register class.
13254 Fix indentation. Update comment.
13256 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13257 Alexander Monakov <amonakov@ispras.ru>
13259 PR rtl-optimization/42389
13260 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
13262 (advance_state_on_fence): Likewise.
13263 (sel_target_adjust_priority): Print debug output only when
13264 sched_verbose >= 4, not 2.
13265 (get_expr_cost): Do not issue all unique insns on the next cycle.
13266 (fill_insns): Initialize can_issue_more from the value saved
13268 * sel-sched-ir.c (flist_add): New parameter issue_more.
13269 Init FENCE_ISSUE_MORE with it.
13270 (merge_fences): Likewise.
13271 (init_fences): Update call to flist_add.
13272 (add_to_fences, add_clean_fence_to_fences)
13273 (add_dirty_fence_to_fences): Likewise.
13274 (move_fence_to_fences): Update call to merge_fences.
13275 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
13277 * sel-sched-ir.h (struct _fence): New field issue_more.
13278 (FENCE_ISSUE_MORE): New accessor macro.
13280 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13282 PR rtl-optimization/42388
13283 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
13284 that have no predecessors nor successors. Do not call move_bb_info
13285 for empty blocks outside of current region.
13287 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13289 PR rtl-optimization/42294
13290 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
13291 * sel-sched.c (move_exprs_to_boundary): Transitively add all
13292 originators' originators.
13294 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13296 PR rtl-optimization/39453
13297 PR rtl-optimization/42246
13298 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
13300 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
13302 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13303 Alexander Monakov <amonakov@ispras.ru>
13305 PR middle-end/42245
13306 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
13307 (maybe_tidy_empty_bb): ... here. Make static. Add new
13308 argument. Update all callers.
13309 (tidy_control_flow): ... and here. Recompute topological order
13310 of basic blocks in region if necessary.
13311 (sel_redirect_edge_and_branch): Change return type. Return true
13312 if topological order might have been invalidated.
13313 (purge_empty_blocks): Export and move from...
13314 * sel-sched.c (purge_empty_blocks): ... here.
13315 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
13316 (maybe_tidy_empty_bb): Delete prototype.
13317 (purge_empty_blocks): Declare.
13319 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13321 PR rtl-optimization/42249
13322 * sel-sched.c (try_replace_dest_reg): When chosen register
13323 and original register is the same, do not bail out early, but
13324 still check all original insns for validity of replacing destination
13325 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
13328 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13331 Port from no-undefined-overflow branch:
13332 2009-03-09 Richard Guenther <rguenther@suse.de>
13334 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
13336 2010-01-14 Richard Guenther <rguenther@suse.de>
13339 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
13341 2010-01-14 Ira Rosen <irar@il.ibm.com>
13343 PR tree-optimization/42709
13344 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
13345 as scalar type in creation of constant vector operand.
13347 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13350 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
13351 (check-parallel-%): Match `testsuite' directory component only
13354 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
13356 PR translation/39521
13357 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
13360 2010-01-13 Richard Guenther <rguenther@suse.de>
13362 PR tree-optimization/42730
13363 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
13366 2010-01-13 Steve Ellcey <sje@cup.hp.com>
13369 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
13370 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
13373 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
13375 * config/bfin/libgcc-bfin.ver: Regenerate based on current
13376 libgcc-std.ver. Add entries for ___smulsi3_highpart and
13377 ___umulsi3_highpart.
13379 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
13380 rather than schedule_insns if the pass is enabled.
13382 2010-01-13 Martin Jambor <mjambor@suse.cz>
13384 PR tree-optimization/42704
13385 * tree-sra.c (sra_modify_assign): Do not delete assignments to
13388 2010-01-13 Martin Jambor <mjambor@suse.cz>
13390 PR tree-optimization/42703
13391 * tree-sra.c (analyze_access_subtree): Check that we can build a
13392 reference to the original data within the aggregate.
13394 2010-01-13 Richard Guenther <rguenther@suse.de>
13396 PR tree-optimization/42705
13397 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
13399 2010-01-13 Richard Guenther <rguenther@suse.de>
13401 PR middle-end/42716
13402 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
13404 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13407 * var-tracking.c (values_to_unmark): New variable.
13408 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13409 values_to_unmark vector. Moved body to...
13410 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13411 instead queue it into values_to_unmark vector.
13412 (vt_find_locations): Free values_to_unmark vector.
13414 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
13416 * config/s390/s390.c (override_options): Set
13417 default of max-pending-list-length to 256
13419 2010-01-13 Richard Guenther <rguenther@suse.de>
13422 * tree-pass.h (PROP_gimple_lcx): New.
13423 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
13424 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
13425 before the final cleanup_eh.
13426 (dump_properties): Dump PROP_gimple_lcx.
13427 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
13428 (tree_lower_complex_O0): Remove.
13429 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
13430 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
13431 tree_lower_complex, schedule TODO_update_ssa.
13432 * lto-streamer-out.c (output_function): Stream the functions
13434 * lto-streamer-in.c (input_function): Likewise.
13435 (lto_read_body): Do not override them here.
13437 2010-01-12 Joseph Myers <joseph@codesourcery.com>
13440 * c-typeck.c (build_c_cast): Fold value cast to union type before
13441 wrapping it in a CONSTRUCTOR.
13443 2010-01-12 Jakub Jelinek <jakub@redhat.com>
13445 PR rtl-optimization/42699
13446 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
13449 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13451 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
13452 SUBTARGET_WARN_UNUSED_SPEC): Move ...
13453 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
13454 SUBTARGET_WARN_UNUSED_SPEC): ... here
13455 * config/mips/iris5.h (LIBGCC_SPEC): Define.
13457 2010-01-12 Julian Brown <julian@codesourcery.com>
13459 * config/arm/neon-schedgen.ml (Utils): Don't try to
13460 open missing module.
13461 (find_with_result): New.
13463 2010-01-12 Jakub Jelinek <jakub@redhat.com>
13466 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
13467 sharing when canonicalizing ({lt,ge}u (plus a b) b).
13469 PR tree-optimization/42645
13470 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
13471 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
13472 decl_map, set processing_debug_stmt to -1 and return name without
13475 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
13477 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
13478 binutils version, and reword target configuration description.
13480 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
13482 * config/avr/avr.h (LINKER_NAME): Remove.
13484 2010-01-11 Janis Johnson <janis187@us.ibm.com>
13487 * config/rs6000/rs6000.c (rs6000_override_options): On targets
13488 that support VSX, warn for -mno-altivec if vsx is not disabled,
13491 2010-01-11 Joseph Myers <joseph@codesourcery.com>
13492 Shujing Zhao <pearly.zhao@oracle.com>
13494 PR translation/42469
13495 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
13496 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
13497 character between option name and help text.
13498 * c.opt (imultilib): Likewise.
13500 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
13502 * lto-streamer-out.c (output_unreferenced_globals): Output static
13505 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
13507 PR rtl-optimization/42621
13508 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
13509 optimizing for size.
13510 (duplicate_computed_gotos): Remove now-redundant check.
13512 2010-01-10 Steve Ellcey <sje@cup.hp.com>
13515 * configure.ac: Save and restore LDFLAGS and LIBS
13516 * configure: Regenerate.
13518 2010-01-10 Richard Guenther <rguenther@suse.de>
13520 PR middle-end/42667
13521 * builtins.c (fold_builtin_strlen): Add type argument and
13522 convert the resulting length to it.
13523 (fold_builtin_1): Adjust.
13525 2010-01-09 Jakub Jelinek <jakub@redhat.com>
13527 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
13528 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
13530 (num_insns_constant_wide): Adjust for that change.
13532 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13535 * web.c (union_defs): Add used argument, to combine uses of
13536 uninitialized regs.
13537 (entry_register): Adjust type and tests of used argument.
13538 (web_main): Widen used for new use. Pass it to union_defs.
13539 * df.h (union_defs): Adjust prototype.
13541 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13544 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
13545 uses in new incoming argument. Free body.
13546 (reset_debug_uses_in_loop): New.
13547 (analyze_insn_to_expand_var): Call the latter if the former found
13548 anything. Fix whitespace. Reject invalid dest overlaps before
13549 going through all insns in the loop.
13551 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13554 * haifa-sched.c (dying_use_p): Debug insns don't count.
13556 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13558 PR middle-end/42363
13559 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
13560 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
13561 (verify_gimple_call): Reject LHS in noreturn calls.
13563 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13567 * tree-vect-loop-manip.c (adjust_info): New type.
13568 (adjust_vec): New pointer to vector.
13569 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
13570 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
13571 (slpeel_update_phis_for_duplicate_loop): Use them.
13572 (slpeel_update_phi_nodes_for_guard1): Likewise.
13573 (slpeel_update_phi_nodes_for_guard2): Likewise.
13574 (slpeel_tree_peel_loop_to_edge): Likewise.
13575 (vect_update_ivs_after_vectorizer): Likewise.
13577 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13579 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
13580 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13582 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13584 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
13585 bogus uninitialized warning.
13587 2010-01-09 Richard Guenther <rguenther@suse.de>
13589 PR middle-end/42512
13590 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
13591 the evolution is compatible with the initial condition.
13593 2010-01-09 Jakub Jelinek <jakub@redhat.com>
13595 * gcc.c (process_command): Update copyright notice dates.
13596 * gcov.c (print_version): Likewise.
13597 * gcov-dump.c (print_version): Likewise.
13598 * mips-tfile.c (main): Likewise.
13599 * mips-tdump.c (main): Likewise.
13601 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
13604 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
13606 (rotlhi3_8): Delete.
13608 (rotlsi3_8): Delete.
13609 (rotlsi3_16): Delete.
13610 (rotlsi3_24): Delete.
13611 (rotl<mode>3): New.
13612 (*rotw<mode>3): New.
13613 (*rotb<mode>3): New.
13614 * config/avr/avr.c (avr_rotate_bytes): New function.
13615 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
13617 2010-01-08 Steve Ellcey <sje@cup.hp.com>
13620 * configure.ac: Modify -rdynamic check.
13621 * configure: Regenerate.
13623 2010-01-08 DJ Delorie <dj@redhat.com>
13625 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
13626 register popping order.
13628 2010-01-08 Richard Guenther <rguenther@suse.de>
13631 * c.opt (fsigned-char): Also let LTO handle this option.
13632 (funsigned-char): Likewise.
13634 2010-01-07 Richard Guenther <rguenther@suse.de>
13636 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
13637 (gimple_op): Likewise.
13638 (gimple_op_ptr): Likewise.
13639 (gimple_assign_set_lhs): Remove gcc_assert.
13640 (gimple_assign_set_rhs1): Likewise.
13641 (gimple_assign_set_rhs2): Likewise.
13642 (gimple_call_set_lhs): Likewise.
13643 (gimple_call_set_fn): Likewise.
13644 (gimple_call_set_fndecl): Likewise.
13645 (gimple_call_fndecl): Likewise.
13646 (gimple_call_return_type): Likewise.
13647 (gimple_call_set_chain): Likewise.
13648 (gimple_call_num_args): Likewise.
13649 (gimple_call_set_arg): Likewise.
13650 (gimple_cond_set_code): Likewise.
13651 (gimple_cond_set_lhs): Likewise.
13652 (gimple_cond_set_rhs): Likewise.
13653 (gimple_cond_set_true_label): Likewise.
13654 (gimple_cond_set_false_label): Likewise.
13655 (gimple_label_set_label): Likewise.
13656 (gimple_goto_set_dest): Likewise.
13657 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
13658 (gimple_debug_bind_get_value): Likewise.
13659 (gimple_debug_bind_get_value_ptr): Likewise.
13660 (gimple_debug_bind_set_var): Likewise.
13661 (gimple_debug_bind_set_value): Likewise.
13662 (gimple_debug_bind_reset_value): Likewise.
13663 (gimple_debug_bind_has_value_p): Likewise.
13664 (gimple_return_retval_ptr): Remove gcc_assert.
13665 (gimple_return_retval): Likewise.
13666 (gimple_return_set_retval): Likewise.
13667 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
13668 (safe_referenced_var_iterator): Remove.
13669 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
13670 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
13671 (fill_referenced_var_vec): Remove.
13672 (first_readonly_imm_use): Remove redundant gcc_assert.
13673 (phi_arg_index_from_use): Combine gcc_asserts.
13674 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
13675 (first_imm_use_stmt): Remove redundant gcc_assert.
13676 * tree-cfg.c (verify_gimple_call): Verify function and chain
13677 operands. Verify arguments.
13678 (verify_types_in_gimple_stmt): Verify condition code and labels.
13680 2010-01-07 Richard Guenther <rguenther@suse.de>
13682 PR tree-optimization/42641
13683 * sese.c (rename_map_elt_info): Use the SSA name version, do
13686 2010-01-07 Jakub Jelinek <jakub@redhat.com>
13688 PR tree-optimization/42625
13689 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
13690 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
13692 2010-01-07 Duncan Sands <baldrick@free.fr>
13694 * Makefile.in (PLUGIN_HEADERS): Add version.h.
13696 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
13699 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
13700 note itself is not function_invariant_p.
13702 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
13704 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
13705 Do not add the DF_NOTE problem.
13706 * store-motion.c (execute_rtl_store_motion): Likewise.
13708 2010-01-07 Martin Jambor <mjambor@suse.cz>
13710 PR tree-optimization/42157
13711 * tree-sra.c (compare_access_positions): Stabilize sort if both
13712 accesses have integer types, return zero immediately if they are the
13715 2010-01-06 Richard Henderson <rth@redhat.com>
13717 PR middle-end/41883
13718 * haifa-sched.c (add_to_note_list): Merge into ...
13719 (concat_note_lists): ... here, and ...
13720 (unlink_other_notes, rm_other_notes): Merge into...
13721 (remove_notes): ... here. Create REG_SAVE_NOTEs for
13722 NOTE_INSN_EPILOGUE_BEG.
13724 2010-01-06 Richard Guenther <rguenther@suse.de>
13726 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
13727 not inline regular functions into always-inline functions.
13729 2010-01-06 Nick Clifton <nickc@redhat.com>
13731 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
13732 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
13734 (OVERRIDE_OPTIONS): Delete.
13735 (OPTIMIZATION_OPTIONS): Define.
13736 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
13737 * config/rx/rx.c (rx_handle_option): Issue an error message if
13738 -mcpu=rx200 and -fpu are used together.
13739 (rx_set_optimization_options): New function. Issue an error
13740 message if an optimization attribute attempts to reset the FPU/
13741 math optimization pairing.
13742 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
13743 * config/rx/rx.opt: Set the default to 32-bit doubles.
13744 * config/rx/t-rx: Add multilibs for -nofpu option.
13745 * doc/invoke.texi: Update documentation of RX options.
13747 2010-01-06 Richard Guenther <rguenther@suse.de>
13749 * tree-ssa-pre.c (name_to_id): New global.
13750 (alloc_expression_id): Simplify SSA name handling.
13751 (lookup_expression_id): Likewise.
13752 (init_pre): Zero name_to_id.
13753 (fini_pre): Free it.
13755 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
13757 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
13759 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
13762 * config/i386/sse.md (smaxv2di3): New.
13763 (umaxv2di3): Likewise.
13764 (sminv2di3): Likewise.
13765 (uminv2di3): Likewise.
13767 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
13770 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
13771 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
13772 (legitimize_tls_address): Likewise.
13773 (sparc_tls_referenced_p): Likewise.
13774 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
13775 and adjust calls to legitimize_pic_address.
13776 (legitimate_constant_p) Use sparc_tls_referenced_p.
13777 (legitimate_pic_operand_p): Likewise.
13778 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
13779 (sparc_tls_symbol_ref_1): Delete.
13780 (sparc_tls_referenced_p): Make static, recognize specific patterns.
13781 (legitimize_tls_address): Make static, handle CONST patterns.
13782 (legitimize_pic_address): Make static, remove unused parameter and
13783 adjust recursive calls.
13784 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
13785 and adjust call to legitimize_pic_address.
13786 (sparc_output_mi_thunk): Likewise.
13788 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
13789 H.J. Lu <hongjiu.lu@intel.com>
13792 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
13793 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
13794 operands to make them signed.
13797 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13800 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
13801 GTU to GT for V4SI and V2DI.
13803 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
13804 (umin<mode>3): Removed.
13806 (uminv4si3): Likewise.
13808 2010-01-05 Martin Jambor <mjambor@suse.cz>
13810 PR tree-optimization/42462
13811 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
13812 current_function_decl to helper functions and macros.
13814 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13817 * flags.h: Don't include real.h.
13818 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
13819 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
13820 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
13821 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
13822 * dominance.c: Update copyright.
13823 * gimple.c (walk_gimple_op): Remove inline.
13824 * tree-ssa-reassoc.c: Include real.h.
13825 * Makefile.in (FLAGS_H): Remove $(REAL_H).
13826 (tree-ssa-reassoc.o): Depend on $(REAL_H).
13828 2010-01-05 Nick Clifton <nickc@redhat.com>
13830 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
13831 register to push into the stack frame when the accumulator has to
13832 be saved during interrupts.
13834 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
13836 * doc/invoke.texi: Remove the documentation about option
13837 -Wunreachable-code.
13838 * common.opt (Wunreachable-code): Preserved for backward
13840 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
13841 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
13842 the backward compatibility flag section.
13844 2010-01-05 Richard Guenther <rguenther@suse.de>
13846 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
13848 2010-01-05 Jakub Jelinek <jakub@redhat.com>
13851 * cfgexpand.c (expand_one_var): Diagnose too large variables.
13853 PR tree-optimization/42508
13854 * tree-sra.c (convert_callers): Check for recursive call
13855 by comparing cgraph nodes instead of decls.
13856 (modify_function): Call ipa_modify_formal_parameters also
13857 on all same_body aliases.
13859 * cgraphunit.c (cgraph_materialize_all_clones): Compare
13860 cgraph nodes when checking for same_body aliases.
13862 2010-01-05 Richard Guenther <rguenther@suse.de>
13864 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
13865 allocation and lookup.
13866 (get_or_alloc_expr_for_constant): Likewise.
13867 (phi_translate): Sink allocation.
13869 2010-01-04 Richard Guenther <rguenther@suse.de>
13871 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
13872 a new entry only if needed.
13873 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
13874 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
13876 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
13878 (phi_translate): Handle CONSTANTs early.
13880 2010-01-04 Martin Jambor <mjambor@suse.cz>
13882 PR tree-optimization/42398
13883 * tree-sra.c (struct access): Removed flag grp_different_types.
13884 (dump_access): Do not dump the removed flag.
13885 (sort_and_splice_var_accesses): Do not set the removed flag.
13886 (sra_modify_expr): Check for type compatibility directly.
13888 2010-01-04 Martin Jambor <mjambor@suse.cz>
13890 PR tree-optimization/42366
13891 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
13892 edges with variable number of parameters.
13893 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
13894 flag instead of asserting it.
13895 (ipa_read_node_info): Read uses_analysis_done flag.
13897 2010-01-04 Richard Guenther <rguenther@suse.de>
13899 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
13900 iterative_hash_* as intended.
13901 (vn_reference_compute_hash): Likewise. Simplify hashing
13903 (vn_reference_lookup_2): Likewise.
13904 (vn_nary_op_compute_hash): Likewise.
13905 (vn_phi_compute_hash): Likewise.
13906 (expressions_equal_p): Remove strange code.
13907 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
13908 (pre_expr_hash): Likewise. Simplify hashing SSA names.
13909 (bitmap_insert_into_set_1): Take value-id as parameter.
13910 (add_to_value): Pass it.
13911 (bitmap_insert_into_set): Likewise.
13912 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
13914 2010-01-04 Jakub Jelinek <jakub@redhat.com>
13917 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
13918 (do_self_spec): For switches with SWITCH_IGNORE set set also
13919 SWITCH_IGNORE_PERMANENTLY.
13920 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
13923 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
13925 * lto-streamer-out.c (output_unreferenced_globals): Output the full
13926 tree of an unreferenced global var.
13928 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13931 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
13932 GTU to GT for V4SI and V2DI.
13934 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
13935 (umin<mode>3): Removed.
13937 (uminv4si3): Likewise.
13939 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13942 * collect2.c (main): Turn on trace in collect2 if -v is passed
13945 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
13947 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
13948 description of expression operand.
13950 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
13952 * configure.ac: Add install-html to target_list for Make-hooks.
13953 * configure: Regenerate.
13954 * fortran/Make-lang.in (F95_HTMLFILES): New.
13955 (fortran.html): Use it.
13956 (fortran.install-html): New.
13957 * Makefile.in (install-html): Add lang.install-html.
13958 * java/Make-lang.in (JAVA_HTMLFILES): New.
13959 (java.html): Use it.
13960 (java.install-html): New.
13961 * objc/Make-lang.in (objc.install-html): New.
13962 * objcp/Make-lang.in (obj-c++.install-html): New.
13963 * cp/Make-lang.in (c++.install-html): New.
13964 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
13965 * lto/Make-lang.in (lto.install-html): New.
13967 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
13970 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
13972 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
13974 PR rtl-optimization/41862
13975 * store-motion.c (store_killed_in_insn, compute_store_table,
13976 remove_reachable_equiv_notes, replace_store_insn,
13977 build_store_vectors): Ignore all DEBUG_INSNs.
13979 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
13982 * common.opt: Add dumpdir.
13984 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
13986 (option_map): Add --dumpdir.
13988 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
13990 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
13992 * opts.c (decode_options): Try dump_dir_name first if
13993 dump_base_name isn't an absolute path.
13994 (common_handle_option): Handle OPT_dumpdir.
13996 * toplev.c (dump_dir_name): New.
13997 (print_switch_values): Also ignore -dumpdir.
13999 * toplev.h (dump_dir_name): New.
14001 2010-01-03 Richard Guenther <rguenther@suse.de>
14003 PR tree-optimization/42589
14004 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
14005 double-word expansion of bswap32.
14007 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
14009 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
14010 with BLOCK_FOR_INSN.
14011 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
14012 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
14013 noce_process_if_block): Likewise.
14014 * gcse.c (compute_local_properties, insert_expr_in_table,
14015 insert_set_in_table, canon_list_insert, find_avail_set,
14016 pre_insert_copy_insn): Likewise.
14018 * basic-block.h (BLOCK_NUM): Move from here...
14019 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
14021 2010-01-03 Richard Guenther <rguenther@suse.de>
14023 PR tree-optimization/42438
14024 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
14025 contains_may_not_return_call flag.
14026 (BB_MAY_NOTRETURN): New.
14027 (valid_in_sets): Trapping nary operations are not valid
14028 in blocks that may not return.
14029 (insert_into_preds_of_block): Remove check for trapping expressions.
14030 (compute_avail): Compute also BB_MAY_NOTRETURN.
14032 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
14034 * doc/invoke.texi: Add 2010 to copyright years.
14036 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
14038 * config/sparc/sparc.c: Fix formatting nits.
14040 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14041 Alexander Monakov <amonakov@ispras.ru>
14043 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
14045 2010-01-02 Richard Guenther <rguenther@suse.de>
14047 PR middle-end/42577
14048 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
14049 (simplify_switch_using_ranges): Mark to be removed edges
14052 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14054 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14056 * collect2.c (scan_libraries): Add missing argument in call to
14059 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
14062 * config/alpha/predicates.md (aligned_memory_operand): Return false
14064 (unaligned_memory_operand): Return true for CQImode.
14065 * config/alpha/alpha.c (get_aligned_mem): Assert that location
14066 doesn not cross aligned SImode word boundary.
14068 2010-01-02 Anatoly Sokolov <aesok@post.ru>
14070 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
14072 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
14073 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
14075 2010-01-02 Richard Guenther <rguenther@suse.de>
14078 * toplev.c (compile_file): Emit LTO marker properly. Change
14079 it to __gnu_lto_v1.
14080 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
14082 2010-01-01 Richard Guenther <rguenther@suse.de>
14085 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
14087 2010-01-01 Richard Guenther <rguenther@suse.de>
14090 * c-decl.c (grokdeclarator): For zero-size arrays force
14091 structural equality checks as layout_type does.
14093 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
14095 * builtins.c: Update copyright to 2010.
14097 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
14100 * lto-streamer-out.c (produce_asm): Revert the last change.
14101 (copy_function): Likewise.
14103 * lto-streamer.c (lto_get_section_name): Skip any leading
14106 2010-01-01 Richard Guenther <rguenther@suse.de>
14108 PR middle-end/42559
14109 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
14113 Copyright (C) 2010 Free Software Foundation, Inc.
14115 Copying and distribution of this file, with or without modification,
14116 are permitted in any medium without royalty provided the copyright
14117 notice and this notice are preserved.