1 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5 2010-06-10 Jan Hubicka <jh@suse.cz>
7 * df-problems.c (df_live_problem_data): Add live_bitmaps.
8 (df_live_alloc): Initialize problem data and live_osbtacks.
9 (df_live_finalize): Remove obstack, problem data; do not
11 (df_live_top_dump, df_live_bottom_dump): Do not dump old
12 data when not allocated.
13 (df_live_verify_solution_start): Do not allocate problem data.
14 (df_live_verify_solution_end): Check if out is allocated.
15 (struct df_md_problem_data): New structure.
16 (df_md_alloc): Allocate problem data.
17 (df_md_free): Free problem data; do not clear bitmaps.
19 2010-06-10 Jan Beulich <jbeulich@novell.com>
21 * configure.ac: Replace $() with ${} when intending to expand
22 variables rather than invoking commands.
23 * configure: Re-generate.
25 2010-06-10 Jan Hubicka <jh@suse.cz>
27 PR rtl-optimization/44460
28 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove TYPE_NEEDS_CONSTRUCTING
31 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
33 * doc/include/fdl.texi: Move to GFDL version 1.3.
35 * doc/cpp.texi: Move to GFDL version 1.3.
36 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
37 * doc/gccint.texi: Move to GFDL version 1.3.
38 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
39 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
40 * doc/invoke.texi: Move to GFDL version 1.3.
42 2010-06-09 Jan Hubicka <jh@suse.cz>
44 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
46 (propagate) ... here; swap the order.
48 2010-06-09 Jan Hubicka <jh@suse.cz>
50 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
51 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
52 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
53 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
55 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
57 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
58 Do not the gather memory reference in the outer loop if the step
61 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
63 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
64 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
65 8 to 4. Minor change of the related comments.
67 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
69 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
70 the scev analysis when the variable is not used outside the loop
71 in a close phi node: call compute_overall_effect_of_inner_loop.
73 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
75 * graphite-sese-to-poly.c (single_pred_cond): Renamed
76 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
77 (build_sese_conditions_before): Renamed call to single_pred_cond.
78 (build_sese_conditions_after): Same.
80 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
82 * graphite-poly.h: Fix comments and indentation.
83 * graphite-sese-to-poly.c: Same.
84 (build_sese_conditions_before): Compute stmt and gbb only when needed.
85 * tree-chrec.c: Fix comments and indentation.
86 (tree-ssa-loop-niter.c): Same.
88 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
90 PR rtl-optimization/42461
91 * dce.c (deletable_insn_p): Return true for const or pure calls again.
92 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
94 2010-06-09 Jan Hubicka <jh@suse.cz>
96 * bitmap.c (bitmap_and): Walk array forward.
97 (bitmap_and_compl_into): Likewise.
98 (bitmap_xor): Likewise.
99 (bitmap_xor_into): Likewise.
100 (bitmap_equal_p): Likewise.
101 (bitmap_intersect_p): Likewise.
102 (bitmap_intersect_compl_p): Likewise.
103 (bitmap_ior_and_into): Likewise.
104 (bitmap_elt_copy): Likewise.
105 (bitmap_and_compl): Likewise.
106 (bitmap_elt_ior): Likewise.
108 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
110 * opts-common.c (prune_options): Ensure replacement argv array
111 is correctly terminated by a NULL entry.
113 2010-06-09 Jan Hubicka <jh@suse.cz>
115 * cgraph.h (varpool_first_static_initializer,
116 varpool_next_static_initializer): Make checking only when
118 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
119 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
120 gcc_assert to gcc_checking_assert.
121 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use, phi_nodes
122 set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
123 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
124 op_iter_init_phiuse, op_iter_init_phidef, array_ref_contains_indirect_ref,
125 ref_contains_array_ref): Use gcc_checking_assert.
126 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
127 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
128 partition_is_global, live_on_entry, live_on_exit,
129 live_merge_and_clear): Likewise.
130 * system.h (gcc_checking_assert): New macro.
131 * gimple.h (set_bb_seq): Use gcc_checking_assert.
133 2010-06-09 Jason Merrill <jason@redhat.com>
135 * Makefile.in (TAGS): Collect tags info from c-family.
137 2010-06-09 Jan Hubicka <jh@suse.cz>
139 * gimple.h (gcc_gimple_checking_assert): New macro.
140 (gimple_set_def_ops, gimple_set_use_ops,
141 gimple_set_vuse, gimple_set_vdef,
142 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
143 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
144 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
145 gimple_asm_output_op, gimple_asm_output_op_ptr,
146 gimple_asm_set_output_op, gimple_asm_clobber_op,
147 gimple_asm_set_clobber_op, gimple_asm_label_op,
148 gimple_asm_set_label_op, gimple_try_set_kind, gimple_try_catch_is_cleanup
149 gimple_try_set_catch_is_cleanup, gimple_phi_arg,
150 gimple_switch_num_labels, gimple_switch_set_index, gimple_switch_label,
151 gimple_switch_set_label, gimple_omp_for_index, gimple_omp_for_index_ptr,
152 gimple_omp_for_set_index, gimple_omp_for_initial, gimple_omp_for_initial_ptr,
153 gimple_omp_for_set_initial, gimple_omp_for_final, gimple_omp_for_final_ptr,
154 gimple_omp_for_set_final, gimple_omp_for_incr, gimple_omp_for_incr_ptr,
155 gimple_omp_for_set_incr, gimple_omp_for_set_cond, gimple_omp_for_cond): Make
156 checking conditional with ENABLE_GIMPLE_CHECKING.
157 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
159 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
161 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
162 (get_computation_cost_at): Use it.
163 (determine_use_iv_cost_condition): Likewise.
164 (determine_iv_cost): Likewise.
166 2010-06-09 Richard Guenther <rguenther@suse.de>
168 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
171 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
173 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
175 2010-06-09 Martin Jambor <mjambor@suse.cz>
177 PR tree-optimization/44423
178 * tree-sra.c (dump_access): Dump also grp_assignment_read.
179 (analyze_access_subtree): Pass negative allow_replacements to children
180 if the current type is scalar.
182 2010-06-09 Joern Rennecke <amylaar@spamcop.net>
185 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
186 * doc/plugins.texi (Plugin license check): Update information
187 on type of plugin_is_GPL_compatible.
188 * Makefile.in (PLUGINCC): Define as $(COMPILER).
189 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
191 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
193 * config/arm/arm.c (thumb2_reorg): New function.
194 (arm_reorg): Call it.
195 * config/arm/thumb2.md (define_peephole2 for flag clobbering
196 arithmetic operations): Delete.
198 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
201 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
204 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
207 * gcc-plugin.h: Encapsulate all declarations in extern "C".
209 2010-06-08 Jan Hubicka <jh@suse.cz>
211 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
212 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
214 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
216 PR tree-optimization/39874
218 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
220 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
221 same_bool_result_p): New.
222 (and_var_with_comparison, and_var_with_comparison_1,
223 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
224 (or_var_with_comparison, or_var_with_comparison_1,
225 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
226 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
227 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
228 of combine_comparisons.
229 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
231 2010-06-08 Anatoly Sokolov <aesok@post.ru>
233 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
234 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
235 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
236 pdp11_function_value_regno_p): New functions.
237 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
238 TARGET_FUNCTION_VALUE_REGNO_P): Define.
240 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
242 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
243 Thumb-2 in the MINUS case.
245 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
247 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
249 * doc/gty.texi (GTY Options): Document typed GC allocation and
250 variable_size GTY option.
252 * ggc-internal.h: New.
254 * ggc.h: Update copyright year.
255 (digit_string): Move to stringpool.c.
256 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
257 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
258 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
259 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
260 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
261 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
262 (ggc_force_collect, ggc_get_size, ggc_statistics)
263 (ggc_print_common_statistics): Move to ggc-internal.h.
264 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
265 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
266 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
267 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
268 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
269 (ggc_alloc_zone_pass_stat): Remove.
270 (ggc_internal_alloc_stat, ggc_internal_alloc)
271 (ggc_internal_cleared_alloc_stat): New.
272 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
273 (ggc_internal_vec_alloc_stat)
274 (ggc_internal_cleared_vec_alloc_stat)
275 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
276 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
277 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
278 (ggc_cleared_alloc_ptr_array_two_args): New.
279 (htab_create_ggc, splay_tree_new_ggc): Redefine.
280 (ggc_splay_alloc): Change the type of the first argument to
282 (ggc_alloc_string): Make macro.
283 (ggc_alloc_string_stat): New.
284 (ggc_strdup): Redefine.
285 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
286 (ggc_alloc_rtvec_sized): New.
287 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
288 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
289 (ggc_internal_cleared_alloc_zone_stat)
290 (ggc_internal_zone_alloc_stat)
291 (ggc_internal_zone_cleared_alloc_stat)
292 (ggc_internal_zone_vec_alloc_stat)
293 (ggc_alloc_zone_rtx_def_stat)
294 (ggc_alloc_zone_tree_node_stat)
295 (ggc_alloc_zone_cleared_tree_node_stat)
296 (ggc_alloc_cleared_gimple_statement_d_stat): New.
298 * ggc-common.c: Include ggc-internal.h.
299 (ggc_internal_cleared_alloc_stat): Rename from
300 ggc_alloc_cleared_stat.
301 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
302 (ggc_calloc): Remove.
303 (ggc_cleared_alloc_htab_ignore_args): New.
304 (ggc_cleared_alloc_ptr_array_two_args): New.
305 (ggc_splay_alloc): Add obj_type parameter.
306 (init_ggc_heuristics): Formatting fixes.
308 * ggc-none.c: Update copyright year.
309 (ggc_alloc_stat): Rename to ggc_alloc_stat.
310 (ggc_alloc_cleared_stat): Rename to
311 ggc_internal_cleared_alloc_stat.
312 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
314 * ggc-page.c: Update copyright year. Include ggc-internal.h.
315 Remove references to ggc_alloc in comments.
316 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
317 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
318 (new_ggc_zone, destroy_ggc_zone): Remove.
319 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
321 * ggc-zone.c: Include ggc-internal.h. Remove references to
322 ggc_alloc in comments.
323 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
324 (ggc_internal_alloc_zone_pass_stat): New.
325 (ggc_internal_cleared_alloc_zone_stat): New.
326 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
327 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
328 (new_ggc_zone, destroy_ggc_zone): Remove.
330 * stringpool.c: Update copyright year. Include ggc-internal.h
331 (digit_vector): Make static.
332 (digit_string): Moved from ggc.h.
333 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
334 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
336 * Makefile.in (GGC_INTERNAL_H): New.
337 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
338 $(GGC_INTERNAL_H) to dependencies.
340 * gentype.c: Update copyright year.
341 (walk_type): Accept variable_size GTY option.
342 (USED_BY_TYPED_GC_P): New macro.
343 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
344 whitespace at the end of strings.
345 (get_type_specifier, variable_size_p): New functions.
346 (alloc_quantity, alloc_zone): New enums.
347 (write_typed_alloc_def): New function.
348 (write_typed_struct_alloc_def): Likewise.
349 (write_typed_typed_typedef_alloc_def): Likewise.
350 (write_typed_alloc_defns): Likewise.
351 (output_typename, write_splay_tree_allocator_def): Likewise.
352 (write_splay_tree_allocators): Likewise.
353 (main): Call write_typed_alloc_defns and
354 write_splay_tree_allocators.
356 * lto-streamer.h (lto_file_decl_data_ptr): New.
358 * passes.c (order): Define using cgraph_node_ptr.
360 * strinpool.c (struct string_pool_data): Declare nested_ptr using
363 * gimple.h (union gimple_statement_d): Likewise.
365 * rtl.h (struct rtx_def): Likewise.
366 (struct rtvec_def): Likewise.
368 * tree.h (union tree_node): Likewise.
370 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
372 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
374 * tree-scalar-evolution.c (scev_initialize): Likewise.
376 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
378 * dwarf2asm.c (dw2_force_const_mem): Likewise.
380 * omp-low.c (lower_omp_critical): Likewise.
382 * bitmap.h (struct bitmap_head_def): Update comment to not
385 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
387 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
389 * ipa-prop.c (duplicate_ggc_array): Rename to
390 duplicate_ipa_jump_func_array. Use typed GC allocation.
391 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
393 * gimple.c (gimple_alloc_stat): Use
394 ggc_alloc_cleared_gimple_statement_d_stat.
396 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
398 * tree.c (make_node_stat): Use
399 ggc_alloc_zone_cleared_tree_node_stat.
400 (make_tree_vec_stat): Likewise.
401 (build_vl_exp_stat): Likewise.
402 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
403 (make_tree_binfo_stat): Likewise.
404 (tree_cons_stat): Likewise.
406 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
407 (shallow_copy_rtx_stat): Likewise.
408 (make_node_stat): Likewise.
410 * lto-symtab.c: Fix comment.
412 * tree-cfg.c (create_bb): Update comment to not reference
414 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is
417 * varpool.c (varpool_node): Use typed GC allocation.
418 (varpool_extra_name_alias): Likewise.
420 * varasm.c (emutls_decl): Likewise.
421 (get_unnamed_section): Likewise.
422 (get_noswitch_section): Likewise.
423 (get_section): Likewise.
424 (get_block_for_section): Likewise.
425 (build_constant_desc): Likewise.
426 (create_constant_pool): Likewise.
427 (force_const_mem): Likewise.
429 * tree.c (build_vl_exp_stat): Likewise.
430 (build_real): Likewise.
431 (build_string): Likewise.
432 (decl_debug_expr_insert): Likewise.
433 (decl_value_expr_insert): Likewise.
434 (type_hash_add): Likewise.
435 (build_omp_clause): Likewise.
437 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
439 * tree-ssa.c (init_tree_ssa): Likewise.
441 * tree-ssa-structalias.c (heapvar_insert): Likewise.
443 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
445 * tree-ssa-loop-niter.c (record_estimate): Likewise.
447 * tree-ssa-alias.c (get_ptr_info): Likewise.
449 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
451 * tree-phinodes.c (allocate_phi_node): Likewise.
453 * tree-iterator.c (tsi_link_before): Likewise.
454 (tsi_link_after): Likewise.
456 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
458 * tree-dfa.c (create_var_ann): Likewise.
460 * tree-cfg.c (create_bb): Likewise.
462 * toplev.c (alloc_for_identifier_to_locale): Likewise.
463 (general_init): Likewise.
465 * stringpool.c (stringpool_ggc_alloc): Likewise.
466 (gt_pch_save_stringpool): Likewise.
468 * sese.c (if_region_set_false_region): Likewise.
470 * passes.c (do_per_function_toporder): Likewise.
472 * optabs.c (set_optab_libfunc): Likewise.
473 (set_conv_libfunc): Likewise.
475 * lto-symtab.c (lto_symtab_register_decl): Likewise.
477 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
478 (input_eh_region): Likewise.
479 (input_eh_lp): Likewise.
480 (make_new_block): Likewise.
481 (unpack_ts_real_cst_value_fields): Likewise.
483 * lto-section-in.c (lto_new_in_decl_state): Likewise.
485 * lto-cgraph.c (input_node_opt_summary): Likewise.
487 * loop-init.c (loop_optimizer_init): Likewise.
489 * lambda.h (lambda_vector_new): Likewise.
491 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
493 * ira.c (update_equiv_regs): Likewise.
495 * ipa.c (cgraph_node_set_new): Likewise.
496 (cgraph_node_set_add): Likewise.
497 (varpool_node_set_new): Likewise.
498 (varpool_node_set_add): Likewise.
500 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
501 (duplicate_ipa_jump_func_array): Likewise.
502 (ipa_read_node_info): Likewise.
504 * ipa-cp.c (ipcp_create_replace_map): Likewise.
506 * integrate.c (get_hard_reg_initial_val): Likewise.
508 * gimple.c (gimple_alloc_stat): Likewise.
509 (gimple_build_omp_for): Likewise.
510 (gimple_seq_alloc): Likewise.
511 (gimple_copy): Likewise.
513 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
514 (gsi_insert_after_without_update): Likewise.
516 * function.c (add_frame_space): Likewise.
517 (insert_temp_slot_address): Likewise.
518 (assign_stack_temp_for_type): Likewise.
519 (allocate_struct_function): Likewise.
520 (types_used_by_var_decl_insert): Likewise.
522 * except.c (init_eh_for_function): Likewise.
523 (gen_eh_region): Likewise.
524 (gen_eh_region_catch): Likewise.
525 (gen_eh_landing_pad): Likewise.
526 (add_call_site): Likewise.
528 * emit-rtl.c (get_mem_attrs): Likewise.
529 (get_reg_attrs): Likewise.
530 (start_sequence): Likewise.
531 (init_emit): Likewise.
533 * dwarf2out.c (new_cfi): Likewise.
534 (queue_reg_save): Likewise.
535 (dwarf2out_frame_init): Likewise.
536 (new_loc_descr): Likewise.
537 (find_AT_string): Likewise.
539 (add_var_loc_to_decl): Likewise.
540 (clone_die): Likewise.
541 (clone_as_declaration): Likewise.
542 (break_out_comdat_types): Likewise.
543 (new_loc_list): Likewise.
544 (loc_descriptor): Likewise.
545 (add_loc_descr_to_each): Likewise.
546 (add_const_value_attribute): Likewise.
547 (tree_add_const_value_attribute): Likewise.
548 (add_comp_dir_attribute): Likewise.
549 (add_name_and_src_coords_attributes): Likewise.
550 (lookup_filename): Likewise.
551 (store_vcall_insn): Likewise.
552 (dwarf2out_init): Likewise.
554 * dbxout.c (dbxout_init): Likewise.
556 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
558 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
560 * config/score/score7.c (score7_output_external): Likewise.
562 * config/score/score3.c (score3_output_external): Likewise.
564 * config/s390/s390.c (s390_init_machine_status): Likewise.
566 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
567 (rs6000_init_machine_status): Likewise.
568 (output_toc): Likewise.
570 * config/pa/pa.c (pa_init_machine_status): Likewise.
571 (get_deferred_plabel): Likewise.
573 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
575 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
577 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
579 * config/mep/mep.c (mep_init_machine_status): Likewise.
580 (mep_note_pragma_flag): Likewise.
582 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
584 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
586 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
588 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
589 (i386_pe_maybe_record_exported_symbol): Likewise.
591 * config/i386/i386.c (get_dllimport_decl): Likewise.
592 (ix86_init_machine_status): Likewise.
593 (assign_386_stack_local): Likewise.
595 * config/frv/frv.c (frv_init_machine_status): Likewise.
597 * config/darwin.c (machopic_indirection_name): Likewise.
599 * config/cris/cris.c (cris_init_machine_status): Likewise.
601 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
603 * config/avr/avr.c (avr_init_machine_status): Likewise.
605 * config/arm/arm.c (arm_init_machine_status): Likewise.
607 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
608 (alpha_need_linkage): Likewise.
609 (alpha_use_linkage): Likewise.
611 * cgraph.c (cgraph_allocate_node): Likewise.
612 (cgraph_create_edge_1): Likewise.
613 (cgraph_create_indirect_edge): Likewise.
614 (cgraph_add_asm_node): Likewise.
616 * cfgrtl.c (init_rtl_bb_info): Likewise.
618 * cfgloop.c (alloc_loop): Likewise.
619 (rescan_loop_exit): Likewise.
621 * cfg.c (init_flow): Likewise.
622 (alloc_block): Likewise.
623 (unchecked_make_edge): Likewise.
625 * c-parser.c (c_parse_init): Likewise.
626 (c_parse_file): Likewise.
628 * c-decl.c (bind): Likewise.
629 (record_inline_static): Likewise.
630 (push_scope): Likewise.
631 (make_label): Likewise.
632 (lookup_label_for_goto): Likewise.
633 (finish_struct): Likewise.
634 (finish_enum): Likewise.
635 (c_push_function_context): Likewise.
637 * bitmap.c (bitmap_element_allocate): Likewise.
638 (bitmap_gc_alloc_stat): Likewise.
640 * alias.c (record_alias_subset): Likewise.
641 (init_alias_analysis): Likewise.
643 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
645 * fold-const.c (fold_comparison): Remove redundant parenthesis.
646 * tree-inline.c (expand_call_inline): Pass translated return value of
647 cgraph_inline_failed_string to diagnostic function.
649 2010-06-08 Andrew Pinski <pinskia@gmail.com>
650 Shujing Zhao <pearly.zhao@oracle.com>
653 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
654 implicit bad conversions is initialization.
655 (error_init): Use gmsgid instead of msgid for argument name and change
657 (pedwarn_init): Use gmsgid instead of msgid for argument name and
658 change the call for pedwarn.
659 (warning_init): Use gmsgid instead of msgid for argument name and
660 change the call for warning.
662 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
664 * config/mips/mips-protos.h (mips_print_operand): Delete.
665 (mips_print_operand_address): Delete.
666 * config/mips/mips.h (mips_print_operand_punct): Delete.
667 (PRINT_OPERAND): Delete.
668 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
669 (PRINT_OPERAND_ADDRESS): Delete.
670 * config/mips/mips.c (mips_print_operand_punct): Make static.
671 (mips_print_operand_address): Make static.
672 (mips_print_operand): Make static. Call
673 mips_print_operand_punct_valid_p.
674 (mips_print_operand_punct_valid_p): New function.
675 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
676 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
678 2010-06-07 Jan Hubicka <jh@suse.cz>
681 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
684 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
686 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
689 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
691 * doc/sourcebuild.texi (Effective-Target Keywords, Other
692 attributes): Document gas.
694 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
696 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
697 <TYPE_LEA>: Split instruction.
698 <default>: Remove alternative 2 handling.
699 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
700 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
701 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
703 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
704 (ashift_zext lea splitter): Use DImode for multiplication.
706 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
707 to generate addition.
709 2010-06-07 Joseph Myers <joseph@codesourcery.com>
711 * common.opt (fira-verbose): Use Var.
712 (fpcc-struct-return): Use Init instead of VarExists.
713 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
715 * flags.h (flag_signed_char, flag_short_enums,
716 flag_pcc_struct_return, flag_ira_verbose,
717 flag_detailed_statistics, flag_remove_unreachable_functions):
719 * toplev.c (flag_detailed_statistics, flag_signed_char,
720 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
721 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
722 * toplev.h (flag_crossjumping, flag_if_conversion,
723 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
724 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
725 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
726 flag_cprop_registers, time_report, flag_ira_loop_pressure,
727 flag_ira_coalesce, flag_ira_move_spills,
728 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
730 2010-06-07 Jan Hubicka <jh@suse.cz>
732 * df-core.c (df_analyze_problem): Do verification after allocation.
734 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
735 (df_lr_alloc): Initialize problem data; move bitmaps to
737 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
738 (df_lr_verify_solution_start): Do not initialize problem data;
739 allocate bitmaps in lr_bitmaps.
740 (df_lr_verify_solution_end): Do not free problem data.
742 2010-06-07 Jan Hubicka <jh@suse.cz>
744 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
745 if caller is noreturn.
746 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
747 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
748 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
749 * ipa-pure-const.c (check_decl): Add IPA parameter.
750 (state_from_flags): New function.
751 (better_state, worse_state): New functions.
752 (check_call): When in IPA mode, do not care about callees.
753 (check_load, check_store): Update.
754 (check_ipa_load, check_ipa_store): New.
755 (check_stmt): When in IPA mode, use IPA checkers.
756 (analyze_function): Use state_from_flags.
757 (propagate): Check indirect edges and references.
759 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
761 PR rtl-optimization/44404
762 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
763 of count_occurrences to see if it's safe to modify mem_insn.insn.
765 2010-06-07 Richard Guenther <rguenther@suse.de>
767 * gimplify.c (gimplify_cleanup_point_expr): For empty body
768 and EH-only cleanup drop the cleanup instead of inserting it
771 2010-06-07 Ira Rosen <irar@il.ibm.com>
773 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
775 * targhooks.c (default_builtin_vectorization_cost): New function.
776 * targhooks.h (default_builtin_vectorization_cost): Declare.
777 * target.h (enum vect_cost_for_stmt): Define.
778 (builtin_vectorization_cost): Change argument and comment.
779 * tree-vectorizer.h: Remove cost model macros.
780 * tree-vect-loop.c: Include target.h.
781 (vect_get_cost): New function.
782 (vect_estimate_min_profitable_iters): Replace cost model macros with
783 calls to vect_get_cost.
784 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
785 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
786 default implementation.
787 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
788 calls to target hook builtin_vectorization_cost.
789 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
791 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
792 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
793 implementation to return costs.
794 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
795 * config/spu/spu.h: Remove vectorizer cost model macros.
796 * config/i386/i386.h: Likewise.
797 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
798 a call to target hook builtin_vectorization_cost.
800 2010-06-06 Sriraman Tallam <tmsriram@google.com>
803 * config/i386/i386.c (override_options): Turn zee pass on for level 2
804 and above and defer till target is known.
805 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
808 2010-05-25 Jan Hubicka <jh@suse.cz>
810 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
811 (df_compact_blocks): Likewise.
812 * df.h (struct df): Turn hardware_regs_used,
813 regular_block_artificial_uses, eh_block_artificial_uses,
814 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
816 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
817 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
818 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
819 df_scan_blocks, df_insn_delete, df_insn_rescan,
820 df_insn_rescan_debug_internal, df_insn_rescan_all,
821 df_process_deferred_rescans, df_process_deferred_rescans,
822 df_notes_rescan, df_get_call_refs, df_get_call_refs,
823 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
824 df_record_entry_block_defs, df_record_exit_block_uses,
825 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
826 df_scan_verify): Update.
828 2010-05-25 Dodji Seketeli <dodji@redhat.com>
831 * c-common.c (is_typedef_decl): Move this definition ...
832 * tree.c (is_typedef_decl): ... here.
833 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
834 * c-common.h (is_typedef_decl): Move this declaration ...
835 * tree.h (is_typedef_decl): ... here.
836 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
837 * dwarf2out.c (is_naming_typedef_decl): New function.
838 (gen_tagged_type_die): Split out of ...
839 (gen_type_die_with_usage): ... this function. When an anonymous
840 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
841 is emitted for the typedef.
842 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
843 anonymous tagged types.
845 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
848 * c-decl.c (grokdeclarator): Delete warning.
850 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
852 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
853 newly built CALL_EXPR.
854 * tree-profile.c (tree_profiling): Don't profile functions produced
857 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
861 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
862 endianness-independent.
864 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
866 * c-common.c: Move to c-family/.
867 * c-common.def: Likewise.
868 * c-common.h: Likewise.
869 * c-cppbuiltin.c: Likewise.
870 * c-dump.c: Likewise.
871 * c-format.c: Likewise.
872 * c-format.h : Likewise.
873 * c-gimplify.c: Likewise.
877 * c-opts.c: Likewise.
879 * c-ppoutput.c: Likewise.
880 * c-pragma.c: Likewise.
881 * c-pragma.h: Likewise.
882 * c-pretty-print.c: Likewise.
883 * c-pretty-print.h: Likewise.
884 * c-semantics.c: Likewise.
885 * stub-objc.c: Likewise.
887 * gengtype.c (get_file_langdir): Special-case files in c-family/.
888 (get_output_file_with_visibility): Fix name for c-common.h.
889 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
891 * c-tree.h: Update include path for moved files.
892 * c-lang.c: Likewise.
893 * c-lang.h: Likewise.
894 * c-parser.c: Likewise.
895 * c-convert.c: Likewise.
896 * c-decl.c: Likewise.
897 * c-objc-common.c: Likewise.
898 * configure.ac: Make sure c-family/ exists in the build directory.
899 * configure: Regenerate.
900 * Makefile.in: Update paths for moved files. Regroup files per
901 location and update dependencies. Move generated_files down after
904 * config/spu/spu-c.c: Update paths for moved files.
905 * config/mep/mep-pragma.c: Likewise.
906 * config/darwin-c.c: Likewise.
907 * config/i386/msformat-c.c: Likewise.
908 * config/i386/i386-c.c: Likewise.
909 * config/avr/avr-c.c: Likewise.
910 * config/sol2-c.c: Likewise.
911 * config/ia64/ia64-c.c: Likewise.
912 * config/rs6000/rs6000-c.c: Likewise.
913 * config/arm/arm.c: Likewise.
914 * config/arm/arm-c.c: Likewise.
915 * config/h8300/h8300.c: Likewise.
916 * config/v850/v850-c.c: Likewise.
918 * config/t-darwin: Fix dependencies for moved files.
919 * config/t-sol2: Fix dependencies for moved files.
920 * config/mep/t-mep: Fix dependencies for moved files.
921 * config/ia64/t-ia64: Fix dependencies for moved files.
922 * config/rs6000/t-rs6000: Fix dependencies for moved files.
923 * config/v850/t-v850: Fix dependencies for moved files.
924 * config/v850/t-v850e: Fix dependencies for moved files.
926 * config/m32c/m32c-pragma.c
928 * po/exgettext: Look in c-family/ also.
930 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
932 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
933 (mark_control_dependent_edges_necessary): Call it instead of marking
934 the last statement manually.
935 (propagate_necessity): Likewise.
937 2010-06-05 Jan Hubicka <jh@suse.cz>
939 * basic-block.h (compute_dominance_frontiers): Updated.
940 (compute_idf): Likewise.
942 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
943 for dominance frontiers.
944 (rewrite_into_ssa): Update for bitmap heads in dominance
946 (insert_updated_phi_nodes_for): Likewise.
947 (update_ssa): Likewise.
948 * cfganal.c (compute_dominance_frontiers_1): Likewise.
949 (compute_dominance_frontiers): Likewise.
950 (compute_idf): Likewise.
951 * df-problems.c (df_md_local_compute): Likewise.
953 2010-06-05 Anatoly Sokolov <aesok@post.ru>
955 * target.h (struct gcc_target): Add memory_move_cost field.
956 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
957 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
958 * targhooks.c (default_memory_move_cost): New function.
959 * targhooks.h (default_memory_move_cost): Declare function.
960 * reload.h (memory_move_cost): Declare.
961 (memory_move_secondary_cost): Change type of 'in' argument to bool.
962 * reginfo.c (memory_move_cost): New function.
963 (memory_move_secondary_cost): Change type of 'in' argument to bool.
964 * ira.h (ira_memory_move_cost): Update comment.
965 * ira.c: (ira_memory_move_cost): Update comment.
966 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
967 with memory_move_cost.
968 * postreload.c (reload_cse_simplify_set): (Ditto.).
969 * reload1.c (choose_reload_regs): (Ditto.).
970 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
971 (MEMORY_MOVE_COST): Revise documentation.
973 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
974 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
975 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
976 type of 'in' argument to bool.
977 (TARGET_MEMORY_MOVE_COST): Define.
979 2010-06-05 Jan Hubicka <jh@suse.cz>
981 * ipa-pure-const.c (propagate): Fix typo in handling of functions
982 that cannot return. Be more careful when merging the results with
983 previously known ones.
985 2010-06-05 Matthias Klose <doko@ubuntu.com>
987 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
988 function to add the -iplugindir option.
989 (find_plugindir_spec_function): Add new declaration and function.
990 (static_spec_func): Use it for "find-plugindir".
992 2010-06-05 Jakub Jelinek <jakub@redhat.com>
995 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
996 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
997 statement expression.
999 2010-06-05 Jan Hubicka <jh@suse.cz>
1001 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
1002 (df_rd_problem_data): Convert sparse_invalidated_by_call,
1003 dense_invalidated_by_call to bitmap head.
1004 (df_rd_alloc, df_rd_bb_local_compute_process_def,
1005 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
1006 df_rd_start_dump, df_lr_verify_transfer_functions,
1007 df_live_verify_transfer_functions, df_chain_create_bb,
1008 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
1009 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
1010 df_simulate_one_insn_forwards, df_md_alloc,
1011 df_md_bb_local_compute_process_def,
1012 df_md_bb_local_compute_process_def, df_md_local_compute,
1013 df_md_transfer_function df_md_free): Update.
1015 2010-06-05 Joseph Myers <joseph@codesourcery.com>
1018 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
1019 target type for ADDR_EXPR; require no changes to qualifiers except
1021 * c-tree.h (c_build_type_variant): Remove.
1023 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1025 * genautomata.c (get_excl_set): Do work per element, not per char.
1026 (check_presence_pattern_sets): Similar.
1027 (check_absence_pattern_sets): Similar.
1029 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1031 * genautomata.c (curr_state_pass_num): Delete.
1032 (min_issue_delay_pass_states): Delete.
1033 (min_issue_delay): Delete.
1034 (initiate_min_issue_delay_pass_states): Delete.
1035 (output_min_issue_delay_table): Compute min_issue_delay_vect
1036 using a breadth-first search variant.
1037 (output_tables): Don't call initiate_min_issue_delay_pass_states.
1039 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
1042 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
1043 (df_byte_lr_bb_local_compute): Likewise.
1045 2010-06-03 Jason Merrill <jason@redhat.com>
1047 Implement noexcept operator (5.3.7)
1048 * c-common.c (c_common_reswords): Add noexcept.
1049 * c-common.h (enum rid): Add RID_NOEXCEPT.
1051 2010-06-04 Joseph Myers <joseph@codesourcery.com>
1053 * config/darwin-driver.c (darwin_default_min_version): Use
1054 GCC-specific formats in diagnostics.
1055 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
1057 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
1058 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
1059 eval_spec_function, handle_braces, process_brace_body, main,
1060 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
1061 getenv_spec_function, compare_version_strings,
1062 version_compare_spec_function): Use GCC-specific formats in
1065 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1067 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
1068 that operand 0 and operand 1 are equal.
1069 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
1070 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
1071 and operand 1 are equal.
1072 <default>: Ditto. Remove ??? comment.
1073 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
1074 and operand 1 are equal.
1075 <default>: Ditto. Remove ??? comment.
1076 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
1078 (*add<mode>_4) <default>: Ditto.
1079 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
1081 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
1083 * config/i386/i386-protos.h (ix86_print_operand): Declare.
1084 * config/i386/i386.c (ix86_print_operand): Make non-static.
1085 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
1086 * output.h (output_operand): Declare.
1087 * final.c (output_operand): Make non-static.
1089 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
1091 PR rtl-optimization/44013
1092 * sched-deps.c (add_dependence_list_and_free): Don't free lists
1093 when processing debug insns.
1096 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
1097 recursing. Check that recursion is bounded. Rename inner var
1098 to avoid hiding incoming argument.
1100 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1102 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
1107 (*addqi_ext_1_rex64): Ditto.
1108 (*addqi_ext_1): Ditto.
1110 (*addqi_4): Check for incdec_operand in QImode.
1112 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
1113 using SWI mode iterator.
1114 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
1115 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
1117 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
1118 using SWI mode iterator.
1120 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1123 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
1124 * c-format.c (gcc_diag_flag_specs): Add hash.
1125 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
1126 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
1127 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
1128 pp_c_cv_qualifiers. Handle qualifiers spelling here.
1129 (pp_c_type_qualifier_list): Call the function above.
1130 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
1131 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
1132 (WARN_FOR_QUALIFIERS): New macro.
1133 (convert_for_assignment): Use it.
1135 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
1137 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
1139 2010-06-04 Jan Hubicka <jh@suse.cz>
1141 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
1142 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
1143 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
1144 DF_BYTE_LR_OUT): Update for embedded bitmaps.
1145 * fwprop.c (single_def_use_enter_block): Likewise.
1146 * ddg.c (create_ddg_dep_from_intra_loop_link,
1147 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
1148 * loop-iv.c (latch_dominating_def): Likewise.
1149 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
1150 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
1151 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
1152 df_rd_transfer_function, df_rd_top_dump,
1153 df_rd_bottom_dump): Update.
1154 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
1155 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
1156 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
1157 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
1158 df_lr_verify_solution_start, df_lr_verify_solution_end,
1159 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
1160 df_live_free_bb_info, df_live_alloc, df_live_reset,
1161 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
1162 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
1163 df_live_verify_solution_start, df_live_verify_solution_end,
1164 df_live_verify_transfer_functions, df_chain_create_bb,
1165 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
1166 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1167 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1168 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
1169 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
1170 df_byte_lr_transfer_function, df_byte_lr_top_dump,
1171 df_byte_lr_bottom_dump, df_create_unused_note,
1172 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
1173 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
1174 df_md_transfer_function, df_md_init, df_md_confluence_0,
1176 df_md_top_dump, df_md_bottom_dump): Update.
1177 (struct df_lr_problem_data): Embedd bitmap headers.
1179 2010-06-04 Jan Hubicka <jh@suse.cz>
1181 * dce.c (dce_process_block): Do not re-scan already marked
1184 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
1186 PR rtl-optimization/39871
1187 PR rtl-optimization/40615
1188 PR rtl-optimization/42500
1189 PR rtl-optimization/42502
1190 * ira.c (init_reg_equiv_memory_loc: New function.
1191 (ira): Call it twice.
1192 * reload.h (calculate_elim_costs_all_insns): Declare.
1193 * ira-costs.c: Include "reload.h".
1194 (regno_equiv_gains): New static variable.
1195 (init_costs): Allocate it.
1196 (finish_costs): Free it.
1197 (ira_costs): Call calculate_elim_costs_all_insns.
1198 (find_costs_and_classes): Take estimated elimination costs
1200 (ira_adjust_equiv_reg_cost): New function.
1201 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
1202 * reload1.c (init_eliminable_invariants, free_reg_equiv,
1203 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
1204 (elim_bb): New static variable.
1205 (reload): Move code out of here into init_eliminable_invariants and
1206 free_reg_equiv. Call them.
1207 (calculate_elim_costs_all_insns): New function.
1208 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
1209 all callers changed. If FOR_COSTS is true, don't call alter_reg,
1210 but call note_reg_elim_costly if we turned a valid memory address
1211 into an invalid one.
1212 * Makefile.in (ira-costs.o): Depend on reload.h.
1214 2010-06-04 Julian Brown <julian@codesourcery.com>
1216 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
1219 2010-06-04 Richard Guenther <rguenther@suse.de>
1222 * cgraph.h (struct varpool_node): Add lto_file_data field.
1223 * lto-cgraph.c (input_varpool_node): Initialize it.
1225 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1227 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
1228 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
1229 predicate in "type" attribute calculation.
1230 (*addsi_1_zext): Ditto.
1231 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
1232 (*addsi_2_zext): Ditto.
1233 (*add<mode>_3): Ditto.
1234 (*addsi_3_zext): Ditto.
1235 (*add<mode>_5): Ditto.
1237 2010-06-03 Jan Hubicka <jh@suse.cz>
1239 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
1241 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1243 2010-06-03 Jan Hubicka <jh@suse.cz>
1245 * df-problems.c (df_create_unused_note, df_note_bb_compute):
1246 micro-optimize the checks when to add new note.
1248 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
1250 * final.c (output_asm_insn): Call
1251 targetm.asm_out.print_operand_punct_valid_p. Update comments.
1252 (output_operand): Call targetm.asm_out.print_operand. Update comments.
1253 (output_address): Call targetm.asm_out.print_operand_address.
1255 * target.h (struct gcc_target): Add print_operand,
1256 print_operand_address, and print_operand_punct_valid_p fields.
1257 * targhooks.h (default_print_operand): Declare.
1258 (default_print_operand_address): Declare.
1259 (default_print_operand_punct_valid_p): Declare.
1260 * targhooks.c (default_print_operand): Define.
1261 (default_print_operand_address): Define.
1262 (default_print_operand_punct_valid_p): Define.
1263 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
1264 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
1265 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1266 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
1267 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
1268 * vmsdbgout.c (addr_const_to_string): Update comment.
1269 * config/i386/i386.c (print_operand): Rename to...
1270 (ix86_print_operand): ...this. Make static.
1271 (print_operand_address): Rename to...
1272 (ix86_print_operand_address): ...this. Make static. Call
1273 ix86_print_operand instead of PRINT_OPERAND.
1274 (ix86_print_operand_punct_valid_p): New function.
1275 (TARGET_PRINT_OPERAND): Define.
1276 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1277 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1278 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
1279 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1280 (PRINT_OPERAND): Delete.
1281 (PRINT_OPERAND_ADDRESS): Delete.
1282 * config/i386/i386-protos.h (print_operand): Delete prototype.
1283 (print_operand_address): Delete prototype.
1285 2010-06-03 Richard Guenther <rguenther@suse.de>
1287 PR tree-optimization/44403
1288 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1289 Preserve pointer qualifiers.
1290 (vect_create_data_ref_ptr): Likewise.
1292 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
1295 * defaults.h (MAX_FIXED_MODE_SIZE): New.
1297 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
1299 2010-06-03 Jakub Jelinek <jakub@redhat.com>
1302 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
1303 return false if merging the bbs would lead to goto_locus
1304 location being lost from the IL.
1306 2010-06-03 Jan Hubicka <jh@suse.cz>
1307 Jakub Jelinek <jakub@redhat.com>
1309 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
1310 set->regs[i] is NULL or has just one entry.
1312 2010-06-03 Jan Hubicka <jh@suse.cz>
1314 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
1315 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
1317 2010-06-03 Paul Brook <paul@codesourcery.com>
1319 * config/arm/arm.c (FL_TUNE): Define.
1320 (arm_default_cpu, arm_cpu_select): Remove.
1321 (all_cores): Populate core field.
1322 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
1323 (arm_find_cpu): New function.
1324 (arm_handle_option): Lookup cpu/architecture names.
1325 (arm_override_options): Cleanup mcpu/march/mtune handling.
1326 (arm_file_start): Ditto.
1328 2010-06-03 Alan Modra <amodra@gmail.com>
1331 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
1332 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
1333 rtx to gen_load_toc_v4_PIC_1b. Tidy.
1334 (rs6000_emit_load_toc_table): Likewise.
1336 2010-06-02 Jan Hubicka <jh@suse.cz>
1338 * passes.c (init_optimization_passes): Put ipa reference
1339 after ipa pure-const.
1341 2010-06-02 Jan Hubicka <jh@suse.cz>
1343 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
1344 calls_read_all and calls_write_all.
1345 (get_reference_optimization_summary): Fix formatting.
1346 (is_proper_for_analysis): Check that decl is not readonly.
1347 (propagate_bits): Check CONST/PURE/noreturn flags.
1348 (ipa_init): Move all_module_statics to optimization_summary_obstack.
1349 (analyze_function): Ignore indirect edges.
1350 (copy_global_bitmap): For all module statics, do nothing.
1351 (generate_summary): Do not print calls_read_all/calls_write_all.
1352 (read_write_all_from_decl): Take node as argument; check
1353 cgraph_node_cannot_return.
1354 (propagate): Reorganize read_all/write_all computation;
1355 check indirect edges; check ecf flags; use all_module_statics
1356 in the results; do not free all_module_statics.
1357 (stream_out_bitmap): Handle all_module_statics.
1358 (ipa_reference_write_optimization_summary): Likewise; use
1359 varpool/cgraph encoders to get boundaries.
1360 (ipa_reference_read_optimization_summary): Read in all_module_statics;
1361 use it when possible.
1363 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1366 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
1367 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
1369 * doc/extend.texi (powerpc builtins): Document vec_recip,
1370 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
1372 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
1373 (rs6000_emit_swrsqrt): Ditto.
1374 (rs6000_emit_swdivsf): Delete.
1375 (rs6000_emit_swdivdf): Ditto.
1376 (rs6000_emit_swrsqrtsf): Ditto.
1378 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
1379 describe the reciprocal estimate support for each type.
1380 (recip_options): Map -mrecip=<opt> into option bits.
1381 (gen_2arg_fn_t): New typedef for binary rtx gen function.
1382 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
1383 reciprocal estimate instructions.
1384 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
1385 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
1386 Set up rs6000_recip_bits based on the -mrecip* options. Print the
1387 cost information if -mdebug=cost or -mdebug=reg.
1388 (rs6000_override_options): Set -mrecip-precision for power6, and
1389 power7 machines. If -mvsx or -mdfp, enable various options that
1390 came in previous instruction set ISAs, unless the option was
1391 explicitly disabled by the command line option. Parse
1392 -mrecip=<opt> options.
1393 (rs6000_builtin_vectorized_function): Add support for vectorizing
1394 the reciprocal estimate builtins and expansions.
1395 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
1396 (bdesc_2arg): Add reciprocal estimate builtins.
1397 (bdesc_1arg): Add reciprocal square root estimate builtins.
1398 (rs6000_expand_builtin): Rewrite to use a switch statement,
1399 instead of multiple if/then/elses. Add reciprocal estimate builtins.
1400 (rs6000_init_builtins): Create declarations for reciprocal
1402 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
1403 sized, prefer traditional floating point registers, if integer
1404 vector types, prefer altivec registers. Don't actually look at
1405 the memory address any more.
1406 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
1408 (rs6000_load_constant_and_splat): New helper function to load up
1409 the constant for reciprocal estimate instructions.
1410 (rs6000_emit_madd): New helper function for generating
1411 multiply/add type instructions, based on the current switches.
1412 (rs6000_emit_msub): Ditto.
1413 (rs6000_emit_mnsub): Ditto.
1414 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
1415 replace a divide with a reciprocal estimate and fixup, adding
1416 support for machines with high precision and vectors.
1417 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
1418 low precision machines.
1419 (rs6000_emit_swdiv): New common function to be called to replace a
1420 division with reciprocal estimate and fixup.
1421 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
1422 for double and vector types. Add support for high precision machines.
1424 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
1425 the reciprocal estimate instructions can be generated.
1426 (TARGET_FRE): Ditto.
1427 (TARGET_FRSQRTES): Ditto.
1428 (TARGET_FRSQRTE): Ditto.
1429 (RS6000_RECIP_*): New macros for reciprocal estimate support.
1431 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
1432 square root estimate on vectors.
1433 (re<mode>2): New insn for reciprocal division estimate on vectors.
1435 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
1437 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
1438 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
1439 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
1440 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
1441 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
1442 (RS6000_BUILTIN_RSQRT): Ditto.
1443 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
1444 floating point builtin.
1446 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1447 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
1448 __RECIP_PRECISION__ based on the command line switches.
1449 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
1451 * config/rs6000/rs6000.opt (-mrecip): Document add support for
1452 replacing division instructions with reciprocal estimate and fixup.
1453 (-mrecip=<opt>): New option.
1454 (-mrecip-precision): Ditto.
1456 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
1457 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
1458 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
1461 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
1462 (UNSPEC_VREFP): Ditto.
1463 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
1464 conterparts with regard to support of -mno-fused-madd and -ffast-math.
1465 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
1466 reciprocal estimate instructions to be generated.
1467 (altivec_vrefp): Ditto.
1469 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
1471 (rreg): New mode attribute for reciprocal estimate support.
1472 (recip<mode>3): New insn for division using reciprocal estimate
1474 (divide define_split): New define_split to convert floating point
1475 division to use reciprocal estimate if the user used the
1476 appropriate options and the split is run when we can add new
1477 pseudo registers for the fixup.
1478 (rsqrt<mode>2): New insn for reciprocal square root support.
1479 (recipsf3): Move into recip<mode>3.
1481 (fres): Use TARGET_FRES.
1482 (rsqrtsf2): Move into rsqrt<mode>2.
1483 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
1484 (copysignsf3): Add support for VSX.
1485 (fred): Use TARGET_FRE.
1487 (rsqrtdf_internal1): New function for frsqrte instruciton.
1489 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
1492 2010-06-03 Richard Guenther <rguenther@suse.de>
1495 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
1496 (set_user_assembler_libfunc): Likewise.
1498 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
1500 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
1502 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
1504 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
1505 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
1506 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
1507 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
1508 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
1509 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
1510 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
1511 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
1512 * defaults.h: Updated for above mentioned changes.
1514 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
1516 * c-common.c: Remove header include of tm_p.h.
1517 * Makefile.in (c-common.o): Remove TM_P_H dependency.
1519 2010-06-02 Jakub Jelinek <jakub@redhat.com>
1521 * tree.h (struct tree_decl_map): New type.
1522 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
1523 (tree_decl_map_hash): New prototype.
1524 (debug_expr_for_decl, value_expr_for_decl): Change into
1525 tree_decl_map hashtab from tree_map.
1526 (init_ttree): Adjust initialization.
1527 (tree_decl_map_hash): New function.
1528 (decl_debug_expr_lookup, decl_debug_expr_insert,
1529 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
1531 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1533 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
1535 * configure: Regenerate.
1536 * config.in: Regenerate.
1538 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
1539 (X86_64_EMULATION): Define.
1540 (TARGET_LD_EMULATION): Use them.
1542 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
1543 (SPARC64_EMULATION): Define.
1544 (LINK_ARCH_SPEC): Use them.
1546 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
1548 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
1549 smallest_mode_for_size for computing the precision types of new
1550 graphite IVs. Do not call lang_hooks.types.type_for_size.
1552 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
1554 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
1556 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
1558 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
1561 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
1562 return false instead.
1564 2010-06-02 Jan Hubicka <jh@suse.cz>
1567 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
1568 create new cgraph node to check callee.
1570 2010-06-02 Richard Guenther <rguenther@suse.de>
1572 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
1574 2010-06-02 Richard Guenther <rguenther@suse.de>
1576 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
1577 (lto_wrapper_cleanup): ... this. Do not exit.
1578 (fatal): Adjust. Exit here.
1579 (fatal_perror): Likewise.
1580 (fatal_signal): New function.
1581 (main): Set up signal handlers to cleanup temporary files.
1582 * Makefile.in (lto-wrapper.o): Adjust dependencies.
1584 2010-06-02 Richard Guenther <rguenther@suse.de>
1586 PR tree-optimization/44377
1587 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
1589 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1591 * config/s390/2097.md (z10_fhex): Remove insn reservation.
1592 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
1593 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
1594 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
1596 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
1598 2010-06-02 Jan Hubicka <jh@suse.cz>
1600 * bitmap.c (bitmap_descriptor): Add search_iter.
1601 (bitmap_find_bit): Increment it.
1602 (print_statistics): Print it.
1604 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
1606 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
1607 instead of gimple_build_call_vec. Delete unnecessary local variable.
1609 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
1611 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
1612 change from yesterday.
1614 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
1616 * c-ada-spec.c: Clean up redundant includes.
1618 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
1620 * gimplify.c: Do not include except.h and optabs.h.
1621 (gimplify_body): Do not initialize RTL profiling.
1622 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
1623 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
1624 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
1625 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
1628 * tree-pretty-print.h: Include pretty-print.h.
1629 * gimple-pretty-print.h: Include pretty-print.h.
1631 * tree-pretty-print.c: Do not include diagnostic.h.
1632 * tree-vrp.c: Likewise.
1633 * tree-tailcall.c: Likewise
1634 * tree-scalar-evolution.c: Likewise
1635 * tree-ssa-dse.c: Likewise
1636 * tree-chrec.c: Likewise
1637 * tree-ssa-sccvn.c: Likewise
1638 * tree-ssa-copyrename.c: Likewise
1639 * tree-nomudflap.c: Likewise
1640 * tree-call-cdce.c: Likewise
1641 * tree-stdarg.c: Likewise
1642 * tree-ssa-math-opts.c: Likewise
1643 * tree-nrv.c: Likewise
1644 * tree-ssa-sink.c: Likewise
1645 * tree-browser.c: Likewise
1646 * tree-ssa-loop-ivcanon.c: Likewise
1647 * tree-ssa-loop.c: Likewise
1648 * tree-parloops.c: Likewise
1649 * tree-ssa-address.c: Likewise
1650 * tree-ssa-ifcombine.c: Likewise
1651 * tree-if-conv.c: Likewise
1652 * tree-data-ref.c: Likewise
1653 * tree-affine.c: Likewise
1654 * tree-ssa-phiopt.c: Likewise
1655 * tree-ssa-coalesce.c: Likewise
1656 * tree-ssa-pre.c: Likewise
1657 * tree-ssa-live.c: Likewise
1658 * tree-predcom.c: Likewise
1659 * tree-ssa-forwprop.c: Likewise
1660 * tree-ssa-dce.c: Likewise
1661 * tree-ssa-ter.c: Likewise
1662 * tree-ssa-loop-prefetch.c: Likewise
1663 * tree-optimize.c: Likewise
1664 * tree-ssa-phiprop.c: Likewise
1665 * tree-object-size.c: Likewise
1666 * tree-outof-ssa.c: Likewise
1667 * tree-ssa-structalias.c: Likewise
1668 * tree-switch-conversion.c: Likewise
1669 * tree-ssa-reassoc.c: Likewise
1670 * tree-ssa-operands.c: Likewise
1671 * tree-vectorizer.c: Likewise
1672 * tree-vect-data-refs.c: Likewise
1673 * tree-vect-generic.c: Likewise
1674 * tree-vect-stmts.c: Likewise
1675 * tree-vect-patterns.c: Likewise
1676 * tree-vect-slp.c: Likewise
1677 * tree-vect-loop.c: Likewise
1678 * tree-ssa-loop-ivopts.c: Likewise
1679 * tree-ssa-loop-im.c: Likewise
1680 * tree-ssa-loop-niter.c: Likewise
1681 * tree-ssa-loop-unswitch.c: Likewise
1682 * tree-ssa-loop-manip.c: Likewise
1683 * tree-ssa-loop-ch.c: Likewise
1684 * tree-dump.c: Likewise
1685 * tree-complex.c: Likewise
1687 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
1688 * tree-ssa-uninit.c: Likewise
1689 * tree-ssa-threadupdate.c: Likewise
1690 * tree-ssa-uncprop.c: Likewise
1691 * tree-ssa-ccp.c: Likewise
1692 * tree-ssa-dom.c: Likewise
1693 * tree-ssa-propagate.c: Likewise
1694 * tree-ssa-alias.c: Likewise
1695 * tree-dfa.c: Likewise
1696 * tree-cfgcleanup.c: Likewise
1697 * tree-sra.c: Likewise
1698 * tree-ssa-copy.c: Likewise
1699 * tree-ssa.c: Likewise
1700 * tree-profile.c: Likewise
1701 * tree-cfg.c: Likewise
1702 * tree-ssa-threadedge.c: Likewise
1703 * tree-vect-loop-manip.c: Likewise
1705 * tree-inline.c: Do not include diagnostic.h and expr.h.
1707 (copy_decl_for_dup_finish): Do not use NULL_RTX.
1709 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
1710 * tree-loop-distribution.c: Likewise.
1712 2010-06-01 Jan Hubicka <jh@suse.cz>
1714 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
1716 2010-06-01 Jan Hubicka <jh@suse.cz>
1718 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
1719 remove return value.
1720 (split_bbs_on_noreturn_calls) .... here.
1721 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
1722 * tree-flow.h (fixup_noreturn_call): New.
1724 2010-06-01 Jan Hubicka <jh@suse.cz>
1726 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
1728 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
1730 * tree.h (build_nt_call_list): Delete.
1731 * tree.c (build_nt_call_list): Delete.
1733 2010-06-01 Jan Hubicka <jh@suse.cz>
1735 * fwprop.c: Make emit-rtl.h include last.
1736 * rtlanal.c: Include emit-rtl.h.
1737 * genautomata.c: Output emit-rtl include into insn-automata.c
1738 * df-scan.c: Include emit-rtl.h.
1739 * haifa-sched.c: Indlude emit-rtl.h.
1740 * mode-switching.c: Indlude emit-rtl.h.
1741 * graph.c: Indlude emit-rtl.h.
1742 * sel-sched.c: Include emit-rtl.h.
1743 * sel-sched-ir.c: Include emit-rtl.h.
1744 * ira-build.c: Include emit-rtl.h.
1745 * emit-rtl.c: (first_insn, last_insn): Remove defines.
1746 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
1748 (set_new_first_and_last_insn, get_last_insn_anywhere,
1749 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
1750 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
1751 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
1752 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
1753 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
1754 Use accessor functions.
1755 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
1756 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
1757 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
1758 mem_expr_equal_p): Move here from rtl.h.
1759 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
1760 Move here from emit-rtl.c; make inline.
1761 * cfglayout.h: Include emit-rtl.h.
1762 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
1763 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
1764 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
1765 mem_expr_equal_p, get_insns, set_first-insn,
1766 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
1767 * reg-stack.c: Include emit-rtl.h.
1770 2010-06-01 Jan Hubicka <jh@suse.cz>
1772 * cgraph.h (tree_function_versioning): Update prototype.
1773 (cgraph_function_versioning): Update prototype.
1774 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
1776 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
1777 (cgraph_materialize_clone, save_inline_function_body): Update use of
1778 tree_function_versioning.
1779 * tree-inline.c (copy_bb): Look for previous copied block to link
1780 after; fix debug output.
1781 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
1782 (copy_body): Likewise.
1783 (expand_call_inline): Update use of copy_body.
1784 (tree_function_versioning): Update use of copy body; accept
1785 blocks_to_copy and new_entry.
1787 2010-06-01 Jan Hubicka <jh@suse.cz>
1789 * gegenrtl.c: Remove unnecesary prototypes.
1791 (gendef): Produce static inline.
1793 (main): Do not decode parameters; generate header only.
1794 * Makefile.in (genrtl.c): Remove.
1796 2010-06-01 Jan Hubicka <jh@suse.cz>
1798 * tree-switch-conversion.c (build_one_array): Make it readonly.
1800 2010-06-01 Richard Guenther <rguenther@suse.de>
1802 * optabs.c (init_optabs): Guard all accesses to reinit.
1803 * ipa-pure-const.c (propagate): Fix another typo.
1804 * opts.c (common_handle_option): Split assignment to bool.
1805 * c-opts.c (c_common_handle_option): Likewise.
1807 2010-06-01 Arnaud Charlet <charlet@adacore.com>
1808 Matthew Gingell <gingell@adacore.com>
1810 * doc/invoke.texi: Mention -fdump-ada-spec.
1811 * tree-dump.c (dump_files): Add ada-spec.
1812 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
1813 * tree-pass.h (tree_dump_index): Add TDI_ada.
1814 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
1815 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
1816 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
1817 * c-decl.c: Include c-ada-spec.h.
1818 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
1820 (c_write_global_declarations): Add handling of -fdump-ada-spec.
1821 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
1822 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
1823 * c-ada-spec.h, c-ada-spec.c: New files.
1825 2010-06-01 Richard Guenther <rguenther@suse.de>
1828 * ipa-pure-const.c (get_function_state): Hand back varying state
1829 if we do not have one.
1830 (has_function_state): New function.
1831 (duplicate_node_data): Adjust.
1832 (remove_node_data): Likewise.
1833 (pure_const_write_summary): Likewise.
1834 (propagate): Likewise. Fix typo.
1836 2010-06-01 Jan Hubicka <jh@suse.cz>
1838 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
1839 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
1840 (execute_all_ipa_transforms): Do not play with the states.
1842 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
1844 * config/arm/t-linux-androideabi: New.
1845 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
1847 2010-06-01 Jan Hubicka <jh@suse.cz>
1849 * tree-inline.c (estimate_num_insns): For stdarg functions look
1850 into call statement to count cost of argument passing.
1852 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
1854 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
1855 argument for fprintf.
1856 (ix86_output_addr_diff_elt): Likewise.
1857 (x86_function_profiler): Likewise.
1858 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
1859 (LPREFIX): Likewise.
1860 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1862 2010-05-31 Jakub Jelinek <jakub@redhat.com>
1865 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
1866 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
1867 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
1868 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
1869 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
1870 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
1871 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
1872 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
1875 2010-05-31 Jan Hubicka <jh@suse.cz>
1877 * tree.h (tree_range_check_failed): Declare noreturn.
1879 2010-05-31 Jan Hubicka <jh@suse.cz>
1881 * gimple.c (gimple_call_builtin_p): New function.
1882 * gimple.h (gimple_call_builtin_p): Declare.
1883 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
1885 (execute_warn_function_return): BUILT_IN_RETURN is return.
1886 (split_critical_edges): Return edges are not critical.
1887 (is_ctrl_altering_stmt): Builtin_in_return is altering.
1888 (gimple_verify_flow_info): Handle built_in_return.
1889 (execute_warn_function_return): Handle built_in_return.
1890 * ipa-pure-const.c (check_call): Ignore builtin_return.
1892 2010-05-31 Jakub Jelinek <jakub@redhat.com>
1895 * expr.c (expand_assignment): Don't store anything for out-of-bounds
1896 array accesses with non-MEM.
1898 PR tree-optimization/44182
1899 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
1900 newly needs to end a bb is followed by debug stmts, instead return
1901 true from the function at the end.
1902 (maybe_move_debug_stmts_to_successors): New function.
1903 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
1905 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
1908 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
1910 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
1912 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
1913 for nested functions in non-optimized compilation.
1915 2010-05-31 Richard Guenther <rguenther@suse.de>
1917 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
1919 2010-05-30 Jan Hubicka <jh@suse.cz>
1921 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
1923 2010-05-30 Richard Guenther <rguenther@suse.de>
1926 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
1927 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
1930 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
1932 * config/darwin.c (output_objc_section_asm_op): Add comment.
1933 (name_needs_quotes): Add '_' to list of valid comment chars.
1934 (machopic_output_function_base_name): Remove unneeded quotes.
1935 (darwin_encode_section_info): Adjust asm whitespace.
1936 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
1937 (ASM_OUTPUT_LOCAL): Ditto.
1938 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
1939 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
1940 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
1942 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
1944 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
1945 RS6000_OUTPUT_BASENAME unconditionally.
1946 (rs6000_output_function_epilogue): Likewise.
1948 2010-05-30 Jan Hubicka <jh@suse.cz>
1950 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
1953 2010-05-30 Richard Guenther <rguenther@suse.de>
1955 * tree-cfg.c (verify_gimple_assign_single): Implement
1956 verification for COND_EXPR rhs.
1958 2010-05-30 Jan Hubicka <jh@suse.cz>
1960 * cgraph.h (cgraph_dump_file): Declare.
1961 * cgraphunit.c (cgraph_dump_file): Export.
1962 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
1964 2010-05-30 Jan Hubicka <jh@suse.cz>
1966 * dwarf2out.c (reference_to_unused,
1967 premark_types_used_by_global_vars_helper): Avoid creation of new
1970 2010-05-30 Jan Hubicka <jh@suse.cz>
1972 * cgraph.h (cgraph_node_cannot_return,
1973 cgraph_edge_cannot_lead_to_return): New functions.
1974 * cgraph.c (cgraph_node_cannot_return,
1975 cgraph_edge_cannot_lead_to_return): Use them.
1976 * ipa-pure-const.c (pure_const_names): New static var.
1977 (check_call): Handle calls not leading to return.
1978 (pure_const_read_summary): Dump info read.
1979 (propagate): Dump info about propagation process; ignore side effects
1980 of functions not leading to exit; fix handling of pure functions.
1982 2010-05-30 Jan Hubicka <jh@suse.cz>
1984 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
1985 for tail call epilogues.
1987 2010-05-30 Jan Hubicka <jh@suse.cz>
1989 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
1990 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
1993 2010-05-29 Jan Hubicka <jh@suse.cz>
1995 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
1996 node; remove references in node we no longer keep in cgrpah but need
1999 2010-05-29 Jan Hubicka <jh@suse.cz>
2001 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
2003 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2006 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
2008 2010-05-29 Jan Hubicka <jh@suse.cz>
2010 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
2011 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
2012 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
2013 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
2014 debug_names_replaced_by, debug_update_ssa): Likewise.
2015 * sbitmap.c (debug_sbitmap): Likewise.
2016 * genrecog.c (debug_decision, debug_decision_list): Likewise.
2017 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
2018 debug_tree_chain): Likewise.
2019 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
2020 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
2021 * optabs.c (debug_optab_libfuncs): Likewise.
2022 (verify_loop_closed_ssa): Likewise.
2023 * value-prof.c (verify_histograms): Likewise.
2024 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
2025 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
2026 * cfghooks.c (verify_flow_info): Likewise.
2027 * fold-const.c (debug_fold_checksum): Likewise.
2028 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
2029 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
2031 * omega.c (debug_omega_problem): Likewise.
2032 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
2033 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
2034 * dominance.c (verify_dominators, debug_dominance_info,
2035 debug_dominance_tree): Likewise.
2036 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
2037 * df_regno_debug, df_ref_debug,
2038 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
2039 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
2040 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
2041 * sel-sched.c (debug_state): Likewise.
2042 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
2044 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
2045 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
2046 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
2047 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
2049 * c-pretty-print.c (debug_c_tree): Likewise.
2050 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
2051 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
2052 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
2053 * ebitmap.c (debug_ebitmap): Likewise.
2054 * function.c (debug_find_var_in_block_tree): Likewise.
2055 * print-rtl.c (debug_rtx): Likewise.
2056 (debug_rtx_count): Likewise.
2057 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
2058 * stor-layout.c (debug_rli): Likewise.
2059 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
2060 * tree-data-ref.c (debug_data_references,
2061 debug_data_dependence_relations, debug_data_reference,
2062 debug_data_dependence_relation, debug_rdg_vertex,
2063 debug_rdg_component, debug_rdg): Likewise.
2064 * tree-affine.c (debug_aff): Likewise.
2065 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
2067 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
2068 * emit-rtl.c (verify_rtl_sharing): Likewise.
2069 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
2070 debug_value_expressions): Likewise.
2071 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
2072 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
2073 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
2074 * cfglayout.c (verify_insn_chain): Likewise.
2075 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
2076 debug_clast_stmt, debug_generated_program): Likewise.
2077 * ggc-page.c (debug_print_page_list): Likewise.
2078 * tree-ssa-ter.c (debug_ter): Likewise.
2079 * graphite-dependences.c (debug_pddr): Likewise.
2080 * sched-deps.c (debug_ds): Likewise.
2081 * tree-ssa.c (verify_ssa): Likewise.
2082 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
2083 debug_scattering_functions, debug_iteration_domains, debug_pdr,
2084 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
2085 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
2086 * tree-inline.c (debug_find_tree): Likewise.
2087 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
2088 debug_ppl_powerset_matrix): Likewise.
2089 * var-tracking.c (debug_dv): Likewise.
2090 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
2091 * cfgloop.c (verify_loop_structure): Likewise.
2092 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
2093 * c-common.c (verify_sequence_points): Likewise.
2094 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
2095 debug_candidates, debug_rgn_dependencies): Likewise.
2096 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
2097 * debug_constraint_graph, debug_solution_for_var,
2098 debug_sa_points_to_info): Likewise.
2099 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
2101 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
2102 debug_loops, debug_loop, debug_loop_num): Likewise.
2103 * passes.c (debug_pass): Likewise.
2104 (dump_properties): Likewise; add cfglayout property.
2105 (debug_properties): Likewise.
2106 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
2107 * varpool.c (debug_varpool): Likewise.
2108 * regcprop.c (debug_value_data): Likewise.
2109 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
2110 debug_immediate_uses_for): Likewise.
2112 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2115 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
2116 Filter out insn-flags.h.
2118 2010-05-29 Jan Hubicka <jh@suse.cz>
2120 * cgraph.h (struct varpool_node_set_def,
2121 struct cgraph_node_set_def): Remove unused AUX pointer.
2122 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
2125 2010-05-29 Jan Hubicka <jh@suse.cz>
2128 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
2130 2010-05-29 Richard Guenther <rguenther@suse.de>
2132 * lto-streamer.c (cached_bp): New global variable.
2133 (bitpack_create): Return the cached bitpack, if available.
2134 (bitpack_delete): Clear and cache the bitpack, if appropriate.
2135 (bp_pack_value): Remove redundant asserts.
2137 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2140 * tree-if-conv.c (is_true_predicate): New.
2141 (is_predicated): Use is_true_predicate.
2142 (add_to_predicate_list): Same. Do not use unshare_expr.
2143 (add_to_dst_predicate_list): Same.
2145 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2147 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
2149 (predicate_bbs): Same.
2150 (clean_predicate_lists): Same.
2151 (find_phi_replacement_condition): Do not AND the predicate from
2154 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2157 * Makefile.in (build/gencondmd.o): Add a missing `\'.
2159 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2162 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
2163 (negdf2): Adjust expander pattern and use negdf2_slow.
2166 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
2168 * basic-block.h (struct control_flow_graph): Move last_label_uid field
2170 * df.h (struct df_base_ref): Move regno field up.
2171 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
2172 * expr.h (struct separate_ops): Move location field up.
2173 * optabs.h (struct optab_d): Move libcall_basename field down.
2174 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
2175 * config/i386/i386.h (struct machine_function): Convert call_abi field
2176 into a bitfield. Move cfa field to the end of the structure.
2178 2010-05-29 Jan Hubicka <jh@suse.cz>
2180 * varpool.c (varpool_get_node): Fix lookup.
2182 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2184 * config/spu/spu-protos.h: Do not include rtl.h. Protect
2185 RTL specific prototypes with #ifdef RTX_CODE.
2186 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
2187 * config/spu/t-spu-elf: Fix dependencies.
2189 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
2191 2010-05-29 Mike Stump <mikestump@comcast.net>
2194 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
2195 TM_H when building to avoid dependency loops.
2197 2010-05-29 Jan Hubicka <jh@suse.cz>
2199 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
2200 refs and body; not the whole node for masters of materialized
2203 2010-05-29 Mike Stump <mikestump@comcast.net>
2205 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
2207 2010-05-29 Jan Hubicka <jh@suse.cz>
2209 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
2210 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
2211 use of clone_function_name.
2212 * cgraph.h (cgraph_create_virtual_clone,
2213 cgraph_function_versioning): update prototypes.
2214 (clone_function_name): Declare.
2215 * ipa-cp.c (ipcp_insert_stage): Update call of
2216 cgraph_create_virtual_clone.
2217 * omp-low.c (create_omp_child_function_name): Use
2218 cgraph_create_virtual_clone.
2219 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
2220 (cgraph_function_versioning): Take SUFFIX argument; produce new name
2221 and make decl local.
2223 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2225 * vec.h: Include statistics.h
2226 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
2229 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2231 * c-lex.c: Do not include c-tree.h.
2232 * c-pretty-print.c: Likewise.
2233 * c-opts.c: Likewise.
2234 * c-gimplify.c: Likewise.
2235 * c-common.c: Likewise.
2236 * c-dump.c: Likewise. Include c-common.h.
2238 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2240 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
2241 before including diagnostic-core.h.
2242 (c_cpp_error): New prototype moved from c-tree.h.
2243 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
2244 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
2245 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
2246 (c_cpp_error): Prototype moved to c-common.h.
2247 * Makefile.in: Update dependency for C_COMMON_H.
2249 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2251 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
2252 * c-common.c (c_register_addr_space): Remove here.
2253 * c-decl.c (c_register_addr_space): Re-add here.
2255 2010-05-28 Mike Stump <mikestump@comcast.net>
2257 * config/darwin-c.c: Remove c-tree.h include.
2259 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2261 * gcc.c: Include diagnostic.h.
2262 (error_count): Remove. All users changed to use errorcount.
2263 (programname): Remove. All users changed to use progname.
2264 (fancy_abort, internal_error, fatal_error, error, warning, inform,
2266 (execute): Don't include "Internal error" and bug reporting
2267 information in argument of internal_error call.
2268 (process_command): Don't increment error_count after calling
2270 (input_filename): Rename to gcc_input_filename. All users
2272 (main): Call diagnostic_initialize. Register delete_temp_files
2273 with atexit. Use seen_error to test for errors.
2274 * gcc.h: Include diagnostic-core.h.
2275 (fatal_error, error, warning): Remove.
2276 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
2277 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
2278 (gcc.o): Update dependencies.
2280 2010-05-28 Jeff Law <law@redhat.com>
2282 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
2284 * ira.h (ira_bad_reload_regno): Declare
2285 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
2287 * ira-color.c (update_curr_costs): Free updated hard reg costs.
2288 (ira_reassign_conflict_allocnos): Remove bogus asserts.
2289 (allocno_reload_assign): Likewise.
2291 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
2293 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
2296 2010-05-28 Richard Guenther <rguenther@suse.de>
2299 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
2300 Stream fixed-point constants mode.
2301 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
2303 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
2304 Stream fixed-point constants mode.
2305 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
2308 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2310 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
2311 only place it was called from.
2312 (number_of_latch_executions): Do not return chrec_dont_know when the
2313 may_be_zero is a runtime condition: instead, return a COND_EXPR
2314 including the may_be_zero condition.
2315 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
2317 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
2320 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2322 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
2323 generate COND_EXPRs for degenerate_phi_result.
2325 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2328 * tree-if-conv.c (if_convertible_loop_p): Check the
2329 if-convertibility of phi nodes in non predicated BBs.
2331 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2333 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
2335 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2338 * gcc.c (inform, warning, inform): New functions.
2339 (fatal_ice): Rename to internal_error; change cmsgid parameter to
2340 gmsgid. All callers changed.
2341 (notice): Rename to fnotice; add parameter fp. All callers
2343 (fatal_error): Rename to fatal_signal. All users changed.
2344 (fatal): Rename to fatal_error; change cmsgid parameter to
2345 gmsgid. All callers changed.
2346 (process_command): Use warning instead of error for warnings.
2347 (end_going_arg): Don't use _() around argument of error.
2348 (do_spec_1): Use inform for message from %n specs. Use warning
2349 instead of error for warnings.
2350 (main): Use inform for comparison messages. Use warning for
2351 message about unused linker input.
2352 (error): Increment error_count. Print "error: ".
2353 * gcc.h (fatal): Change to fatal_error.
2355 * config/darwin-driver.c (darwin_default_min_version): Use warning
2356 instead of fprintf for warnings.
2357 * cppspec.c (lang_specific_driver): Use fatal_error instead of
2360 2010-05-28 Julian Brown <julian@codesourcery.com>
2362 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
2363 (*thumb2_addsi3_compare0_scratch): New.
2364 * config/arm/constraints.md (Pv): New.
2365 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
2367 (*addsi3_compare0_scratch): Likewise.
2369 2010-05-28 Jan Hubicka <jh@suse.cz>
2371 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
2373 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
2374 only on local statics.
2376 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
2378 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
2380 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2383 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
2384 (OPTION_GLIBC): Define.
2386 2010-05-28 Jakub Jelinek <jakub@redhat.com>
2389 * dwarf2out.c (double_int_type_size_in_bits): New function.
2390 (round_up_to_align): Change first argument and return value to
2392 (field_byte_offset): Work internally on double_ints.
2395 * builtins.c (expand_movstr): Use a temporary pseudo instead
2396 of target even when target is not NULL and not const0_rtx, but
2397 fails movstr predicate.
2398 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
2400 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2402 * final.c (rest_of_clean_state): Use %m in errors instead of
2404 * gengtype.c (read_input_list, close_output_files): Use xstrerror
2405 instead of strerror.
2406 * toplev.c (process_options): Use %m in errors instead of strerror
2408 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
2411 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
2413 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
2414 (ix86_canonical_va_list_type): Make static. Add declaration.
2415 (ix86_enum_va_list): Make static. Reindent.
2416 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
2417 (ix86_canonical_va_list_type): Ditto.
2418 (ix86_enum_va_list): Ditto.
2420 2010-05-28 Richard Guenther <rguenther@suse.de>
2422 * lto-wrapper.c (run_gcc): With -save-temps generate a
2423 user-visible ltrans filename. Fixup ltrans unit numbering.
2425 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
2427 * c-common.c (c_common_nodes_and_builtins): Replace use
2428 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
2429 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
2430 to ix86_enum_va_list.
2431 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
2432 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
2433 (TARGET_ENUM_VA_LIST_P): Add hook description.
2434 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
2435 * target.h (gcc_target): Add enum_va_list hook.
2438 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
2439 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
2440 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
2442 2010-05-28 Alan Modra <amodra@gmail.com>
2445 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2446 emit_library_call machinery to set up __tls_get_addr calls.
2448 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2450 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
2452 2010-05-28 Dodji Seketeli <dodji@redhat.com>
2454 Revert fix for PR c++/44188
2455 * c-common.c (is_typedef_decl): Revert the moving of this
2457 * tree.c (is_typedef_decl): ... here.
2458 (typdef_variant_p): Revert the moving of this definition
2459 here from gcc/cp/tree.c.
2460 * c-common.h (is_typedef_decl): Revert the moving of this
2462 * tree.h (is_typedef_decl): ... here.
2463 (typedef_variant_p): Revert the moving of this declaration here
2464 from gcc/cp/cp-tree.h
2465 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
2466 (gen_tagged_type_die): Revert the splitting out of ...
2467 (gen_type_die_with_usage): ... this function. Revert the anonymous
2468 tagged type handling.
2469 (gen_typedef_die): Revert emitting DW_TAG_typedef for
2470 typedefs naming anonymous tagged types.
2472 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
2474 * config/rs6000/rs6000-modes.def (PSImode): Delete.
2476 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
2478 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
2479 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
2481 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
2483 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
2484 XER_REGS to CA_REGS throughout.
2485 * config/rs6000/rs6000.h: Same.
2486 (ADDITIONAL_REGISTER_NAMES): Add "xer".
2487 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
2488 that mode_iterator "P" is the size for arithmetic carries as well.
2489 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
2491 2010-05-28 Jakub Jelinek <jakub@redhat.com>
2494 * combine.c (struct rtx_subst_pair): Define unconditionally.
2495 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
2496 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
2497 Call make_compound_operation on pair->to.
2498 (propagate_for_debug): Don't call make_compound_operation here.
2499 Always use simplify_replace_fn_rtx.
2501 2010-05-27 Sterling Augustine <sterling@tensilica.com>
2503 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
2504 * config/xtensa/xtensa.c (override_options): Check
2505 TARGET_FORCE_NO_PIC and set flag_pic.
2506 * config/xtensa/xtensa.opt: Document -mforce-no-pic
2508 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
2511 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
2512 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
2514 2010-05-27 Joseph Myers <joseph@codesourcery.com>
2516 * diagnostic-core.h: New. Contents moved from diagnostic.h and
2518 * diagnostic.c: Don't include toplev.h.
2519 (progname): Define. Moved from toplev.c.
2520 (seen_error): New function.
2521 * diagnostic.h: Include diagnostic-core.h.
2522 (diagnostic_t, emit_diagnostic): Don't declare here.
2523 * toplev.c (progname): Move to toplev.c.
2524 (emit_debug_global_declarations, compile_file, finalize,
2525 do_compile, toplev_main): Use seen_error.
2526 * toplev.h: Include diagnostic-core.h.
2527 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
2528 internal_error, warning, warning_at, error, error_n, error_at,
2529 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
2530 verbatim, fnotice, progname): Move to diagnostic-core.h.
2531 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
2532 (expand_builtin_expect): Use seen_error.
2533 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
2534 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
2535 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
2536 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
2537 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
2538 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
2539 errorcount for errors.
2540 * c-opts.c (c_common_finish): Use seen_error.
2541 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
2542 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
2543 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
2544 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
2545 (get_coverage_counts): Use seen_error.
2546 * dwarf2out.c (dwarf2out_finish): Use seen_error.
2547 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
2548 gimplify_body): Use seen_error.
2549 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
2550 * ipa-pure-const.c (gate_pure_const): Use seen_error.
2551 * ipa-reference.c (gate_reference): Use seen_error.
2552 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
2553 * lambda-code.c: Include diagnostic-core.h instead of
2555 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
2556 * lto-compress.c: Include diagnostic-core.h instead of
2558 * lto-section-in.c: Include diagnostic-core.h instead of
2560 * lto-streamer-out.c: Include diagnostic-core.h instead of
2562 * lto-streamer.c: Include diagnostic-core.h instead of
2564 (gate_lto_out): Use seen_error.
2565 * matrix-reorg.c: Include diagnostic-core.h instead of
2567 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
2568 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
2569 (gate_expand_omp, lower_omp_1): Use seen_error.
2570 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
2571 (rest_of_decl_compilation, rest_of_type_compilation,
2572 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
2573 * tree-cfg.c (label_to_block_fn): Use seen_error.
2574 * tree-inline.c (optimize_inline_calls): Use seen_error.
2575 * tree-mudflap.c (mudflap_finish_file): Use
2577 * tree-optimize.c (gate_all_optimizations,
2578 gate_all_early_local_passes, gate_all_early_optimizations): Use
2580 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
2581 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
2582 (varpool_remove_unreferenced_decls,
2583 varpool_assemble_pending_decls): Use seen_error.
2584 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
2585 (TOPLEV_H, DIAGNOSTIC_H): Update.
2586 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
2587 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
2588 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
2589 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
2590 coverage.o, lambda-code.o): Update dependencies.
2592 2010-05-25 Dodji Seketeli <dodji@redhat.com>
2595 * c-common.c (is_typedef_decl): Move this definition ...
2596 * tree.c (is_typedef_decl): ... here.
2597 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
2598 * c-common.h (is_typedef_decl): Move this declaration ...
2599 * tree.h (is_typedef_decl): ... here.
2600 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
2601 * dwarf2out.c (is_naming_typedef_decl): New function.
2602 (gen_tagged_type_die): Split out of ...
2603 (gen_type_die_with_usage): ... this function. When an anonymous
2604 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
2605 is emitted for the typedef.
2606 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
2607 anonymous tagged types.
2609 2010-05-27 Jason Merrill <jason@redhat.com>
2611 * print-tree.c (debug_vec_tree): New fn.
2612 (print_vec_tree): New fn.
2613 * tree.h: Declare them.
2614 * gdbinit.in (pvt): New command.
2616 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
2618 * gdbinit.in (pdd): New command.
2620 2010-05-27 Jan Hubicka <jh@suse.cz>
2622 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
2623 (update_caller_keys): Return early if there are no callers;
2624 only update fibheap when decresing the key.
2625 (update_callee_keys): Avoid recursion.
2626 (decide_inlining_of_small_functions): When badness does not match;
2627 re-insert into fibheap.
2629 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
2631 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
2632 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
2633 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
2634 (ALL_HOST_OBJS): Now a union of the above two.
2635 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
2636 all files in ALL_HOST_FRONTEND_OBJS.
2637 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
2639 * c-common.c: Pretend to be a backend file by undefining
2640 IN_GCC_FRONTEND (still need rtl.h here).
2642 2010-05-27 Jan Hubicka <jh@suse.cz>
2644 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
2645 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
2647 2010-05-27 Jan Hubicka <jh@suse.cz>
2649 * sched-ebb.c: Rename struct deps to struct deps_desc.
2651 * sel-sched-ir.c: Likewise.
2652 * sched-deps.c: Likewise.
2653 * sched-int.h: Likewise.
2654 * sched-rgn.c: Likewise.
2656 2010-05-27 Jon Beniston <jon@beniston.com>
2659 * config/lm32/lm32.h: Remove definition of
2660 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
2662 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
2665 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
2667 2010-05-27 Richard Guenther <rguenther@suse.de>
2669 PR tree-optimization/44284
2670 * tree-vect-stmts.c (vectorizable_assignment): Handle
2671 sign-changing conversions as simple copy.
2673 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2675 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
2677 (__gthread_active_p): Check for pthread_create if compiling against
2680 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2682 Support compilation for Android platform. Reimplement -mandroid.
2684 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
2685 (*android*): Set ANDROID_DEFAULT.
2686 (arm*-*-linux*): Include linux-android.h.
2687 (arm*-*-eabi*): Don't include previous -mandroid implementation.
2688 * config/arm/eabi.h: Remove, move Android-specific parts ...
2689 * config/linux-android.h: ... here. New file.
2690 * config/arm/eabi.opt: Rename to ...
2691 * config/linux-android.opt: ... this.
2692 (mandroid): Allow -mno-android option. Initialize based on
2694 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
2695 Move logic to corresponding LINUX_TARGET_* macros.
2696 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
2697 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
2698 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
2699 Android definitions.
2700 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
2701 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
2704 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
2706 Add support for Bionic C library
2708 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
2710 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
2711 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
2713 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
2714 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
2715 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
2716 to support multiple C libraries. Handle Bionic.
2717 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
2718 (BIONIC_DYNAMIC_LINKER64): Define.
2719 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
2721 (TARGET_HAS_SINCOS): Enable for Bionic.
2723 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
2724 the last option specified on command line take effect.
2725 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
2727 (mglibc, muclibc): Update.
2729 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
2730 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
2733 * doc/invoke.texi (-mglibc, -muclibc): Update.
2734 (-mbionic): Document.
2736 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2738 * c-common.h (c_register_addr_space): Add prototype.
2739 (ADDR_SPACE_KEYWORD): Remove.
2740 * c-common.c (c_register_addr_space): New function.
2741 (c_addr_space_name): Reimplement.
2742 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
2744 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
2745 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
2747 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
2748 Remove TARGET_ADDR_SPACE_KEYWORDS.
2750 2010-05-27 Joseph Myers <joseph@codesourcery.com>
2752 * input.c: New file.
2753 * input.h (main_input_filename): Move declaration to toplev.h.
2754 * toplev.c (input_location, line_table): Move to input.c
2755 * toplev.h (main_input_filename): Move declaration from input.h.
2756 * tree.c (expand_location): Move to input.c.
2757 * Makefile.in (OBJS-common): Add input.o.
2758 (input.o): Add dependencies.
2760 2010-05-27 Richard Guenther <rguenther@suse.de>
2762 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
2763 for non-existant files.
2764 (fork_execute): Mark args_name file as deleted.
2766 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
2769 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
2770 (narrow_signed_type): Likewise.
2772 2010-05-26 Jan Hubicka <jh@suse.cz>
2774 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
2775 edge only when checking is enabled; check using former_clone_of;
2776 check inline clones too.
2777 (cgraph_materialize_clone): Record former_clone_of pointer.
2778 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
2779 combining redirections; dump args_to_skip bitmap
2780 (cgraph_materialize_all_clones): Do no redirection here.
2781 * ipa-inline.c (inline_transform): Do redirection here.
2782 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
2785 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2787 * config/avr/avr-c.c: Do not include regs.h.
2788 Include cpplib.h for cpp_define and tree.h for c-common.h.
2789 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
2790 * config/avr/t-avr: Fix dependencies for avr-c.o.
2792 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2794 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
2795 string instead of SYMBOL_REF rtx.
2796 * rtl.h (set_stack_check_libfunc): Move prototype from here...
2797 * libfuncs.h: ...to here. Adjust for explow.c change.
2799 2010-05-26 Joseph Myers <joseph@codesourcery.com>
2801 * pretty-print.c: Don't include ggc.h.
2802 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
2803 (identifier_to_locale): Use them for allocation.
2804 * pretty-print.h (identifier_to_locale_alloc,
2805 identifier_to_locale_free): Declare.
2806 * toplev.c (alloc_for_identifier_to_locale): New.
2807 (general_init): Set identifier_to_locale_alloc and
2808 identifier_to_locale_free.
2809 * Makefile.in (pretty-print.o): Update dependencies.
2811 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
2813 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
2814 pointer types if they have different alignment or mode.
2816 2010-05-26 Anatoly Sokolov <aesok@post.ru>
2818 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2819 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2820 * config/sparc/sparc-protos.h (function_value): Remove declaration.
2821 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
2822 sparc_function_value_regno_p): New functions.
2823 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2824 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2825 (function_value): Rename to...
2826 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
2827 argument to 'outgoing'.
2828 (function_arg_record_value, function_arg_union_value,
2829 function_arg_vector_value): Update comment.
2831 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
2833 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
2834 (fde_needed_for_eh_p): New predicate.
2835 (output_call_frame_info): Use it throughout to decide whether FDEs
2836 are needed for EH purpose.
2837 (dwarf2out_begin_prologue): Reorder assignments.
2839 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2841 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
2842 special case loop->header.
2843 (is_predicated): New.
2844 (if_convertible_loop_p): Call it.
2846 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2848 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
2849 iterator in parameter. Do not generate code during the analysis.
2850 (tree_if_convert_cond_stmt): Removed.
2851 (tree_if_convert_stmt): Removed.
2852 (predicate_bbs): New.
2853 (if_convertible_loop_p): Call predicate_bbs.
2854 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
2855 now contains all the analysis part.
2857 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2859 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
2860 statements in the analysis part.
2861 (tree_if_convert_stmt): Update comment.
2862 (remove_conditions_and_labels): New.
2863 (combine_blocks): Call remove_conditions_and_labels.
2864 (tree_if_conversion): Update comment.
2866 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2868 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
2869 than 2 predecessors or more than 2 successors.
2871 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2873 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
2874 of loops in which the data dependence analysis fails.
2876 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2878 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
2879 CDI_POST_DOMINATORS.
2880 (tree_if_conversion): Same.
2882 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2884 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
2886 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
2888 * tree-if-conv.c: Update copyright years. Fix comments.
2891 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
2893 * builtin-types.def (BT_INT128): New primitive type.
2894 (BT_UINT128): Likewise.
2895 * c-common.c (c_common_r): Add __int128 keyword.
2896 (c_common_type_for_size): Handle __int128.
2897 (c_common_type_for_mode): Likewise.
2898 (c_common_signed_or_unsigned_type): Likewise.
2899 (c_common_nodes_and_builtins): Add builtin type
2900 if target supports 128-bit integer scalar.
2901 * c-common.h (enum rid): Add RID_INT128.
2902 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
2903 if target supports 128-bit integer scalar.
2904 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
2905 (finish_declspecs): Likewise.
2906 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
2907 (c_token_starts_declspecs): Likewise.
2908 (c_parser_declspecs): Likewise.
2909 (c_parser_attributes): Likewise.
2910 (c_parser_objc_selector): Likewise.
2911 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
2912 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
2913 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
2914 * tree.c (make_or_reuse_type): Likewise.
2915 (make_unsigned_type): Likewise.
2916 (build_common_tree_nodes_2): Likewise.
2917 * tree.h (enum integer_type_kind): Add itk_int128 and
2918 itk_unsigned_int128.
2919 (int128_integer_type_node): New define.
2920 (int128_unsigned_type_node): New define.
2921 * doc/extend.texi: Add documentation about __int128 type.
2923 2010-05-26 Richard Guenther <rguenther@suse.de>
2925 * tree-ssa-sccvn.c (copy_nary): Adjust.
2926 (copy_phis): Rename to ...
2927 (copy_phi): ... this. Adjust.
2928 (copy_references): Rename to ...
2929 (copy_reference): ... this. Adjust.
2930 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
2931 result into the valid table.
2933 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
2935 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
2936 insn-config.h, insn-codes.h, recog.h, and optabs.h.
2938 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2940 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
2942 2010-05-26 Richard Guenther <rguenther@suse.de>
2944 * opts.c (common_handle_option): Handle OPT_Ofast.
2946 2010-05-26 Joseph Myers <joseph@codesourcery.com>
2948 * diagnostic.c: Don't include opts.h.
2949 (permissive_error_option): Define.
2950 (diagnostic_initialize): Take n_opts parameter. Allocate memory
2951 for classify_diagnostic. Don't use memset for
2952 classify_diagnostic. Initialize new and recently added fields.
2953 (diagnostic_classify_diagnostic): Use context->n_opts instead of
2955 (diagnostic_report_diagnostic): Pass context parameter to
2956 diagnostic_report_warnings_p. Use option_enabled and option_name
2958 (emit_diagnostic): Use permissive_error_option.
2959 (permerror): Likewise.
2960 * diagnostic.h: Don't include options.h.
2961 (struct diagnostic_context): Add n_opts, opt_permissive,
2962 inhibit_warnings, warn_system_headers, option_enabled and
2963 option_name fields. Change classify_diagnostic to a pointer.
2964 * opts-diagnostic.h: New file.
2965 * opts.c: Include opts-diagnostic.h.
2966 (common_handle_option): Set global_dc fields for -Wfatal-errors,
2967 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
2968 (option_name): New function.
2969 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
2970 (c_common_handle_option): Set global_dc->permissive for
2972 * c-common.c (c_cpp_error): Save and restore
2973 global_dc->warn_system_headers, not variable warn_system_headers.
2974 * toplev.c: Include opts-diagnostic.h.
2975 (general_init): Update call to diagnostic_initialize. Set
2976 global_dc->show_column, global_dc->option_enabled and
2977 global_dc->option_name.
2978 (process_options): Don't set global_dc fields here.
2979 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
2980 (diagnostic.o, opts.o, toplev.o): Update dependencies.
2982 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2984 * config/picochip/picochip.md (movsi): Split a movsi from a
2987 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2989 * ggc-zone.c: Update copyright year.
2990 (poison_region): Mark memory for Valgrind as undefined before
2991 memset () call and inaccessible afterwards.
2992 (ggc_pch_total_size): Change type of i to int.
2994 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2996 * ggc-common.c (ggc_free_overhead): Allow empty slot.
2998 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3000 * ggc-common.c: Update copyright year.
3001 (ggc_rlimit_bound): Remove prototype. Compile only if
3002 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
3003 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
3004 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
3005 (ggc_min_heapsize_heuristic): Likewise.
3007 2010-05-26 Richard Guenther <rguenther@suse.de>
3009 PR rtl-optimization/44164
3010 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
3011 no-common access-path disambiguation.
3012 (indirect_ref_may_alias_decl_p): Adjust.
3013 (indirect_refs_may_alias_p): Likewise.
3014 (refs_may_alias_p_1): Likewise.
3016 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3018 * c-typeck.c: Do not include expr.h.
3020 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3022 * rtl.h (decl_default_tls_model): Move prototype from here...
3023 * output.h: ...to here.
3024 * c-decl.c: Do not include rtl.h.
3025 * c-pragma.c: Likewise.
3026 * c-parser.c: Likewise.
3027 * c-gimplify.c: Likewise. And also not hard-reg-set.
3028 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
3029 FIXME note for it. Add a FIXME note for expr.h.
3030 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
3031 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
3034 2010-05-26 Jakub Jelinek <jakub@redhat.com>
3037 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
3038 or total_size is larger than red zone size for non-V4 ABI, emit a
3039 stack_tie resp. frame_tie insn before stack pointer restore.
3040 * config/rs6000/rs6000.md (frame_tie): New insn.
3042 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
3044 * function.h (struct function): Add can_throw_non_call_exceptions bit.
3045 * lto-streamer-in.c (input_function): Stream it in.
3046 * lto-streamer-out.c (output_function): Stream it out.
3047 * function.c (allocate_struct_function): Set it.
3048 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
3049 for flag_non_call_exceptions.
3050 * cfgbuild.c (control_flow_insn_p): Likewise.
3051 (make_edges): Likewise.
3052 * cfgexpand.c (expand_stack_alignment): Likewise.
3053 * combine.c (distribute_notes): Likewise.
3054 * cse.c (cse_extended_basic_block): Likewise.
3055 * except.c (insn_could_throw_p): Likewise.
3056 * gcse.c (simple_mem): Likewise.
3057 * ipa-pure-const.c (check_call): Likewise.
3058 (check_stmt ): Likewise.
3059 * lower-subreg.c (lower-subreg.c): Likewise.
3060 * optabs.c (emit_libcall_block): Likewise.
3061 (prepare_cmp_insn): Likewise.
3062 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
3063 * postreload.c (rest_of_handle_postreload): Likewise.
3064 * reload1.c (reload_as_needed): Likewise.
3065 (emit_input_reload_insns): Likewise.
3066 (emit_output_reload_insns): Likewise.
3067 (fixup_abnormal_edges): Likewise.
3068 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
3069 * store-motion.c (find_moveable_store): Likewise.
3070 * tree-eh.c (stmt_could_throw_p): Likewise.
3071 (tree_could_throw_p): Likewise.
3072 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3073 * config/arm/arm.c (arm_expand_prologue): Likewise.
3074 (thumb1_expand_prologue): Likewise.
3075 * config/rx/rx.md (cbranchsf4): Likewise.
3077 * config/s390/s390.c (s390_emit_prologue): Likewise.
3078 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
3079 (inline_forbidden_into_p): New predicate.
3080 (expand_call_inline): Use it to forbid inlining.
3081 (tree_can_inline_p): Likewise.
3083 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3085 * config/i386/i386-c.c: Do not include rtl.h.
3086 * config/i386/t-i386: Update dependencies.
3088 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3090 * attribs.c: Do not include rtl.h.
3091 * Makefile.in: Update dependencies.
3093 2010-05-25 Anatoly Sokolov <aesok@post.ru>
3095 * double-int.h (double_int_and): New.
3096 * combine.c (try_combine): Clean up, use double_int_* and
3097 immed_double_int_const functions.
3099 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3101 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
3102 stderr to /dev/null instead of grep -q.
3103 * configure: Regenerate.
3105 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
3107 * Makefile.in (EXCEPT_H): Fix typo.
3109 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
3111 * ira-build.c (update_conflict_hard_reg_costs): New.
3112 (ira_build): Call update_conflict_hard_reg_costs.
3114 2010-05-25 Jakub Jelinek <jakub@redhat.com>
3117 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
3119 (intersect_loc_chains): Walk the s2var's loc_chain together
3120 with s1node chain as long as the locations are equal, don't
3121 call find_loc_in_1pdv in that case.
3124 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
3125 (copy_bind_expr): ... instead of here.
3126 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
3127 if the block hasn't been remapped.
3128 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
3129 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
3131 2010-05-25 Richard Guenther <rguenther@suse.de>
3134 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
3135 out-of-bounds array accesses.
3137 2010-05-25 Richard Guenther <rguenther@suse.de>
3139 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
3140 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
3141 (run_gcc): Re-organize to make cleanup easier.
3143 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3145 * config/s390/s390.c (optimization_options): Fix and move the
3146 flag_prefetch_loop_arrays override ...
3147 (override_options): ... here.
3149 2010-05-25 Joseph Myers <joseph@codesourcery.com>
3151 * diagnostic.c: Don't include plugin.h.
3152 (diagnostic_report_diagnostic): Don't handle plugins specially
3153 here. Pass context to internal_error callback.
3154 * diagnostic.h (struct diagnostic_context): Add context parameter
3155 to internal_error callback.
3156 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
3157 * plugin.h (struct diagnostic_context): Declare.
3158 (warn_if_plugins, plugins_internal_error_function): Declare.
3159 * toplev.c (general_init): Set global_dc->internal_error.
3160 * Makefile.in (diagnostic.o): Update dependencies.
3162 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
3164 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
3165 * config/rs6000/t-darwin64: New.
3166 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
3169 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
3172 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
3173 match the original (and intended) behaviour before r159557. This
3174 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
3177 2010-05-25 Richard Guenther <rguenther@suse.de>
3179 * doc/invoke.texi: Document -Ofast.
3180 * target.h (struct gcc_target): Add handle_ofast.
3181 * target-def.h (TARGET_HANDLE_OFAST): Add.
3182 (TARGET_INITIALIZER): Adjust.
3183 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
3184 * common.opt (Ofast): Add.
3186 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
3188 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
3189 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
3191 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
3194 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
3195 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
3196 false_rtx. Use false_rtx to compute the correct *ptest for reversed
3197 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
3199 2010-05-25 Jakub Jelinek <jakub@redhat.com>
3201 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
3202 DW_OP_minus with negated offset instead of DW_OP_plus.
3203 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
3205 2010-05-25 Wei Guozhi <carrot@google.com>
3207 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
3208 tst instruction and a new alternative.
3209 * config/arm/constraints.md (Pu): New constraint.
3211 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
3213 * function.c (assign_stack_local_1): Initialize variable
3214 to avoid warning when bootstrapping at -O3.
3216 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
3218 * configure.ac (all_lang_makefiles): Remove everything related to it.
3219 * configure: Regenerate.
3220 * Makefile.in: Fix reference to ada Make-lang.in.
3221 Remove support for LANG_MAKEFILES.
3223 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
3224 Sandra Loosemore <sandra@codesourcery.com>
3226 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
3227 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
3228 description. Add arm_neon_fp16_ok.
3229 (Add Options): Add arm_neon and arm_neon_fp16.
3231 2010-05-24 Joseph Myers <joseph@codesourcery.com>
3233 * diagnostic.c: Don't include flags.h.
3234 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
3235 context parameters. Check flags in the context passed as a parameter.
3236 (diagnostic_build_prefix): Add context parameter. Check
3237 show_column flag in context.
3238 (diagnostic_action_after_output): Check fatal_errors flag in context.
3239 (diagnostic_report_current_module): Check show_column flag in context.
3240 (default_diagnostic_starter): Update call to
3241 diagnostic_build_prefix.
3242 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
3243 (emit_diagnostic): Pass context to permissive_error_kind.
3244 (permerror): Pass context to permissive_error_kind.
3245 * diagnostic.h (struct diagnostic_context): Add show_column,
3246 pedantic_errors, permissive and fatal_errors fields.
3247 (diagnostic_build_prefix): Update prototype.
3249 * toplev.c (process_options): Set flags in global_dc from
3250 flag_show_column, flag_pedantic_errors, flag_permissive,
3252 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
3253 to diagnostic_build_prefix.
3254 * Makefile.in (diagnostic.o): Update dependencies.
3256 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
3258 * config/i386/ia32intrin.h (__crc32q): Define only if
3259 __SSE4_2__ is defined.
3261 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
3265 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
3266 DECL_VISIBILITY_SPECIFIED.
3267 (emutls_decl): Set DECL_PRESERVE_P and copy
3268 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
3269 (emutls_finalize_control_var): New callback.
3270 (emutls_finish): Finalize emutls control variables.
3271 * toplev.c (compile_file): Move the call to emutls_finish ()
3272 before varpool_assemble_pending_decls ().
3274 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
3276 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
3277 added to the preprocessor condition.
3279 2010-05-24 Paul Brook <paul@codesourcery.com>
3281 * gengtype-lex.l: Add HARD_REG_SET.
3282 * expr.c (expand_expr_real_1): Record writes to hard registers.
3283 * function.c (rtl_data): Add asm_clobbers.
3284 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
3285 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
3286 Use crtl->asm_clobbers.
3288 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3290 * doc/makefile.texi (Makefile): Mention stages 'profile'
3291 and 'feedback' for profiledbootstrap.
3293 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
3296 * config/i386/i386.c (def_builtin): Properly check
3297 OPTION_MASK_ISA_64BIT.
3299 2010-05-23 Joseph Myers <joseph@codesourcery.com>
3301 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
3302 typedefs with different but compatible types. Allow duplicate
3303 typedefs with the same type except for pedantic non-C1X, but give
3304 warning for variably modified types.
3305 * c-typeck.c (tagged_types_tu_compatible_p,
3306 function_types_compatible_p, type_lists_compatible_p,
3307 comptypes_internal): Add parameter different_types_p; set
3308 *different_types_p for different but compatible types. All
3310 (comptypes_check_different_types): New.
3311 * c-tree.h (comptypes_check_different_types): Declare.
3313 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
3315 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
3316 * jump.c: Include basic-block.h.
3317 * profile.c: Likewise.
3318 * tree-profile.c: Likewise.
3319 * coverage.c: Likewise.
3320 * basic-block.h (optimize_function_for_size_p): Move to function.h.
3321 (optimize_function_for_speed_p): Likewise.
3322 * function.h (optimize_function_for_size_p,
3323 optimize_function_for_speed_p): Moved here from basic-block.h.
3324 * Makefile.in: Update dependencies.
3326 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3328 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
3329 before calling make; allow override through $MAKE.
3330 * doc/invoke.texi (Optimize Options): Document override.
3332 2010-05-23 Anatoly Sokolov <aesok@post.ru>
3334 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
3335 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3336 (rs6000_mode_dependent_address_ptr): Make static.
3337 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3338 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
3341 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
3344 * config/i386/i386.c: Make sure that the correct regparm is passed.
3346 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
3348 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
3349 * sbitmap.c: ...to here to internalize sbitmap element access.
3350 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
3351 Explain why basic-block.h is included.
3352 * function.h: Include tm.h for CUMULATIVE_ARGS.
3353 * Makefile.in: Update dependencies.
3355 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
3357 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
3359 * sbitmap.h (struct sbitmap_def): Do not typedef here.
3360 * sbitmap.c: Include sbitmap.h.
3361 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
3362 hard-reg-set.h. Split everything related to regsets out from here...
3363 * regset.h: ...to here. New file.
3364 * df.h: Include regset.h and sbitmap.h.
3365 * tree-flow.h: Likewise.
3366 * cfgloop.h: Likewise.
3367 * except.h: Do not include sbitmap.h. Include hashtab.h.
3368 * cgraph.h: Include vec.h and function.h.
3369 * reload.h (struct insn_chain): Change types of live_throughout
3370 and dead_or_set from regset_head to bitmap_head.
3371 (compute_use_by_pseudos): Be defined also if regset.h is not included.
3372 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
3373 spilled_regs from regset_head to bitmap_head to avoid dependency
3375 * sel-sched-ir.h: Include regset.h.
3376 * reload.c: Include df.h before reload.h.
3377 * caller-save.c: Likewise.
3378 * reload1.c: Likewise.
3380 (mark_elimination): Update type of r to bitmap, consistent with
3382 * dominance.c: Include bitmap.h.
3383 * modulo-sched.c: Include df.h.
3384 * cfganal.c: Include bitmap.h and sbitmap.h.
3385 * cfgbuild.c: Include sbitmap.h.
3386 * lcm.c: Include sbitmap.h.
3387 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
3388 * domwalk.c: Include sbitmap.h, exclude ggc.h.
3389 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
3390 * cselib.c: Include bitmap.h.
3391 * tree-optimize.c: Include regset.h.
3392 * stmt.c: Include bitmap.h.
3393 * Makefile.in: Update dependencies.
3395 2010-05-22 Jan Hubicka <jh@suse.cz>
3397 * cgraph.h (struct varpool_node): Add same_comdat_group.
3398 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
3400 (output_varpool): Update call of lto_output_varpool_node.
3401 (input_varpool): Read same_comdat_group pointer.
3402 (input_varpool_1): Fixup same_comdat_group pointer.
3403 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
3404 group is needed, all are.
3405 * varpool.c (varpool_remove_node): Remove node from same comdat group
3407 (varpool_analyze_pending_decls): Walk same comdat groups.
3409 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
3411 * rtl.h (union rtunion_def): Remove rt_bit member.
3412 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
3413 * print-rtl (print_rtx): Do not print the member.
3414 * gengtype.c (adjust_field_rtx_def): Do not handle it.
3415 * gengenrtl.c (type_from_format): Likewise.
3416 (accessor_from_format): Likewise.
3418 2010-05-22 Joseph Myers <joseph@codesourcery.com>
3420 * dbgcnt.c: Include toplev.h instead of errors.h.
3421 * ira-emit.c: Don't include errors.h.
3422 * ira.c: Include toplev.h instead of errors.h.
3423 * lto-compress.c: Include toplev.h instead of errors.h.
3424 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
3425 ira.o, dbgcnt.o): Update dependencies.
3427 2010-05-22 Richard Guenther <rguenther@suse.de>
3429 * gimple.c (gimple_types_compatible_p): Check type qualifications
3430 before merging pointer to complete and pointer to incomplete type.
3431 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
3432 we use our own resolution algorithm. The gold linker plugin
3433 doesn't do the job we want it to do here.
3435 2010-05-22 Anatoly Sokolov <aesok@post.ru>
3437 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3438 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3439 (sparc_mode_dependent_address_p): New function.
3441 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3443 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
3445 * timevar.c: Do not include any core headers.
3446 (timevar_print): De-i18n-ize.
3447 (print_time): Likewise.
3448 * timevar.h (timevar_push, timevar_pop): Make inline functions.
3450 2010-05-21 Joseph Myers <joseph@codesourcery.com>
3452 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
3454 (diagnostic_initialize): Initialize x_data not last_function.
3455 (diagnostic_report_current_function): Move to tree-diagnostic.c.
3456 (default_diagnostic_starter): Call
3457 diagnostic_report_current_module not
3458 diagnostic_report_current_function.
3459 (diagnostic_report_diagnostic): Initialize x_data not
3461 (verbatim): Likewise.
3462 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
3464 (struct diagnostic_context): Change last_function to x_data.
3465 (diagnostic_auxiliary_data): Replace with
3466 diagnostic_context_auxiliary_data and
3467 diagnostic_info_auxiliary_data.
3468 (diagnostic_last_function_changed, diagnostic_set_last_function,
3469 diagnostic_report_current_function): Move to tree-diagnostic.h.
3470 (print_declaration, dump_generic_node, print_generic_stmt,
3471 print_generic_stmt_indented, print_generic_expr,
3472 print_generic_decl, debug_c_tree, dump_omp_clauses,
3473 print_call_name, debug_generic_expr, debug_generic_stmt,
3474 debug_tree_chain, default_tree_printer): Move to
3475 tree-pretty-print.h.
3476 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
3477 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
3478 gimple-pretty-print.h.
3479 * pretty-print.c: Don't include tree.h
3480 (pp_base_format): Don't handle %K here.
3481 (pp_base_tree_identifier): Move to tree-pretty-print.c.
3482 * pretty-print.h (text_info): Change abstract_origin to x_data.
3483 (pp_tree_identifier, pp_unsupported_tree,
3484 pp_base_tree_identifier): Move to tree-pretty-print.h.
3485 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
3486 tree-pretty-print.h: New files.
3487 * tree-pretty-print.c: Include tree-pretty-print.h.
3488 (percent_K_format): New. Moved from pretty-print.c.
3489 (pp_base_tree_identifier): Move from pretty-print.c.
3490 * c-objc-common.c: Include tree-pretty-print.h.
3491 (c_tree_printer): Handle %K here.
3492 * langhooks.c: Include tree-diagnostic.h.
3493 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
3494 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
3495 (default_tree_printer): Handle %K using percent_K_format.
3496 (general_init): Use default_tree_diagnostic_starter.
3497 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
3498 (free_lang_data): Use default_tree_diagnostic_starter.
3499 * c-pretty-print.c: Include tree-pretty-print.h.
3500 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3501 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3502 * dwarf2out.c: Include tree-pretty-print.h.
3503 * except.c: Include tree-pretty-print.h.
3504 * gimple-pretty-print.c: Include tree-pretty-print.h and
3505 gimple-pretty-print.h.
3506 * gimplify.c: Include tree-pretty-print.h.
3507 * graphite-poly.c: Include tree-pretty-print.h and
3508 gimple-pretty-print.h.
3509 * ipa-cp.c: Include tree-pretty-print.h.
3510 * ipa-inline.c: Include gimple-pretty-print.h.
3511 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3512 * ipa-pure-const.c: Include gimple-pretty-print.h.
3513 * ipa-struct-reorg.c: Include tree-pretty-print.h and
3514 gimple-pretty-print.h.
3515 * ipa-type-escape.c: Include tree-pretty-print.h.
3516 * print-rtl.c: Include tree-pretty-print.h.
3517 * print-tree.c: Include gimple-pretty-print.h.
3518 * sese.c: Include tree-pretty-print.h.
3519 * tree-affine.c: Include tree-pretty-print.h.
3520 * tree-browser.c: Include tree-pretty-print.h.
3521 * tree-call-cdce.c: Include gimple-pretty-print.h.
3522 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
3523 * tree-chrec.c: Include tree-pretty-print.h.
3524 * tree-data-ref.c: Include tree-pretty-print.h and
3525 gimple-pretty-print.h.
3526 * tree-dfa.c: Include tree-pretty-print.h.
3527 * tree-if-conv.c: Include tree-pretty-print.h and
3528 gimple-pretty-print.h.
3529 * tree-inline.c: Include tree-pretty-print.h.
3530 * tree-into-ssa.c: Include tree-pretty-print.h and
3531 gimple-pretty-print.h.
3532 * tree-nrv.c: Include tree-pretty-print.h.
3533 * tree-object-size.c: Include tree-pretty-print.h and
3534 gimple-pretty-print.h.
3535 * tree-outof-ssa.c: Include tree-pretty-print.h and
3536 gimple-pretty-print.h.
3537 * tree-parloops.c: Include tree-pretty-print.h and
3538 gimple-pretty-print.h.
3539 * tree-predcom.c: Include tree-pretty-print.h and
3540 gimple-pretty-print.h.
3541 * tree-scalar-evolution.c: Include tree-pretty-print.h and
3542 gimple-pretty-print.h.
3543 * tree-sra.c: Include tree-pretty-print.h.
3544 * tree-ssa-address.c: Include tree-pretty-print.h.
3545 * tree-ssa-alias.c: Include tree-pretty-print.h.
3546 * tree-ssa-ccp.c: Include tree-pretty-print.h and
3547 gimple-pretty-print.h.
3548 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
3549 * tree-ssa-copy.c: Include tree-pretty-print.h and
3550 gimple-pretty-print.h.
3551 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
3552 * tree-ssa-dce.c: Include tree-pretty-print.h and
3553 gimple-pretty-print.h.
3554 * tree-ssa-dom.c: Include tree-pretty-print.h and
3555 gimple-pretty-print.h.
3556 * tree-ssa-dse.c: Include gimple-pretty-print.h.
3557 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
3558 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
3559 * tree-ssa-live.c: Include tree-pretty-print.h and
3560 gimple-pretty-print.h.
3561 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
3562 gimple-pretty-print.h.
3563 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
3564 gimple-pretty-print.h.
3565 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
3566 gimple-pretty-print.h.
3567 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
3568 gimple-pretty-print.h.
3569 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
3570 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
3571 * tree-ssa-operands.c: Include tree-pretty-print.h and
3572 gimple-pretty-print.h.
3573 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
3574 gimple-pretty-print.h.
3575 * tree-ssa-pre.c: Include tree-pretty-print.h and
3576 gimple-pretty-print.h.
3577 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
3578 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
3579 gimple-pretty-print.h.
3580 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
3581 gimple-pretty-print.h.
3582 * tree-ssa-sink.c: Include gimple-pretty-print.h.
3583 * tree-ssa-ter.c: Include tree-pretty-print.h and
3584 gimple-pretty-print.h.
3585 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
3586 * tree-ssa.c: Include tree-pretty-print.h and
3587 gimple-pretty-print.h.
3588 * tree-stdarg.c: Include gimple-pretty-print.h.
3589 * tree-switch-conversion.c: Include gimple-pretty-print.h.
3590 * tree-tailcall.c: Include tree-pretty-print.h and
3591 gimple-pretty-print.h.
3592 * tree-vect-data-refs.c: Include tree-pretty-print.h and
3593 gimple-pretty-print.h.
3594 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
3595 gimple-pretty-print.h.
3596 * tree-vect-loop.c: Include tree-pretty-print.h and
3597 gimple-pretty-print.h.
3598 * tree-vect-patterns.c: Include gimple-pretty-print.h.
3599 * tree-vect-slp.c: Include tree-pretty-print.h and
3600 gimple-pretty-print.h.
3601 * tree-vect-stmts.c: Include tree-pretty-print.h and
3602 gimple-pretty-print.h.
3603 * tree-vectorizer.c: Include tree-pretty-print.h.
3604 * tree-vrp.c: Include tree-pretty-print.h and
3605 gimple-pretty-print.h.
3606 * value-prof.c: Include tree-pretty-print.h and
3607 gimple-pretty-print.h.
3608 * var-tracking.c: Include tree-pretty-print.h.
3609 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
3610 (tree-diagnostic.o): New dependencies.
3611 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
3612 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
3613 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
3614 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
3615 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
3616 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
3617 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
3618 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
3619 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
3620 tree-ssa-address.o, tree-ssa-loop-niter.o,
3621 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
3622 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
3623 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
3624 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
3625 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
3626 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
3627 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
3628 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
3629 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
3630 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
3631 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
3632 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
3633 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
3634 tree-switch-conversion.o, var-tracking.o, value-prof.o,
3635 cfgexpand.o, pretty-print.o): Update dependencies.
3637 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
3639 * tree-ssa-structalias.c: Remove tm_p.h from include.
3641 2010-05-21 Jeff Law <law@redhat.com>
3643 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
3645 2010-05-21 Jason Merrill <jason@redhat.com>
3647 * tree-eh.c (cleanup_is_dead_in): New.
3648 (lower_try_finally): Don't generate a dead cleanup region.
3649 (lower_cleanup): Likewise.
3651 2010-05-21 Jakub Jelinek <jakub@redhat.com>
3654 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
3655 unchain each use from the cyclic next_regno_use chain first.
3657 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3659 * real: Do not include gmp.h, mpfr.h, and mpc.h.
3660 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
3661 (real_value_negate, real_value_abs): New prototypes.
3662 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
3663 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
3664 new include file for interface between MPFR and REAL_VALUE_TYPE.
3665 * real.c: Include realmpfr.h.
3666 (real_arithmetic2): Remove legacy function.
3667 (real_value_negate): New.
3668 (real_value_abs): New.
3669 (mfpr_from_real, real_from_mpfr): Move from here...
3670 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
3671 * builtins.c: Include realmpfr.h.
3672 * fold-const.c: Include realmpfr.h.
3673 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
3674 (fold_negate_const): Likewise.
3675 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
3676 * toplev.c: Include realmpfr.h.
3677 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
3678 and real_value_negate.
3679 * fixed-value.c (check_real_for_fixed_mode): Likewise.
3680 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
3681 (vfp3_const_double_index): Likewise.
3682 (arm_print_operand): Likewise.
3683 * Makefile.in: Update dependencies.
3685 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3687 * config/s390/s390.c (override_options): Increase the default
3688 of max-completely-peel-times.
3690 2010-05-21 Julian Brown <julian@codesourcery.com>
3691 Mark Mitchell <mark@codesourcery.com>
3693 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
3694 sibling calls for Thumb-1.
3695 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
3696 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
3698 (*call_insn, *call_value_insn): Don't use for Thumb-2.
3699 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
3701 (return): New expander.
3702 (*arm_return): New name for ARM return insn.
3703 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
3705 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
3707 * config.gcc (sparc64-*-rtems*): New target.
3709 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
3711 * tree.c (build_function_decl_skip_args): Fix grammar.
3712 (build_function_type_list_1): Fix typos, adjust formatting.
3714 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
3716 * tree.h: Include real.h and fixed-value.h as basic datatypes.
3717 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
3718 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
3719 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
3720 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
3721 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
3722 tree-pretty-print.c, tree-loop-distribution.c,
3723 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
3724 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
3725 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
3726 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
3727 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
3728 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
3729 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
3730 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
3731 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
3732 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
3733 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
3734 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
3735 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
3736 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
3737 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
3738 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
3739 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
3740 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
3741 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
3742 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
3743 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
3744 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
3745 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
3746 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
3747 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
3748 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
3749 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
3750 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
3751 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
3752 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
3753 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
3754 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
3755 config/score/score7.c, config/score/score.c, config/arm/arm.c,
3756 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
3757 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
3758 config/bfin/bfin.c: Clean up redundant includes.
3759 * Makefile.in: Update accordingly.
3761 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
3764 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
3765 statement has no arguments.
3767 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
3770 * varasm.c (emutls_decl): Merge attributes to new decl.
3772 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
3775 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
3776 around the uniquized constructor if its type requires a conversion.
3778 2010-05-21 Jakub Jelinek <jakub@redhat.com>
3781 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
3782 at -O0 goto_locus of any of the incoming edges differs from
3783 goto_locus of outgoing edge, or gimple_location of any of the
3786 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
3788 * ira.c (ira_non_ordered_class_hard_regs): Define.
3789 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
3790 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
3791 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
3792 cost of unaligned hard regs when allocating multi-reg pseudos.
3794 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
3796 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
3797 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
3798 for TARGET_NO_FLOAT.
3799 * config/mips/mips.c (mips_file_start): Expand conditional expression
3800 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
3801 (mips_override_options): Move -mno-float override -msoft-float and
3803 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
3804 Condition(TARGET_SUPPORTS_NO_FLOAT).
3805 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
3806 __mips_no_float here.
3807 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
3808 (TARGET_SUPPORTS_NO_FLOAT): Define.
3809 * config/mips/sdemtk.opt: Delete.
3811 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
3813 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
3815 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
3818 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
3819 * configure: Regenerate.
3820 * config.in: Regenerate.
3821 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
3822 instead of sahf only for 64bit targets.
3824 2010-05-20 Jakub Jelinek <jakub@redhat.com>
3827 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
3828 setup_ref_regs for DEBUG_INSNs.
3830 2010-05-20 Jan Hubicka <jh@suse.cz>
3833 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
3835 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3838 * df-scan.c (df_ref_compare): Stabilize sort.
3840 2010-05-20 Jakub Jelinek <jakub@redhat.com>
3842 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
3843 argument. Don't use DW_OP_piece if offset is non-zero,
3844 put offset into second DW_OP_bit_piece argument.
3845 (dw_sra_loc_expr): Adjust callers. For memory expressions
3848 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
3851 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
3852 settings for 16-bit-constant "addo" alternative.
3854 2010-05-19 James E. Wilson <wilson@codesourcery.com>
3856 * config/mips/mips-dsp.md (add<DSPV:mode>3,
3857 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
3860 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
3861 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
3864 2010-05-19 Joseph Myers <joseph@codesourcery.com>
3866 * diagnostic.c (FLOAT, FFS): Don't undefine.
3867 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
3868 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
3871 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3873 * combine.c (propagate_for_debug): Call make_compound_operation
3874 on the source value.
3875 (try_combine): When implementing a split chosen by find_split_point,
3876 either copy i2src or set it to null. Assert that i2src is not null
3877 before substituting into CALL_INSN_FUNCTION_USAGE.
3879 2010-05-19 Anatoly Sokolov <aesok@post.ru>
3881 * double-int.h (double_int_ior): New function.
3882 * tree.h (build_int_cst_wide_type): Remove.
3883 * tree.c (build_int_cst_wide_type): Remove.
3884 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
3885 of build_int_cst_wide_type.
3886 * stor-layout.c (set_sizetype): (Ditto.).
3887 * dojump.c (do_jump): Use build_int_cstu instead of
3888 build_int_cst_wide_type.
3890 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
3892 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
3893 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
3894 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
3895 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
3896 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
3897 propagate the 'data' argument to copy_tree_r.
3898 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
3899 Propagate 'data' argument to walk_tree.
3900 (copy_if_shared): New function.
3901 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
3902 (unmark_visited): New function.
3903 (unshare_body): Call copy_if_shared instead of doing it manually.
3904 (unvisit_body): Call unmark_visited instead of doing it manually.
3906 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
3908 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
3909 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
3910 * hooks.c: Likewise.
3911 * target-def.h (TARGET_FOLD_BUILTIN): Define to
3912 hook_tree_tree_int_treep_bool_null.
3913 * target.h (struct gcc_target): Update signature of fold_builtin
3915 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
3916 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
3917 instead of the call expression.
3918 (fold_builtin_call_array): Pass n and argarray directly.
3919 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
3921 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
3922 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
3923 `i' and use it in place of `arity'.
3924 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
3925 Dereference `args' directly.
3926 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
3928 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3930 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3932 (Directives): Document optional dg-require-effective-target
3935 2010-05-19 Richard Guenther <rguenther@suse.de>
3938 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
3940 2010-05-19 Richard Guenther <rguenther@suse.de>
3942 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
3943 * common.opt (fwhopr=): New.
3944 * opts.c (common_handle_option): Handle OPT_fwhopr.
3945 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
3946 * collect2.c (main): Match -fwhopr*.
3947 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
3948 Execute ltrans stage in parallel when jobs is bigger than 1.
3950 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3952 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3953 pentiumpro on Solaris 8/x86 with Sun as.
3954 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
3956 (gcc_cv_as_ix86_quad): Check for .quad directive.
3957 * configure: Regenerate.
3958 * config.in: Regenerate.
3959 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
3961 2010-05-19 Martin Jambor <mjambor@suse.cz>
3963 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
3964 also for indirect edges. Actual printing moved...
3965 (ipa_print_node_jump_functions_for_edge): ...here.
3966 (ipa_compute_jump_functions): Renamed to
3967 ipa_compute_jump_functions_for_edge and made static.
3968 (ipa_compute_jump_functions): New function.
3969 (make_edge_direct_to_target): Check if the number of arguments on
3970 the newly direct edge is the same as the number of parametrs of
3972 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
3973 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
3974 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3975 analysis functions unconditionally, call the new
3976 ipa_analyze_params_uses on the node instead of every edge.
3978 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
3980 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
3982 (dump_mem_ref): Adopt debug code to handle a tree as step. This
3983 also checks for a constant int vs. non-constant but
3984 loop-invariant steps.
3985 (find_or_create_group): Change the sort algorithm to only consider
3986 steps that are constant ints.
3987 (idx_analyze_ref): Adopt code to handle a tree instead of a
3988 HOST_WIDE_INT for step.
3989 (gather_memory_references_ref): Handle tree instead of int and be
3990 prepared to see a NULL_TREE.
3991 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
3992 prefetches if the step cannot be calculated at compile time.
3993 (issue_prefetch_ref): Issue prefetches for non-constant but
3994 loop-invariant steps.
3996 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
3999 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4001 * tree.h (build_call_list): Remove.
4002 * tree.c (build_call_list): Remove.
4004 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4006 * tree.h (build_call_list): Remove.
4007 * tree.c (build_call_list): Remove.
4009 2010-05-18 Jan Hubicka <jh@suse.cz>
4011 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
4013 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
4015 PR rtl-optimization/43332
4016 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
4018 2010-05-18 Anatoly Sokolov <aesok@post.ru>
4020 * tree.h (build_int_cstu): Implement as static inline.
4021 * tree.c (build_int_cstu): Remove function.
4022 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
4025 2010-05-18 Richard Guenther <rguenther@suse.de>
4028 * lto-wrapper.c (verbose): New variable. Initialize from -v.
4029 (debug): Initialize from -save-temps.
4030 (collect_execute): Print command-line when verbose.
4031 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
4032 for ltrans invocation. Produce -dumpbase flag again.
4033 (process_args): Remove.
4035 * collect2.c (maybe_run_lto_and_relink): Only pass object
4036 files to lto-wrapper.
4037 * gcc.c (LINK_COMMAND_SPEC): Likewise.
4039 2010-05-18 Jan Hubicka <jh@suse.cz>
4041 * opts.c (decode_options): Do not disable whopr at ipa_cp.
4042 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
4044 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
4047 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
4049 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
4052 2010-05-18 Jakub Jelinek <jakub@redhat.com>
4055 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
4058 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
4060 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
4061 lto-macho as lto_binary_reader.
4063 * darwin.c (darwin_asm_named_section): Do not add assembler comment
4064 after .section directive; just print it before the directive instead.
4066 2010-05-17 Jan Hubicka <jh@suse.cz>
4068 * cgraph.c (cgraph_create_virtual_clone): Only check
4069 versionable_function_p when not in wpa and checking is enabled.
4070 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
4071 there are no more functions to materialize.
4073 2010-05-17 Jan Hubicka <jh@suse.cz>
4075 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
4076 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
4078 (output_cgraph): Call output_cgraph_opt_summary.
4079 (input_cgrpah): Call input_cgraph_opt_summary.
4080 (output_cgraph_opt_summary_p, output_node_opt_summary,
4081 input_node_opt_summary, input_cgraph_opt_section): New functions.
4082 * lto-section-in.c (lto_section_name): Add cgraphopt.
4083 * tree-inline.c (tree_function_versioning): Handle parm_num.
4084 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
4085 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
4087 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
4089 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
4090 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
4091 the insn to prefetch ratio heuristic to loops with known trip count.
4093 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
4095 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
4096 (schedule_prefetches): Do not generate a prefetch if the unroll factor
4097 is far from what is required by the prefetch.
4099 2010-05-17 Jan Hubicka <jh@suse.cz>
4101 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
4102 (ipcp_estimate_growth): Likewise.
4103 (ipcp_const_param_count): Likewise.
4104 (ipcp_insert_stage): Likewise.
4105 * ipa-prop.c (visit_load_for_mod_analysis): New function.
4106 (visit_store_addr_for_mod_analysis): Set used flag.
4107 (ipa_detect_param_modifications): Set used flag for SSE params;
4108 update use of walk_stmt_load_store_addr_ops.
4109 (ipa_print_node_params): Print used flag.
4110 (ipa_write_node_info): Stream used flag.
4111 (ipa_read_node_info): Likewise.
4112 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
4113 (ipa_is_param_used): New function.
4114 (lto_ipa_fixup_call_notes): Remove unused declaration.
4116 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4119 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
4120 * configure: Regenerate.
4121 * config.in: Regenerate.
4122 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
4123 !HAVE_AS_IX86_REP_LOCK_PREFIX.
4124 Don't emit whitespace.
4125 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
4126 (*rep_movsi): Likewise.
4127 (*rep_movsi_rex64): Likewise.
4128 (*rep_movqi): Likewise.
4129 (*rep_movqi_rex64): Likewise.
4130 (*rep_stosdi_rex64): Likewise.
4131 (*rep_stossi): Likewise.
4132 (*rep_stossi_rex64): Likewise.
4133 (*rep_stosqi): Likewise.
4134 (*rep_stosqi_rex64): Likewise.
4135 (*cmpstrnqi_nz_1): Use {%;} after repz.
4136 (*cmpstrnqi_nz_rex_1): Likewise.
4137 (*cmpstrnqi_1): Likewise.
4138 (*cmpstrnqi_rex_1): Likewise.
4139 (*strlenqi_1): Use {%;} after repnz.
4140 (*strlenqi_rex_1): Likewise.
4141 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
4142 (*sync_compare_and_swap<mode>): Likewise.
4143 (sync_double_compare_and_swap<mode>): Likewise.
4144 (*sync_double_compare_and_swapdi_pic): Likewise.
4145 (sync_old_add<mode>): Likewise.
4146 (sync_add<mode>): Likewise.
4147 (sync_sub<mode>): Likewise.
4148 (sync_<code><mode>): Likewise.
4150 2010-05-17 Martin Jambor <mjambor@suse.cz>
4152 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
4153 otr_token and polymorphic.
4154 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
4155 (cgraph_clone_edge): Copy the above fields.
4156 * tree.c (get_binfo_at_offset): New function.
4157 * tree.h (get_binfo_at_offset): Declare.
4158 * ipa-prop.h (enum jump_func_type): Added known_type jump function
4159 type, reordered items, updated comments.
4160 (union jump_func_value): Added base_type field, reordered fields.
4161 (enum ipa_lattice_type): Moved down in the file.
4162 (struct ipa_param_descriptor): New field polymorphic.
4163 (ipa_is_param_polymorphic): New function.
4164 * ipa-prop.c: Include gimple.h and gimple-fold.h.
4165 (ipa_print_node_jump_functions): Print known type jump functions.
4166 (compute_complex_pass_through): Renamed to...
4167 (compute_complex_assign_jump_func): this.
4168 (compute_complex_ancestor_jump_func): New function.
4169 (compute_known_type_jump_func): Likewise.
4170 (compute_scalar_jump_functions): Create known type and complex ancestor
4172 (ipa_note_param_call): New parameter polymorphic, set the corresponding
4173 flag in the call note accordingly.
4174 (ipa_analyze_call_uses): Renamed to...
4175 (ipa_analyze_indirect_call_uses): this. New parameter target, define
4176 variable var only in the block where it is used.
4177 (ipa_analyze_virtual_call_uses): New function.
4178 (ipa_analyze_call_uses): Likewise.
4179 (combine_known_type_and_ancestor_jfs): Likewise.
4180 (update_jump_functions_after_inlining): Implemented handling of a
4181 number of new jump function types combination.
4182 (print_edge_addition_message): Removed.
4183 (make_edge_direct_to_target): New function.
4184 (try_make_edge_direct_simple_call): Likewise.
4185 (try_make_edge_direct_virtual_call): Likewise.
4186 (update_call_notes_after_inlining): Renamed to...
4187 (update_indirect_edges_after_inlining): this. Moved edge creation for
4188 indirect calls to try_make_edge_direct_simple_call, also calls
4189 try_make_edge_direct_virtual_call for virtual calls.
4190 (ipa_print_node_params): Changed the header message.
4191 (ipa_write_jump_function): Stream also known type jump functions.
4192 (ipa_read_jump_function): Likewise.
4193 (ipa_write_indirect_edge_info): Stream new fields in
4194 cgraph_indirect_call_info.
4195 (ipa_read_indirect_edge_info): Likewise.
4196 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
4199 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4201 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
4203 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
4205 * tree.h (CALL_EXPR_ARGS): Delete.
4206 (call_expr_arglist): Delete.
4207 * tree.c (call_expr_arglist): Delete.
4208 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
4209 targetm.fold_builtin.
4210 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
4211 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
4212 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
4213 arglist parameter. Use CALL_EXPR_ARG.
4214 (picochip_expand_builtin_3op): Likewise.
4215 (picochip_expand_builtin_2opvoid): Likewise.
4216 (picochip_expand_array_get): Likewise.
4217 (picochip_expand_array_put): Likewise.
4218 (picochip_expand_array_testport): Likewise.
4219 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
4220 rather than arglist.
4221 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
4223 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
4224 than TREE_VALUE and TREE_CHAIN.
4225 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
4226 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
4229 2010-05-17 Jakub Jelinek <jakub@redhat.com>
4232 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
4233 to have no fallthru edge.
4236 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
4237 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
4238 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
4239 add BARRIER after previous bb if needed.
4241 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
4243 * tree.c (build_function_type_list_1): Remove bogus assert condition.
4245 2010-05-17 Alan Modra <amodra@gmail.com>
4247 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
4248 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
4249 with copy_reg rtx param.
4250 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
4251 Correct cases where code for ABI_V4 did not initialise the reg
4252 used to access frame. Also leave frame_reg_rtx as sp for large
4253 frames that save no regs.
4255 2010-05-17 Martin Jambor <mjambor@suse.cz>
4258 * tree-sra.c (create_access_replacement): New parameter rename, mark
4259 the replaement for renaming only when it is true.
4260 (get_access_replacement): Pass true in the rename parameter of
4261 create_access_replacement.
4262 (get_unrenamed_access_replacement): New function.
4263 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
4264 replacement declaration from it.
4266 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
4268 * function.c (try_fit_stack_local, add_frame_space): New static
4270 (assign_stack_local_1): Use them. Look for opportunities to use
4271 space previously wasted on alignment.
4272 * function.h (struct frame_space): New.
4273 (struct rtl_data): Add FRAME_SPACE_LIST member.
4274 * reload1.c (something_was_spilled): New static variable.
4275 (alter_reg): Set it.
4276 (reload): Test it in addition to testing if the frame size changed.
4278 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
4280 * config/s390/s390.c: Define sane prefetch settings and activate
4281 flag_prefetch_loop_arrays on -O3.
4282 * config/s390/s390.h: Declare that read can use write prefetch.
4284 2010-05-17 Jakub Jelinek <jakub@redhat.com>
4286 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
4289 2010-05-16 Jan Hubicka <jh@suse.cz>
4291 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
4292 function body; do not check stdarg field of struct function.
4294 2010-05-16 Jan Hubicka <jh@suse.cz>
4296 * cgraph.c (dump_cgraph_node): Dump versionable flag.
4297 * cgraph.h (cgraph_local_info): Add versionable flag.
4298 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
4299 (ipcp_versionable_function_p): Use it.
4300 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
4303 2010-05-16 Jan Hubicka <jh@suse.cz>
4305 * cgraph.c (cgraph_clone_node): Take decl argument and insert
4306 clone into hash when it is different from orig.
4307 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
4308 * cgraph.h (cgraph_clone_node): Update prototype.
4309 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
4310 (lto_cgraph_encoder_delete): Delete body map.
4311 (lto_cgraph_encoder_size): Move to header.
4312 (lto_cgraph_encoder_encode_body_p,
4313 lto_set_cgraph_encoder_encode_body): New.
4314 (lto_output_node): Do not take written_decls argument; output clone_of
4316 (add_node_to): Add include_body_argument; call
4317 lto_set_cgraph_encoder_encode_body on master of the clone.
4318 (add_references): Update use of add_node_to.
4319 (compute_ltrans_boundary): Likewise.
4320 (output_cgraph): Do not create written_decls bitmap.
4321 (input_node): Take nodes argument; stream in clone_of correctly.
4322 (input_cgraph_1): Update use of input_node.
4323 * lto-streamer-out.c (lto_output): Use encoder info to decide
4324 what bodies to output.
4325 * ipa-inline.c (cgraph_clone_inlined_nodes,
4326 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
4327 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
4328 (lto_cgraph_encoder_size): Define here.
4329 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
4332 2010-05-16 Richard Guenther <rguenther@suse.de>
4334 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
4336 * ipa-type-escape.c (gate_type_escape_vars): Run when
4337 -fipa-struct-reorg runs.
4338 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
4339 * common.opt (fipa-type-escape): Remove.
4341 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
4343 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
4344 (decode_options): Likewise.
4345 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
4347 2010-05-16 Jan Hubicka <jh@suse.cz>
4349 * ipa.c (function_and_variable_visibility): Also bring local all
4352 2010-05-16 Richard Guenther <rguenther@suse.de>
4354 * alias.c (nonoverlapping_memrefs_p): Remove use of
4355 IPA type-escape information.
4357 2010-05-16 Joseph Myers <joseph@codesourcery.com>
4359 * c-common.c (c_common_reswords): Add _Static_assert for C.
4360 * c-parser.c (c_token_starts_declaration,
4361 c_parser_next_token_starts_declaration,
4362 c_parser_static_assert_declaration_no_semi,
4363 c_parser_static_assert_declaration): New.
4364 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
4365 Handle static assertions if static_assert_ok.
4366 (c_parser_external_declaration, c_parser_declaration_or_fndef,
4367 c_parser_compound_statement_nostart, c_parser_label,
4368 c_parser_for_statement, c_parser_objc_methodprotolist,
4369 c_parser_omp_for_loop): All callers of
4370 c_parser_declaration_or_fndef changed.
4371 (c_parser_struct_declaration): Handle static assertions.
4372 (c_parser_compound_statement_nostart): Use
4373 c_parser_next_token_starts_declaration and
4374 c_token_starts_declaration to detect start of declarations.
4375 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
4378 2010-05-16 Anatoly Sokolov <aesok@post.ru>
4380 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4381 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4382 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4383 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4384 (mmix_function_outgoing_value): Rename to...
4385 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
4386 (mmix_function_value_regno_p): Make static.
4387 (mmix_libcall_value): New function.
4388 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
4389 mmix_function_value_regno_p): Remove declaration.
4391 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
4393 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
4394 BUILT_IN_ALLOCA if stack checking is enabled.
4396 2010-05-16 Richard Guenther <rguenther@suse.de>
4398 * var-tracking.c (vars_copy_1): Inline ...
4399 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
4400 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
4401 (variable_merge_over_cur): Adjust. Merge asserts.
4402 (variable_merge_over_src): Likewise.
4403 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
4404 (variable_post_merge_new_vals): Merge asserts.
4405 (variable_post_merge_perm_vals): Likewise.
4406 (find_mem_expr_in_1pdv): Likewise.
4407 (dataflow_set_different_value): Remove.
4408 (onepart_variable_different_p): Merge asserts.
4409 (variable_different_p): Likewise.
4410 (dataflow_set_different_1): Inline ...
4411 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
4412 (emit_notes_for_differences_1): Merge asserts.
4414 2010-05-16 Richard Guenther <rguenther@suse.de>
4416 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
4417 * optabs.c (libfunc_decl_hash): Likewise.
4418 * varasm.c (emutls_decl): Likewise.
4420 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
4422 * c-decl.c: Don't include gimple.h.
4423 (merge_decls): Do not copy gimple_body.
4425 2010-05-15 Jason Merrill <jason@redhat.com>
4427 * c.opt: Add -fnothrow-opt.
4429 2010-05-15 Jan Hubicka <jh@suse.cz>
4431 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
4433 * passes.c (ipa_write_summaries): Write all analyzed nodes.
4435 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
4437 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
4438 * Makefile.in: Add it.
4439 Fix all other Makefile dependencies for changes below.
4440 * tree.h: Include it instead of defining VEC primitives here.
4441 * gimple.h: Likewise.
4443 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
4444 * except.h: Include vecir.h, break dependence on tree.h.
4446 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
4448 * tree-iterator.c: ...to here.
4449 * tree-iterator.h: Fix file introduction comment. Add extern markers.
4451 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
4453 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
4454 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
4455 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
4456 tree-mudflap.h, and target.h.
4457 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
4458 predict.h, tree-inline.h, gimple.h, and langhooks.h.
4459 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
4460 Add FIXME for why gimple.h is still included (should be unnecessary
4461 since GCC 4.5 gimplification unit-at-a-time).
4462 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
4463 * c-pragma.c: Add FIXME for why function.h needs to be included just
4464 for cfun, at front-end level.
4465 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
4466 Do not include ggc.h, but include vecprim.h for VEC(char).
4467 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
4468 Explain why target.h is included.
4469 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
4470 Explain why gimple.h is included.
4471 * c-ppoutput.c: Do not include tm.h.
4472 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
4473 * c-parses.c: Explain why rtl.h is included, and that this (and only
4474 this) is also why tm.h must be included.
4475 Do not include except.h.
4476 * c-lang.c: Do not include ggc.h.
4478 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
4480 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
4482 2010-05-15 Joseph Myers <joseph@codesourcery.com>
4484 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
4485 unions by default if those structs and unions have no tags. Do
4486 not condition anonymous struct and unions handling on flag_iso.
4487 Allow anonymous structs and unions for C1X.
4488 (finish_struct): Do not diagnose lack of named fields when
4489 anonymous structs and unions present for C1X. Accept flexible
4490 array members in structure with anonymous structs or unions but no
4491 directly named fields.
4492 * doc/extend.texi (Unnamed Fields): Update.
4494 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
4496 * gimple.h (compare_field_offset): Rename into...
4497 (gimple_compare_field_offset): ...this.
4498 * gimple.c (compare_field_offset): Rename into...
4499 (gimple_compare_field_offset): ...this. Compare the full access if
4500 the offset is self-referential.
4501 (gimple_types_compatible_p): Adjust for above renaming.
4502 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
4503 DECL_NONADDRESSABLE_P flag of fields before merging them.
4505 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
4507 * tree.h (ctor_to_list): Delete.
4508 * tree.c (ctor_to_list): Delete.
4510 2010-05-15 Jan Hubicka <jh@suse.cz>
4512 * ipa-reference.c: Include toplev.h
4513 (is_proper_for_analysis): Only add to all_module_statics
4515 (write_node_summary_p, stream_out_bitmap,
4516 ipa_reference_write_optimization_summary,
4517 ipa_reference_read_optimization_summary): New.
4518 (struct ipa_opt_pass_d pass_ipa_reference): Add
4519 optimization summary streaming.
4520 * lto-cgraph.c (referenced_from_this_partition_p,
4521 reachable_from_this_partition_p): New functions.
4522 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
4523 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
4524 * opts.c (decode_options): Enable ipa_reference.
4525 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
4526 * lto-streamer.h (referenced_from_this_partition_p,
4527 reachable_from_this_partition_p): Declare.
4529 2010-05-15 Richard Guenther <rguenther@suse.de>
4531 PR tree-optimization/44038
4532 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
4533 taking the address of a V_C_E of a constant.
4535 2010-05-14 Jan Hubicka <jh@suse.cz>
4537 * tree.h (memory_identifier_string): Remove.
4538 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
4539 (ipa_reference_global_vars_info_d): Remove statics_not_read and
4540 statics_not_written.
4541 (ipa_reference_optimization_summary_d): New structure.
4542 (ipa_reference_optimization_summary_t): New type and vector.
4543 (ipa_reference_vars_info_d): Embedd structures instead of using
4545 (reference_vars_to_consider): Remove out of GGC space.
4546 (module_statics_escape): Remove.
4547 (global_info_obstack): Rename to ...
4548 (optimization_summary_obstack): ... this one.
4549 (initialization_status_t): Remove.
4550 (memory_identifier_string): Remove.
4551 (get_reference_vars_info): Fix indenting.
4552 (set_reference_vars_info): Likewise.
4553 (get_reference_optimization_summary): New.
4554 (set_reference_optimization_summary): New.
4555 (get_global_reference_vars_info): Remove.
4556 (ipa_reference_get_read_global): Remove.
4557 (ipa_reference_get_written_global): Remove.
4558 (ipa_reference_get_not_read_global): Update.
4559 (ipa_reference_get_not_written_global): Update.
4560 (is_proper_for_analysis): Outlaw addressable.
4561 (propagate_bits): Update for new datastructures.
4562 (analyze_variable): Remove.
4563 (init_function_info): Update for new datastructures.
4564 (clean_function_local_data): Remove.
4565 (clean_function): Remove.
4566 (copy_global_bitmap): Use optimizations_summary_obstack.
4567 (duplicate_node_data): Duplicate optimization summary only.
4568 (remove_node_data): Remove optimization summary only.
4569 (generate_summary): Do not analyze variables; do not compute
4570 module_statics_escape; do not prune solutions by it.
4571 (read_write_all_from_decl): Fix typos in comments.
4572 (propagate): Doscover readonly and nonaddressable first;
4573 update for new datastructures; share global bitmaps.
4574 * ipa-reference.h (ipa_reference_get_read_global,
4575 ipa_reference_get_written_global): Remove.
4576 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
4577 * Makefile.in: Remove ipa-refereference from GT files.
4579 2010-05-14 Jakub Jelinek <jakub@redhat.com>
4582 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
4583 for all SYMBOL_REF_DECLs.
4585 2010-05-14 Jan Hubicka <jh@suse.cz>
4587 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
4588 (varpool_all_refs_explicit_p): New inline function.
4589 * ipa-reference.c: Update comment.
4590 (module_statics_written): Remove.
4591 (get_static_decl): Remove.
4592 (ipa_init): Do not initialize module_statics_written.
4593 (analyze_function): Likewise.
4594 (generate_summary): Likewise; do not compute module_statics_readonly
4595 and do not update variable flags.
4596 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
4597 * ipa.c: Inlucde flags.h
4598 (cgraph_local_node_p): New.
4599 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
4600 promote functions to local.
4601 (ipa_discover_readonly_nonaddressable_vars): New function.
4602 (function_and_variable_visibility): Use cgraph_local_node_p.
4603 * varpool.c (varpool_finalize_decl): Set force_output for
4604 DECL_PRESERVE_P vars.
4606 2010-05-14 Jan Hubicka <jh@suse.cz>
4608 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
4610 2010-05-14 Richard Guenther <rguenther@suse.de>
4612 PR tree-optimization/44119
4613 * tree-ssa-pre.c (eliminate): Properly mark replacement of
4614 a PHI node necessary.
4616 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
4618 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
4620 2010-05-14 Jason Merrill <jason@redhat.com>
4623 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
4624 (gimple_call_set_nothrow): New.
4625 * gimple.c (gimple_build_call_from_tree): Call it.
4626 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
4629 * gimplify.c (gimplify_seq_add_stmt): No longer static.
4630 * gimple.h: Declare it.
4631 * gimple.c (gimple_build_eh_filter): No ops.
4633 2010-05-14 Jan Hubicka <jh@suse.cz>
4635 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
4636 nodes already in queue.
4637 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
4640 2010-05-14 Jakub Jelinek <jakub@redhat.com>
4643 * cfgexpand.c (expand_debug_expr): If non-memory op0
4644 has BLKmode, return NULL.
4646 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
4648 * config.gcc: Add support for --with-cpu option for bdver1.
4649 * config/i386/i386.h (TARGET_BDVER1): New macro.
4650 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
4651 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
4652 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
4653 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
4654 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
4655 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
4656 (processor_type): Add PROCESSOR_BDVER1.
4657 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
4658 processor_type in config/i386/i386.h.
4659 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
4660 movaps <reg, reg> instead of movapd <reg, reg> when replacing
4661 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
4662 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
4663 to emit packed xor instead of packed double/packed integer
4664 xor for SSE and AVX when moving a zero value.
4665 * config/i386/sse.md: Add check for
4666 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
4667 movapd/movdqa for SSE and AVX.
4668 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
4669 single logical operations i.e and, or and xor instead of packed double
4670 logical operations for SSE and AVX.
4671 * config/i386/i386-c.c (ix86_target_macros_internal):
4672 Add PROCESSOR_BDVER1.
4673 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
4674 (has_fma4, has_xop): New.
4675 * config/i386/i386.c (bdver1_cost): New variable.
4676 (m_BDVER1): New macro.
4677 (m_AMD_MULTIPLE): Add m_BDVER1.
4678 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
4679 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
4680 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
4681 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
4682 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
4683 x86_tune_sse_partial_reg_dependency,
4684 x86_tune_sse_unaligned_load_optimal,
4685 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
4686 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
4687 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
4688 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
4689 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
4690 Enable/disable for bdver1.
4691 (processor_target_table): Add bdver1_cost.
4692 (cpu_names): Add bdver1.
4693 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
4694 processor_alias_table.
4695 (ix86_expand_vector_move_misalign): Change.
4696 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
4697 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
4698 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
4699 of movupd/movdqu for SSE and AVX.
4700 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
4701 (ix86_tune_adjust_cost): Add code for bdver1.
4702 (standard_sse_constant_opcode): Add check for
4703 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
4704 of packed double xor for SSE and AVX.
4706 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
4708 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
4711 2010-05-14 Tristan Gingold <gingold@adacore.com>
4713 * toplev.c (default_debug_hooks): Remove this variable.
4714 (process_options): Remove assignments to default_debug_hooks.
4716 2010-05-14 Martin Jambor <mjambor@suse.cz>
4718 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
4719 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
4720 * langhooks.h (struct lang_hooks_for_decls): Removed field
4722 * tree.c (free_lang_data): Remove assignment to
4723 lang_hooks.fold_obj_type_ref.
4724 * tree.def (OBJ_TYPE_REF): Update comment.
4726 2010-05-14 Richard Guenther <rguenther@suse.de>
4728 PR tree-optimization/44124
4729 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
4731 2010-05-14 Alan Modra <amodra@gmail.com>
4734 * config/rs6000/rs6000.c (struct machine_function): Reorder
4735 fields for better packing. Add lr_save_state.
4736 (rs6000_ra_ever_killed): Return lr_save_state if set.
4737 (rs6000_emit_eh_reg_restore): Set lr_save_state.
4739 2010-05-13 Jan Hubicka <jh@suse.cz>
4741 * varpool.c (decide_is_variable_needed): Drop code checking
4742 TREE_SYMBOL_REFERENCED.
4744 2010-05-13 Jan Hubicka <jh@suse.cz>
4746 * final.c (output_addr_const): Do not call mark_decl_referenced.
4747 * cgraphunit.c (process_function_and_variable_attributes): Use
4748 mark_needed_node dirrectly.
4749 (assemble_thunk): Do not call mark_decl_referenced.
4751 2010-05-13 Anatoly Sokolov <aesok@post.ru>
4753 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
4755 2010-05-13 Jeff Law <law@redhat.com>
4757 * ira-conflicts.c (print_allocno_conflicts): New function broken out
4759 (print_conflicts): Call print_allocno_conflicts.
4761 2010-05-13 Jakub Jelinek <jakub@redhat.com>
4764 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
4767 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
4769 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
4770 t-mingw-w64 or t-mingw-w32 for multilib configuration.
4771 * config/i386/t-mingw-w32: New.
4772 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
4774 2010-05-13 Martin Jambor <mjambor@suse.cz>
4776 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
4778 * gimple-fold.c (get_base_binfo_for_type): New function.
4779 (gimple_get_relevant_ref_binfo): Likewise.
4780 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4781 (gimple_fold_obj_type_ref): Likewise.
4782 (fold_gimple_call): Simplify condition for folding virtual calls
4783 and call gimple_fold_obj_type_ref.
4784 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
4785 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4787 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
4789 * config/rs6000/rs6000-protos.h
4790 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
4791 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
4792 (rs6000_debug_mode_dependent_address)
4793 (rs6000_mode_dependent_address_ptr): Likewise.
4795 2010-05-13 Jakub Jelinek <jakub@redhat.com>
4798 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
4800 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
4801 * tree-sra.c (create_access_replacement): Call unshare_expr before
4802 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
4803 * dwarf2out.c: Include tree-flow.h.
4804 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
4805 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4806 Handle DW_OP_bit_piece.
4807 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
4808 construct_piece_list, adjust_piece_list): New functions.
4809 (add_var_loc_to_decl): Handle SRA optimized variables.
4810 Adjust for var_loc_note to loc field renaming.
4811 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
4812 in VAR_LOCATION note.
4813 (new_loc_descr_op_bit_piece): New function.
4814 (dw_sra_loc_expr): New function.
4815 (dw_loc_list): Use it. Don't handle the last range after the
4816 loop, handle it inside of the loop. Adjust for var_loc_note
4817 to loc field renaming.
4818 (add_location_or_const_value_attribute): Only special case
4819 single entry loc lists if loc is NOTE_P. Adjust for
4820 var_loc_note to loc field renaming.
4821 (dwarf2out_var_location): Don't set newloc->var_loc_note
4822 and newloc->next here.
4824 2010-05-12 Jan Hubicka <jh@suse.cz>
4826 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
4828 * cgraph.h (cgraph_only_called_directly_p,
4829 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
4830 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
4831 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
4833 * ipa.c (cgraph_remove_unreachable_nodes): Use
4834 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
4836 * tree-inline.c (copy_bb): Check address_taken flag.
4837 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
4838 externally_visible flag.
4840 2010-05-12 Jason Merrill <jason@redhat.com>
4844 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
4845 * sdbout.c (plain_type_1): Likewise.
4846 * dwarf2out.c (is_base_type): Likewise.
4847 (gen_type_die_with_usage): Likewise. Generate
4848 DW_TAG_unspecified_type for any LANG_TYPE.
4850 2010-05-12 Jan Hubicka <jh@suse.cz>
4852 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
4854 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
4855 (cgraph_clone_edge): Update.
4856 (cgraph_node_remove_callees): Remove indirect calls too.
4857 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
4858 (cgraph_create_indirect_edge): Update prototype.
4859 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
4860 is_proper_for_analysis.
4861 (add_new_function, visited_nodes, function_insertion_hook_holder,
4862 get_local_reference_vars_info, mark_address_taken, mark_address,
4863 mark_load, mark_store, check_asm_memory_clobber, check_call,
4864 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
4865 (ipa_init): Do not initialize visited_nodes;
4866 function_insertion_hook_holder.
4867 (analyze_variable): Rewrite.
4868 (analyze_function): Rewrite.
4869 (copy_local_bitmap): Remove.
4870 (duplicate_node_dat): Do not duplicate local info.
4871 (generate_summary): Simplify to only walk cgraph.
4872 (write_node_summary_p, ipa_reference_write_summary,
4873 ipa_reference_read_summary): Remove.
4874 (propagate): Do not remove function insertion;
4876 (pass_ipa_reference): NULLify summary handling fields.
4877 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
4878 (input_edge): Input ecf_flags.
4879 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
4880 (update_indirect_edges_after_inlining): Ignore edges with unknown
4883 2010-05-12 Sriraman Tallam <tmsriram@google.com>
4885 * implicit-zee.c: New file.
4886 * tree-pass.h (pass_implicit_zee): Declare.
4887 * passes.c (init_optimization_passes): Add zee pass.
4888 * common.opt (fzee): New flag.
4889 * timevar.def (TV_ZEE): Define.
4890 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
4892 * Makefile.in (implicit-zee.o): Add new build file.
4894 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
4895 Nathan Froyd <froydnj@codesourcery.com>
4897 * c-common.c (sync_resolve_params): Remove write-only variable.
4899 2010-05-12 Anatoly Sokolov <aesok@post.ru>
4901 * target.h (struct gcc_target): Add mode_dependent_address_p field.
4902 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
4903 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
4904 * targhooks.c (default_mode_dependent_address_p): New function.
4905 * targhooks.h (default_mode_dependent_address_p): Declare function.
4906 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
4907 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
4908 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
4909 target hook. Change return type to bool.
4910 * recog.h (mode_dependent_address_p): Change return type to bool.
4912 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
4913 Nathan Froyd <froydnj@codesourcery.com>
4915 * tree-mudflap.c (build_function_type_0, build_function_type_1,
4916 build_function_type_2, build_function_type_3): Remove.
4917 (mudflap_init): Use build_function_type_list.
4919 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
4920 Nathan Froyd <froydnj@codesourcery.com>
4922 * coverage.c (build_fn_info_value): Call build_constructor instead of
4923 build_constructor_from_list.
4924 (build_ctr_info_value): Likewise.
4925 (build_gcov_info): Likewise.
4927 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
4929 * tree.c (build_constructor): Compute TREE_CONSTANT for the
4930 resultant constructor.
4931 (build_constructor_single): Don't set TREE_CONSTANT.
4932 (build_constructor_from_list): Don't compute TREE_CONSTANT.
4934 2010-05-12 Jan Hubicka <jh@suse.cz>
4936 * cgraph.h (struct varpool_node): Add aux.
4937 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
4938 * varpool.c (varpool_remove_node): Do not remove initializer.
4939 (varpool_reset_queue): Export.
4940 (varpool_finalize_decl): Volatile vars are forced to be output.
4941 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
4943 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
4944 process_references, varpool_can_remove_if_no_refs): New functions.
4945 (cgraph_remove_unreachable_nodes): Handle variables too.
4947 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
4950 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
4952 2010-05-12 Jakub Jelinek <jakub@redhat.com>
4955 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
4956 change value of ORT_TASK.
4957 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
4958 (omp_notice_threadprivate_variable): New function.
4959 (omp_notice_variable): Call it for threadprivate variables.
4960 If enclosing ctx is a task, print enclosing task rather than
4961 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
4962 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
4963 if task has untied clause.
4966 * dwarf2out.c (base_type_die): Don't add name attribute here.
4967 (modified_type_die): Instead of sizetype use
4968 its underlying original type. If a DW_TAG_base_type doesn't
4969 have name added, add __unknown__.
4970 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
4971 always call force_type_die instead.
4973 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
4975 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
4976 for __stack_chk_guard.
4978 2010-05-11 Jakub Jelinek <jakub@redhat.com>
4980 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
4981 don't call start_source_file debug hook here...
4982 (finish_options): ... but here, after outputting predefined and
4983 command line defines and undefs.
4986 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
4988 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
4989 optimizing away empty bb with no successors, move over its
4990 footer chain to fallthru predecessor.
4991 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
4992 (rtl_split_edge): For asm goto call patch_jump_insn even if
4993 splitting fallthru edge.
4996 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
4997 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
4998 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
4999 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
5003 * c-parser.c (c_parser_expression): Mark LHS of a comma
5004 expression as read if it is a decl, handled component or
5005 COMPOUND_EXPR with that on the RHS.
5006 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
5007 if it is a decl or handled component.
5009 2010-05-11 Jan Hubicka <jh@suse.cz>
5011 * lto-symtab.c (lto_symtab_free): New function.
5012 * lto-streamer.h (lto_symtab_free): Declare.
5014 2010-05-11 Jan Hubicka <jh@suse.cz>
5016 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
5017 that if function is needed it is reachable.
5018 (lto_output_node): See if it the function is reachable or referenced.
5019 (output_cgraph): Update call of lto_output_node.
5020 * lto-streamer.h (reachable_from_other_partition_p): Declare.
5022 2010-05-11 Jan Hubicka <jh@suse.cz>
5024 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
5027 2010-05-11 Jan Hubicka <jh@suse.cz>
5029 PR tree-optimize/44063
5030 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
5032 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
5034 (estimate_function_body_sizes): Compute sizes even when disregarding.
5036 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
5038 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
5040 2010-05-11 Jan Hubicka <jh@suse.cz>
5042 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
5043 into every boundary.
5045 2010-05-11 Jan Hubicka <jh@suse.cz>
5047 * matrix-reorg.c (matrix_reorg): Rebuild edges.
5049 2010-05-11 Jan Hubicka <jh@suse.cz>
5051 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
5052 lto_streamer_cache_delete): Put nodes into heap.
5053 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
5056 2010-05-11 Jan Hubicka <jh@suse.cz>
5058 * cgraphbuild.c (cgraph_rebuild_references): New.
5059 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
5061 * cgraph.h (cgraph_rebuild_references): Declare.
5062 * tree-inline.c (tree_function_versioning): Use it.
5063 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
5065 2010-05-11 Jan Hubicka <jh@suse.cz>
5067 * cgraph.c: Include ipa-utils.h
5068 (cgraph_create_virtual_clone): Update references.
5069 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
5071 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
5073 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
5074 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
5077 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
5079 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
5081 2010-05-11 Jakub Jelinek <jakub@redhat.com>
5083 * gcc.c (execute): For -### don't quote arguments that
5084 contain just alphanumerics and _/-. characters.
5085 * doc/invoke.texi: Document that change for -###.
5088 * df-problems.c (struct dead_debug): Add to_rescan field.
5089 (dead_debug_init): Clear to_rescan field.
5090 (dead_debug_finish): Rescan all debug insns in to_rescan
5091 bitmap and free the bitmap.
5092 (dead_debug_insert_before): Instead of rescanning debug insns
5093 immediately queue their rescanning until dead_debug_finish.
5094 (df_note_bb_compute): After dead_debug_add do continue instead
5097 2010-05-10 Jakub Jelinek <jakub@redhat.com>
5100 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
5101 clear also INSN_REG_USE_LIST.
5103 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5105 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
5107 2010-05-10 Jan Hubicka <jh@suse.cz>
5109 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
5112 2010-05-10 Jan Hubicka <jh@suse.cz>
5114 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
5116 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
5117 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
5118 (lto_streamer_cache_create): Init alloc pool.
5119 (lto_streamer_cache_delete): Free alloc pool.
5120 * lto-streamer.h: Include alloc pool.
5121 (lto_streamer_cache_d): Use alloc pool.
5122 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
5124 2010-05-10 Jan Hubicka <jh@suse.cz>
5126 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
5127 * cgraphbuild.c: Include except.h
5128 (record_type_list, record_eh_tables): New function.
5129 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
5131 2010-05-10 Jan Hubicka <jh@suse.cz>
5133 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
5134 __frame_dummy_init_array_entry, force_to_data): Attribute as used
5137 2010-05-10 Michael Matz <matz@suse.de>
5139 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
5140 (can_reassociate_p): Use FLOAT_TYPE_P.
5141 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
5142 (vect_force_simple_reduction): ... this.
5143 * tree-parloops.c (gather_scalar_reductions): Use
5144 vect_force_simple_reduction.
5145 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
5146 vect_is_simple_reduction, add modify argument, if true rewrite
5147 "a-b" into "a+(-b)".
5148 (vect_is_simple_reduction, vect_force_simple_reduction): New
5150 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
5152 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
5153 Vladimir Makarov <vmakarov@redhat.com>
5155 PR rtl-optimization/44012
5156 * ira-build.c (remove_unnecessary_allocnos): Nullify
5157 regno_allocno_map of the removed allocno.
5159 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5161 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
5163 * configure: Regenerate.
5165 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5167 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
5169 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
5170 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
5172 * configure: Regenerate.
5174 2010-05-10 Richard Guenther <rguenther@suse.de>
5176 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
5177 marked if the entry identifier is marked.
5179 2010-05-10 Richard Guenther <rguenther@suse.de>
5181 * c-common.c (struct c_common_attributes): Add fnspec attribute.
5182 (handle_fnspec_attribute): New function.
5183 * gimple.h (gimple_call_return_flags): Declare.
5184 (gimple_call_arg_flags): Likewise.
5185 * gimple.c (gimple_call_arg_flags): New function.
5186 (gimple_call_return_flags): Likewise.
5187 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
5189 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
5191 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
5192 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
5194 (make_heapvar_for): ... this new function.
5195 (handle_rhs_call): Handle fnspec attribute argument specifiers.
5196 (handle_lhs_call): Likewise.
5197 (find_func_aliases): Adjust.
5199 2010-05-10 Richard Guenther <rguenther@suse.de>
5201 PR tree-optimization/44050
5202 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
5204 2010-05-10 Wei Guozhi <carrot@google.com>
5207 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
5209 2010-05-09 Joseph Myers <joseph@codesourcery.com>
5212 * c-typeck.c (lookup_field): Take a type directly. Update
5214 (build_component_ref): Update call to lookup_field.
5215 (set_init_label): Use lookup_field to find initialized field.
5216 Handle returned list of fields like a sequence of designators.
5218 2010-05-09 Richard Guenther <rguenther@suse.de>
5221 * fold-const.c (tree_single_nonzero_warnv_p): Properly
5222 handle &FUNCTION_DECL.
5224 2010-05-09 Joseph Myers <joseph@codesourcery.com>
5227 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
5228 structures and unions recursively.
5229 (detect_field_duplicates): Move duplicate detection with a hash to
5230 detect_field_duplicates_hash. Always use a hash if anonymous
5231 structures or unions are present.
5232 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
5235 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
5238 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
5239 detect Atom, Core 2 and Core i7.
5241 2010-05-09 Richard Guenther <rguenther@suse.de>
5243 * gcc.c (store_arg): Handle temporary file deletion for
5246 2010-05-09 Richard Guenther <rguenther@suse.de>
5249 * ipa-inline.c (estimate_function_body_sizes): Return after
5250 disregarding inline limits.
5252 2010-05-09 Richard Guenther <rguenther@suse.de>
5254 * gcc.c (store_arg): Revert last change.
5256 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
5259 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
5260 (optimize_ops_list): Call it.
5262 2010-05-08 Richard Guenther <rguenther@suse.de>
5264 PR tree-optimization/44030
5265 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
5266 NECESSARY flag if we propagate from a inserted expression.
5268 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5270 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
5271 domain types as equal if they are both PLACEHOLDER_EXPRs.
5273 2010-05-08 Richard Guenther <rguenther@suse.de>
5275 * lto-wrapper.c (run_gcc): Remove linker output from
5276 command line for LTRANS invocation.
5278 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
5280 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
5281 lto-macho as lto_binary_reader.
5282 * target.h (struct gcc_target): New hooks lto_start and lto_end.
5283 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
5284 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
5285 in lto_start and lto_end calls.
5286 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
5288 (scan_prog_file): Update is_elf_or_coff call.
5289 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
5291 * collect2.c (main): Fix enum comparison.
5293 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
5295 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
5296 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
5297 and TARGET_ASM_LTO_END.
5298 * darwin.c: Include obstack.h and lto-streamer.h.
5299 (lto_section_names_offset, lto_section_names_obstack,
5300 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
5302 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
5303 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
5304 to a temporary file.
5305 (darwin_asm_lto_end): New function. Restore asm_out_file.
5306 (darwin_asm_named_section): For LTO sections, replace the name with
5307 the offset of the section name in a string table, and build this
5309 (darwin_file_start): Initialize global vars for LTO support.
5310 (darwin_file_end): If output to asm_out_file was redirected, append it
5311 to the proper asm_out_file here. Add the section names section.
5313 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
5315 * c-pragma.c (pending_weak_d, pending_weak): New.
5316 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
5317 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
5318 handle_pragma_weak): Update the uses of pending_weaks.
5320 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5322 PR documentation/44016
5323 * doc/standards.texi (Standards): Link to unversioned
5324 cxx0x_status.html page.
5326 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
5329 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
5330 in addition to TREE_USED, to avoid "set but unused" warnings.
5332 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
5334 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
5335 (is_loop_prefetching_profitable): Do not insert prefetches
5336 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
5337 times the prefetch ahead distance.
5339 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
5341 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
5342 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
5343 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
5346 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
5348 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
5349 a diagnostic info when the insn-to-mem ratio is too small.
5351 2010-05-07 Richard Guenther <rguenther@suse.de>
5353 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
5355 (store_arg): Queue temp_filename for deletion instead of
5358 2010-05-07 Richard Guenther <rguenther@suse.de>
5360 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
5361 (run_gcc): Handle LTRANS phase invocation.
5362 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
5364 2010-05-07 Jakub Jelinek <jakub@redhat.com>
5366 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
5367 this is also meaningful on PARM_DECLs and RESULT_DECLs.
5369 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5371 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
5373 2010-05-07 Richard Guenther <rguenther@suse.de>
5375 PR tree-optimization/44020
5376 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
5377 code when PRE is not yet initialized.
5379 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5381 * config/mips/dbxmdebug.h: Remove.
5382 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
5384 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
5386 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
5387 with null pointer and also warn about ordered comparison of zero with
5390 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5392 * graphite-blocking.c
5393 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
5394 * graphite-clast-to-gimple.c
5395 (clast_to_gcc_expression): Same.
5396 (precision_for_value): Same.
5397 (precision_for_interval): Same.
5398 (gcc_type_for_interval): Same.
5399 (graphite_create_new_guard): Same.
5400 (compute_bounds_for_level): Same.
5401 (graphite_create_new_loop_guard): Same.
5402 * graphite-interchange.c
5403 (build_linearized_memory_access): Same.
5404 (pdr_stride_in_loop): Same.
5405 (memory_strides_in_loop_1): Same.
5406 (memory_strides_in_loop): Same.
5407 (extend_scattering): Same.
5408 (psct_scattering_dim_for_loop_depth): Same.
5409 (pbb_number_of_iterations): Same.
5411 (debug_iteration_domains): Same.
5413 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
5414 (ppl_set_inhomogeneous_gmp): Same.
5415 (ppl_strip_loop): Same.
5416 (ppl_lexico_compare_linear_expressions): Same.
5417 (ppl_read_polyhedron_matrix): Same.
5418 (ppl_max_for_le_pointset): Same.
5420 (ppl_read_polyhedron_matrix): Same.
5421 (tree_int_to_gmp): Same.
5422 (gmp_cst_to_tree): Same.
5423 (ppl_set_inhomogeneous): Same.
5424 (ppl_set_inhomogeneous_tree): Same.
5425 (ppl_set_coef): Same.
5426 (ppl_set_coef_tree): Same.
5427 * graphite-sese-to-poly.c
5428 (build_pbb_scattering_polyhedrons): Same.
5429 (build_scop_scattering): Same.
5430 (scan_tree_for_params_right_scev): Same.
5431 (scan_tree_for_params): Same.
5432 (find_params_in_bb): Same.
5433 (find_scop_parameters): Same.
5434 (add_upper_bounds_from_estimated_nit): Same.
5435 (build_loop_iteration_domains): Same.
5436 (add_condition_to_domain): Same.
5437 (pdr_add_memory_accesses): Same.
5439 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5441 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
5442 CLooG's value_* macros to their respective mpz_* counterparts.
5443 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
5444 (graphite_create_new_loop_guard): Same.
5445 * graphite-interchange.c (build_linearized_memory_access): Same.
5446 (pdr_stride_in_loop): Same.
5447 (memory_strides_in_loop_1): Same.
5448 (1st_interchange_profitable_p): Same.
5449 * graphite-poly.c (extend_scattering): Same.
5450 (psct_scattering_dim_for_loop_depth): Same.
5451 (pbb_number_of_iterations): Same.
5452 (pbb_number_of_iterations_at_time): Same.
5453 * graphite-poly.h (new_1st_loop): Same.
5454 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
5455 (oppose_constraint): Same.
5456 (insert_constraint_into_matrix): Same.
5457 (ppl_set_inhomogeneous_gmp): Same.
5458 (ppl_set_coef_gmp): Same.
5459 (ppl_strip_loop): Same.
5460 (ppl_lexico_compare_linear_expressions): Same.
5461 (ppl_max_for_le_pointset): Same.
5462 (ppl_min_for_le_pointset): Same.
5463 (ppl_build_realtion): Same.
5464 * graphite-ppl.h (gmp_cst_to_tree): Same.
5465 (ppl_set_inhomogeneous): Same.
5466 (ppl_set_inhomogeneous_tree): Same.
5467 (ppl_set_coef): Same.
5468 (ppl_set_coef_tree): Same.
5469 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
5470 (build_scop_scattering): Same.
5471 (add_value_to_dim): Same.
5472 (scan_tree_for_params_right_scev): Same.
5473 (scan_tree_for_params_int): Same.
5474 (scan_tree_for_params): Same.
5475 (find_params_in_bb): Same.
5476 (find_scop_parameters): Same.
5477 (add_upper_bounds_from_estimated_nit): Same.
5478 (build_loop_iteration_domains): Same.
5479 (create_linear_expr_from_tree): Same.
5480 (add_condition_to_domain): Same.
5481 (pdr_add_memory_accesses): Same.
5483 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
5484 Jason Merrill <jason@redhat.com>
5486 * c-common.c (c_common_reswords): Add nullptr.
5487 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
5488 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
5489 (gen_type_die_with_usage): Likewise.
5490 * dbxout.c (dbxout_type): Likewise.
5491 * sdbout.c (plain_type_1): Likewise.
5493 2010-05-06 Jason Merrill <jason@redhat.com>
5495 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
5496 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
5498 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
5500 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
5501 stripping WITH_SIZE_EXPR.
5502 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
5505 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5507 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
5508 list of obsolete configurations.
5509 Disabled check for obsolete configurations.
5510 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
5511 Removed support for previous versions.
5512 * config/mips/iris.h: Removed.
5513 * config/mips/iris5.h: Removed.
5514 * config/mips/iris6.h: Merged old iris.h contents.
5515 (TARGET_IRIX): Removed.
5516 (DRIVER_SELF_SPECS): Removed mabi=32.
5517 (IDENT_ASM_OP): Removed undef.
5518 (STARTFILE_SPEC): Removed mabi=32.
5519 (ENDFILE_SPEC): Likewise.
5520 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
5521 (MACHINE_TYPE): Update for IRIX 6.5.
5522 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
5523 TARGET_IRIX by TARGET_IRIX6.
5524 (mips_file_start): Likewise.
5525 (mips_output_external): Remove IRIX 5/6 O32 support.
5526 (mips_output_function_prologue): Likewise.
5527 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
5529 (TARGET_CPU_CPP_BUILTINS): Likewise.
5530 (TARGET_IRIX): Removed.
5531 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
5532 (MULTILIB_DIRNAMES): Removed 32.
5533 (MULTILIB_OSDIRNAMES): Removed ../lib.
5534 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
5535 (Specific, mips-sgi-irix5): Document removal.
5536 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
5537 Remove references to older IRIX 6 releases and the O32 ABI.
5539 2010-05-06 Jakub Jelinek <jakub@redhat.com>
5542 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
5543 instead of DF_REF_REAL_REG.
5545 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
5548 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
5549 handling to still return true for x64 targets.
5551 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5553 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
5555 2010-05-06 Jan Hubicka <jh@suse.cz>
5557 PR tree-optimization/43791
5558 * ipa-inline.c (update_caller_keys): Remove bogus
5559 disregard_inline_limits check.
5561 2010-05-06 Michael Matz <matz@suse.de>
5563 PR tree-optimization/43984
5564 * tree-ssa-pre.c (inserted_phi_names): Remove.
5565 (inserted_exprs): Change to bitmap.
5566 (create_expression_by_pieces): Set bits, don't append to vector.
5567 (insert_into_preds_of_block): Don't handle inserted_phi_names.
5568 (eliminate): Don't look at inserted_phi_names, remove deleted
5569 insns from inserted_exprs.
5570 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
5571 (init_pre, fini_pre): Allocate and free bitmaps.
5572 (execute_pre): Insert insns on edges before elimination.
5574 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
5576 * tree.c (initializer_zerop): Handle STRING_CST.
5578 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5581 * doc/invoke.texi (Wimplicit): Document as C only.
5582 * opts.c (common_handle_option): Add argument kind.
5583 (handle_option): Rename as read_cmdline_option. Factor out code to...
5584 (handle_option): ... here. New.
5585 (handle_options): Rename as read_cmdline_options.
5586 (decode_options): Update call.
5587 (set_option): Use option index instead of option pointer. Classify
5588 diagnostics correctly.
5589 (enable_warning_as_error): Call handle_option.
5590 * opts.h (set_option): Update declaration.
5591 (handle_option): Declare.
5592 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
5593 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
5594 * c-opts.c (set_Wimplicit): Delete.
5595 (c_family_lang_mask): New static constant.
5596 (c_common_handle_option): Add argument kind. Use handle_option
5597 instead of set_Wimplicit.
5598 (c_common_post_options): warn_implicit and warn_implicit_int
5599 are disabled by default.
5600 * c-common.c (warn_implicit): Do not define here.
5601 * c-common.h (warn_implicit): Do not declare here.
5602 (c_common_handle_option): Update declaration.
5603 * lto-opts.c (lto_reissue_options): Update call to set_option.
5605 2010-05-06 Richard Guenther <rguenther@suse.de>
5607 PR tree-optimization/43571
5608 * domwalk.c (walk_dominator_tree): Walk the dominator
5609 sons in more optimal order.
5611 2010-05-06 Richard Guenther <rguenther@suse.de>
5613 PR tree-optimization/43934
5614 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
5615 (stmt_cost): Likewise.
5616 (extract_true_false_args_from_phi): New helper.
5617 (determine_max_movement): For PHI nodes verify we can hoist them
5618 and compute their cost.
5619 (determine_invariantness_stmt): Handle PHI nodes.
5620 (move_computations_stmt): Likewise. Hoist PHI nodes in
5621 if-converted form using COND_EXPRs.
5622 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
5623 (tree_ssa_lim): Likewise.
5624 * tree-flow.h (tree_ssa_lim): Adjust prototype.
5625 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
5627 2010-05-06 Richard Guenther <rguenther@suse.de>
5629 PR tree-optimization/43987
5630 * tree-ssa-structalias.c (could_have_pointers): For possibly
5631 address-taken variables force pointers to be recorded.
5632 (create_variable_info_for_1): Likewise.
5633 (push_fields_onto_fieldstack): Pass in wheter all fields
5635 (find_func_aliases): Query types instead of vars whether
5636 they contain pointers where appropriate.
5638 2010-05-06 Jan Hubicka <jh@suse.cz>
5640 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
5641 (record_reference, mark_address, mark_load, mark_store): Record
5643 (record_references_in_initializer): Update call of record_references.
5644 (rebuild_cgraph_edges): Remove all references before rebuiding.
5645 * cgraph.c (cgraph_create_node): Clear ref list.
5646 (cgraph_remove_node): Remove references.
5647 (dump_cgraph_node): Dump references.
5648 (cgraph_clone_node): Clone references.
5649 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
5650 (struct cgraph_node, varpool_node): Add ref_lst.
5651 * ipa-ref.c: New file.
5652 * ipa-ref.h: New file.
5653 * ipa-ref-inline.h: New file.
5654 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
5655 (referenced_from_other_partition_p): New function.
5656 (lto_output_varpool_node): Take set arugment; call
5657 referenced_from_other_partition.
5658 (lto_output_ref): New.
5659 (add_references): New.
5661 (output_cgraph): Compute boundary based on references; output refs.
5662 (output_varpool): Accept cgraph_node_set argument.
5665 (input_cgraph): Call input_refs.
5666 * lto-section-in.c (lto_section_name): Add refs.
5667 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
5668 (ipa-ref.o): New file.
5669 * varpool.c (varpool_node): Clear ipa ref list.
5670 (varpool_remove_node): Remove references.
5671 (dump_varpool_node): Dump references.
5672 (varpool_assemble_decl): Only compile finalized ones.
5673 (varpool_extra_name_alias): Initialize ref list.
5674 * lto-streamer.c (lto-get_section_name): Add .refs section.
5675 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
5676 (referenced_from_other_partition_p): Declared.
5678 2010-05-06 Ira Rosen <irar@il.ibm.com>
5680 PR tree-optimization/43901
5681 * tree-vect-stmts.c (vectorizable_call): Assert that vector
5682 type is not NULL if it's transformation phase, and return
5683 FALSE if it's analysis.
5684 (vectorizable_conversion, vectorizable_operation,
5685 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
5687 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
5689 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
5691 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
5693 * config/mips/mips-protos.h
5694 (mips_small_register_classes_for_mode_p): Delete prototype.
5696 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
5698 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
5699 * config/arm/arm.c (multiple_operation_profitable_p,
5700 compute_offset_order): New static functions.
5701 (load_multiple_sequence, store_multiple_sequence): Use them.
5702 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
5703 memory offsets, not register numbers.
5704 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
5706 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
5708 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
5709 (get_pending_sizes, put_pending_size, put_pending_sizes):
5710 Update the uses of pending_sizes.
5711 * c-decl.c (store_parm_decls): Likewise.
5712 * c-tree.h (struct c_arg_info): Likewise.
5713 * tree.h: Update the prototype for get_pending_sizes and
5716 2010-05-05 Jason Merrill <jason@redhat.com>
5719 * c-common.c (handle_aligned_attribute): Respect
5720 ATTR_FLAG_TYPE_IN_PLACE.
5723 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
5724 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5725 (TARGET_INITIALIZER): Use it.
5726 * c-common.c (attribute_takes_identifier_p): Call it.
5727 * c-common.h: Update prototype.
5728 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
5729 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
5731 2010-05-05 Jakub Jelinek <jakub@redhat.com>
5734 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
5735 DW_ID_down_case for Fortran compilation units.
5737 2010-05-05 Jan Hubicka <jh@suse.cz>
5739 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
5742 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
5744 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
5745 a variable-sized RESULT_DECL.
5747 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
5749 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
5751 2010-05-05 Jason Merrill <jason@redhat.com>
5754 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
5756 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
5758 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
5759 Jakub Jelinek <jakub@redhat.com>
5762 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
5763 (dead_debug_init, dead_debug_finish): New functions.
5764 (dead_debug_add, dead_debug_insert_before): Likewise.
5765 (df_note_bb_compute): Initialize a dead_debug object, add dead
5766 debug uses to it, insert debug bind insns before death insns,
5767 reset debug insns that refer to pending uses at the end.
5768 * rtl.h (make_debug_expr_from_rtl): New prototype.
5769 * varasm.c (make_debug_expr_from_rtl): New function.
5771 2010-05-05 Jan Hubicka <jh@suse.cz>
5773 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
5774 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
5775 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
5776 lto_varpool_encoder_deref, lto_varpool_encoder_size,
5777 lto_varpool_encoder_encode_initializer_p,
5778 lto_set_varpool_encoder_encode_initializer): New functions.
5779 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
5780 call output_varpool.
5781 (input_varpool_node): Do not always set analyzed.
5782 (input_cgraph_1): Return vector of cgraph nodes.
5783 (input_varpool_1): Return vector of varpools.
5784 (input_cgraph): Free the vectors.
5785 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5786 output only initializers needed.
5787 (lto_output): Only call output_cgraph.
5788 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
5789 * lto-section-out.c (lto_new_out_decl_state): Initialize
5790 state->varpool_node_encoder.
5791 * lto-streamer.h (lto_varpool_encoder_d): New.
5792 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
5793 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
5794 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
5795 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
5796 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
5798 (output_varpool, input_varpool): Remove declarations.
5800 2010-05-05 Jan Hubicka <jh@suse.cz>
5802 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
5803 with body can prevail.
5805 2010-05-05 Jan Hubicka <jh@suse.cz>
5807 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
5810 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5812 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
5814 * gengtype.h (erro_at_line): Constify pos argument.
5816 * gengtype.c: Include hashtab.h.
5817 (enum gc_used): Document GC_MAYBE_POINTED_TO.
5818 (error_at_line): Constify pos argument.
5819 (do_typedef): Initialize p->opt field.
5820 (get_file_gtfilename): Fix comment typo.
5821 (struct walk_type_data): Constify line field.
5822 (get_output_file_for_structure): New function.
5823 (write_local_func_for_structure): Constify orig_s argument.
5824 Use get_output_file_for_structure.
5825 (write_func_for_structure): Use get_output_file_for_structure.
5826 (INDENT): New define.
5827 (dump_pair, dump_type, dump_type_list, dump_typekind)
5828 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
5829 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
5831 (seen_types): New variable.
5832 (main): New variable do_dump. Process "-d" command line option.
5833 Call dump_everything if dump requested.
5835 2010-05-05 Jakub Jelinek <jakub@redhat.com>
5837 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
5838 in a temporary instead of invoking the macro multiple times.
5839 (track_expr_p): Likewise.
5841 2010-05-04 Neil Vachharajani <nvachhar@google.com>
5843 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
5845 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
5846 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
5847 conditions for printing notes.
5848 * common.opt (-Wcoverage-mismatch): Allow negative, default to
5849 true, update documentation.
5850 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
5852 2010-05-04 Jakub Jelinek <jakub@redhat.com>
5855 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
5858 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
5861 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
5862 (*sse_prologue_save_insn1): Likewise.
5863 (SSE prologue save splitter): Likewise.
5865 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
5867 * tree.c (free_lang_data_in_one_sizepos): New inline function.
5868 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
5869 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
5870 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
5871 all decls. Call it on DECL_FIELD_OFFSET of fields.
5872 (find_decls_types_r): Follow DECL_VALUE_EXPR.
5873 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
5875 2010-05-04 Martin Jambor <mjambor@suse.cz>
5877 * tree-sra.c (build_access_from_expr_1): The first parameter type
5878 changed to simple tree.
5879 (build_access_from_expr): Likewise, gsi parameter was eliminated.
5880 (scan_assign_result): Renamed to assignment_mod_result, enum elements
5882 (build_accesses_from_assign): Removed all parameters except for a
5883 simple gimple statement. Now returns a simple bool.
5884 (scan_function): All non-analysis parts moved to separate functions
5885 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
5886 parameters and updated both callers.
5887 (sra_modify_expr): Removed parameter data.
5888 (sra_modify_function_body): New function.
5889 (perform_intra_sra): Call sra_modify_function_body to modify the
5891 (replace_removed_params_ssa_names): Parameter data changed into
5893 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
5894 changed the parameter dont_convert to convert with the opposite
5896 (sra_ipa_modify_assign): Parameter data changed into adjustments
5897 vector, return value changed to bool.
5898 (ipa_sra_modify_function_body): New function.
5899 (sra_ipa_reset_debug_stmts): Updated a comment.
5900 (modify_function): Use ipa_sra_modify_function_body to modify function
5903 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
5906 * alias.c (true_dependence): Handle the same VALUE in x and mem.
5907 (canon_true_dependence): Likewise.
5908 (write_dependence_p): Likewise.
5910 2010-05-04 Jan Hubicka <jh@suse.cz>
5912 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
5913 * cgraphbuild.c: Include ipa-utils.h
5914 (record_reference_ctx): New struct.
5915 (record_reference): Simplify to work on initializers; not statements.
5916 (mark_address, mark_load, mark_store): New.
5917 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
5919 (record_references_in_initializer): Update use of record_reference.
5920 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
5923 2010-05-04 Jan Hubicka <jh@suse.cz>
5925 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
5926 node will be removed anyway.
5927 (lto_varpool_replace_node): Allow also unanalyzed nodes;
5928 relink aliases of node into prevailing node.
5929 * varpool.c (varpool_remove_node): Remove aliases properly;
5930 when removing node, remove all its aliases too; remove DECL_INITIAL
5931 of removed node; ggc_free the varpool node.
5933 2010-05-04 Richard Guenther <rguenther@suse.de>
5935 PR tree-optimization/43879
5936 * tree-ssa-structalias.c (alias_get_name): Use
5937 DECL_ASSEMBLER_NAME if available.
5938 (create_function_info_for): Return the varinfo node.
5939 (ipa_pta_execute): Associate same-body aliases and extra names
5940 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
5942 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
5944 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
5946 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
5949 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
5950 only if HONOR_REG_ALLOC_ORDER is not defined.
5952 2010-05-04 Richard Guenther <rguenther@suse.de>
5954 PR tree-optimization/43949
5955 * tree-vrp.c (extract_range_from_binary_expr): Only handle
5958 2010-04-26 Jason Merrill <jason@redhat.com>
5960 * c.opt (-fstrict-enums): New.
5961 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
5963 2010-05-03 David Ung <davidu@mips.com>
5964 James E. Wilson <wilson@codesourcery.com>
5966 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
5967 emit the trap instruction before the divide for TUNE_74K.
5969 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
5971 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
5972 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
5973 based on the above, for new target hook.
5975 * hooks.c (hook_bool_mode_true): New generic hook.
5976 * hooks.h (hook_bool_mode_true): Add prototype.
5978 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
5980 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
5981 target hook, set to hook_bool_mode_false.
5982 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
5983 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
5984 with targetm.small_register_classes_for_mode_p.
5985 (find_reusable_reload): Likewise.
5986 (combine_reloads): Likewise.
5987 * reload1.c (reload_as_needed): Likewise.
5988 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
5989 * ifcvt.c (noce_process_if_block, check_cond_move_block,
5990 dead_or_predicable): Likewise.
5991 * regmove.c (optimize_reg_copy_1): Likewise.
5992 * calls.c (prepare_call_address): Likewise.
5993 (precompute_register_parameters): Likewise.
5995 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
5997 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
5998 implementation of the hook that considers all register classes
5999 small except for SH64.
6000 (sh_override_options): Use the new hook.
6001 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
6004 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
6006 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
6007 implementation of the hook that considers all register classes
6009 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
6012 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
6014 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
6015 implementation of the hook that considers all register classes
6017 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
6020 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
6022 * config/m32c/m32c.h: Likewise.
6023 * config/pdp11/pdp11.h: Likewise.
6024 * config/avr/avr.h: Likewise.
6025 * config/xtensa/xtensa.h: Likewise.
6026 * config/m68hc11/m68hc11.h: Likewise.
6027 * config/mn10300/mn10300.h: Likewise.
6028 * config/mcore/mcore.h: Likewise.
6029 * config/h8300/h8300.h: Likewise.
6030 * config/bfin/bfin.h: Likewise.
6032 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
6033 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
6035 2010-05-03 Anatoly Sokolov <aesok@post.ru>
6037 * double-int.h (tree_to_double_int): Remove macro.
6038 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
6039 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
6040 (tree_to_double_int): New function.
6041 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
6043 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
6045 2010-05-03 Richard Guenther <rguenther@suse.de>
6047 PR tree-optimization/43971
6048 * tree-ssa-structalias.c (get_constraint_for_1): Fix
6049 constraints in the !flag_delete_null_pointer_checks case.
6051 2010-05-03 Jakub Jelinek <jakub@redhat.com>
6054 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
6055 result mode matches original rtl mode.
6057 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
6060 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
6062 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6064 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
6065 when processing flag options.
6067 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6069 * gcov-iov.c (main): Change format string placeholder
6070 from %#08x to 0x%08x.
6071 * genchecksum.c (dosum): Change format string placeholder
6072 from %#02x to 0x%02x.
6074 2010-05-02 Richard Guenther <rguenther@suse.de>
6076 PR tree-optimization/43879
6077 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
6079 2010-05-02 Bruno Haible <bruno@clisp.org>
6081 * doc/extend.texi (Function Attributes): Fix a typo.
6083 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6086 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
6087 placeholder from 0x%x to %#x.
6088 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
6089 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
6090 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
6091 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
6092 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
6093 * config/i386/i386.c (ix86_target_string): Ditto.
6094 * config/i386/i386.c (output_pic_addr_const): Ditto.
6095 (print_operand): Ditto.
6097 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
6099 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
6100 placeholder from 0x%x to %#x.
6101 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
6102 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
6103 (ASM_OUTPUT_DEBUG_DATA): Ditto.
6104 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
6105 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
6106 * optc-gen.awk: Ditto.
6107 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
6108 (HOST_WIDE_INT_PRINT_HEX): Ditto.
6109 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
6110 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
6112 2010-05-01 Anatoly Sokolov <aesok@post.ru>
6114 * target.h (struct calls): Add function_value_regno_p field.
6115 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6116 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
6117 * targhooks.c (default_function_value_regno_p): New function.
6118 * targhooks.h (default_function_value_regno_p): Declare function.
6119 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
6120 * builtins.c. (apply_result_size): (Ditto.).
6121 * combine.c. (likely_spilled_retval_p): (Ditto.).
6122 * mode-switching.c. Include 'target.h'.
6123 (create_pre_exit): Use function_value_regno_p hook.
6124 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
6125 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
6126 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
6128 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
6129 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
6130 (ix86_function_value_regno_p): Declare as static, change argument
6131 type to const unsigned int.
6132 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
6134 2010-05-01 Richard Guenther <rguenther@suse.de>
6136 PR tree-optimization/43949
6137 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
6139 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
6141 2010-05-01 Anatoly Sokolov <aesok@post.ru>
6143 * rtl.h (CONST_DOUBLE_P): Define.
6144 (rtx_to_double_int): Declare.
6145 * emit-rtl.c (rtx_to_double_int): New function.
6146 * dwarf2out.c (insert_double): New function.
6147 (loc_descriptor, add_const_value_attribute): Clean up, use
6148 rtx_to_double_int and insert_double functions.
6150 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
6152 * doc/extend.texi (Inline): Add missing return keyword to examples.
6153 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
6156 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
6158 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
6159 the variable part of the offset as well. Use highest_pow2_factor for
6160 all alignment checks.
6162 2010-04-30 Richard Guenther <rguenther@suse.de>
6164 PR tree-optimization/43879
6165 * tree-ssa-structalias.c (type_could_have_pointers): Functions
6168 2010-04-30 Jan Hubicka <jh@suse.cz>
6170 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
6172 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
6174 2010-04-30 Jan Hubicka <jh@suse.cz>
6176 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
6178 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
6179 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
6180 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
6181 cgraph_node_set_needs_ltrans_p): Remove.
6183 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
6185 * sdbout.c: Include vec.h, do not include varray.h.
6186 (deferred_global_decls, sdbout_global_decl,
6187 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
6188 * toplev.c: Do not include varray.h.
6189 (dump_memory_report): Do not dump VARRAY statistics.
6190 * gengtype.c (open_base_file): Ignore varray.h.
6191 * Makefile.in: Update for abovementioned changes.
6192 Remove all traces of varray.c and varray.h.
6193 * varray.c: Remove file.
6194 * varray.h: Remove file.
6196 2010-04-30 Jan Hubicka <jh@suse.cz>
6198 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
6201 2010-04-30 Jan Hubicka <jh@suse.cz>
6203 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
6206 2010-04-30 Richard Guenther <rguenther@suse.de>
6208 * tree-ssa-structalias.c (get_constraint_for_1): Generate
6209 constraints for CONSTRUCTOR.
6211 2010-04-30 Richard Guenther <rguenther@suse.de>
6214 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
6215 first after all lowering passes.
6217 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
6219 * toplev.c: Include varray.h for statistics dumping.
6220 * tree.h: Do not declare varray_head_tag.
6221 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
6222 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
6223 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
6224 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
6225 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
6226 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
6227 c-common.c, c-common.h, reg-stack.c, basic-block.h,
6228 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
6230 * Makefile.in: Update for abovementioned changes.
6232 2010-04-30 Jakub Jelinek <jakub@redhat.com>
6235 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
6237 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
6239 * config/picochip/picochip.c (picochip_legitimize_address): Define.
6240 Use this function to do machine-specific conversion.
6241 (picochip_legitimize_reload_address): Likewise.
6242 (picochip_legitimate_address_p): Check valid base register only if
6244 (picochip_check_conditional_copy): Check for modw only if opnd is
6246 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
6247 to call the function in c.
6248 * config/picochip/picochip-protos.h
6249 (picochip_legitimize_reload_address): Define.
6250 * config/picochip/picochip.md (supported_compare1): Define.
6252 2010-04-30 Jan Hubicka <jh@suse.cz>
6254 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
6255 (cgraph_global_info): Remove inlined.
6256 (LTO_cgraph_tag_names): Remove.
6257 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
6258 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
6259 simplify cgraph tags and document.
6260 (lto_output_node): Use only LTO_cgraph_unavail_node and
6261 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
6262 for_functions_valid, global info, process and output flags.
6263 (input_overwrite_node): Initialize estimated stack size and
6264 estimated growth. Do not read flags we no longer store.
6265 (input_node): Likewise do not read info no longer stored.
6266 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
6269 2010-04-30 Richard Guenther <rguenther@suse.de>
6271 PR tree-optimization/43879
6272 * tree-ssa-structalias.c (get_constraint_for_1): Properly
6273 handle non-zero initializers.
6275 2010-04-30 Richard Guenther <rguenther@suse.de>
6277 * builtins.c (fold_builtin_1): Delete free (0).
6279 2010-04-29 Jan Hubicka <jh@suse.cz>
6281 * gengtype.c (open_base_files): Add lto-streamer.h
6282 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
6283 (pass_ipa_cp): GGC collect.
6284 * toplev. (compile_file): Do not output symbols.
6285 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
6286 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
6287 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
6288 * lto-section-in.c: Include ggc.h
6289 (lto_new_in_decl_state): Alloc in GGC.
6290 (lto_delete_in_decl_state): Likewise.
6291 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
6294 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
6297 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
6298 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
6299 (HONOR_REG_ALLOC_ORDER): Describe new macro.
6300 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
6301 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
6302 account only if HONOR_REG_ALLOC_ORDER is not defined.
6303 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
6304 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
6306 2010-04-29 Jon Grant <04@jguk.org>
6308 * collect2.c (vflag): Change type from int to bool.
6310 (helpflag): New global bool.
6311 (main): Set vflag and debug with boolean, not integer truth values.
6312 Accept new "--help" option and output usage text if found.
6313 * collect2.h (vflag): Update prototype.
6316 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
6319 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
6321 2010-04-29 Richard Guenther <rguenther@suse.de>
6324 * plugin.h (invoke_plugin_callbacks): Annotate arguments
6325 with ATTRIBUTE_UNUSED.
6327 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
6330 * config/i386/i386.c (get_some_local_dynamic_name): Replace
6331 INSN_P with NONDEBUG_INSN_P.
6332 (distance_non_agu_define): Likewise.
6333 (distance_agu_use): Likewise.
6335 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
6337 From Dominique d'Humieres <dominiq@lps.ens.fr>
6339 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
6342 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
6344 * plugin.h (invoke_plugin_callbacks): New inline function.
6345 * plugin.c (flag_plugin_added): New global flag.
6346 (add_new_plugin): Initialize above flag.
6347 (invoke_plugin_callbacks): Rename to ...
6348 (invoke_plugin_callbacks_full): ... this.
6350 2010-04-28 Jan Hubicka <jh@suse.cz>
6352 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
6353 (lto_varpool_replace_node): New.
6354 (lto_symtab_resolve_symbols): Resolve varpool nodes.
6355 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
6356 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
6357 * cgraph.h (varpool_node_ptr): New type.
6358 (varpool_node_ptr): New vector.
6359 (varpool_node_set_def): New structure.
6360 (varpool_node_set): New type.
6361 (varpool_node_set): New vector.
6362 (varpool_node_set_element_def): New structure.
6363 (varpool_node_set_element, const_varpool_node_set_element): New types.
6364 (varpool_node_set_iterator): New type.
6365 (varpool_node): Add prev pointers, add used_from_other_partition,
6367 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
6368 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
6369 varpool_get_node, varpool_remove_node): Declare.
6370 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
6371 varpool_node_set_size): New inlines.
6372 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
6373 * tree-pass.h (varpool_node_set_def): Forward declare.
6374 (ipa_opt_pass_d): Summary writting takes vnode sets too.
6375 (ipa_write_optimization_summaries): Update prototype.
6376 * ipa-cp.c (ipcp_write_summary): Update.
6377 * ipa-reference.c (ipa_reference_write_summary): Update.
6378 * lto-cgraph.c (lto_output_varpool_node): New static function.
6379 (output_varpool): New function.
6380 (input_varpool_node): New static function.
6381 (input_varpool_1): New function.
6382 (input_cgraph): Input varpool.
6383 * ipa-pure-const.c (pure_const_write_summary): Update.
6384 * lto-streamer-out.c (lto_output): Update, output varpool too.
6385 (write_global_stream): Kill WPA hack.
6386 (produce_asm_for_decls): Update.
6387 (output_alias_pair_p): Handle variables.
6388 (output_unreferenced_globals): Output only needed partition of varpool.
6389 * ipa-inline.c (inline_write_summary): Update.
6390 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
6392 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
6393 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
6394 varpool_node_set_new, varpool_node_set_add,
6395 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
6396 debug_varpool_node_set): New functions.
6397 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
6398 (execute_one_pass): Process new decls too.
6399 (ipa_write_summaries_2): Pass around vsets.
6400 (ipa_write_summaries_1): Likewise.
6401 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
6403 (ipa_write_optimization_summaries_1): Pass around vsets.
6404 (ipa_write_optimization_summaries): Likewise.
6405 * varpool.c (varpool_get_node): New.
6406 (varpool_node): Update doubly linked lists.
6407 (varpool_remove_node): New.
6408 (dump_varpool_node): More dumping.
6409 (varpool_enqueue_needed_node): Update doubly linked lists.
6410 (decide_is_variable_needed): Kill ltrans hack.
6411 (varpool_finalize_decl): Kill lto hack.
6412 (varpool_assemble_decl): Skip decls in other partitions.
6413 (varpool_assemble_pending_decls): Update doubly linkes lists.
6414 (varpool_empty_needed_queue): Likewise.
6415 (varpool_extra_name_alias): Likewise.
6416 * lto-streamer.c (lto_get_section_name): Add vars section.
6417 * lto-streamer.h (lto_section_type): Update.
6418 (output_varpool, input_varpool): Declare.
6420 2010-04-28 Mike Stump <mikestump@comcast.net>
6422 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
6424 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6426 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
6427 record or union type with RECORD_OR_UNION_TYPE_P predicate.
6428 (lto_input_ts_type_tree_pointers): Likewise.
6429 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
6430 (lto_output_ts_type_tree_pointers): Likewise.
6432 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6434 Uniquization of constants at the Tree level
6435 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
6436 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
6438 (tree_output_constant_def): Declare.
6439 * gimplify.c (gimplify_init_constructor): When using block copy, first
6440 uniquize the constant constructor on the RHS.
6441 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
6442 DECL_IN_CONSTANT_POOL flag.
6443 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
6444 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
6446 (assemble_variable): Deal with symbols belonging to the tree constant
6448 (get_constant_section): Add ALIGN parameter and simplify.
6449 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
6450 (assemble_constant_contents): Use the expression of the VAR_DECL.
6451 (output_constant_def_contents): Use the alignment of the VAR_DECL.
6452 (tree_output_constant_def): New global function.
6453 (mark_constant): Use the expression of the VAR_DECL.
6454 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
6456 (output_object_block): Likewise and assemble the expression.
6458 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
6460 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
6461 hash_tree, eq_tree): New tree hash table.
6462 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
6463 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
6464 lto_orig_address_remove): Reimplement.
6466 2010-04-28 Xinliang David Li <davidxl@google.com>
6469 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
6470 (compute_uninit_opnds_pos): New function.
6471 (is_non_loop_exit_postdominating): New function.
6472 (compute_control_dep_chain): New function.
6473 (find_pdom): New function.
6474 (convert_control_dep_chain_into_preds): New function.
6475 (find_predicates): New function.
6476 (find_control_equiv_block): New function.
6477 (collect_phi_def_edges): New function.
6478 (find_def_preds): New function.
6479 (find_dom): New function.
6480 (dump_predicates): New function.
6481 (get_cmp_code): New function.
6482 (is_value_included_in): New function.
6483 (find_matching_predicate_in_rest_chains): New function.
6484 (use_pred_not_overlap_with_undef_path_pred): New function.
6485 (is_use_properly_guarded): New function.
6486 (normalize_cond_1): New function.
6487 (is_and_or_or): New function.
6488 (normalize_cond): New function.
6489 (is_gcond_subset_of): New function.
6490 (is_subset_of_any): New function.
6491 (is_or_set_subset_of): New function.
6492 (is_and_set_subset_of): New function.
6493 (is_norm_cond_subset_of): New function.
6494 (is_pred_expr_subset_of): New function.
6495 (is_pred_chain_subset_of): New function.
6496 (is_included_in): New function.
6497 (is_superset_of): New function.
6498 (find_uninit_use): New function.
6499 (warn_uninitialized_phi): New function.
6500 (compute_possibly_undefined_names): New function.
6501 (ssa_undefined_value_p): New function.
6502 (execute_late_warn_uninitialized): New function.
6503 * tree-ssa.c (ssa_undefined_value_p): Removed.
6504 (warn_uninit): Changed to extern.
6505 (warn_uninitialized_phi): Removed.
6506 (warn_uninitialized_vars): Changed to extern.
6507 (execute_late_warn_uninitialized): Removed
6508 * tree-flow.h: Add new prototypes.
6509 * timevar.def: Add new time variable.
6510 * Makefile.in: Add new build file.
6512 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
6514 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
6517 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6520 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
6522 2010-04-28 Martin Jambor <mjambor@suse.cz>
6524 * cgraph.h (struct cgraph_node): New field indirect_calls.
6525 (struct cgraph_indirect_call_info): New type.
6526 (struct cgraph_edge): Removed field indirect_call. New fields
6527 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
6528 (cgraph_create_indirect_edge): Declare.
6529 (cgraph_make_edge_direct): Likewise.
6530 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
6531 * ipa-prop.h (struct ipa_param_call_note): Removed.
6532 (struct ipa_node_params): Removed field param_calls.
6533 (ipa_create_all_structures_for_iinln): Declare.
6534 * cgraph.c: Described indirect edges and uids in initial comment.
6535 (cgraph_add_edge_to_call_site_hash): New function.
6536 (cgraph_edge): Search also among the indirect edges, use
6537 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
6538 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
6539 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
6541 (initialize_inline_failed): Assign a reason to indirect edges.
6542 (cgraph_create_edge_1): New function.
6543 (cgraph_create_edge): Moved some functionality to
6544 cgraph_create_edge_1.
6545 (cgraph_create_indirect_edge): New function.
6546 (cgraph_edge_remove_callee): Add an assert checking for
6548 (cgraph_edge_remove_caller): Special-case indirect edges.
6549 (cgraph_remove_edge): Likewise.
6550 (cgraph_set_edge_callee): New function.
6551 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
6552 (cgraph_make_edge_direct): New function.
6553 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
6554 the declaration of the call statement matches.
6555 (cgraph_node_remove_callees): Special-case indirect edges.
6556 (cgraph_clone_edge): Likewise.
6557 (cgraph_clone_node): Clone also the indirect edges.
6558 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
6559 indirect_call, dump count of indirect_calls edges.
6560 * ipa-prop.c (iinlining_processed_edges): New variable.
6561 (ipa_note_param_call): Create indirect edges instead of
6562 creating notes. New parameter node.
6563 (ipa_analyze_call_uses): New parameter node, pass it on to
6564 ipa_note_param_call.
6565 (ipa_analyze_stmt_uses): Likewise.
6566 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
6567 (print_edge_addition_message): Work on edges rather than on notes.
6568 (update_call_notes_after_inlining): Likewise, renamed to
6569 update_indirect_edges_after_inlining.
6570 (ipa_create_all_structures_for_iinln): New function.
6571 (ipa_free_node_params_substructures): Do not free notes.
6572 (ipa_edge_duplication_hook): Propagate bits within
6573 iinlining_processed_edges bitmap.
6574 (ipa_node_duplication_hook): Do not duplicate notes.
6575 (free_all_ipa_structures_after_ipa_cp): Renamed to
6576 ipa_free_all_structures_after_ipa_cp.
6577 (free_all_ipa_structures_after_iinln): Renamed to
6578 ipa_free_all_structures_after_iinln.
6579 (ipa_write_param_call_note): Removed.
6580 (ipa_read_param_call_note): Removed.
6581 (ipa_write_indirect_edge_info): New function.
6582 (ipa_read_indirect_edge_info): Likewise.
6583 (ipa_write_node_info): Do not stream notes, do stream information
6585 (ipa_read_node_info): Likewise.
6586 (lto_ipa_fixup_call_notes): Removed.
6587 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
6588 * ipa-inline.c (pass_ipa_inline): Likewise.
6589 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
6590 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
6591 * tree-inline.c (copy_bb): Removed an unnecessary double check for
6593 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
6595 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
6596 (output_cgraph): Stream also indirect edges.
6597 (lto_output_edge): Added capability to stream indirect edges.
6598 (input_edge): Likewise.
6599 (input_cgraph_1): Likewise.
6600 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
6603 2010-04-28 Richard Guenther <rguenther@suse.de>
6605 PR tree-optimization/43879
6606 PR tree-optimization/43909
6607 * tree-ssa-structalias.c (struct variable_info): Add
6608 only_restrict_pointers flag.
6609 (new_var_info): Initialize it. Increment stats.total_vars here.
6610 (create_function_info_for): Do not increment stats.total_vars here.
6611 (get_function_part_constraint): Fix build with C++.
6612 (insert_into_field_list): Remove.
6613 (push_fields_onto_fieldstack): Properly merge fields.
6614 (create_variable_info_for): Split and simplify.
6615 (create_variable_info_for_1): New piece.
6616 (intra_create_variable_infos): Properly make restrict constraints
6619 2010-04-28 Richard Guenther <rguenther@suse.de>
6622 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
6624 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
6625 Jan Hubicka <hubicka@ucw.cz>
6627 * doc/invoke.texi (-Wsuggest-attribute=const,
6628 -Wsuggest-attribute=pure): Document.
6629 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
6630 (function_always_visible_to_compiler_p,
6631 suggest_attribute, warn_function_pure, warn_function_const):
6633 (check_call): Improve debug info.
6634 (analyze_function): Do not check availability.
6635 (add_new_function): Check availability.
6636 (propagate): Output warnings.
6637 (skip_function_for_local_pure_const): New function.
6638 (local_pure_const): Use it; output warnings.
6639 * common.opt (Wsuggest-attribute=const,
6640 Wsuggest-attribute=pure): New.
6642 2010-04-27 Jakub Jelinek <jakub@redhat.com>
6644 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
6645 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
6646 or DW_CFA_def_cfa_offset{,_sf}.
6648 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
6650 * tree.h: Fix truncated long macros.
6652 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
6654 * collect2.c (TARGET_64BIT): Redefine to target's default.
6655 * tlink.c: Likewise.
6656 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
6657 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
6658 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
6659 for underscoring __USER_LABEL_PREFIX__.
6660 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
6661 (SUB_LINK_ENTRY32): New.
6662 (SUB_LINK_ENTRY64): New.
6663 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
6664 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
6665 (SUB_LINK_ENTRY64): New.
6666 (SUB_LINK_ENTRY): New.
6667 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
6668 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
6669 x64 target is choosen.
6670 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
6671 * configure: Regenerated.
6672 * configure.ac (leading-mingw64-underscores): Option added.
6674 2010-04-27 Jan Hubicka <jh@suse.cz>
6676 * doc/invoke.texi (-fipa-profile): Document.
6677 * opts.c (decode_options): Enable ipa-profile at -O1.
6678 * timevar.def (TV_IPA_PROFILE): Define.
6679 * common.opt (fipa-profile): Add.
6680 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
6682 (cgraph_propagate_frequency): Handle only local ones.
6683 * tree-pass.h (pass_ipa_profile): Declare.
6684 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
6685 (pass_ipa_profile): Use TV_IPA_PROFILE.
6686 * ipa.c (ipa_profile): New function.
6687 (gate_ipa_profile): Likewise.
6688 (pass_ipa_profile): New global variable.
6689 * passes.c (pass_ipa_profile): New.
6691 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
6693 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
6695 2010-04-27 Martin Jambor <mjambor@suse.cz>
6698 * ipa.c (dissolve_same_comdat_group_list): New function.
6699 (function_and_variable_visibility): Call
6700 dissolve_same_comdat_group_list when comdat group contains external or
6702 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
6703 lists are circular and that they contain only DECL_ONE_ONLY nodes.
6705 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
6707 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
6708 (const_hash_1) <VECTOR_CST>: New case.
6709 (compare_constant) <VECTOR_CST>: Likewise.
6710 <ADDR_EXPR>: Deal with LABEL_REFs.
6711 (copy_constant) <VECTOR_CST>: New case.
6713 2010-04-27 Jan Hubicka <jh@suse.cz>
6715 * cgraph.c (cgraph_propagate_frequency): New function.
6716 * cgraph.h (cgraph_propagate_frequency): Declare.
6717 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
6718 cgraph_propagate_frequency.
6720 2010-04-27 Jakub Jelinek <jakub@redhat.com>
6722 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
6724 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
6727 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
6728 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
6729 here to determine which regs to push and how much stack to reserve.
6731 2010-04-27 Jie Zhang <jie@codesourcery.com>
6733 * doc/gimple.texi (gimple_statement_with_ops): Remove
6734 addresses_taken field.
6735 (gimple_statement_with_memory_ops): Likewise.
6737 2010-04-27 Jan Hubicka <jh@suse.cz>
6739 * tree-inline.c (eni_inlining_weights): Remove.
6740 (estimate_num_insns): Special case more builtins.
6742 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
6745 * c-typeck.c (build_binary_op): Move forward check for comparison
6746 pointer with null pointer constant and adjust the diagnostic message.
6748 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
6751 * configure.ac (gcc_cv_as_section_has_align): Set if installed
6752 binutils supports extended .section directive needed by LTO, or
6753 warn if older binutils found.
6754 (LTO_BINARY_READER): New AC_SUBST'd variable.
6755 (LTO_USE_LIBELF): Likewise.
6756 * gcc/config.gcc (lto_binary_reader): New target-specific configure
6758 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
6759 (LTO_USE_LIBELF): Likewise.
6760 * configure: Regenerate.
6762 * collect2.c (is_elf): Rename from this ...
6763 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
6764 object files in addition to ELF-formatted ones.
6765 (scan_prog_file): Caller updated. Also allow for LTO info marker
6766 symbol to be prefixed or not by an extra underscore.
6768 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
6769 * config/i386/winnt.c: Also #include lto-streamer.h
6770 (i386_pe_asm_named_section): Specify 1-byte section alignment for
6772 (i386_pe_asm_output_aligned_decl_common): Add comment.
6773 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
6775 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
6778 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
6779 Add missing earlyclobber for second alternative.
6781 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
6783 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
6784 bits for artificial defs at the top of the block.
6785 * fwprop.c (single_def_use_enter_block): Don't call it.
6787 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
6790 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
6791 instead of "$gcc_cv_objdump -T".
6792 Use "-undefined dynamic_lookup" on darwin.
6793 * gcc/configure: Regenerate.
6795 2010-04-26 Jakub Jelinek <jakub@redhat.com>
6798 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
6800 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
6802 * c-parser.c (struct c_token): Move location field up.
6803 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
6804 (struct c_declspecs): Convert typespec_word, storage_class, and
6805 default_int_p into bitfields.
6806 (struct c_declarator): Move loc field up.
6808 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
6810 * cfgloop.h (struct loop): Move can_be_parallel field up.
6811 * ipa-prop.h (struct ip_node_params): Move bitfields up.
6812 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
6814 (struct iv_cand): Convert pos field into a bitfield.
6815 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
6817 (struct _stmt_vec_info): Shuffle fields for better packing.
6819 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
6821 * varasm.c (IN_NAMED_SECTION): Remove guard.
6822 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
6823 (IN_NAMED_SECTION_P): ...this.
6824 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
6825 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
6827 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
6829 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
6830 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
6831 of shadowing it. Fix comments.
6833 2010-04-26 Jan Hubicka <jh@suse.cz>
6835 * cgraph.c (cgraph_create_node): Set node frequency to normal.
6836 (cgraph_clone_node): Copy function frequency.
6837 * cgraph.h (node_frequency): New enum
6838 (struct cgraph_node): Add.
6839 * final.c (rest_of_clean_state): Update.
6840 * lto-cgraph.c (lto_output_node): Output node frequency.
6841 (input_overwrite_node): Input node frequency.
6842 * tre-ssa-loop-ivopts (computation_cost): Update.
6843 * lto-streamer-out.c (output_function): Do not output function
6845 * predict.c (maybe_hot_frequency_p): Update and handle functions
6847 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
6849 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
6850 (compute_function_frequency): Set noreturn functions to be executed
6852 (choose_function_section): Update.
6853 * lto-streamer-in.c (input_function): Do not input function frequency.
6854 * function.c (allocate_struct_function): Do not initialize function
6856 * function.h (function_frequency): Remove.
6857 (struct function): Remove function frequency.
6858 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
6859 (try_update): Update.
6860 * tree-inline.c (initialize_cfun): Do not update function frequency.
6861 * passes.c (pass_init_dump_file): Update.
6862 * i386.c (ix86_compute_frame_layout): Update.
6863 (ix86_pad_returns): Update.
6865 2010-04-26 Jie Zhang <jie@codesourcery.com>
6867 PR tree-optimization/43833
6868 * tree-vrp.c (range_int_cst_p): New.
6869 (range_int_cst_singleton_p): New.
6870 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
6871 when both operands are constants. Use range_int_cst_p in
6874 2010-04-26 Jan Hubicka <jh@suse.cz>
6876 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
6878 2010-04-26 Richard Guenther <rguenther@suse.de>
6881 * gimple.c (gimple_decl_printable_name): Deal gracefully
6882 with a NULL DECL_NAME.
6884 2010-04-26 Richard Guenther <rguenther@suse.de>
6887 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
6888 if emitting debug information and it is either a function
6889 or a namespace decl.
6891 2010-04-26 Ira Rosen <irar@il.ibm.com>
6893 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
6894 determine if the statement is vectorizable, and a macro to access it.
6895 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6896 Skip statements that can't be vectorized. If the analysis fails,
6897 mark the statement as unvectorizable if vectorizing basic block.
6898 (vect_compute_data_refs_alignment): Likewise.
6899 (vect_verify_datarefs_alignment): Skip statements marked as
6900 unvectorizable. Add print.
6901 (vect_analyze_group_access): Skip statements that can't be
6902 vectorized. If the analysis fails, mark the statement as
6903 unvectorizable if vectorizing basic block.
6904 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
6905 * tree-vect-stmts.c (vectorizable_store): Fix the number of
6906 generated stmts for SLP.
6907 (new_stmt_vec_info): Initialize the new field.
6908 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
6909 statements marked as unvectorizable.
6911 2010-04-25 Joseph Myers <joseph@codesourcery.com>
6913 * c-common.c (flag_isoc1x): New.
6914 (flag_isoc99): Update comment.
6915 * c-common.h (flag_isoc1x): New.
6916 (flag_isoc99): Update comment.
6917 * c-cppbuiltin.c (builtin_define_float_constants): Also define
6918 __<type>_DECIMAL_DIG__.
6919 * c-opts.c (set_std_c1x): New.
6920 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
6921 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
6922 * c.opt (-std=c1x, -std=gnu1x): New options.
6923 * doc/cpp.texi: Mention -std=c1x.
6924 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
6925 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
6926 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
6927 * doc/standards.texi: Mention C1X.
6928 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
6929 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
6930 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
6933 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
6935 * config/i386/gmon-sol2.c (_mcleanup): Change format string
6936 placeholder from 0x%x to %#x.
6937 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
6938 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
6939 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
6940 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
6941 * config/i386/i386.c (ix86_target_string): Ditto.
6942 (output_pic_addr_const): Ditto.
6943 (print_operand): Ditto.
6945 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
6947 * combine.c (find_split_point): Add third argument. Use it
6948 to find nested multiply-accumulate instructions. Adjust calls.
6949 (try_combine): Adjust call to find_split_point.
6951 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6953 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
6955 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
6957 PR tree-optimization/41442
6958 * fold-const.c (merge_truthop_with_opposite_arm): New function.
6959 (fold_binary_loc): Call it.
6961 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
6963 * toplev.c (general_init): Set default for fdiagnostics-show-option.
6964 * opts.c (common_handle_option): Allow disabling it.
6965 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
6967 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
6969 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
6970 between modes if both types are integral.
6972 2010-04-23 Richard Guenther <rguenther@suse.de>
6974 PR tree-optimization/43572
6975 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
6977 2010-04-23 Richard Guenther <rguenther@suse.de>
6980 * tree-inline.c (tree_can_inline_p): Also check compatibility
6983 2010-04-23 Martin Jambor <mjambor@suse.cz>
6985 PR tree-optimization/43846
6986 * tree-sra.c (struct access): New flag grp_assignment_read.
6987 (build_accesses_from_assign): Set grp_assignment_read.
6988 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
6989 (enum mark_read_status): New type.
6990 (analyze_access_subtree): Propagate grp_assignment_read, create
6991 accesses also if both direct_read and root->grp_assignment_read.
6993 2010-04-23 Martin Jambor <mjambor@suse.cz>
6996 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
6997 function does not have type attributes.
6999 2010-04-23 Richard Guenther <rguenther@suse.de>
7002 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
7005 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7007 * sese.h (create_if_region_on_edge): Remove.
7009 * sese.c (create_if_region_on_edge): Make static.
7011 * tree-inline.c: Do not include ggc.h.
7013 * expr.c: Do not include ggc.h.
7015 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
7018 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
7021 * config/sh/sh.c (find_barrier): Don't emit a constant pool
7022 in the middle of insns for casesi_worker_2.
7024 2010-04-22 David Edelsohn <edelsohn@gnu.org>
7026 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
7028 2010-04-22 Ira Rosen <irar@il.ibm.com>
7030 PR tree-optimization/43842
7031 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
7032 loop unrolling in update of exit phis. Fix comment.
7033 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
7034 least two reduction statements in the loop before starting SLP
7037 2010-04-22 Nick Clifton <nickc@redhat.com>
7039 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
7041 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
7043 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
7046 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7048 * tree-parloops.c (loop_parallel_p): New argument
7049 parloop_obstack. Pass it down.
7050 (parallelize_loops): New variable parloop_obstack. Initialize it,
7051 pass it down, free it.
7053 * tree-loop-linear.c (linear_transform_loops): Pass down
7056 * tree-data-ref.h (lambda_compute_access_matrices): New argument
7057 of type struct obstack *.
7059 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
7060 scratch_obstack. Initialize it, pass down, free it.
7062 * lambda.h (lambda_loop_new): Remove.
7063 (lambda_matrix_new, lambda_matrix_inverse)
7064 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
7065 argument of type struct obstack *.
7067 * lambda-trans.c (lambda_trans_matrix_new): New argument
7068 lambda_obstack. Pass it down, use obstack allocation for ret.
7069 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
7072 * lambda-mat.c (lambda_matrix_get_column)
7073 (lambda_matrix_project_to_null): Remove.
7074 (lambda_matrix_new): New argument lambda_obstack. Use obstack
7076 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
7079 * lambda-code.c (lambda_loop_new): New function.
7080 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
7081 (lambda_compute_auxillary_space, lambda_compute_target_space)
7082 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
7083 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
7084 (build_access_matrix): New argument lambda_obstack. Use obstack
7086 (lambda_compute_step_signs, lambda_compute_access_matrices): New
7087 argument lambda_obstack. Pass it down.
7089 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7091 * optabs.h (expand_widening_mult): Declare.
7093 2010-04-22 Richard Guenther <rguenther@suse.de>
7095 PR tree-optimization/43845
7096 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
7097 lookup the CALL_EXPR function and arguments.
7099 2010-04-22 Nick Clifton <nickc@redhat.com>
7101 * config/stormy16/stormy16.c
7102 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
7103 * config/stormy16/stormy16.h: Tidy up formatting.
7104 (DONT_USE_BUILTIN_SETJMP): Remove definition.
7105 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
7106 (ineqbranchsi): Delete pattern.
7107 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
7108 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
7109 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
7110 stormy16-lib2-ucmpsi2.c.
7112 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7114 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
7115 df_simulate_find_noclobber_defs as appropriate. Keep track of an
7116 extra set merge_set_noclobber, and use it to relax the final test
7118 * df.h (df_simulate_find_noclobber_defs): Declare.
7119 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
7121 (df_simulate_find_noclobber_defs): New function.
7123 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
7125 * config/i386/i386.md: Use {} around multi-line preparation statements.
7127 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7129 * c-tree.h (push_init_level, pop_init_level, set_init_index)
7130 (process_init_element): New argument of type struct obstack *.
7132 * c-typeck.c (push_init_level, pop_init_level, set_designator)
7133 (set_init_index, set_init_label, set_nonincremental_init)
7134 (set_nonincremental_init_from_string, find_init_member)
7135 (output_init_element, output_pending_init_elements)
7136 (process_init_element): New argument braced_init_obstack. Pass it
7138 (push_range_stack, add_pending_init): New argument
7139 braced_init_obstack. Use obstack allocation.
7141 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
7142 braced_init_obstack. Pass it down.
7143 (c_parser_braced_init): New variables ret, braced_init_obstack.
7144 Initialize obstack, pass it down and finally free it.
7146 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
7149 * tree-pass.h (pass_optimize_widening_mul): Declare.
7150 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
7151 gate_optimize_widening_mul): New static functions.
7152 (pass_optimize_widening_mul): New.
7153 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
7154 <case MULT_EXPR>: Remove support for widening multiplies.
7155 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
7156 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
7157 simplify_gen_unary rather than directly building extensions.
7158 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
7160 * expmed.c (expand_widening_mult): New function.
7161 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
7163 2010-04-21 Jan Hubicka <jh@suse.cz>
7165 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
7166 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
7167 * lto-wpa-fixup.c: Remove.
7168 * Makefile.in (lto-wpa-fixup.o): Remove.
7169 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
7170 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
7171 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
7173 2010-04-21 Jan Hubicka <jh@suse.cz>
7175 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
7176 add write_optimization_summary, read_optimization_summary.
7177 (ipa_write_summaries_of_cgraph_node_set): Remove.
7178 (ipa_write_optimization_summaries): Declare.
7179 (ipa_read_optimization_summaries): Declare.
7180 * ipa-cp.c (pass_ipa_cp): Update.
7181 * ipa-reference.c (pass_ipa_reference): Update.
7182 * ipa-pure-const.c (pass_ipa_pure_const): Update.
7183 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
7185 * ipa-inline.c (pass_ipa_inline): Update.
7186 * ipa.c (pass_ipa_whole_program): Update.
7187 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
7188 * passes.c (ipa_write_summaries_1): Do not test wpa.
7189 (ipa_write_optimization_summaries_1): New.
7190 (ipa_write_optimization_summaries): New.
7191 (ipa_read_summaries): Do not test ltrans.
7192 (ipa_read_optimization_summaries_1): New.
7193 (ipa_read_optimization_summaries): New.
7195 2010-04-21 Jan Hubicka <jh@suse.cz>
7197 * lto-cgraph.c (lto_output_node): Do not output comdat groups
7199 (output_cgraph): Do not arrange comdat groups for boundary nodes.
7201 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7204 * dwarf2out.c (add_name_and_src_coords_attributes): Add
7205 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
7207 2010-04-21 Jan Hubicka <jh@suse.cz>
7209 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
7211 2010-04-21 Jan Hubicka <jh@suse.cz>
7213 * varpool.c (decide_is_variable_needed): Variable is always needed
7216 2010-04-21 Jan Hubicka <jh@suse.cz>
7218 * opts.c (decode_options): Enable pure-const pass for whopr.
7220 2010-04-21 Jan Hubicka <jh@suse.cz>
7222 * cgraph.c (dump_cgraph_node): Dump also assembler name.
7223 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
7225 (cgraph_decide_inlining): Do not expect callee to be removed in all
7228 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
7230 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
7232 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
7234 * config/i386/i386.md (x86_shrd): Add athlon_decode and
7235 amdfam10_decode attributes.
7237 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7240 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
7241 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
7242 (lower_copyprivate_clauses): Use private var in outer
7243 context instead of original var. Make sure the types
7244 are correct for VLAs.
7246 2010-04-21 Richard Guenther <rguenther@suse.de>
7248 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
7249 to non-pointer objects.
7251 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7253 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
7254 last chain entry if it starts with the still current label.
7255 (add_location_or_const_value_attribute): Check that
7256 loc_list->first->next is NULL instead of comparing ->first with ->last.
7257 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
7258 to add_var_loc_to_decl.
7260 * dwarf2out.c (output_call_frame_info): For dw_cie_version
7261 >= 4 add also address size and segment size fields into CIE header.
7263 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
7264 long as address size is the same as sizeof (void *) and
7266 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
7267 address size or segment size is unexpected, return DW_EH_PE_omit.
7268 (classify_object_over_fdes): If get_cie_encoding returned
7269 DW_EH_PE_omit, return -1.
7270 (init_object): If classify_object_over_fdes returned -1,
7271 pretend there were no FDEs at all.
7273 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
7275 * config/i386/i386.md (bswap<mode>2): Macroize expander from
7276 bswap{si,di}2 using SWI48 mode iterator.
7277 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
7278 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
7279 set modrm attribute of bswap insn to 0 and remove length attribute.
7280 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
7281 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
7282 set mode attribute to <MODE> and remove length attribute.
7284 2010-04-20 James E. Wilson <wilson@codesourcery.com>
7286 PR rtl-optimization/43520
7287 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
7288 zero available registers.
7290 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7292 * builtins.c (fold_builtin_cproj): Fold more cases.
7294 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7296 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
7297 (fold_builtin_1): Fold builtin cproj.
7298 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
7299 Use ATTR_CONST_NOTHROW_LIST.
7301 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
7303 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
7304 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
7305 ffsi2_no_cmove for !TARGET_CMOVE.
7306 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
7307 (ffssi2): Remove expander.
7308 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
7310 (ctz<mode>2): Ditto from ctz{si,di}2.
7311 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
7313 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
7316 2010-04-20 Jakub Jelinek <jakub@redhat.com>
7318 * dwarf2out.c (AT_linkage_name): Define.
7319 (clone_as_declaration): Handle DW_AT_linkage_name.
7320 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
7321 of DW_AT_MIPS_linkage_name.
7322 (move_linkage_attr): Likewise.
7323 (dwarf2out_finish): Likewise.
7325 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
7328 * fold-const.c (fold_comparison): New folding rule.
7330 2010-04-20 Anatoly Sokolov <aesok@post.ru>
7332 * double-int.h (double_int_setbit): Declare.
7333 * double-int.c (double_int_setbit): New function.
7334 * rtl.h (immed_double_int_const): Declare.
7335 * emit-rtl.c (immed_double_int_const): New function.
7336 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
7337 and immed_double_int_const functions.
7338 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
7339 expand_copysign_bit): (Ditto.).
7340 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
7341 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
7342 * dojump.c (prefer_and_bit_test): (Ditto.).
7343 * expr.c (convert_modes, reduce_to_bit_field_precision,
7344 const_vector_from_tree): (Ditto.).
7345 * expmed.c (mask_rtx, lshift_value): (Ditto.).
7347 2010-04-20 Jan Hubicka <jh@suse.cz>
7349 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
7350 (dump_cgraph_node): Dump new flags.
7351 * cgraph.h (struct cgraph_node): Add flags
7352 reachable_from_other_partition and in_other_partition.
7353 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
7354 other partition can not be removed.
7355 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
7356 the other partition must be output; silence sanity checking on
7357 leaking functions bodies from other paritition.
7358 * lto-cgraph.c (reachable_from_other_partition_p): New function.
7359 (lto_output_node): Output new flags; do not sanity check that inline
7360 clones are output; drop lto_forced_extern_inline_p code; do not mock
7361 visibility flags at partition boundaries.
7362 (add_node_to): New function.
7363 (output_cgraph): Use it to sort functions so masters appear before
7365 (input_overwrite_node): Input new flags.
7366 * passes.c (ipa_write_summaries): Do not call
7367 lto_new_extern_inline_states.
7368 * lto-section-out.c (forced_extern_inline,
7369 lto_new_extern_inline_states lto_delete_extern_inline_states,
7370 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
7371 * lto-streamer.h (lto_new_extern_inline_states,
7372 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
7373 lto_forced_extern_inline_p): Kill.
7375 2010-04-20 Richard Guenther <rguenther@suse.de>
7377 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
7378 from vars that can have pointers.
7379 (process_constraint): Dump useless constraints.
7381 2010-04-20 Richard Guenther <rguenther@suse.de>
7383 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
7384 (dump_sa_points_to_info): Remove asserts.
7385 (init_base_vars): nothing_id isn't an escape point nor does it
7388 2010-04-20 Jakub Jelinek <jakub@redhat.com>
7390 * tree.h (TYPE_REF_IS_RVALUE): Define.
7391 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
7392 should_move_die_to_comdat, prune_unused_types_walk): Handle
7393 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
7394 (modified_type_die, gen_reference_type_die): Emit
7395 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
7396 if TYPE_REF_IS_RVALUE and -gdwarf-4.
7398 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7401 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
7402 calls for -fpic -m31 if they have been sibcall optimized.
7404 2010-04-19 James E. Wilson <wilson@codesourcery.com>
7406 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
7407 ar.lc fixed and call-used.
7409 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
7411 2010-04-19 Jan Hubicka <jh@suse.cz>
7413 * opts.c (decode_options): Disable whpr incompatible passes.
7414 * lto/lto.c (lto_1_to_1_map): Skip clones.
7415 (read_cgraph_and_symbols): Do not mark everything as needed.
7416 (do_whole_program_analysis): Do map only after optimizing;
7417 set proper cgraph_state; use passmanager.
7419 2010-04-19 DJ Delorie <dj@redhat.com>
7421 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
7422 POINTER_PLUS_EXPR and fix them.
7424 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
7426 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
7427 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
7428 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
7429 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
7430 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
7431 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
7432 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
7433 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
7434 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
7435 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
7436 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
7438 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
7440 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
7441 (check_cond_move_block): Likewise.
7442 (cond_move_process_if_block): Likewise.
7443 (noce_find_if_block): Improve formatting.
7444 (find_if_header): Pass 0 to memset and tweak conditions.
7445 (cond_exec_find_if_block): Fix long lines and tweak conditions.
7447 2010-04-19 Jakub Jelinek <jakub@redhat.com>
7449 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
7453 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
7454 with non-local decl doesn't need chain.
7456 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
7458 * ira-color.c (allocno_reload_assign): Avoid accumulating
7459 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
7461 2010-04-19 Martin Jambor <mjambor@suse.cz>
7463 * gimple.h (create_tmp_reg): Declare.
7464 * gimplify.c (create_tmp_reg): New function.
7465 (gimplify_return_expr): Use create_tmp_reg.
7466 (gimplify_omp_atomic): Likewise.
7467 (gimple_regimplify_operands): Likewise.
7468 * tree-dfa.c (make_rename_temp): Likewise.
7469 * tree-predcom.c (predcom_tmp_var): Likewise.
7470 (reassociate_to_the_same_stmt): Likewise.
7471 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
7472 (get_replaced_param_substitute): Likewise.
7473 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
7474 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
7475 * tree-ssa-pre.c (get_representative_for): Likewise.
7476 (create_expression_by_pieces): Likewise.
7477 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
7478 (create_tailcall_accumulator): Likewise.
7480 2010-04-19 Martin Jambor <mjambor@suse.cz>
7482 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
7484 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
7486 2010-04-19 Richard Guenther <rguenther@suse.de>
7488 PR tree-optimization/43796
7489 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
7490 from SCEV in the lattice.
7491 (vrp_visit_phi_node): Dump change.
7493 2010-04-19 Richard Guenther <rguenther@suse.de>
7495 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
7496 * configure: Re-generated.
7498 2010-04-19 Richard Guenther <rguenther@suse.de>
7500 PR tree-optimization/43783
7501 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
7502 constant ARRAY_REF operands two and three if possible.
7504 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
7507 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
7509 2010-04-19 Jie Zhang <jie@codesourcery.com>
7512 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
7514 2010-04-19 Ira Rosen <irar@il.ibm.com>
7516 PR tree-optimization/37027
7517 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
7518 and macro to access it.
7519 (vectorizable_reduction): Add argument.
7520 (vect_get_slp_defs): Likewise.
7521 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
7522 statements for possible use in SLP.
7523 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
7524 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
7525 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
7527 (vectorizable_reduction): Likewise.
7528 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
7530 (vectorizable_type_demotion, vectorizable_type_promotion,
7531 vectorizable_store): Likewise.
7532 (vect_analyze_stmt): Update call to vectorizable_reduction.
7533 (vect_transform_stmt): Likewise.
7534 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
7535 (vect_build_slp_tree): Fix indentation. Check that there are no loads
7536 from different interleaving chains in same node.
7537 (vect_slp_rearrange_stmts): New function.
7538 (vect_supported_load_permutation_p): Allow load permutations for
7539 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
7540 inside SLP nodes if necessary.
7541 (vect_analyze_slp_instance): Handle reductions.
7542 (vect_analyze_slp): Try to build SLP instances originating from groups
7544 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
7545 (vect_get_constant_vectors): Create initial vectors for reductions
7546 according to reduction code. Add new argument.
7547 (vect_get_slp_defs): Add new argument, pass it to
7548 vect_get_constant_vectors.
7549 (vect_schedule_slp_instance): Remove SLP tree root statements.
7551 2010-04-19 Jakub Jelinek <jakub@redhat.com>
7553 * tree.h (ENUM_IS_SCOPED): Define.
7554 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
7555 for ENUM_IS_SCOPED enums.
7557 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
7559 * fold-const.c (fold_comparison): Use ssizetype.
7560 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7561 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
7562 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
7563 * tree-object-size.c (compute_object_sizes): Use size_type_node.
7565 * tree.h (initialize_sizetypes): Remove parameter.
7566 (build_common_tree_nodes): Remove second parameter.
7567 * stor-layout.c (initialize_sizetypes): Remove parameter.
7568 Always create an unsigned type.
7569 (set_sizetype): Assert that the passed type is unsigned and simplify.
7570 * tree.c (build_common_tree_nodes): Remove second parameter.
7571 Adjust call to initialize_sizetypes.
7572 * c-decl.c (c_init_decl_processing): Remove second argument in call to
7573 build_common_tree_nodes.
7575 2010-04-18 Matthias Klose <doko@ubuntu.com>
7577 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
7579 2010-04-18 Ira Rosen <irar@il.ibm.com>
7581 PR tree-optimization/43771
7582 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
7583 load permutation doesn't have gaps.
7585 2010-04-18 Jan Hubicka <jh@suse.cz>
7587 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
7588 (sse_prologue_save_insn expander): Use new pattern.
7589 (sse_prologue_save_insn1): New pattern and splitter.
7590 (sse_prologue_save_insn): Update to deal also with 64bit aligned
7592 * i386.c (setup_incoming_varargs_64): Do not compute jump
7594 (ix86_gimplify_va_arg): Update alignment needed.
7595 (ix86_local_alignment): Do not align all local arrays to 128bit.
7597 2010-04-17 Jan Hubicka <jh@suse.cz>
7599 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
7601 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
7603 * arm.md (negdi2): Remove redundant code to force values into a
7606 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
7608 * arm/bpabi.S: Add EABI alignment attributes to objects.
7609 * arm/bpabi-v6m.S: Likewise.
7610 * arm/crti.asm: Likewise.
7611 * arm/crtn.asm: Likewise.
7612 * arm/lib1funcs.asm: Likewise.
7613 * arm/libunwind.S: Likewise.
7615 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
7617 * arm-protos.h (tune_params): New structure.
7618 * arm.c (current_tune): New variable.
7619 (arm_constant_limit): Delete.
7620 (struct processors): Add pointer to the tune parameters.
7621 (arm_slowmul_tune): New tuning option.
7622 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
7623 (all_cores): Adjust to pick up the tuning model.
7624 (arm_constant_limit): New function.
7625 (arm_override_options): Select the appropriate tuning model. Delete
7626 initialization of arm_const_limit.
7627 (arm_split_constant): Use the new constant-limit model.
7628 (arm_rtx_costs): Pick up the current tuning model.
7629 * arm.md (is_strongarm, is_xscale): Delete.
7630 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
7631 for Xscale variant architectures.
7632 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
7634 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7636 * config/arm/arm.c (arm_gen_constant): Remove unused variable
7638 (arm_rtx_costs_1): Remove unused variable extra_cost.
7639 (arm_unwind_emit_set): Use variable offset.
7640 (thumb1_output_casesi): Remove unused variable flags.
7642 2010-04-16 Jeff Law <law@redhat.com>
7644 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
7645 needing assignment rather than doing a two-phase assignment. Remove
7646 unused variable 'm'.
7648 2010-04-16 Jakub Jelinek <jakub@redhat.com>
7651 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
7653 2010-04-16 Doug Kwan <dougkwan@google.com>
7655 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
7656 (next_operand_entry_id): New static variable.
7657 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
7658 (add_to_ops_vec): Assigned unique ID to operand entry.
7659 (struct oecount_s): New field ID.
7660 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
7661 (undistribute_ops_list): Assign unique IDs to oecounts.
7662 (init_reassoc): reset next_operand_entry_id.
7664 2010-04-16 Doug Kwan <dougkwan@google.com>
7666 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
7667 missing left parenthesis.
7669 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
7671 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
7672 *btdi_rex64 using SWI48 mode iterator.
7673 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
7674 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
7675 *jcc_btdi_mask_rex64.
7677 2010-04-16 Anatoly Sokolov <aesok@post.ru>
7679 * double-int.h (tree_to_double_int): Convert to macro.
7680 * double-int.c (tree_to_double_int): Remove.
7682 2010-04-16 Jakub Jelinek <jakub@redhat.com>
7685 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
7686 with want_address 2 and in case a single element list might be
7687 possible, call it again with want_address 0.
7689 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
7691 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
7692 case 'W' print operands for HI mode.
7693 * config/h8300/h8300.h (Y0, Y2) : New constraints.
7694 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
7695 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
7696 * config/h8300/predicate.md (bit_register_indirect_operand): New.
7698 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
7700 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
7701 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
7702 #xx:3 and #xx:4 mode.
7704 * config/h8300/h8300.md (inverted load with HImode dest): Add
7705 support for H8300SX.
7707 * config/h8300/predicate.md (bit_operand): Allow immediate values that
7708 satisfy 'U' constraint.
7710 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7712 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
7713 * configure: Regenerate.
7714 * config.in: Regenerate.
7715 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
7718 2010-04-16 Richard Guenther <rguenther@suse.de>
7720 * tree.h (struct tree_decl_minimal): Move pt_uid ...
7721 (struct tree_decl_common): ... here.
7722 (DECL_PT_UID): Adjust.
7723 (SET_DECL_PT_UID): Likewise.
7724 (DECL_PT_UID_SET_P): Likewise.
7726 2010-04-16 Richard Guenther <rguenther@suse.de>
7728 PR tree-optimization/43572
7729 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
7730 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
7731 * tree-flow.h (is_call_clobbered): Remove.
7732 * tree-flow-inline.h (is_call_clobbered): Likewise.
7733 * tree-dfa.c (dump_variable): Do not dump call clobber state.
7734 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
7735 (execute_return_slot_opt): Adjust.
7736 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
7737 check for call clobbered vars here.
7738 (find_tail_calls): Move tailcall verification to the
7741 2010-04-16 Diego Novillo <dnovillo@google.com>
7743 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
7745 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
7748 * config/arm/arm.md (cbranchqi4): New pattern.
7749 * config/arm/predicates.md (const0_operand,
7750 cbranchqi4_comparison_operator): New predicates.
7752 2010-04-16 Richard Guenther <rguenther@suse.de>
7754 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
7755 (dump_gimple_stmt): Likewise.
7757 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
7759 * recog.h (struct recog_data): New field is_operator.
7760 (struct insn_operand_data): New field is_operator.
7761 * recog.c (extract_insn): Set recog_data.is_operator.
7762 * genoutput.c (output_operand_data): Emit code to set the
7764 * reload.c (find_reloads): Use it rather than testing for an
7765 empty constraint string.
7768 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
7769 If the previous insn is a cbranchsi4_insn with the same arguments,
7770 omit the compare instruction.
7772 * config/arm/arm.md (addsi3_cbranch): If destination is a high
7773 register, inputs must be low registers and we need a low register
7774 scratch. Handle alternative 2 like alternative 3.
7776 2010-04-16 Jakub Jelinek <jakub@redhat.com>
7778 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
7779 don't call get_addr on both. If one expression is a VALUE and
7780 the other a REG, check VALUE's locs if the REG isn't among them.
7782 2010-04-16 Christian Bruel <christian.bruel@st.com>
7784 * config/sh/sh.h (sh_frame_pointer_required): New function.
7785 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
7786 (flag_omit_frame_pointer) Set.
7787 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
7788 (rounded_frame_size): Adjust size with outgoing_args_size.
7789 (sh_set_return_address): Must return from stack pointer.
7790 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
7791 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
7792 (ACCUMULATE_OUTGOING_ARGS): Define.
7793 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
7794 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
7796 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
7799 * config/sh/sh.c (sh_legitimize_reload_address): Use
7800 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
7801 Remove a unneeded check for offset_base.
7803 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
7805 * configure: Regenerated.
7807 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7809 * config/s390/s390.c (s390_call_save_register_used): Switch back
7810 to HARD_REGNO_NREGS.
7812 2010-04-15 Richard Guenther <rguenther@suse.de>
7814 * alias.c (alias_set_subset_of): Handle alias-set zero
7817 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
7818 Julian Brown <julian@codesourcery.com>
7820 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
7821 alternatives according to use of high and low regs.
7822 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7823 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
7824 optimizing for size on Thumb-2.
7826 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
7828 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
7830 2010-04-15 Richard Guenther <rguenther@suse.de>
7832 * tree-ssa-structalias.c (struct variable_info): Add
7834 (new_var_info): Initialize it.
7835 (dump_constraints): Support printing last added constraints.
7836 (debug_constraints): Adjust.
7837 (dump_constraint_graph): Likewise.
7838 (make_heapvar_for): Check for NULL cfun.
7839 (get_function_part_constraint): New function.
7840 (get_fi_for_callee): Likewise.
7841 (find_func_aliases): Properly implement IPA PTA constraints.
7842 (process_ipa_clobber): New function.
7843 (find_func_clobbers): Likewise.
7844 (insert_into_field_list_sorted): Remove.
7845 (create_function_info_for): Properly allocate vars for IPA mode.
7846 Do not use insert_into_field_list_sorted.
7847 (create_variable_info_for): Properly generate constraints for
7848 global vars in IPA mode.
7849 (dump_solution_for_var): Always dump the solution.
7850 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
7851 (find_what_var_points_to): Adjust.
7852 (pt_solution_set): Change.
7853 (pt_solution_ior_into): New function.
7854 (pt_solution_empty_p): Export.
7855 (pt_solution_includes_global): Adjust.
7856 (pt_solution_includes_1): Likewise.
7857 (pt_solutions_intersect_1): Likewise.
7858 (dump_sa_points_to_info): Check some invariants.
7859 (solve_constraints): Move constraint dumping ...
7860 (compute_points_to_sets): ... here.
7861 (ipa_pta_execute): ... and here.
7862 (compute_may_aliases): Do not re-compute points-to info
7863 locally if IPA info is available.
7864 (ipa_escaped_pt): New global var.
7865 (ipa_pta_execute): Properly implement IPA PTA.
7866 * tree-into-ssa.c (dump_decl_set): Support dumping
7867 decls not in referenced-vars.
7868 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
7869 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
7870 (dump_points_to_solution): Likewise.
7871 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
7872 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
7873 (remap_gimple_stmt): Reset call clobber/use information if necessary.
7874 (copy_decl_to_var): Copy DECL_PT_UID.
7875 (copy_result_decl_to_var): Likewise.
7876 * tree.c (make_node_stat): Initialize DECL_PT_UID.
7877 (copy_node_stat): Copy it.
7878 * tree.h (DECL_PT_UID): New macro.
7879 (SET_DECL_PT_UID): Likewise.
7880 (DECL_PT_UID_SET_P): Likewise.
7881 (struct tree_decl_minimal): Add pt_uid member.
7882 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
7883 (pt_solution_empty_p): Declare.
7884 (pt_solution_set): Adjust.
7885 (ipa_escaped_pt): Declare.
7886 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
7887 * gimple-pretty-print.c (pp_points_to_solution): New function.
7888 (dump_gimple_call): Dump call clobber/use information.
7889 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
7890 * tree-pass.h (TDF_ALIAS): New dump option.
7891 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
7892 * doc/invoke.texi (-fipa-pta): Update documentation.
7894 2010-04-15 Richard Guenther <rguenther@suse.de>
7896 * Makefile.in (OBJS-common): Add gimple-fold.o.
7897 (gimple-fold.o): New rule.
7898 * tree.h (maybe_fold_offset_to_reference,
7899 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
7901 * gimple.h: ... here.
7902 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
7903 may_propagate_address_into_dereference): Move prototypes ...
7904 * gimple.h: ... here.
7905 * tree-ssa-ccp.c (get_symbol_constant_value,
7906 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
7907 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
7908 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
7909 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
7910 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
7911 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
7912 gimplify_and_update_call_from_tree): Move ...
7913 * gimple-fold.c: ... here. New file.
7914 (ccp_fold_builtin): Rename to ...
7915 (gimple_fold_builtin): ... this.
7916 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
7918 2010-04-15 Richard Guenther <rguenther@suse.de>
7920 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
7921 fit_double_type, force_fit_type_double, add_double_with_sign,
7922 neg_double, mul_double_with_sign, lshift_double, rshift_double,
7923 lrotate_double, rrotate_double, div_and_round_double): Move ...
7924 * double-int.c: ... here.
7925 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
7926 add_double, neg_double, mul_double_with_sign, mul_double,
7927 lshift_double, rshift_double, lrotate_double, rrotate_double,
7928 div_and_round_double): Move prototypes ...
7929 * double-int.h: ... here.
7931 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
7934 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
7935 matching constraints to ensure inputs match the output.
7937 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
7940 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
7941 in an input-only operand.
7943 2010-04-15 Anatoly Sokolov <aesok@post.ru>
7945 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
7946 (double_int_not, double_int_lshift, double_int_rshift): Declare.
7947 (double_int_negative_p): Convert to static inline function.
7948 * double-int.c (double_int_lshift, double_int_lshift): New functions.
7949 (double_int_negative_p): Remove.
7950 * tree.h (lshift_double, rshift_double):
7951 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
7952 * fold-const.c (fold_convert_const_int_from_real,
7953 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
7954 (lshift_double): Change type of arith argument to bool.
7955 (rshift_double): Change type of arith argument to bool. Correct
7957 * expmed.c (mask_rtx, lshift_value): (Ditto.).
7959 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
7962 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
7963 at the start and end of the then/else blocks, and omit them from the
7965 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
7966 argument; all callers changed. Pass zero to old_insns_match_p instead.
7967 (flow_find_head_matching_sequence): New function.
7968 (old_insns_match_p): Check REG_EH_REGION notes for calls.
7969 * basic-block.h (flow_find_cross_jump,
7970 flow_find_head_matching_sequence): Declare functions.
7972 2010-04-14 Jason Merrill <jason@redhat.com>
7975 * c-common.c (attribute_takes_identifier_p): New fn.
7976 * c-common.h: Declare it.
7978 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7980 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
7982 (*udivmod<mode>4): Ditto.
7984 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7986 * config/i386/i386.md (maxmin_int): Rename code attribute from
7987 maxminiprefix and update all users.
7988 (maxmin_float): Ditto from maxminfprefix.
7989 (logic): Ditto from logicprefix.
7990 (absneg_mnemonic): Ditto from absnegprefix.
7991 * config/i386/mmx.md: Update all users of maxminiprefix,
7992 maxminfprefix and logicprefix for rename.
7993 * config/i386/sse.md: Ditto.
7994 * config/i386/sync.md (sync_<code><mode>): Update for
7997 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
8000 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
8001 warnings converted to errors.
8003 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8005 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
8006 used insn_type variable.
8007 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
8008 to avoid set-but-not-used warning.
8010 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8012 * df-core.c (df_ref_debug): Change format string placeholder
8014 * dwarf2asm.c (dw2_asm_output_data_raw,
8015 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
8016 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
8017 * dwarf2out.c (output_cfi, output_cfi_directive,
8018 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
8019 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
8021 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
8022 * print-rtl.c (print_rtx): Ditto.
8024 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8027 * builtins.c (expand_builtin_pow_root): New function to expand pow
8028 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
8029 series of sqrt and cbrt calls under -ffast-math.
8030 (expand_builtin_pow): Call it.
8032 2010-04-14 Michael Matz <matz@suse.de>
8034 PR tree-optimization/42963
8035 * tree-cfg.c (touched_switch_bbs): New static variable.
8036 (group_case_labels_stmt): New function broken out from ...
8037 (group_case_labels): ... here, use the above.
8038 (start_recording_case_labels): Allocate touched_switch_bbs.
8039 (end_recording_case_labels): Deallocate it, call
8040 group_case_labels_stmt.
8041 (gimple_redirect_edge_and_branch): Remember index of affected BB.
8043 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8045 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
8048 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8050 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
8052 2010-04-13 Jan Hubicka <jh@suse.cz>
8054 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
8055 of optimized out static functions.
8056 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
8057 cost computation. Also sanity check for overflows.
8058 (update_caller_keys): Update cgraph_edge_badness call; properly
8059 update fibheap and sanity check that it is up to date.
8060 (add_new_edges_to_heap): Update cgraph_edge_badness.
8061 (cgraph_decide_inlining_of_small_function): Likewise;
8062 add sanity checking that badness in heap is up to date;
8063 improve dumping of reason; Update badness of calls to the
8064 offline copy of function currently inlined; dump badness
8065 of functions not inlined because of unit growth limits.
8067 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8070 * c-common.c (pointer_int_sum): Disregard overflow that occured only
8071 because of sign-extension change when converting to sizetype here...
8072 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
8074 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
8075 the folding to constants. Remove redundant final conversion.
8076 (fold_binary) <associate>: Do not associate if the re-association of
8077 constants alone overflows.
8078 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
8079 to the end of the list.
8080 (multiple_of_p) <COND_EXPR>: New case.
8082 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
8084 * opt-functions.awk (opt_sanitized_name): New.
8086 * optc-gen.awk: Use it
8087 * opth-gen.awk: Use it.
8089 2010-04-13 Martin Jambor <mjambor@suse.cz>
8091 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
8092 (sra_modify_assign): Delete stmts loading dead data even if racc has no
8093 children. Call replace_uses_with_default_def_ssa_name to handle
8096 2010-04-13 Michael Matz <matz@suse.de>
8099 * builtins.c (expand_builtin_interclass_mathfn): Also create
8100 a register if the predicate doesn't match.
8102 2010-04-13 Diego Novillo <dnovillo@google.com>
8104 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
8105 * c-pch.c: Include timevar.h.
8106 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
8107 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
8108 * ggc-common.c: Include timevar.h.
8109 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
8110 * timevar.def (TV_PCH_SAVE): Define.
8111 (TV_PCH_CPP_SAVE): Define.
8112 (TV_PCH_PTR_REALLOC): Define.
8113 (TV_PCH_PTR_SORT): Define.
8114 (TV_PCH_RESTORE): Define.
8115 (TV_PCH_CPP_RESTORE): Define.
8117 2010-04-13 Michael Matz <matz@suse.de>
8119 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
8121 (can_reassociate_p): New function.
8122 (break_up_subtract_bb, reassociate_bb): Use it.
8124 2010-04-13 Richard Guenther <rguenther@suse.de>
8127 * builtins.c (c_readstr): Fix assert.
8129 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
8131 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
8132 when generating cltd insn.
8134 (*ashl<mode>3_1): Remove special handling for register operand 2.
8135 (*ashlsi3_1_zext): Ditto.
8136 (*ashlhi3_1): Ditto.
8137 (*ashlhi3_1_lea): Ditto.
8138 (*ashlqi3_1): Ditto.
8139 (*ashlqi3_1_lea): Ditto.
8140 (*<shiftrt_insn><mode>3_1): Ditto.
8141 (*<shiftrt_insn>si3_1_zext): Ditto.
8142 (*<shiftrt_insn>qi3_1_slp): Ditto.
8143 (*<rotate_insn><mode>3_1): Ditto.
8144 (*<rotate_insn>si3_1_zext): Ditto.
8145 (*<rotate_insn>qi3_1_slp): Ditto.
8147 2010-04-13 Richard Guenther <rguenther@suse.de>
8149 * tree-ssa-structalias.c (callused_id): Remove.
8150 (call_stmt_vars): New.
8151 (get_call_vi): Likewise.
8152 (lookup_call_use_vi): Likewise.
8153 (lookup_call_clobber_vi): Likewise.
8154 (get_call_use_vi): Likewise.
8155 (get_call_clobber_vi): Likewise.
8156 (make_transitive_closure_constraints): Likewise.
8157 (handle_const_call): Adjust to do per-call call-used handling.
8158 (handle_pure_call): Likewise.
8159 (find_what_var_points_to): Remove general callused handling.
8160 (init_base_vars): Likewise.
8161 (init_alias_vars): Initialize call_stmt_vars.
8162 (compute_points_to_sets): Process call-used and call-clobbered
8163 vars for call statements.
8164 (delete_points_to_sets): Free call_stmt_vars.
8166 2010-04-13 Richard Guenther <rguenther@suse.de>
8168 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8169 Only add RW dependence for dependence distance zero.
8170 Adjust maximal vectorization factor according to dependences.
8171 Move alignment handling ...
8172 (vect_find_same_alignment_drs): ... here. New function.
8173 (vect_analyze_data_ref_dependences): Adjust.
8174 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
8175 (vect_analyze_data_refs): Adjust minimal vectorization factor
8176 according to data references.
8177 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
8178 dependences before determining the vectorization factor.
8179 Analyze alignment after determining the vectorization factor.
8180 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
8181 dependences before alignment.
8182 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
8184 (vect_analyze_data_refs): Likewise.
8185 (MAX_VECTORIZATION_FACTOR): New define.
8187 2010-04-13 Duncan Sands <baldrick@free.fr>
8189 * except.h (lang_eh_type_covers): Remove.
8190 * except.c (lang_eh_type_covers): Likewise.
8192 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8193 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8195 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
8196 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
8197 UNITS_PER_LONG where it is ABI relevant.
8198 (s390_return_addr_rtx): Likewise.
8199 (s390_back_chain_rtx): Likewise.
8200 (s390_frame_area): Likewise.
8201 (s390_frame_info): Likewise.
8202 (s390_initial_elimination_offset): Likewise.
8203 (save_gprs): Likewise.
8204 (s390_emit_prologue): Likewise.
8205 (s390_emit_epilogue): Likewise.
8206 (s390_function_arg_advance): Likewise.
8207 (s390_function_arg): Likewise.
8208 (s390_va_start): Likewise.
8209 (s390_gimplify_va_arg): Likewise.
8210 (s390_function_profiler): Likewise.
8211 (s390_optimize_prologue): Likewise.
8212 (s390_rtx_costs): Likewise.
8213 (s390_secondary_reload): Likewise.
8214 (s390_promote_function_mode): Likewise.
8215 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
8216 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
8217 registers available.
8218 (s390_unwind_word_mode): New function.
8219 (s390_function_value): Split 64 bit values into register pair if
8220 used as return value.
8221 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
8222 function call parameters. Handle parallels.
8223 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
8224 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
8225 (DWARF_CIE_DATA_ALIGNMENT): New macro.
8226 (s390_expand_setmem): Remove unused variable src_addr.
8227 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
8228 deal with 64 bit registers.
8229 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
8230 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
8231 (UNITS_PER_LONG): New macro.
8232 * libjava/include/s390-signal.h: Define extended ucontext
8233 structure containing the upper halfs of the 64 bit registers.
8235 2010-04-13 Simon Baldwin <simonb@google.com>
8237 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
8239 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8241 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
8242 rvalue on the RHS if the LHS is of a non-renamable type.
8243 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
8245 2010-04-13 Matthias Klose <doko@ubuntu.com>
8247 * gcc.c (cc1_options): Handle -iplugindir before processing
8248 the cc1 spec. Only add -iplugindir once.
8249 (cpp_unique_options): Add -iplugindir option if -fplugin* options
8251 * common.opt (iplugindir): Remove `Separate' property, initialize.
8252 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
8254 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
8255 (distclean): Remove plugin dir.
8256 * doc/invoke.texi: Document -iplugindir.
8258 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
8260 * doc/plugins.texi (Loading Plugins): Document short
8261 -fplugin=foo option.
8262 (Plugin API): Mention default_plugin_dir_name function.
8264 * gcc.c (find_file_spec_function): Add new declaration.
8265 (static_spec_func): Use it for "find-file".
8266 (find_file_spec_function): Add new function.
8267 (cc1_options): Add -iplugindir option if -fplugin* options found.
8269 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
8271 * plugin.c (add_new_plugin): Updated comment, and handle short
8273 (default_plugin_dir_name): Added new function.
8275 * common.opt (iplugindir): New option to set the plugin directory.
8277 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
8279 * config/i386/i386.md (any_rotate): New code iterator.
8280 (rotate_insn): New code attribute.
8282 (SWIM124): New mode iterator.
8283 (<rotate_insn>ti3): New expander.
8284 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
8285 any_rotate code iterator.
8286 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
8287 using any_rotate code iterator and SWIM124 mode iterator.
8288 (ix86_rotlti3): New insn_and_split pattern.
8289 (ix86_rotrti3): Ditto.
8290 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
8291 ix86_rotl{di,ti}3 patterns.
8292 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
8293 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
8294 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
8295 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
8296 code iterator and SWI mode iterator.
8297 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
8298 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
8300 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
8301 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
8302 (bswap rotatert splitter): Add splitter.
8303 (bswap splitter): Macroize splitter using any_rotate code iterator.
8304 Add insn predicate to split only for TARGET_USE_XCHGB or when
8305 optimizing function for size.
8307 2010-04-12 Steve Ellcey <sje@cup.hp.com>
8309 * config/pa/pa.c (emit_move_sequence): Remove use of
8310 deleted variable flag_argument_noalias.
8312 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8314 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
8316 Add to unsupported targets list.
8317 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
8318 sparc*-sun-solaris2.[567]* from target lists.
8319 * configure: Regenerate.
8320 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
8322 Remove Solaris 7 patch references.
8323 (Specific, sparc-sun-solaris2.7): Removed.
8324 (sparc-sun-solaris2*): Update Solaris 7 example.
8325 (sparc64-*-solaris2*): Likewise.
8327 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8329 * config.build (alpha*-dec-osf4*): Remove.
8330 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
8331 of obsolete configurations.
8332 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
8334 * config/alpha/t-osf4: Renamed to ...
8335 * config/alpha/t-osf5: ... this.
8336 * config/alpha/osf.h: Renamed to ...
8337 * config/alpha/osf5.h: ... this.
8338 Merged old osf5.h contents.
8340 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
8341 (EXTRA_SPECS): Removed.
8342 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
8343 reflect removal of Tru64 UNIX V4.0/V5.0 support.
8346 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8348 * doc/contrib.texi (Contributors, Rainer Orth): Update.
8350 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
8353 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
8354 __thiscall convention.
8356 2010-04-12 Steve Ellcey <sje@cup.hp.com>
8358 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
8360 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
8362 2010-04-12 Steve Ellcey <sje@cup.hp.com>
8364 * function.c (assign_parms_initialize_all): Add unused attribute
8367 2010-04-12 Richard Guenther <rguenther@suse.de>
8369 * gsstruct.def (GSS_CALL): New.
8370 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
8371 * gimple.h: Include tree-ssa-alias.h.
8372 (struct gimple_statement_call): New.
8373 (union gimple_statement_struct_d): Add gimple_call member.
8374 (gimple_call_reset_alias_info): Declare.
8375 (gimple_call_use_set): New function.
8376 (gimple_call_clobber_set): Likewise.
8377 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
8378 * gimple.c (gimple_call_reset_alias_info): New function.
8379 (gimple_build_call_1): Call it.
8380 * lto-streamer-in.c (input_gimple_stmt): Likewise.
8381 * tree-inline.c (remap_gimple_stmt): Likewise.
8382 (expand_call_inline): Remove callused handling.
8383 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
8384 * tree-dfa.c (dump_variable): Likewise.
8385 * tree-parloops.c (parallelize_loops): Likewise.
8386 * tree-ssa.c (init_tree_ssa): Likewise.
8387 (delete_tree_ssa): Likewise.
8388 * tree-flow-inline.h (is_call_used): Remove.
8389 * tree-flow.h (struct gimple_df): Remove callused member.
8390 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
8391 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
8392 (ref_maybe_used_by_call_p_1): Simplify.
8393 (call_may_clobber_ref_p_1): Likewise.
8394 * tree-ssa-structalias.c (compute_points_to_sets): Set
8395 the call stmt used and clobbered sets.
8396 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
8397 (find_tail_calls): Verify the tail call.
8399 2010-04-12 Richard Guenther <rguenther@suse.de>
8401 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
8402 single-iteration always-inline inlining.
8403 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
8404 (cgraph_decide_inlining): Do not handle always-inline specially.
8405 (try_inline): Remove always-inline cycle detection special case.
8406 Do not recurse on always-inlines.
8407 (cgraph_early_inlining): Do not iterate if not optimizing.
8408 (cgraph_gate_early_inlining): remove.
8409 (pass_early_inline): Run unconditionally.
8410 (gate_cgraph_decide_inlining): New function.
8411 (pass_ipa_inline): Use it. Do not run the IPA inliner if
8412 not inlining or optimizing.
8413 (cgraph_decide_inlining_of_small_functions): Also consider
8414 always-inline functions.
8415 (cgraph_default_inline_p): Return true for nodes which should
8416 disregard inline limits.
8417 (estimate_function_body_sizes): Assume zero size and time for
8418 nodes which are marked as disregarding inline limits.
8419 (cgraph_decide_recursive_inlining): Do not perform recursive
8420 inlining on always-inline nodes.
8422 2010-04-12 Jakub Jelinek <jakub@redhat.com>
8425 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
8426 for exprs satisfying handled_component_p.
8428 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
8430 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
8431 non-constant aggregate elements.
8433 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
8434 is a real initialization.
8436 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
8439 * c-decl.c (start_function): Move forward check for nested function.
8441 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
8443 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
8444 * config/sh/sh.c: Include reload.h.
8445 (sh_legitimize_reload_address): New.
8446 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
8447 sh_legitimize_reload_address.
8449 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8451 * config/sh/sh.md (*movqi_pop): New insn pattern.
8452 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
8454 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
8456 * config/i386/i386.md (any_shiftrt): New code iterator.
8457 (shiftrt_insn): New code attribute.
8459 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
8460 using any_shiftrt code iterator.
8461 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
8462 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
8463 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
8464 pattern from corresponding peephole2 patterns.
8465 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
8466 using any_shiftrt code iterator.
8467 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
8468 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
8469 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
8470 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
8471 *{ashr,lshr}<mode>3_cmp_zext.
8472 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
8474 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
8476 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
8478 (*lshr<mode>3_cconly): Ditto.
8480 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
8482 * config/i386/i386.md (lshr<mode>3): Macroize expander from
8483 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
8484 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
8485 pattern from *lshr{di,ti}3_1 and corresponding splitters using
8487 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
8488 from corresponding peephole2 patterns.
8489 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
8490 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
8491 and *lshrdi3_1_rex64 using SWI mode iterator.
8492 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
8493 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
8494 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
8495 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
8496 and *lshrdi3_cmp_rex64 using SWI mode iterator.
8497 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
8498 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
8499 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
8500 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
8503 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
8505 * config/i386/i386.md (ashr<mode>3): Macroize expander from
8506 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
8507 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
8508 pattern from *ashr{di,ti}3_1 and corresponding splitters using
8510 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
8511 from corresponding peephole2 patterns.
8512 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
8513 (ashrsi3_cvt): Rename from ashrsi3_31.
8514 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
8515 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
8516 and x86_64_shift_adj_3 using SWI48 mode iterator.
8517 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
8518 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
8519 and *ashrdi3_1_rex64 using SWI mode iterator.
8520 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
8521 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
8522 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
8523 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
8524 and *ashrdi3_cmp_rex64 using SWI mode iterator.
8525 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
8526 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
8527 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
8528 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
8530 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
8531 * config/i386/i386.c (ix86_split_ashr): Update for renamed
8532 x86_shift<mode>_adj_3 expanders.
8534 2010-04-10 Wei Guozhi <carrot@google.com>
8537 * config/arm/arm.c (arm_pic_static_addr): New function.
8538 (legitimize_pic_address): Call arm_pic_static_addr when it detects
8540 (arm_output_addr_const_extra): Output expression for new pattern.
8541 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
8543 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
8545 * ira-costs.c (record_reg_classes): Ignore alternatives that are
8548 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
8549 * web.c: Include "insn-config.h" and "recog.h".
8550 (union_match_dups): New function.
8551 (web_main): Call it.
8552 (union_defs): Don't try to recognize match_dups.
8554 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
8555 if doing so would replace the entire pattern.
8557 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
8561 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
8562 and splitter pattern. Change splitter operand 1 predicate to
8565 2010-04-09 Martin Jambor <mjambor@suse.cz>
8567 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
8568 lattices are addresses of CONST_DECLs with the same initial value.
8569 (ipcp_print_all_lattices): Print values of CONST_DECLs.
8570 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
8572 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8573 Bernd Schmidt <bernds@codesourcery.com>
8575 * loop-invariant.c (replace_uses): New static function.
8576 (move_invariant_reg): Use it to ensure we can replace the uses.
8578 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
8580 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
8582 (picochip_override_options): Enable section anchors only above -O1.
8583 (picochip_reorg): Fixed a couple of build warnings.
8585 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8587 * configure.ac (plugin -rdynamic test): Log result.
8588 * configure: Regenerate.
8589 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
8590 (RDYNAMIC_SPEC): Define.
8591 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
8593 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8595 * configure.ac: Determine Sun ld version numbers.
8596 (comdat_group): Restrict GNU ld version checks to gld.
8597 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
8598 (enable_comdat): Support --enable-comdat.
8599 * configure: Regenerate.
8600 * doc/install.texi (Configuration): Document --enable-comdat.
8602 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8604 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
8605 * config/sol2-gld.h: ... here.
8606 * config.gcc (sparc*-*-solaris2*): Reflect this.
8607 (i[34567]86-*-solaris2*): Use it.
8609 2010-04-09 Steve Ellcey <sje@cup.hp.com>
8611 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
8613 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
8615 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8618 * diagnostic.c (diagnostic_initialize): Initialize
8619 some_warnings_are_errors.
8620 (diagnostic_finish): New.
8621 (diagnostic_action_after_output): Call it before exiting.
8622 (diagnostic_report_diagnostic): Do not print message here. Set
8623 some_warnings_are_errors.
8624 * diagnostic.h (diagnostic_context): Delete
8625 issue_warnings_are_errors_message. Add some_warnings_are_errors.
8626 (diagnostic_finish): Declare.
8627 * toplev.c (toplev_main): Call it before exit.
8629 2010-04-09 Jason Merrill <jason@redhat.com>
8632 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
8633 for incomplete type.
8636 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
8637 based on a warning flag.
8639 2010-04-09 Richard Guenther <rguenther@suse.de>
8641 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
8643 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
8646 * varasm.c (default_assemble_visibility): Wrap vars that are
8647 set, but unused, by targets without GAS.
8648 * config/rs6000/rs6000.c (paired_emit_vector_compare):
8649 Remove set, but unused, vars.
8650 (rs6000_legitimize_tls_address): Likewise.
8651 (altivec_expand_dst_builtin): Likewise.
8652 * config/darwin.c (machopic_classify_symbol): Likewise.
8653 (machopic_indirection_name): Likewise.
8655 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
8657 * config/i386/i386.md (DWI): New mode iterator.
8658 (S): New mode attribute.
8659 (shift_operand): Ditto.
8660 (shift_immediate_operand): Ditto.
8661 (ashl_input_operand): Ditto.
8662 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
8663 using SDWIM mode iterator.
8664 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
8665 pattern from *ashl{di,ti}3_1 and corresponding splitters using
8667 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
8668 from corresponding peephole2 patterns.
8669 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
8670 and x86_64_shift_adj_1 using SWI48 mode iterator.
8671 (x86_shift<mode>_adj_2): Ditto.
8672 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
8673 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
8674 using SWI48 mode iterator.
8675 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
8676 *ashldi3_cmp_rex64 using SWI mode iterator.
8677 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
8678 *ashldi3_cconly_rex64 using SWI mode iterator.
8679 * config/i386/i386.c (ix86_split_ashl): Update for renamed
8680 x86_shift<mode>_adj_{1,2}.
8681 (ix86_split_ashr): Ditto.
8682 (ix86_split_lshr): Ditto.
8684 2010-04-09 Richard Guenther <rguenther@suse.de>
8686 * target.h (builtin_conversion): Pass in input and output types.
8687 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
8688 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
8689 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
8690 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
8692 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
8694 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
8696 2010-04-09 Richard Guenther <rguenther@suse.de>
8699 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
8701 2010-04-09 Richard Guenther <rguenther@suse.de>
8703 * tree-vectorizer.h (struct _stmt_vec_info): Document
8704 that vectype is the type of the LHS.
8705 (supportable_widening_operation, supportable_narrowing_operation):
8706 Get both input and output vector types as arguments.
8707 (vect_is_simple_use_1): Declare.
8708 (get_same_sized_vectype): Likewise.
8709 * tree-vect-loop.c (vect_determine_vectorization_factor):
8710 Set STMT_VINFO_VECTYPE to the vector type of the def.
8711 (vectorizable_reduction): Adjust.
8712 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
8713 Adjust. Specify the output vector type.
8714 (vect_pattern_recog_1): Adjust.
8715 * tree-vect-stmts.c (get_same_sized_vectype): New function.
8716 (vectorizable_call): Adjust.
8717 (vectorizable_conversion): Likewise.
8718 (vectorizable_operation): Likewise.
8719 (vectorizable_type_demotion): Likewise.
8720 (vectorizable_type_promotion): Likewise.
8721 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
8723 (vect_is_simple_use_1): New function.
8724 (supportable_widening_operation): Get both input and output
8726 (supportable_narrowing_operation): Likewise.
8727 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
8729 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
8731 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
8732 __thiscall and _thiscall as predefined macros.
8733 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
8734 thiscall attribute handling.
8735 (ix86_comp_type_attributes): Likewise.
8736 (ix86_function_regparm): Likewise.
8737 (ix86_return_pops_args): Likewise.
8738 (init_cumulative_args): Likewise.
8739 (find_drap_reg): Likewise.
8740 (ix86_static_chain): Likewise.
8741 (x86_this_parameter): Likewise.
8742 (x86_output_mi_thunk): Likewise.
8743 (ix86_attribute_table): Add description for thiscall attribute.
8744 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
8745 * doc/extend.texi: Add documentation for thiscall.
8747 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8750 * c.opt (Wint-to-pointer-cast): Available in C++.
8751 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
8753 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
8755 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
8756 * calls.c (expand_call): Pass the function type to aggregate_value_p.
8757 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
8758 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
8759 function type instead. Reorder and simplify checks.
8761 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
8763 2010-04-08 Jing Yu <jingyu@google.com>
8764 Zdenek Dvorak <ook@ucw.cz>
8766 PR tree-optimization/42720
8767 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
8768 loop unswitch conditions here from ...
8769 (tree_unswitch_single_loop): ... here.
8771 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
8773 * tree-if-conv.c: Fix comments and simplify logic.
8775 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
8777 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
8778 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
8779 (main_tree_if_conversion): Update call to tree_if_conversion.
8781 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
8784 * doc/invoke.texi (-b,-V): Delete.
8785 * doc/tm.texi: Do not mention -b.
8786 * gcc.c (display_help): Delete -b and -V.
8787 (process_command): Delete -b and -V.
8788 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
8790 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
8791 Wolfgang Gellerich <gellerich@de.ibm.com>
8793 Implement target hook for loop unrolling
8794 * target.h (loop_unroll_adjust): Add a new target hook function.
8795 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
8796 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
8797 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
8798 (s390_loop_unroll_adjust): Implement the new target hook for s390.
8799 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
8801 (decide_unroll_stupid): Likewise.
8803 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8806 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
8808 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
8811 (Specific, *-*-solaris2*): Likewise.
8812 Don't prefer Sun as over GNU as.
8814 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
8816 * config/s390/s390.c (override_options): Adjust the z10 defaults
8817 for max-unroll-times, max-completely-peeled-insns
8818 and max-completely-peel-times.
8820 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8822 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
8823 instructions for z10.
8824 (s390_expand_setmem): Likewise.
8825 (s390_expand_cmpmem): Likewise.
8827 2010-04-08 Richard Guenther <rguenther@suse.de>
8829 PR tree-optimization/43679
8830 * tree-ssa-pre.c (eliminate): Only propagate copies.
8832 2010-04-08 Jakub Jelinek <jakub@redhat.com>
8835 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
8836 set but not used variable warning.
8838 2010-04-08 Wei Guozhi <carrot@google.com>
8841 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
8842 (arm_size_rtx_costs): Call the new function when optimized for size.
8844 2010-04-08 Jakub Jelinek <jakub@redhat.com>
8847 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
8848 op0 is not a MEM, just return NULL instead of assertion
8850 (discover_nonconstant_array_refs): Don't walk debug stmts.
8852 2010-04-08 Doug Kwan <dougkwan@google.com>
8854 * configure.ac: Recognize gold and do not use its version number
8855 to test ld features.
8856 * configure: Regenerate.
8858 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
8861 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
8862 (negate_value): Move code to push elements to broken_up_substracts ...
8863 (eliminate_plus_minus_pair): ... here. Push operands that have no
8864 negative pair to plus_negates.
8865 (repropagate_negates, init_reassoc, fini_reassoc): Update.
8867 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8869 * doc/install.texi (Configuration): Move description of
8870 --enable-lto, --with-libelf*, --enable-gold from Java section to
8873 * doc/generic.texi (Working with declarations)
8874 (Function Properties, C and C++ Trees): Fix typos.
8875 * doc/sourcebuild.texi (Top Level): Likewise.
8877 2010-04-07 Jakub Jelinek <jakub@redhat.com>
8880 * tree.h (DECL_READ_P): Define.
8881 (struct tree_decl_common): Add decl_read_flag.
8882 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
8883 a set but not used warning.
8884 (merge_decls): Merge DECL_READ_P flag.
8885 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
8886 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
8887 * c-common.c (handle_used_attribute, handle_unused_attribute):
8889 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
8891 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
8893 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
8894 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
8895 c_parser_binary_expression, c_parser_cast_expression,
8896 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
8897 Call default_function_array_read_conversion instead of
8898 default_function_array_conversion where needed.
8899 (c_parser_unary_expression, c_parser_conditional_expression,
8900 c_parser_postfix_expression_after_primary, c_parser_initelt):
8901 Likewise. Call mark_exp_read where needed.
8902 (c_parser_statement_after_labels, c_parser_asm_operands,
8903 c_parser_typeof_specifier, c_parser_sizeof_expression,
8904 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
8906 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
8908 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
8909 (warn_unused_but_set_parameter): Default to warn_unused
8911 * doc/invoke.texi: Document -Wunused-but-set-variable and
8912 -Wunused-but-set-parameter.
8914 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
8915 used count variable.
8916 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
8917 when operandN variables aren't used in the body of the expander
8919 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
8920 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
8921 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
8922 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
8923 FOR_EACH_IMM_USE_ON_STMT): Likewise.
8924 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
8925 * tree.c (PROCESS_ARG): Likewise.
8927 2010-04-07 Simon Baldwin <simonb@google.com>
8929 * diagnostic.h (diagnostic_override_option_index): New macro to
8930 set a diagnostic's option_index.
8931 * c-tree.h (c_cpp_error): Add warning reason argument.
8932 * opts.c (_warning_as_error_callback): New.
8933 (register_warning_as_error_callback): Store callback for
8934 warnings enabled via enable_warning_as_error.
8935 (enable_warning_as_error): Call callback, minor code tidy.
8936 * opts.h (register_warning_as_error_callback): Declare.
8937 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
8938 response to -Werror=.
8939 (c_common_init_options): Register warning_as_error_callback in opts.c.
8940 * common.opt: Add -Wno-cpp option.
8941 * c-common.c (struct reason_option_codes_t): Map cpp warning
8942 reason codes to gcc option indexes.
8943 * (c_option_controlling_cpp_error): New function, lookup the gcc
8944 option index for a cpp warning reason code.
8945 * (c_cpp_error): Add warning reason argument, call
8946 c_option_controlling_cpp_error for diagnostic_override_option_index.
8947 * doc/invoke.texi: Document -Wno-cpp.
8949 2010-04-07 Richard Guenther <rguenther@suse.de>
8951 * ipa-reference.c (mark_load): Use get_base_address.
8952 (mark_store): Likewise.
8954 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
8955 inserting GIMPLE_NOPs into the IL.
8956 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8957 Explicitly strip handled components and indirect references.
8959 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
8960 folding address expressions.
8961 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
8962 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
8963 operand_equal_p to compare decls.
8964 (ptr_deref_may_alias_decl_p): Likewise.
8965 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
8966 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
8967 Handle reversed comparison ops.
8968 * tree-sra.c (asm_visit_addr): Use get_base_address.
8969 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
8970 * ipa-reference.c (mark_address): Use get_base_address.
8972 2010-04-07 Richard Guenther <rguenther@suse.de>
8974 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
8975 Propagate constants everywhere.
8977 2010-04-07 Jakub Jelinek <jakub@redhat.com>
8980 * tree.c (MAX_INT_CACHED_PREC): Define.
8981 (nonstandard_integer_type_cache): New array.
8982 (build_nonstandard_integer_type): Cache results for precision
8983 <= MAX_INT_CACHED_PREC.
8985 2010-04-07 Richard Guenther <rguenther@suse.de>
8987 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
8988 -fargument-noalias-global, -fargument-noalias-anything): Remove.
8989 * common.opt: Likewise.
8990 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
8991 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
8992 (nonoverlapping_memrefs_p): Likewise.
8993 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8994 * opts.c (common_handle_option): Handle OPT_fargument_alias,
8995 OPT_fargument_noalias, OPT_fargument_noalias_anything and
8996 OPT_fargument_noalias_global for backward compatibility.
8998 2010-04-07 Richard Guenther <rguenther@suse.de>
9000 PR tree-optimization/43270
9001 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
9002 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
9003 * tree-ssa-pre.c (phi_translate_1): Adjust.
9004 (fully_constant_expression): Split out vn_reference handling to ...
9005 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
9006 Fold reads from constant strings.
9007 (vn_reference_lookup): Handle fully constant references.
9008 (vn_reference_lookup_pieces): Likewise.
9009 * Makefile.in (expmed.o-warn): Add -Wno-error.
9011 2010-04-07 Martin Jambor <mjambor@suse.cz>
9013 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
9015 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
9018 * gcc.c: Add -static-libstdc++ to list of recognized options.
9020 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9022 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
9024 2010-04-07 Richard Guenther <rguenther@suse.de>
9027 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
9028 bases build simple mem attributes to retain points-to information.
9030 2010-04-07 Richard Guenther <rguenther@suse.de>
9033 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
9034 preserve points-to related information.
9036 2010-04-07 Richard Guenther <rguenther@suse.de>
9039 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
9040 discard plain indirect references.
9041 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
9042 * tree.c (tree_nop_conversion): Likewise.
9044 2010-04-07 Dodji Seketeli <dodji@redhat.com>
9047 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
9049 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
9051 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
9052 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
9054 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9056 * tree-if-conv.c: Fix indentation and comments.
9058 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9060 * tree-if-conv.c: Sort static functions in topological order.
9062 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
9064 * tree-if-conv.c: Fix indentation and comments.
9066 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9069 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
9070 lang_hooks.types.type_for_size instead of
9071 build_nonstandard_integer_type.
9072 When converting an unsigned type to signed, double its precision.
9073 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
9074 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
9075 (graphite_create_new_loop_guard): When ub + 1 wraps around,
9078 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9081 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
9082 POINTER_PLUS_EXPR for pointer types.
9084 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9087 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
9088 * graphite-clast-to-gimple.c: Include langhooks.h.
9089 (max_signed_precision_type): New.
9090 (max_precision_type): Takes two types as arguments.
9091 (precision_for_value): New.
9092 (precision_for_interval): New.
9093 (gcc_type_for_interval): New.
9094 (gcc_type_for_value): New.
9095 (gcc_type_for_clast_term): New.
9096 (gcc_type_for_clast_red): New.
9097 (gcc_type_for_clast_bin): New.
9098 (gcc_type_for_clast_expr): Split up into several functions.
9099 (gcc_type_for_clast_eq): Rewritten.
9100 (compute_bounds_for_level): New.
9101 (compute_type_for_level_1): New.
9102 (compute_type_for_level): New.
9103 (gcc_type_for_cloog_iv): Removed.
9104 (gcc_type_for_iv_of_clast_loop): Rewritten.
9105 (graphite_create_new_loop): Compute the lower and upper bound types
9106 with gcc_type_for_clast_expr.
9107 (graphite_create_new_loop_guard): Same.
9108 (find_cloog_iv_in_expr): Removed.
9109 (compute_cloog_iv_types_1): Removed.
9110 (compute_cloog_iv_types): Removed.
9111 (gloog): Do not call compute_cloog_iv_types.
9112 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
9114 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
9115 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
9116 (GBB_CLOOG_IV_TYPES): Removed.
9118 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9120 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
9121 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
9122 (detect_commutative_reduction): Same.
9124 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9126 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
9127 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
9129 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
9130 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
9131 (rewrite_commutative_reductions_out_of_ssa): Same.
9132 * passes.c (execute_function_todo): Call verify_ssa for every pass
9133 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
9134 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
9135 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
9136 with an extra argument.
9137 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
9138 verify_ssa only when the extra argument is true.
9139 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
9140 with an extra argument.
9141 (tree_transform_and_unroll_loop): Same.
9143 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
9145 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
9146 for all the passes of the LNO having LOOP_CLOSED_SSA.
9147 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
9148 * tree-loop-distribution.c (pass_loop_distribution): Same.
9149 * tree-pass.h (TODO_verify_loops): Removed.
9150 * tree-ssa-loop.c (pass_tree_loop_init): Same.
9152 (pass_tree_unswitch): Same.
9153 (pass_predcom): Same.
9154 (pass_vectorize): Same.
9155 (pass_linear_transform): Same.
9156 (pass_graphite_transforms): Same.
9157 (pass_iv_canon): Same.
9158 (pass_complete_unroll): Same.
9159 (pass_complete_unrolli): Same.
9160 (pass_parallelize_loops): Same.
9161 (pass_loop_prefetch): Same.
9162 (pass_iv_optimize): Same.
9164 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
9167 * passes.c (init_optimization_passes): Move pass_lim before
9168 pass_copy_prop and pass_dce_loop.
9170 2010-04-06 Jakub Jelinek <jakub@redhat.com>
9173 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
9174 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
9175 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
9176 MULTI_* defines for 4 argument vpermil2p* builtins.
9178 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
9180 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
9181 * config/i386/i386.c (x86_maybe_negate_const_int): New.
9182 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
9183 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
9184 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
9185 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
9186 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
9187 Use x86_maybe_negate_const_int to output insn mnemonic.
9188 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
9189 check from instruction predicate. Update comments.
9190 * config/i386/sync.md (sync_add<mode>): Use
9191 x86_maybe_negate_const_int to output insn mnemonic.
9193 2010-04-06 Jan Hubicka <jh@suse.cz>
9195 PR tree-optimization/42906
9196 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
9197 IGNORE_SELF argument. Set visited_control_parents for fully
9199 (find_obviously_necessary_stmts): Update call of
9200 mark_control_dependent_edges_necessary.
9201 (propagate_necessity): Likewise. Handle PHI edges more curefully.
9203 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
9205 * config/i386/i386.md: Remove comment about 'e' and 'E'
9208 2010-04-06 Richard Guenther <rguenther@suse.de>
9210 PR tree-optimization/43627
9211 * tree-vrp.c (extract_range_from_unary_expr): Widenings
9212 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
9215 2010-04-06 Jakub Jelinek <jakub@redhat.com>
9217 * BASE-VER: Change to 4.6.0.
9220 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
9223 2010-04-06 Richard Guenther <rguenther@suse.de>
9226 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
9228 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9230 * doc/invoke.texi (Optimize Options): Document that LTO
9231 won't remove object access purely due to incompatible
9234 2010-04-04 Matthias Klose <doko@ubuntu.com>
9236 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
9237 Initialize variable.
9239 2010-04-03 Richard Guenther <rguenther@suse.de>
9242 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
9243 require a non-NULL MEM_OFFSET.
9245 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
9247 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
9248 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
9249 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
9250 config/alpha/predicates.md, config/arm/arm.md,
9251 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
9252 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
9253 config/darwin9.h, config/darwin.c, config/darwin.h,
9254 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
9255 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
9256 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
9257 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
9258 config/mips/mips.md, config/mn10300/mn10300.c,
9259 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
9260 config/rs6000/aix.h, config/rs6000/dfp.md,
9261 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
9262 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
9263 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
9264 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
9265 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
9266 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
9267 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
9268 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
9269 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
9270 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
9271 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
9272 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
9273 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
9274 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
9275 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
9276 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
9277 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
9278 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
9279 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
9280 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
9281 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
9282 opt-functions.awk, opth-gen.awk, params.def, passes.c,
9283 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
9284 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
9285 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
9286 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
9287 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
9288 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9289 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
9290 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
9291 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
9292 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
9293 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
9294 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
9295 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
9296 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
9298 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9301 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
9302 * aclocal.m4: Regenerate.
9304 2010-04-02 Richard Guenther <rguenther@suse.de>
9306 PR tree-optimization/43629
9307 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
9308 if we have seen a constant value.
9310 2010-04-02 Joseph Myers <joseph@codesourcery.com>
9312 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
9314 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
9317 * arm.c (legitimize_tls_address): Adjust call to
9318 gen_tls_load_dot_plus_four.
9319 (arm_note_pic_base): New function.
9320 (arm_cannot_copy_insn_p): Use it.
9321 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
9324 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9329 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9331 * Makefile.in ($(out_object_file)): Depend on
9332 gt-$(basename $(notdir $(out_file))).h.
9334 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
9336 * config.gcc (lm32-*-rtems*): Add t-lm32.
9338 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
9340 * config.gcc: Add lm32-*-rtems*.
9341 * config/lm32/rtems.h: New file.
9343 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
9346 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
9348 2010-04-01 Jakub Jelinek <jakub@redhat.com>
9350 * dwarf2out.c (output_compilation_unit_header): For
9351 -gdwarf-4 use version 4 instead of version 3.
9352 (output_line_info): For version 4 and above emit additional
9353 maximum ops per insn header field.
9354 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
9356 * dwarf2out.c (is_c_family, is_java): Remove.
9357 (lower_bound_default): New function.
9358 (add_bound_info, gen_descr_array_type_die): Use it.
9360 2010-04-01 Dodji Seketeli <dodji@redhat.com>
9363 * dwarf2out.c (gen_variable_die): Allow debug info for variable
9364 re-declaration when it happens in a function.
9366 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
9368 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
9369 (cgraph_remove_function_insertion_hook): Same.
9370 (cgraph_call_function_insertion_hooks): Same.
9372 2010-04-01 Richard Guenther <rguenther@suse.de>
9375 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
9376 and TREE_THIS_VOLATILE.
9377 (copy_ref_info): Likewise.
9378 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
9379 * tree.c (build6_stat): Ignore side-effects of all but arg5
9380 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
9383 2010-04-01 Richard Guenther <rguenther@suse.de>
9385 PR tree-optimization/43607
9386 * ipa-type-escape.c (check_call): Do not access non-existing
9389 2010-04-01 Richard Guenther <rguenther@suse.de>
9393 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
9394 Jack Howarth <howarth@bromo.med.uc.edu>
9396 * tree-profile.c (tree_init_ic_make_global_vars): Make static
9399 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9401 * doc/install.texi (Prerequisites): Document libelf usability on
9402 IRIX 5/6 and Solaris 2.
9403 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
9404 Update GNU as, GNU ld requirements.
9405 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
9406 Document Sun Studio compiler download.
9407 Update and simplify as, ld recommendations.
9408 (Specific, *-*-solaris2.7): Note obsoletion, removal.
9410 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9412 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
9413 with_tune_32 to pentium4.
9415 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
9417 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
9419 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9421 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
9422 obsoletion, removal.
9424 Document GNU as requirement.
9425 Update configure requirements.
9426 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
9427 Recomment IRIX 6.5.18+.
9428 Document IDF/IDL requirement.
9429 Document GNU as requirement.
9430 Document GNU ld bootstrap failure.
9431 Remove freeware.sgi.com reference.
9433 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9435 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
9436 UNIX V4.0, V5.0 obsoletion, removal.
9437 Remove --with-gc=simple reference.
9438 Update VM requirements during bootstrap.
9439 Remove -oldas bootstrap description.
9440 Update binutils reference.
9441 Remove comparison failure note.
9443 2010-03-31 Richard Guenther <rguenther@suse.de>
9444 Zdenek Dvorak <ook@ucw.cz>
9445 Sebastian Pop <sebastian.pop@amd.com>
9448 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
9449 with multiple arguments.
9450 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
9452 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9454 * graphite-dependences.c (print_pddr): Call print_pdr with an
9456 * graphite-poly.c (debug_pdr): Add an extra argument for the
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.
9481 * graphite-poly.h (debug_pdr): Update declaration.
9483 (print_pbb_domain): Same.
9485 (print_scop_context): Same.
9487 (print_cloog): Same.
9488 (debug_pbb_domain): Same.
9492 (debug_scop_context): Same.
9494 (debug_cloog): Same.
9495 (print_scop_params): Same.
9496 (debug_scop_params): Same.
9497 (print_iteration_domain): Same.
9498 (print_iteration_domains): Same.
9499 (debug_iteration_domain): Same.
9500 (debug_iteration_domains): Same.
9501 (print_scattering_function): Same.
9502 (print_scattering_functions): Same.
9503 (debug_scattering_function): Same.
9504 (debug_scattering_functions): Same.
9506 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9508 * graphite-poly.c (print_scattering_function_1): New.
9509 (print_scattering_function): Call it.
9510 (print_scop_params): Remove spaces at the end of lines.
9513 * graphite-poly.h (print_cloog): Declared.
9514 (debug_cloog): Declared.
9516 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9518 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
9520 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
9521 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
9522 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
9523 to switch between adding the IV bump in loop->latch or in loop->header.
9525 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
9527 * graphite-poly.c (print_scattering_function): Pretty print following
9530 (print_pbb_domain): Same.
9531 (dump_gbb_cases): Same.
9532 (dump_gbb_conditions): Same.
9535 (print_scop_params): Same.
9536 (print_scop_context): Same.
9538 (print_pbb_body): New.
9539 (lst_indent_to): New.
9540 (print_lst): Start new lines with a #.
9541 * graphite-poly.h (pbb_bb): New.
9542 (pbb_index): Use pbb_bb.
9543 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
9545 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
9547 2010-03-31 Jakub Jelinek <jakub@redhat.com>
9549 * dwarf2out.c (size_of_die): For -gdwarf-4 use
9550 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
9551 and 0 instead of 1 for dw_val_class_flag.
9552 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
9553 dw_val_class_range_list, dw_val_class_loc_list,
9554 dw_val_class_lineptr and dw_val_class_macptr, use
9555 DW_FORM_flag_present for dw_val_class_flag and
9556 DW_FORM_exprloc for dw_val_class_loc.
9557 (output_die): For -gdwarf-4 print dw_val_class_loc
9558 size as uleb128 instead of 1 or 2 bytes and don't print
9559 anything for dw_val_class_flag.
9561 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
9562 instead of cselib_lookup following by tweaking locs->setting_insn.
9565 * cselib.c (cselib_process_insn): Clear cselib_current_insn
9566 even before returning from label, setjmp call or volatile asm
9569 2010-03-31 Richard Guenther <rguenther@suse.de>
9572 * cgraphunit.c (cgraph_output_in_order): Do not allocate
9573 temporary data on stack.
9575 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9577 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
9578 (PUSHSECTION_ASM_OP): Remove.
9579 (POPSECTION_ASM_OP): Remove.
9580 (PUSHSECTION_FORMAT): Remove.
9581 * config/sol2.h (PUSHSECTION_FORMAT): Define.
9582 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
9583 * config/sol2.c (solaris_output_init_fini): Use it.
9585 2010-03-31 Jie Zhang <jie@codesourcery.com>
9588 * opt-functions.awk (var_type_struct): Use signed char type
9589 for simple variables.
9591 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9593 * config/sol2.c: Include output.h.
9594 (solaris_assemble_visibility): New function.
9595 * config/t-sol2 (sol2.o): Add output.h dependency.
9596 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
9597 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
9600 2010-03-31 Jakub Jelinek <jakub@redhat.com>
9603 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
9604 V2SImode or XFmode on PRE_DEC.
9607 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
9610 2010-03-31 Jie Zhang <jie@codesourcery.com>
9613 * reload.h (caller_save_initialized_p): Declare.
9614 * toplev.c (backend_init_target): Don't call
9615 init_caller_save but set caller_save_initialized_p to false.
9616 * caller-save.c (caller_save_initialized_p): Define.
9617 (init_caller_save): Check caller_save_initialized_p.
9618 * ira.c (ira): Call init_caller_save if flag_caller_saves.
9620 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9623 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
9624 and soft-fp/t-softfp to tmake_file.
9625 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
9626 (LIBGCC2_TF_CEXT): Define.
9629 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
9632 * cselib.c (n_useless_values): Document handling of debug locs.
9633 (n_useless_debug_values, n_debug_values): New variables.
9634 (new_elt_loc_list): Don't add to debug values, keep count.
9635 (promote_debug_loc): New.
9636 (cselib_reset_table): Zero new variables.
9637 (entry_and_rtx_equal_p): Promote debug locs.
9638 (discard_useless_locs): Increment n_useless_debug_values for
9640 (remove_useless_values): Adjust n_useless_values and n_debug_values
9641 with n_useless_debug_values.
9642 (add_mem_for_addr): Promote debug locs.
9643 (cselib_lookup_mem): Likewise.
9644 (cselib_lookup_addr): Renamed to...
9645 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
9646 (cselib_log_lookup): ... this. Turn into...
9647 (cselib_lookup_addr): ... new wrapper.
9648 (cselib_lookup_from_insn): New.
9649 (cselib_invalidate_regno): Increment n_useless_debug_values for
9651 (cselib_invalidate_mem): Likewise.
9652 (cselib_process_insn): Take n_deleted and n_debug_values into
9653 account to guard remove_useless_value call.
9654 (cselib_finish): Zero n_useless_debug_values.
9655 * cselib.h (cselib_lookup_from_insn): Declare.
9656 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
9657 (sched_analyze_2): Likewise.
9659 2010-03-30 Jakub Jelinek <jakub@redhat.com>
9661 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
9663 (adjust_mems): Replace narrowing SUBREG of expression containing
9664 just PLUS, MINUS, MULT and ASHIFT of registers and constants
9665 with operations in the narrower mode.
9668 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
9669 regs_invalidated_by_call instead all call_used_reg_set registers.
9671 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
9674 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
9675 pointer comparisons with types_compatible_p.
9676 * tree-vect-stmts.c (vectorizable_call): Same.
9677 (vectorizable_condition): Same.
9679 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9681 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
9682 stack check if the mask would be zero.
9684 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
9685 Jack Howarth <howarth@bromo.med.uc.edu>
9687 * tree-profile.c (tree_init_ic_make_global_vars): Make static
9690 2010-03-30 Joseph Myers <joseph@codesourcery.com>
9693 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
9695 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
9696 Include ___unordxf2 and ___unordtf2.
9697 * config/i386/libgcc-glibc.ver: Do not define inheritance from
9700 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
9702 * config/lm32/t-lm32: New file.
9703 * config.gcc: Use the above file when targetting lm32.
9705 2010-03-28 Duncan Sands <baldrick@free.fr>
9707 * Makefile.in (PLUGIN_HEADERS): Add except.h.
9709 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
9712 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
9713 Improve vectorization cost model diagnostic.
9715 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
9718 * tree-vect-data-refs.c (vect_analyze_data_refs): When
9719 compute_data_dependences_for_loop returns false, early exit
9720 and output an extra diagnostic for the failed data reference
9723 2010-03-29 Richard Guenther <rguenther@suse.de>
9725 PR tree-optimization/43560
9726 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
9727 (can_sm_ref_p): Treat stores to readonly locations as trapping.
9729 2010-03-29 Jie Zhang <jie@codesourcery.com>
9732 * toplev.c (process_options): Set optimization_default_node
9733 and optimization_current_node.
9734 * opts.c (decode_options): Don't set optimization_default_node
9735 and optimization_current_node.
9737 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
9739 * config/rtems.h: Abandon -qrtems_debug.
9741 2010-03-28 Jan Hubicka <jh@suse.cz>
9743 PR tree-optimization/43505
9744 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
9745 map should not be copied.
9747 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9750 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
9751 cdtors, set DECL_PRESERVE_P.
9752 * ipa.c (cgraph_externally_visible_p): Return true if declaration
9755 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
9757 PR tree-optimization/43528
9758 * stor-layout.c (place_field): Check that constant fits into
9759 unsigned HWI when skipping calculation of MS bitfield layout.
9761 2010-03-27 Jan Hubicka <jh@suse.cz>
9764 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
9765 notice_global_symbol work.
9767 2010-03-27 Jakub Jelinek <jakub@redhat.com>
9769 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
9770 instead of dwarf2out_decl.
9771 (struct var_loc_node): Remove section_label field.
9772 (dwarf2out_function_decl): New function.
9773 (dwarf2out_var_location): Don't set section_label field.
9774 (dwarf2out_begin_function): Don't empty decl_loc_table here.
9776 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9778 PR tree-optimization/43544
9779 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
9780 First argument for builtin vectorized function hook is now a
9781 tree to be able to distinguish between machine specific and
9783 * targhooks.c (default_builtin_vectorized_function): Ditto.
9784 * targhooks.h (default_builtin_vectorized_function): Ditto.
9785 * target.h (struct gcc_target): Ditto.
9786 * tree-vect-stmts.c (vectorizable_function): Ditto.
9787 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
9788 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
9791 2010-03-26 Joseph Myers <joseph@codesourcery.com>
9794 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
9795 nested binding iff it is a FUNCTION_DECL.
9796 (store_parm_decls_newstyle): Pass nested=true to bind for
9797 FUNCTION_DECLs amongst parameters.
9799 2010-03-26 Jakub Jelinek <jakub@redhat.com>
9801 * var-tracking.c (vt_expand_loc_callback): Don't run
9802 cselib_expand_value_rtx_cb in dummy mode if
9803 cselib_dummy_expand_value_rtx_cb returned false.
9805 * var-tracking.c (emit_note_insn_var_location): For one part
9806 notes with offset 0, don't add EXPR_LIST around the location.
9807 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
9808 add_location_or_const_value_attribute): Adjust for that change.
9811 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
9812 into first operand and location into second.
9813 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
9814 dw_cfi_oprnd_loc for DW_CFA_expression.
9815 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
9816 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
9817 assume first argument is regnum and second argument is location.
9819 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
9822 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
9823 of scratch register to DImode. Split to DImode comparison operator.
9824 Use SImode subreg of scratch register in the multiplication.
9825 (*cmp_sadd_sidi): Ditto.
9826 (*cmp_ssub_si): Ditto.
9827 (*cmp_ssub_sidi): Ditto.
9829 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
9832 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
9833 Remove invalid assert and wrong comment.
9835 2010-03-26 Jakub Jelinek <jakub@redhat.com>
9838 * flags.h (final_insns_dump_p): New extern.
9839 * final.c (final_insns_dump_p): New variable.
9840 (rest_of_clean_state): Set it before -fdump-final-insns=
9841 dumping, clear afterwards.
9842 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
9843 MEM_ALIAS_SET on MEMs.
9845 2010-03-26 David S. Miller <davem@davemloft.net>
9847 * configure.ac: Fix sparc GOTDATA_OP bug check.
9848 * configure: Rebuild.
9850 2010-03-26 Alan Modra <amodra@gmail.com>
9852 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
9854 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9856 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
9857 TLS_SECTION_ASM_FLAG.
9859 2010-03-25 Jakub Jelinek <jakub@redhat.com>
9862 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
9863 Clear first_function_block_is_cold.
9866 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
9867 argument if the argument is truth_value_p.
9869 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
9871 * config/rs6000/constraints.md: Update copyright year for my changes.
9874 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
9875 used in reg+reg addressing, swap registers.
9877 2010-03-24 Jakub Jelinek <jakub@redhat.com>
9880 * target.h (struct gcc_target): Add code_end hook.
9881 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
9883 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
9884 * toplev.c (compile_file): Call targetm.asm_out.code_end
9885 hook before unwind info/debug info output.
9886 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
9887 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
9888 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
9889 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
9890 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
9891 * config/i386/i386.c (ix86_file_end): Renamed to...
9892 (ix86_code_end): ... this. Make static. Don't call
9893 file_end_indicate_exec_stack. Emit unwind info using
9894 final_start_function/final_end_function.
9895 (darwin_x86_file_end): Remove.
9896 (TARGET_ASM_CODE_END): Define.
9897 * config/i386/i386.h (TARGET_ASM_FILE_END,
9898 NEED_INDICATE_EXEC_STACK): Don't define.
9899 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
9900 (TARGET_ASM_FILE_END): Define to darwin_file_end.
9901 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
9902 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
9905 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
9906 at the beginning and final_end_function at the end.
9907 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
9909 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9911 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
9912 and Sun as TLS syntax.
9913 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
9914 * configure: Regenerate.
9915 * config.in: Regenerate.
9916 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
9917 (default_elf_asm_named_section): Use it.
9918 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
9919 (i386_output_dwarf_dtprel): Likewise.
9920 (output_addr_const_extra): Likewise.
9921 (output_pic_addr_const): Lowercase @GOTTPOFF.
9922 (output_addr_const_extra): Likewise.
9923 (output_pic_addr_const): Lowercase @GOTNTPOFF.
9924 (output_addr_const_extra): Likewise.
9925 (output_pic_addr_const): Lowercase @INDNTPOFF.
9926 (output_addr_const_extra): Likewise.
9927 (output_pic_addr_const): Lowercase @NTPOFF.
9928 (output_addr_const_extra): Likewise.
9929 (output_pic_addr_const): Lowercase @TPOFF.
9930 (output_addr_const_extra): Likewise.
9931 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
9932 (*tls_global_dynamic_64): Likewise.
9933 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
9934 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
9936 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
9937 (ASM_OUTPUT_TLS_COMMON): Use it.
9938 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
9941 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
9942 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
9943 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
9944 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
9945 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
9946 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
9948 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9950 * config/i386/i386.c (override_options): Don't accept
9951 -mtls-dialect=sun any longer.
9952 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
9953 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
9954 (*tls_local_dynamic_base_32_sun): Likewise.
9955 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
9957 2010-03-24 Jakub Jelinek <jakub@redhat.com>
9960 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9961 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
9964 * ira.c (adjust_cleared_regs): New function.
9965 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
9969 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
9971 * expr.c (expand_expr_real): Restore previous
9972 curr_insn_source_location and curr_insn_block after
9973 expand_expr_real_1 call.
9974 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
9975 instead of expand_expr_real_1.
9977 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
9979 PR rtl-optimization/43413
9980 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
9983 2010-03-22 James E. Wilson <wilson@codesourcery.com>
9986 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
9987 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
9989 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
9991 * config/i386/i386.c (ix86_target_string): Add -mfma.
9992 Fix a typo in comment.
9994 2010-03-22 Mike Stump <mikestump@comcast.net>
9997 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
9998 Don't overly align based upon packed packed fields.
10000 2010-03-22 Jason Merrill <jason@redhat.com>
10002 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
10003 Use () rather than [], and move before the element type.
10005 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10007 * doc/configfiles.texi (Configuration Files): Removed
10008 fixinc/Makefile*, intl/Makefile.*.
10009 * doc/makefile.texi: Fixed markup. Abstract from version
10010 control system used.
10011 (Makefile): Removed obsolete gcc/java/parse.y example.
10012 * doc/sourcebuild.texi: Likewise.
10013 (Top Level): Added config, gnattools, libdecnumber, libgcc,
10014 libgomp, libssp. Removed fastjar.
10015 (Miscellaneous Docs): Clarify location.
10016 Added COPYING3, COPYING3.LIB.
10017 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
10019 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10022 * config/i386/i386.c (x86_function_profiler)
10023 [!NO_PROFILE_COUNTERS]: Fix typo.
10024 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
10027 2010-03-22 Janis Johnson <janis187@us.ibm.com>
10028 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10030 * doc/sourcebuild.texi (Test Directives): Split into six
10031 subsections, with most of the current text in new subsections
10032 Directives, Selectors, and Final Actions.
10033 (Directives): Split list of test directives into multiple
10035 (Selectors): Describe use and syntax of selectors.
10036 (Effective-Target Keywords): Describe all existing keywords.
10037 (Add Options): Describe features for dg-add-options.
10038 (Require Support): Describe variants of dg-require-support.
10039 (Final Actions): Describe commands to use in dg-final.
10041 2010-03-22 Michael Matz <matz@suse.de>
10043 PR middle-end/43475
10044 * recog.c (validate_replace_rtx_group): Replace also in
10045 REG_EQUAL and REG_EQUIV notes.
10047 2010-03-22 Richard Guenther <rguenther@suse.de>
10049 PR tree-optimization/43390
10050 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
10051 sure vector extracts are type correct.
10053 2010-03-22 Richard Guenther <rguenther@suse.de>
10055 PR middle-end/40106
10056 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
10057 x * sqrt (x) even when optimizing for size if the target
10058 has native support for sqrt.
10060 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10062 * varasm.c (make_decl_rtl_for_debug): Also clear
10063 flag_mudflap for the duration of make_decl_rtl call.
10066 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
10067 locs from preserved VALUEs.
10069 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10071 PR middle-end/42718
10072 * pa.md (movmemsi): Set align to one if zero.
10073 (movmemdi): Likewise.
10075 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
10078 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
10079 with their corresponding prologue pushes.
10081 2010-03-20 Andrew Pinski <pinskia@gmail.com>
10084 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
10085 at the begining or end.
10086 (spu_expand_epilogue): Likewise.
10088 2010-03-20 Richard Guenther <rguenther@suse.de>
10090 PR rtl-optimization/43438
10091 * combine.c (make_extraction): Properly zero-/sign-extend an
10092 extraction of the low part of a CONST_INT. Also handle
10095 2010-03-19 Mike Stump <mikestump@comcast.net>
10097 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
10098 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
10099 (override_options): Use SUBTARGET32_DEFAULT_CPU.
10101 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
10104 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
10107 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
10109 PR rtl-optimization/42258
10110 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
10111 use that may match DEF.
10114 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
10115 the cost of loading the constant rather than assuming
10117 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
10118 outer code is AND, do the same tests as the andsi3 expander and
10119 return COSTS_N_INSNS (1) if and is cheap.
10121 * optabs.c (avoid_expensive_constant): Fix formatting.
10123 2010-03-19 Michael Matz <matz@suse.de>
10126 * attribs.c (decl_attributes): When rebuilding a function pointer
10127 type use the same qualifiers as the original pointer type.
10129 2010-03-19 Martin Jambor <mjambor@suse.cz>
10131 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
10132 and is_gimple_ip_invariant_address.
10134 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10137 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10139 * config/arm/arm.c (arm_override_options): Turn off
10140 flag_dwarf2_cfi_asm for AAPCS variants.
10142 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10145 * config/arm/arm.c (emit_multi_reg_push): Update comments.
10146 Use PRE_MODIFY instead of PRE_DEC.
10147 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
10148 (vfp_emit_fstmd): Likewise.
10150 2010-03-19 Michael Matz <matz@suse.de>
10153 * builtins.c (expand_builtin_interclass_mathfn,
10154 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
10157 2010-03-19 Richard Guenther <rguenther@suse.de>
10159 PR tree-optimization/43415
10160 * tree-ssa-pre.c (phi_translate): Split out worker to ...
10161 (phi_translate_1): ... this.
10162 (phi_translate): Move all caching here. Cache all NARY
10163 and REFERENCE translations.
10165 2010-03-19 David S. Miller <davem@davemloft.net>
10167 With help from Eric Botcazou.
10168 * config/sparc/sparc.c: Include dwarf2out.h.
10169 (emit_pic_helper): Delete.
10170 (pic_helper_symbol_name): Delete.
10171 (pic_helper_emitted_p): Delete.
10172 (pic_helper_needed): New.
10173 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
10174 (get_pc_thunk_name): New.
10175 (load_pic_register): Remove 'delay_pic_helper' arg. Use
10176 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
10177 Set pic_helper_needed to true. Don't call emit_pic_helper.
10178 (sparc_expand_prologue): Update load_pic_register call.
10179 (sparc_output_mi_thunk): Likewise.
10180 (sparc_file_end): Emit a hidden comdat symbol for the PIC
10181 thunk if possible. Output CFI information as needed.
10183 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10184 Jack Howarth <howarth@bromo.med.uc.edu>
10187 * config/i386/i386.h: Fix ABI on darwin x86-32.
10189 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
10191 * tree.h: Declare make_decl_rtl_for_debug.
10192 * varasm.c (make_decl_rtl_for_debug): New.
10193 * dwarf2out.c (rtl_for_decl_location): Call it.
10194 * cfgexpand.c (expand_debug_expr): Call it.
10196 2010-03-18 Jakub Jelinek <jakub@redhat.com>
10199 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
10203 * var-tracking.c (vt_init_cfa_base): Do nothing if
10204 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
10206 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
10209 * var-tracking.c (canonicalize_vars_star): New.
10210 (dataflow_post_merge_adjust): Use it.
10212 2010-03-18 Jakub Jelinek <jakub@redhat.com>
10215 * var-tracking.c (non_suitable_const): New function.
10216 (add_uses): For DEBUG_INSNs with constants, don't record any
10217 value, instead just the constant value itself.
10218 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
10219 is not VAR_LOC_UNKNOWN_P, set var to the constant.
10220 (emit_notes_in_bb): Likewise.
10221 (emit_note_insn_var_location): For onepart variables if
10222 cur_loc is a VOIDmode constant, use DECL_MODE.
10224 2010-03-18 Martin Jambor <mjambor@suse.cz>
10226 PR middle-end/42450
10227 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
10228 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
10229 all non-clones. Moved call redirection...
10230 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
10231 (cgraph_materialize_all_clones): Dispose of all
10232 combined_args_to_skip bitmaps.
10233 (verify_cgraph_node): Do not check for edges pointing to wrong
10234 nodes in inline clones.
10235 * tree-inline.c (copy_bb): Call
10236 cgraph_redirect_edge_call_stmt_to_callee.
10237 * ipa.c (cgraph_remove_unreachable_nodes): Call
10238 cgraph_node_remove_callees even when there are used clones.
10240 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
10242 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
10244 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
10247 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
10250 2010-03-18 Michael Matz <matz@suse.de>
10252 PR middle-end/43419
10253 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
10254 into sqrt(x) if we need to preserve signed zeros.
10256 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
10257 Eric Botcazou <ebotcazou@adacore.com>
10259 PR rtl-optimization/43360
10260 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
10261 note if we don't know its invariant status.
10263 2010-03-18 Michael Matz <matz@suse.de>
10265 PR tree-optimization/43402
10266 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
10267 PHI chains of ssa names registered for update.
10269 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
10272 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
10273 non-offsettable and pre_modify update addressing.
10274 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
10275 and "2" alternatives "#".
10276 (*movdd_softfloat32): Make all alternatives "#";
10277 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
10278 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
10279 (*movdf_softfloat32): Make all alternatives "#";
10280 (movdi): Use the new DIFD mode iterator to create a common splitter
10281 for movdi, movdf and movdd patterns.
10283 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
10285 * common.opt (dumpdir): Remove redundant tab.
10287 2010-03-17 Martin Jambor <mjambor@suse.cz>
10289 PR tree-optimization/43347
10290 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
10291 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
10293 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
10295 PR rtl-optimization/42216
10296 * regrename.c (create_new_chain): New function, broken out from...
10297 (scan_rtx_reg): ... here. Call it. Handle the case where we are
10298 appending a use to an empty chain.
10299 (build_def_use): Remove previous changes that convert OP_INOUT to
10300 OP_OUT operands; instead detect the case where an OP_INOUT operand
10301 uses a previously untracked register and create an empty chain for it.
10303 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10305 * doc/extend.texi (Function Attributes): Rewrite unfinished
10306 sentence in ms_abi documentation.
10308 2010-03-17 Alan Modra <amodra@gmail.com>
10310 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
10311 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
10312 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
10313 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
10315 2010-03-16 Richard Henderson <rth@redhat.com>
10317 PR middle-end/43365
10318 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
10319 (lower_try_finally): Save and restore eh_seq around the expansion
10320 of the try-finally.
10322 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
10324 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
10325 statements before splitting block.
10327 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10329 * doc/sourcebuild.texi (Testsuites): Fix markup.
10330 Use pathnames relative to gcc/testsuite.
10331 (Test Directives): Move description of how timeout is determined.
10332 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
10333 (C Tests): Correct gcc.misc-tests directory.
10334 Framework tests now live in gcc.test-framework.
10336 2010-03-16 Richard Guenther <rguenther@suse.de>
10338 PR middle-end/43379
10339 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
10340 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
10342 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
10343 Alexandre Oliva <aoliva@redhat.com>
10345 PR tree-optimization/42917
10346 * lambda-code.c (remove_iv): Skip debug statements.
10347 (lambda_loopnest_to_gcc_loopnest): Likewise.
10348 (not_interesting_stmt): Debug statements are not interesting.
10350 2010-03-16 Jakub Jelinek <jakub@redhat.com>
10354 * cselib.c (cselib_preserve_constants,
10355 cfa_base_preserved_val): New static variables.
10356 (preserve_only_constants): New function.
10357 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
10358 clear its REG_VALUES. If cselib_preserve_constants, don't
10359 empty the whole hash table, but preserve there VALUEs with constants,
10360 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
10361 (cselib_preserve_cfa_base_value): New function.
10362 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
10363 (cselib_init): Change argument to int bitfield. Set
10364 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
10366 (cselib_finish): Clear cselib_preserve_constants and
10367 cfa_base_preserved_val.
10368 * cselib.h (enum cselib_record_what): New enum.
10369 (cselib_init): Change argument to int.
10370 (cselib_preserve_cfa_base_value): New prototype.
10371 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
10372 * dse.c (dse_step1): Likewise.
10373 * cfgcleanup.c (thread_jump): Likewise.
10374 * sched-deps.c (sched_analyze): Likewise.
10375 * gcse.c (local_cprop_pass): Likewise.
10376 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
10377 If FN is non-NULL, call the callback always and whenever it returns
10378 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
10379 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
10380 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
10381 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
10382 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
10383 * var-tracking.c: Include recog.h.
10384 (bb_stack_adjust_offset): Remove.
10385 (vt_stack_adjustments): Don't call it, instead just gather the
10386 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
10387 (adjust_stack_reference): Remove.
10388 (compute_cfa_pointer): New function.
10389 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
10390 (struct adjust_mem_data): New type.
10391 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
10393 (get_address_mode): New function.
10394 (replace_expr_with_values): Use it.
10395 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
10396 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
10397 (adjust_sets): Remove.
10398 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
10399 Use get_address_mode.
10400 (get_adjusted_src): Remove.
10401 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
10402 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
10403 (add_with_sets): Don't call adjust_sets.
10404 (fp_setter, vt_init_cfa_base): New functions.
10405 (vt_initialize): Change return type to bool. Move most of pool etc.
10406 initialization to the beginning of the function from end. Pass
10407 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
10408 If !frame_pointer_needed, call vt_stack_adjustment before mos
10409 vector is filled, call vt_init_cfa_base if argp/framep has been
10410 eliminated to sp. If frame_pointer_needed and argp/framep has
10411 been eliminated to hard frame pointer, set
10412 hard_frame_pointer_adjustment and call vt_init_cfa_base after
10413 encountering fp setter in the prologue. For MO_ADJUST, call
10414 log_op_type before pusing the op into mos vector, not afterwards.
10415 Call adjust_insn before cselib_process_insn/add_with_sets,
10416 call cancel_changes (0) afterwards.
10417 (variable_tracking_main_1): Adjust for vt_initialize calling
10418 vt_stack_adjustments and returning whether it succeeded or not.
10420 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
10422 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
10425 2010-03-15 Jakub Jelinek <jakub@redhat.com>
10427 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
10429 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
10430 drap_reg has not been set.
10432 2010-03-15 Michael Matz <matz@suse.de>
10434 PR middle-end/43300
10435 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
10436 use it to expand block copies.
10437 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
10438 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
10439 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
10441 2010-03-15 Richard Guenther <rguenther@suse.de>
10443 PR tree-optimization/43367
10444 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
10447 2010-03-15 Richard Guenther <rguenther@suse.de>
10449 PR tree-optimization/43317
10450 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
10452 2010-03-15 Martin Jambor <mjambor@suse.cz>
10454 PR tree-optimization/43141
10455 * tree-sra.c (create_abstract_origin): New function.
10456 (modify_function): Call create_abstract_origin.
10458 2010-03-15 Chris Demetriou <cgd@google.com>
10460 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
10463 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10465 PR middle-end/43354
10466 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
10467 call insert_out_of_ssa_copy for default definitions.
10469 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10471 * graphite-clast-to-gimple.c (my_long_long): Defined.
10472 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
10473 * graphite-sese-to-poly.c (my_long_long): Defined.
10474 (scop_ivs_can_be_represented): Use it.
10476 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10478 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
10479 graphite-max-bbs-per-function, and loop-block-tile-size.
10480 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
10482 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
10484 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10486 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
10487 forward declaration.
10488 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
10489 (add_upper_bounds_from_estimated_nit): New.
10490 (build_loop_iteration_domains): Use it.
10492 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10494 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
10496 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10498 PR middle-end/43306
10499 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
10500 should be an INTEGER_CST. Also handle CASE_CONVERT.
10502 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10504 * graphite.c (graphite_initialize): To bound the number of bbs per
10505 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
10506 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
10507 * doc/invoke.texi: Document it.
10509 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10511 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
10512 * graphite-sese-to-poly.h (build_poly_scop): Same.
10514 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
10516 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
10517 the number of parameters in the scop. Use as an upper bound
10518 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
10519 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
10520 * doc/invoke.texi: Document it.
10522 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
10524 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
10525 * doc/c-tree.texi: Remove.
10526 * doc/generic.texi: Merge c-tree.texi here.
10527 * doc/gccint.texi (Trees): Remove menu entry.
10528 (c-tree.texi): Remove @include.
10529 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
10530 * doc/languages.texi (Reading RTL): Ditto.
10532 2010-03-12 Steve Ellcey <sje@cup.hp.com>
10535 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
10537 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10539 PR middle-end/42431
10540 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
10541 code added to work around reload clobbering CONST insns.
10543 2010-03-12 Jakub Jelinek <jakub@redhat.com>
10545 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
10546 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
10547 (cselib_preserve_only_values): Remove retain argument, don't
10548 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
10549 * cselib.h (cselib_preserve_only_values): Remove retain argument.
10550 * var-tracking.c (micro_operation): Move insn field before union.
10551 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
10552 (struct variable_tracking_info_def): Remove n_mos field, change
10553 mos into a vector of micro_operations.
10554 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
10555 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
10556 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
10557 changing into a vector.
10558 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
10559 come before all other uops generated by add_stores.
10560 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
10562 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
10563 a vector. Run just one pass over the bbs instead of separate counting
10564 and computation phase.
10565 (vt_finalize): Free VTI (bb)->mos vector instead of array.
10568 * tree-inline.c (remap_decls): Put old_var rather than origin_var
10569 into *nonlocalized_list vector.
10570 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
10571 even if origin is non-NULL.
10572 (gen_variable_die): Likewise.
10573 (process_scope_var): Don't change origin.
10574 (gen_decl_die): Likewise.
10575 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
10576 before adding new edges instead of after it, fix moving over
10579 2010-03-11 David S. Miller <davem@davemloft.net>
10581 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
10583 * configure: Rebuild.
10585 2010-03-11 Martin Jambor <mjambor@suse.cz>
10587 PR tree-optimization/43257
10588 * tree.c (assign_assembler_name_if_neeeded): New function.
10589 (free_lang_data_in_cgraph): Assembler name assignment moved to the
10590 above new function.
10591 * tree.h (assign_assembler_name_if_neeeded): Declare.
10592 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
10593 the function if needed.
10595 2010-03-11 Chris Demetriou <cgd@google.com>
10597 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
10598 include/stdint-gcc.h, and include/stdint.h world-readable.
10600 2010-03-11 Richard Guenther <rguenther@suse.de>
10602 PR tree-optimization/43255
10603 * tree-vrp.c (process_assert_insertions_for): Do not insert
10604 asserts for trivial conditions.
10606 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10608 PR tree-optimization/43280
10609 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
10610 generation. Move calculation of size out of the if branch.
10611 (find_bswap): Modify compare number generation.
10613 2010-03-11 Richard Guenther <rguenther@suse.de>
10616 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
10617 (input_gimple_stmt): Fixup handled component types during
10618 operand read. Also fix up decls in ADDR_EXPRs.
10620 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
10622 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
10623 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
10625 2010-03-10 Jan Hubicka <jh@suse.cz>
10628 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
10629 * varasm.c (get_variable_section): Don't do that here...
10630 (make_decl_rtl): ... and here.
10631 (do_assemble_alias): Produce decl RTL.
10632 (assemble_alias): Likewise.
10634 2010-03-10 Jakub Jelinek <jakub@redhat.com>
10637 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
10638 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
10640 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
10641 (based_loc_descr): Only express drap or vdrap regno based expressions
10642 using DW_OP_fbreg when not optimizing.
10643 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
10644 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
10645 REG_CFA_SET_VDRAP note.
10647 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
10649 PR tree-optimization/43236
10650 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
10651 error in calculation of base address in reverse iteration case.
10652 (generate_builtin): Take number of latch executions if the statement
10655 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
10657 PR middle-end/42859
10658 * tree-eh.c: Include pointer-set.h.
10659 (lower_eh_dispatch): Filter out duplicate case labels and
10660 remove the unneeded edge when the label is unused. Return
10661 true when some edges are removed.
10662 (execute_lower_eh_dispatch): When any lowering resulted in
10663 removing an edge, also delete unreachable blocks.
10665 2010-03-10 Jakub Jelinek <jakub@redhat.com>
10668 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10669 UNSPEC_MACHOPIC_OFFSET.
10671 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
10674 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
10675 (m68k_delegitimize_address): New function.
10677 2010-03-09 Jakub Jelinek <jakub@redhat.com>
10680 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
10683 * var-tracking.c (adjust_sets): New function.
10684 (count_with_sets, add_with_sets): Use it.
10685 (get_adjusted_src): New inline function.
10686 (add_stores): Use it.
10689 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
10690 call cselib_dummy_expand_value_rtx_cb instead of
10691 cselib_expand_value_rtx_cb.
10694 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
10695 * config/i386/i386.c: Include debug.h and dwarf2out.h.
10696 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
10697 and .cfi_endproc around the pic thunks.
10698 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
10699 all queued unwind info register saves are saved before the call.
10700 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
10701 considered as sp-=4 for unwind info and the pop as sp+=4 which
10702 also clobbers dest, but doesn't actually restore it.
10705 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
10706 RTX_FRAME_RELATED_P.
10708 2010-03-09 Jie Zhang <jie@codesourcery.com>
10710 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
10711 whitespaces in output template.
10713 2010-03-09 Jie Zhang <jie@codesourcery.com>
10715 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
10716 out array boundary.
10718 2010-03-08 Jakub Jelinek <jakub@redhat.com>
10720 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
10721 builtins.exp in a separate job.
10723 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10725 * graphite-sese-to-poly.c (add_param_constraints): Use
10726 lower_bound_in_type and upper_bound_in_type.
10728 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10730 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
10731 instead of unsigned_type_node.
10733 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10734 Reza Yazdani <reza.yazdani@amd.com>
10736 PR middle-end/43065
10737 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
10738 on pointer type parameters.
10740 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10742 PR middle-end/42644
10743 PR middle-end/42130
10744 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
10745 handle conversions from pointer to integers.
10746 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
10747 induction variable, to be able to work with code generated by CLooG.
10748 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
10749 (build_poly_scop): Bail out if we cannot codegen a loop.
10751 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10753 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
10754 code generation with gloog_error.
10756 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10758 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
10759 Call fold_convert on all the returned values.
10760 (expand_scalar_variables_expr): Pass to
10761 expand_scalar_variables_ssa_name the type of the resulting expression.
10763 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10765 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
10766 ppl_min_for_le_pointset.
10767 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
10768 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
10770 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10772 * graphite-dependences.c (map_into_dep_poly): Removed.
10773 (dependence_polyhedron_1): Use combine_context_id_scat.
10775 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10777 * graphite-poly.h (struct poly_scattering): Add layout documentation.
10778 (struct poly_bb): Same.
10779 (combine_context_id_scat): New.
10781 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10783 PR middle-end/42326
10784 * sese.c (name_defined_in_loop_p): Return false for default
10787 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10789 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
10790 and clean up the logic.
10792 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
10794 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
10797 2010-03-08 Jakub Jelinek <jakub@redhat.com>
10799 * var-tracking.c (remove_cselib_value_chains): Define only for
10801 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
10802 delete_slot_part, emit_notes_for_differences_1): Don't call
10803 remove_cselib_value_chains here.
10804 (set_slot_part, emit_notes_for_differences_2): Don't call
10805 add_cselib_value_chains here.
10806 (preserved_values): New vector.
10807 (preserve_value): New function.
10808 (add_uses, add_stores, vt_add_function_parameters): Use it
10809 instead of cselib_preserve_value.
10810 (changed_values_stack): New vector.
10811 (check_changed_vars_0): New function.
10812 (check_changed_vars_1, check_changed_vars_2): Use it.
10813 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
10814 changed_values_stack VALUEs.
10815 (vt_emit_notes): For all preserved_values call
10816 add_cselib_value_chains. If ENABLE_CHECKING call
10817 remove_cselib_value_chains before verifying value_chains is empty.
10818 Initialize and free changed_values_stack.
10819 (vt_initialize): Initialize preserved_values.
10820 (vt_finalize): Free preserved_values.
10822 2010-03-08 Richard Guenther <rguenther@suse.de>
10824 PR tree-optimization/43269
10825 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
10828 2010-03-08 Martin Jambor <mjambor@suse.cz>
10830 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
10831 (ipa_is_param_called): Removed.
10832 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
10833 (ipa_print_node_params): Do not print the called flag.
10834 (ipa_write_node_info): Do not stream the called flag.
10835 (ipa_read_node_info): Likewise.
10837 2010-03-07 Jakub Jelinek <jakub@redhat.com>
10840 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
10841 * cselib.c (struct expand_value_data): Add dummy field.
10842 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
10844 (cselib_dummy_expand_value_rtx_cb): New function.
10845 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
10847 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
10848 * var-tracking.c: Include pointer-set.h.
10849 (variable): Change n_var_parts to char from int. Add
10850 cur_loc_changed and in_changed_variables fields.
10851 (variable_canonicalize): Remove.
10852 (shared_var_p): New inline function.
10853 (unshare_variable): Maintain cur_loc_changed and
10854 in_changed_variables fields. If var was in changed_variables,
10855 replace it there with new_var. Just copy cur_loc instead of
10856 resetting it to something else.
10857 (variable_union): Don't recompute cur_loc. Use shared_var_p.
10858 (dataflow_set_union): Don't call variable_canonicalize.
10859 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
10860 of their DEBUG_EXPR_TREE_DECLs.
10861 (canonicalize_loc_order_check): Verify that cur_loc is NULL
10862 and in_changed_variables and cur_loc_changed is false.
10863 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
10864 and cur_loc_changed. Don't update cur_loc here.
10865 (variable_merge_over_src): Don't call variable_canonicalize.
10866 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
10867 removing loc that is equal to cur_loc, clear cur_loc,
10868 set cur_loc_changed and ensure variable_was_changed is called.
10869 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
10870 compare pointers in cur_loc check, if it is equal to loc,
10871 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
10872 (variable_different_p): Remove compare_current_location argument,
10873 don't compare cur_loc.
10874 (dataflow_set_different_1): Adjust variable_different_p caller.
10875 (variable_was_changed): If dv had some var in changed_variables
10876 already, reset in_changed_variables flag for it and propagate
10877 cur_loc_changed over to the new variable. On empty var
10878 always set cur_loc_changed. Set in_changed_variables on whatever
10879 var is added to changed_variables.
10880 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
10881 Use shared_var_p. When removing loc that is equal to cur_loc,
10882 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
10883 end, don't set it to something else, just call variable_was_changed.
10884 (delete_slot_part): Use shared_var_p. When cur_loc equals to
10885 loc being removed, clear cur_loc and set cur_loc_changed.
10886 Set cur_loc_changed if all locations have been removed.
10887 (struct expand_loc_callback_data): New type.
10888 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
10889 allocated. Always create SUBREGs if simplify_subreg failed.
10890 Prefer to use cur_loc, when that fails and still in
10891 changed_variables (and seen first time) recompute it. Set
10892 cur_loc_changed of variables which had to change cur_loc and
10893 compute elcd->cur_loc_changed if any of the subexpressions used
10894 had to change cur_loc.
10895 (vt_expand_loc): Adjust to pass arguments in
10896 expand_loc_callback_data structure.
10897 (vt_expand_loc_dummy): New function.
10898 (emitted_notes): New variable.
10899 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
10900 that weren't used for any other decl in current
10901 emit_notes_for_changes call call vt_expand_loc_dummy to update
10902 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
10903 first loc_chain location if NULL before. Always use just
10904 cur_loc instead of first loc_chain location. When cur_loc_changed
10905 is false, when not --enable-checking=rtl just don't emit any note.
10906 When rtl checking, compute the note and assert it is the same
10907 as previous note. Clear cur_loc_changed and in_changed_variables
10908 at the end before removing from changed_variables.
10909 (check_changed_vars_3): New function.
10910 (emit_notes_for_changes): Traverse changed_vars to call
10911 check_changed_vars_3 on each changed var.
10912 (emit_notes_for_differences_1): Clear cur_loc_changed and
10913 in_changed_variables. Recompute cur_loc of new_var.
10914 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
10915 (vt_emit_notes): Initialize and destroy emitted_notes.
10917 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
10919 PR rtl-optimization/42220
10920 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
10921 Use verify_reg_tracked to determine if we should use OP_OUT rather
10923 (build_def_use): If we see an in-out operand for a register that we
10924 know nothing about, treat is an output if possible, fail the block if
10927 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
10930 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
10933 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
10936 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
10937 uses of relevant DEFs that are dead outside the loop too.
10939 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
10941 * var-tracking.c (dataflow_set_merge): Swap src and src2.
10943 2010-01-13 Jakub Jelinek <jakub@redhat.com>
10945 * var-tracking.c (values_to_unmark): New variable.
10946 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
10947 values_to_unmark vector. Moved body to...
10948 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
10949 instead queue it into values_to_unmark vector.
10950 (vt_find_locations): Free values_to_unmark vector.
10952 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
10954 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
10955 (site.exp): Export them when plugins are enabled.
10957 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
10959 PR middle-end/42326
10960 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
10961 that contain scevs.
10962 (chrec_fold_multiply): Same.
10964 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
10967 * c-decl.c (build_compound_literal): Return early if init is
10968 an error_mark_node.
10970 2010-03-04 Martin Jambor <mjambor@suse.cz>
10972 PR tree-optimization/43164
10973 PR tree-optimization/43191
10974 * tree-sra.c (type_consists_of_records_p): Reject records with
10975 zero-size bit-fields at the end.
10977 2010-03-04 Mike Stump <mikestump@comcast.net>
10979 * Makefile.in (TAGS): Remove *.y.
10981 2010-03-04 Richard Guenther <rguenther@suse.de>
10983 PR tree-optimization/40761
10984 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
10986 (my_rev_post_order_compute): New function.
10987 (init_pre): Call it.
10989 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
10991 PR middle-end/43209
10992 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
10993 decrease the cost of an IV candidate when the cost is infinite.
10995 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10997 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
10998 Use '3DNow!' for the extension of that name, ensure normal space
11000 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
11002 2010-03-03 Jeff Law <law@redhat.com>
11004 * PR middle-end/32693
11005 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
11006 than gen_rtx_SUBREG.
11007 (extract_bit_field_1): Likewise.
11009 2010-03-03 Janis Johnson <janis187@us.ibm.com>
11011 * doc/sourcebuild.texi (Test directives): Document that arguments
11012 include-opts and exclude-opts are now optional for dg-skip-if,
11013 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
11015 2010-03-03 Jason Merrill <jason@redhat.com>
11018 * cgraph.h (varpool_node): Add extra_name field.
11019 * varpool.c (varpool_extra_name_alias): New.
11020 (varpool_assemble_decl): Emit extra name aliases.
11021 (varpool_mark_needed_node): Look past an extra name alias.
11022 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
11023 * lto-streamer-in.c (lto_input_tree): Read it.
11024 * lto-streamer-out.c (output_unreferenced_globals): Write it.
11026 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
11028 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
11029 (sparc*-*-solaris2*): ...this.
11031 2010-03-03 Jakub Jelinek <jakub@redhat.com>
11034 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
11035 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
11036 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
11037 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
11040 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
11041 fallthrough to default handling, just with want_address 0 instead of 2.
11042 For single element lists, add_AT_loc directly, otherwise create an
11043 artificial variable DIE and stick location list to it.
11046 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
11047 (VAL_EXPR_HAS_REVERSE): Define.
11048 (reverse_op): New function.
11049 (add_stores): For reversible operations add an extra MO_VAL_USE.
11051 2010-03-02 Jason Merrill <jason@redhat.com>
11053 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
11055 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
11057 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
11058 (sparc64-*-linux*): Likewise.
11059 (sparc64-*-solaris2*): Include assembler files before linker ones.
11060 (sparc-*-solaris2*): Simplify and reorder to match previous case.
11061 * config/sparc/gas.h: Delete.
11062 * config/sparc/sol2-64.h: Add copyright notice.
11063 * config/sparc/sol2-gas-bi.h: Likewise.
11064 * config/sparc/sol2-gld.h: Likewise.
11065 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
11066 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
11067 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
11068 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
11069 (sparc_elf_asm_named_section): Rename into...
11070 (sparc_solaris_elf_asm_named_section): ...this. Always define.
11072 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
11074 * config/alpha/alpha.c (override_options): Fix -mtune error message.
11076 2010-03-02 Jeff Law <law@redhat.com>
11078 PR middle-end/42431
11079 * reload1.c (rtx_p, substitute_stack): Declare.
11080 (substitute): Record addresses of changed rtxs.
11081 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
11082 Restore the original rtx when complete.
11083 (reload): Free subsitute_stack when complete.
11085 2010-03-02 Janis Johnson <janis187@us.ibm.com>
11087 * doc/gccint.texi (menu): Add Testsuites as a chapter.
11088 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
11090 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
11091 LTO Testing, gcov Testing, profopt Testing, compat Testing,
11092 Torture Tests): Change from subsection to section.
11094 2010-03-02 Jakub Jelinek <jakub@redhat.com>
11095 Steven Bosscher <steven@gcc.gnu.org>
11097 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
11100 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
11102 PR middle-end/42640
11103 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
11104 the assignment from the new induction variable to the assignment
11105 of the value from the original loop PHI function.
11107 2010-03-01 Janis Johnson <janis187@us.ibm.com>
11108 Daniel Jacobowitz <dan@codesourcery.com>
11110 * doc/sourcebuild.texi (Test directives): Clarify options to
11113 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11115 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
11116 Disable cfi directives unless GCC and gas agree on using read-only
11117 .eh_frame sections for 64-bit.
11118 * configure: Regenerate.
11120 2010-03-01 Richard Guenther <rguenther@suse.de>
11122 PR tree-optimization/43220
11123 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
11124 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
11126 2010-03-01 Richard Guenther <rguenther@suse.de>
11127 Martin Jambor <mjambor@suse.cz>
11129 PR middle-end/41250
11130 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
11131 gimplified parameters.
11133 2010-03-01 Christian Bruel <christian.bruel@st.com>
11135 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
11137 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
11139 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
11141 2010-03-01 Richard Guenther <rguenther@suse.de>
11143 PR middle-end/43213
11144 * expr.c (expand_assignment): Use the alias-oracle to tell
11145 if the rhs aliases the result decl.
11147 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11150 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
11151 to sol_gt_pch_get_address.
11152 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
11153 64-bit, SPARC and x86.
11154 (sol_gt_pch_get_address): New function.
11156 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
11158 * toplev.h (inform_n, error_n): Declare.
11159 * diagnostic.c (inform_n, error_n): New function.
11161 2010-03-01 Jakub Jelinek <jakub@redhat.com>
11163 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
11164 has no rtl yet when processing local_decls, queue it and recheck
11165 if deferred stack allocation hasn't assigned it rtl.
11167 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
11169 * config/sh/sh.c (unspec_bbr_uid): New.
11170 (gen_block_redirect): Use it instead of INSN_UID.
11171 (gen_far_branch): Likewise.
11173 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
11175 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
11176 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
11178 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11180 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
11181 (Warning Options): -Wno-conversion-null is valid for
11182 Objective-C++ as well.
11183 * doc/tm.texi (Named Address Spaces): Likewise.
11184 * doc/plugins.texi (Plugins): Replace TABs with spaces.
11185 * doc/tree-ssa.texi (Tree SSA): Likewise.
11187 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11190 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
11191 by default. Don't set the default arch for
11192 i[34567]86-*-darwin*|x86_64-*-darwin*.
11194 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11197 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
11198 default. Set the default 32bit/64bit archs with $with_arch
11199 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
11201 2010-02-27 Richard Guenther <rguenther@suse.de>
11203 PR tree-optimization/43186
11204 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
11205 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
11206 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
11207 unroller iterations.
11209 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
11211 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
11212 required and i[34567]86-*-* targets don't support 64bit ISA.
11214 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
11217 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11218 the same alias set.
11220 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
11222 * config.gcc: Set the default arch at least to Prescott for
11223 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
11224 if SSE math is enabled.
11226 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
11228 * diagnostic.c (diagnostic_initialize): Update.
11229 (diagnostic_report_diagnostic): Test inhibit_notes_p for
11231 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
11232 (diagnostic_inhibit_notes): New.
11233 * toplev.c (process_options): inhibit notes with -fcompare-debug.
11235 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
11238 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
11239 * doc/standards.texi: Likewise.
11240 * doc/extend.texi: Likewise.
11241 * doc/trouble.texi: Likewise.
11242 * doc/cppopts.texi: Likewise.
11243 * doc/install.texi: Likewise.
11244 * c.opt (std=c90,std=gnu90): New options.
11245 * c-opts.c (c_common_handle_option): Handle them.
11247 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
11250 * c-decl.c (undeclared_variable): Use an informative note.
11252 2010-02-26 Richard Guenther <rguenther@suse.de>
11254 PR tree-optimization/43186
11255 * gimple.h (gimple_fold): Remove.
11256 * gimple.c (gimple_fold): Remove. Inline into single user ...
11257 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
11258 Try harder for conditions.
11260 2010-02-26 Jakub Jelinek <jakub@redhat.com>
11263 * function.c (used_types_insert): Don't skip through named pointer
11264 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
11265 and it is different from the main variant's type.
11267 2010-02-26 Nick Clifton <nickc@redhat.com>
11269 * config/rx/rx.md (sminsi3): Remove bogus alternative.
11271 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
11273 * config.gcc: Support --with-fpmath=sse for x86.
11275 * config/i386/ssemath.h: New.
11277 * doc/install.texi (--with-fpmath=sse): Documented.
11279 2010-02-26 Richard Guenther <rguenther@suse.de>
11281 PR tree-optimization/43188
11282 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
11283 vector types of over-aligned element type.
11285 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
11288 * config/i386/i386.c (expand_vec_perm_blend): Use correct
11289 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
11291 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11293 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
11295 2010-02-26 Jakub Jelinek <jakub@redhat.com>
11297 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
11298 * var-tracking.c: Include diagnostic.h.
11299 (debug_dv): New function.
11300 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
11303 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
11304 (add_value_chain, add_value_chains, remove_value_chain,
11305 remove_value_chains): Handle DEBUG_EXPRs.
11306 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
11309 * regcprop.c (struct queued_debug_insn_change): New type.
11310 (struct value_data_entry): Add debug_insn_changes field.
11311 (struct value_data): Add n_debug_insn_changes field.
11312 (debug_insn_changes_pool): New variable.
11313 (free_debug_insn_changes, apply_debug_insn_changes,
11314 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
11315 (kill_value_one_regno): Call free_debug_insn_changes if needed.
11316 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
11318 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
11320 (copyprop_hardreg_forward_1): Don't call apply_change_group for
11321 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
11322 changes, call cprop_find_used_regs via note_stores.
11323 (copyprop_hardreg_forward): When copying vd from predecessor
11324 which has any queued DEBUG_INSN changes, make sure the pointers are
11325 cleared. At the end call df_analyze and then if there are any
11326 DEBUG_INSN changes queued at the end of some basic block for still
11327 live registers, apply them.
11328 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
11330 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
11332 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
11335 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
11337 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
11338 targets. Set the default with_cpu/with_arch from arch/cpu.
11339 Allow x86-64 and native for with_cpu/with_arch.
11341 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
11343 * ebitmap.c: Change calls to verify_popcount with calls to
11344 sbitmap_verify_popcount.
11345 (ebitmap_clear_bit): Fixed map->cacheindex test and
11346 map>cache update when bit clearing results in an empty
11349 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
11352 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
11353 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
11354 and support both V2DF and V2DI modes.
11355 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
11356 support both V2DF and V2DI modes.
11357 (general): Delete trailing whitespace from a few patterns.
11359 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11360 V2DF/V2DI interleave high/low builtins.
11362 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
11365 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
11366 interleave high/low functions.
11368 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
11370 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
11371 #pragma extern_prefix.
11373 2010-02-25 Jakub Jelinek <jakub@redhat.com>
11376 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
11377 BLKmode, assert op0 is a MEM and just adjust its mode.
11380 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
11381 if bitpos isn't multiple of mode's bitsize.
11383 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11385 * c.opt (-ftemplate-depth=): New.
11386 (-ftemplate-depth-): Deprecate.
11387 * optc-gen.awk: Handle -ftemplate-depth=.
11388 * opth-gen.awk: Likewise.
11389 * c-opts.c (c_common_handle_option): Likewise.
11390 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
11392 2010-02-24 Jason Merrill <jason@redhat.com>
11394 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
11396 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11398 * cfg.c (alloc_aux_for_block): Remove inline.
11399 (alloc_aux_for_edge): Likewise.
11401 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11403 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
11405 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11407 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
11408 * config/i386/sol2-gas.h: New file.
11409 * config.gcc (i[34567]86-*-solaris2*): Use it.
11411 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
11414 * c-typeck.c (ep_convert_and_check): New.
11415 (build_conditional_expr): Use it.
11416 (build_binary_op): Likewise.
11418 2010-02-24 Jakub Jelinek <jakub@redhat.com>
11420 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
11423 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
11424 bounds even for -O+.
11425 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
11426 expr needs to have DECL_NAME set.
11428 2010-02-24 Nick Clifton <nickc@redhat.com>
11430 * config/mep/mep.c: Include gimple.h.
11431 (mep_function_uses_sp): Delete unused function.
11432 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
11433 parameters. Use unsigned integers to count args. Return a
11434 NULL_RTX instead of an error_mark_node. Toidy up formatting.
11436 2010-02-23 Jakub Jelinek <jakub@redhat.com>
11439 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
11440 greater or equal to nelt instead of 2 * nelt.
11441 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
11444 2010-02-23 Jason Merrill <jason@redhat.com>
11447 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
11448 in cfun->local_decls even if they have register types.
11451 * stor-layout.c (place_field): Don't warn about unnecessary
11452 DECL_PACKED if the type is packed.
11454 2010-02-23 Jakub Jelinek <jakub@redhat.com>
11457 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
11458 GOTOFF relocs, even when the base reg isn't pic pointer.
11460 2010-02-23 Michael Matz <matz@suse.de>
11463 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
11464 (expand_gimple_basic_block): Generate and use debug temps if there
11465 are debug uses left after the last real use of TERed ssa names.
11466 Unlink debug immediate uses when they are expanded.
11468 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11471 * config/i386/i386.c (override_options): Reorganise to provide
11472 better error messages.
11474 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
11476 PR middle-end/43083
11477 * graphite-scop-detection.c (create_single_exit_edge): Move
11478 the call to find_single_exit_edge to....
11479 (create_sese_edges): ...here. Don't handle multiple edges
11480 exiting the function.
11481 (build_graphite_scops): Don't handle multiple edges
11482 exiting the function.
11484 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
11486 PR middle-end/43097
11487 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
11488 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
11490 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
11492 PR middle-end/43026
11493 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
11495 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
11498 * c-typeck.c (convert_arguments): Print declaration location.
11499 * c-common.c (validate_nargs): Rename as
11500 builtin_function_validate_nargs.
11501 (check_builtin_function_arguments): Update.
11503 2010-02-22 Richard Guenther <rguenther@suse.de>
11506 * tree-inline.c (declare_return_variable): Use the type of
11507 the call stmt lhs if available.
11509 2010-02-22 Duncan Sands <baldrick@free.fr>
11511 * passes.c (register_pass): Always consider all pass lists when
11512 ref_pass_instance_number is zero.
11514 2010-02-22 Richard Guenther <rguenther@suse.de>
11516 PR tree-optimization/42749
11517 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
11518 parameter. Do arithmetic in the original type.
11519 (update_accumulator_with_ops): Likewise.
11520 (adjust_accumulator_values): Adjust.
11522 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11524 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
11525 (QI to BLKmode splitter): New splitter.
11527 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
11529 * config/i386/i386.c (initial_ix86_tune_features): Turn on
11530 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
11532 2010-02-22 Richard Guenther <rguenther@suse.de>
11534 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
11536 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
11538 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
11539 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
11540 ($(T)crti.o, $(T)crtn.o): Remove rules.
11542 2010-02-21 Tobias Burnus <burnus@net-b.de>
11545 * doc/invoke.texi (-fassociative-math): Document that this
11546 option is automatically enabled for Fortran.
11548 2010-02-20 David S. Miller <davem@davemloft.net>
11550 * configure.ac: Test if linker and assembler properly support
11551 GOTDATA_OP relocations.
11552 * configure: Rebuild.
11553 * config.in: Likewise.
11554 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
11555 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
11556 (movsi_high_pic): Likewise.
11557 (movdi_lo_sum_pic): Likewise.
11558 (movdi_high_pic): Likewise.
11559 (movsi_pic_gotdata_op): New pattern.
11560 (movdi_pic_gotdata_op): Likewise.
11561 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
11562 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
11564 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
11567 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
11568 attribute to ssemul.
11569 (xop_mulv2div2di3_high): Ditto.
11571 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11574 * c.opt (Wconversion-null): New option.
11575 * doc/invoke.texi (Wconversion-null): Document.
11577 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11579 * common.opt (Wlarger-than-): Add Undocumented.
11581 2010-02-19 Mike Stump <mikestump@comcast.net>
11583 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
11585 2010-02-19 Jason Merrill <jason@redhat.com>
11588 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
11589 * configure: Likewise.
11591 2010-02-20 Alan Modra <amodra@gmail.com>
11593 PR middle-end/42344
11594 * cgraph.h (cgraph_make_decl_local): Declare.
11595 * cgraph.c (cgraph_make_decl_local): New function.
11596 (cgraph_make_node_local): Use it.
11597 * cgraphunit.c (cgraph_function_versioning): Likewise.
11598 * ipa.c (function_and_variable_visibility): Likewise.
11600 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11603 * except.c (sjlj_emit_function_enter): Don't call
11604 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
11606 * rtl.h (add_reg_br_prob_note): Remove prototype.
11608 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
11611 * c-common.c (conversion_warning): Remove widening conversions
11612 before checking the conversion of integers to reals.
11614 2010-02-19 Mike Stump <mikestump@comcast.net>
11616 PR middle-end/43125
11617 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
11620 * cgraphunit.c (process_function_and_variable_attributes): Check
11621 DECL_PRESERVE_P instead of looking up attribute "used".
11622 * ipa-pure-const.c (check_decl): Likewise.
11623 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
11624 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
11625 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
11626 instead of attribute "used".
11627 * config/sol2-c.c (solaris_pragma_init): Likewise.
11628 (solaris_pragma_fini): Likewise.
11630 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11632 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
11633 Use XCNEW instead of xcalloc.
11634 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
11635 XNEW instead of xmalloc.
11636 (get_fields): Use XNEWVEC instead of xmalloc.
11639 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
11640 populate vars array.
11641 (create_new_general_access): For debug stmts just reset value.
11642 (get_stmt_accesses): For accesses within debug stmts just record them
11643 using add_access_to_acc_sites instead of preventing the peeling or
11644 counting them as accesses.
11646 PR middle-end/42233
11647 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
11649 2010-02-19 Richard Guenther <rguenther@suse.de>
11651 PR tree-optimization/42916
11652 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
11655 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
11657 * configure.ac: Replace all uses of changequote in macro arguments
11658 with proper quoting.
11660 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11662 PR middle-end/42233
11663 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
11665 2010-02-19 Richard Guenther <rguenther@suse.de>
11667 PR tree-optimization/42944
11668 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
11669 test for aliasing with errno.
11671 2010-02-19 Jakub Jelinek <jakub@redhat.com>
11673 PR middle-end/42233
11674 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
11675 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
11676 * dojump.c: Include output.h.
11677 (inv): New inline function.
11678 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
11679 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
11680 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
11681 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
11682 argument, pass it down to other calls.
11683 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
11684 add REG_BR_PROB note to the conditional jump.
11685 * cfgexpand.c (add_reg_br_prob_note): Removed.
11686 (expand_gimple_cond): Don't call it, add the probability
11687 as last argument to jumpif_1/jumpifnot_1.
11688 * Makefile.in (dojump.o): Depend on output.h.
11689 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
11691 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
11692 * stmt.c (do_jump_if_equal): Likewise.
11693 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
11694 * loop-unswitch.c (compare_and_jump_seq): Likewise.
11695 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
11697 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
11698 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
11699 jumpifnot_1 callers.
11700 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
11702 (store_expr): Adjust jumpifnot caller.
11703 (store_constructor): Adjust jumpif caller.
11705 PR middle-end/42233
11706 * gimplify.c (gimple_boolify): For __builtin_expect call
11707 gimple_boolify also on its first argument.
11709 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
11711 * configure.ac (gnu-unique-object): Wrap regexps using [] in
11713 (__stack_chk_fail): Ditto. Remove quadrigraphs.
11714 * configure: Regenerated.
11716 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11718 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
11719 lang_hooks.types_compatible_p instead of comptypes.
11721 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
11723 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
11724 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
11725 if __prefer_thumb__ is defined.
11727 2010-02-18 Martin Jambor <mjambor@suse.cz>
11729 PR tree-optimization/43066
11730 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
11731 array with zero-sized element type.
11733 2010-02-18 Jakub Jelinek <jakub@redhat.com>
11735 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
11736 rtx, allocate struct var_loc_node here and return it to the
11737 caller, and only if it is actually needed.
11738 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
11739 move it earlier and return immediately if it returns NULL.
11741 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
11743 * config/sparc/gas.h: New file. Restore
11744 TARGET_ASM_NAMED_SECTION to its ELF default.
11745 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
11746 check !HAVE_GNU_AS.
11747 * config/sparc/sparc.c (sparc_elf_asm_named_section):
11748 Likewise. Add ATTRIBUTE_UNUSED to prototype.
11749 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
11750 after sparc/sysv4.h.
11752 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
11754 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
11756 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
11758 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
11759 patterns from predicated pattern.
11761 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
11764 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
11765 for insn mnemonic suffix.
11767 2010-02-17 Richard Guenther <rguenther@suse.de>
11769 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
11772 2010-02-17 Jakub Jelinek <jakub@redhat.com>
11775 * caller-save.c (save_call_clobbered_regs): If BB ends with
11776 a DEBUG_INSN, move any notes in between last real insn and the last
11777 DEBUG_INSN after the last DEBUG_INSN.
11779 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
11781 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
11782 Fix return type. Fix argument type. Explain meaning of return value.
11784 2010-02-16 Richard Guenther <rguenther@suse.de>
11786 PR tree-optimization/41043
11787 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
11788 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
11790 (vrp_visit_phi_node): ... but only for loop PHI nodes.
11792 2010-02-16 Ira Rosen <irar@il.ibm.com>
11794 PR tree-optimization/43074
11795 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
11796 * tree-vect-loop.c (vect_analyze_loop_operations): Add
11797 vectorizable cycles in hybrid SLP check.
11798 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
11800 2010-02-16 Richard Guenther <rguenther@suse.de>
11802 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
11803 (true_dependence): If memrefs_conflict_p computes must-alias
11804 trust it. Move TBAA check after offset-based disambiguation.
11805 (canon_true_dependence): Likewise.
11807 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
11809 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
11810 * doc/invoke.texi: Document it.
11811 * var-tracking.c: Include toplev.h and params.h.
11812 (vt_find_locations): Return bool indicating success. Compute
11813 hash sizes unconditionally. Check new parameter, report.
11814 (variable_tracking_main_1): Check vt_find_locations results and
11815 retry. Renamed from...
11816 (variable_tracking_main): ... this. New wrapper to preserve
11817 flag_var_tracking_assignments.
11818 * Makefile.in (var-tracking.o): Adjust dependencies.
11820 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
11821 Jakub Jelinek <jakub@redhat.com>
11824 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
11825 if weak_import attribute is present.
11826 * config/darwin.c (machopic_select_section): Likewise.
11828 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
11830 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
11831 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
11832 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
11833 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
11835 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
11838 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
11839 Fix argument types.
11841 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
11842 Rewrite text to refer to the names.
11844 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
11846 * config/i386/i386-builtin-types.def
11847 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
11848 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
11849 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
11850 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
11851 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
11852 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
11853 IX86_BUILTIN_VPERMIL2PS256.
11854 (MULTI_ARG_4_DF2_DI_I): Defined.
11855 (MULTI_ARG_4_DF2_DI_I1): Defined.
11856 (MULTI_ARG_4_SF2_SI_I): Defined.
11857 (MULTI_ARG_4_SF2_SI_I1): Defined.
11858 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
11859 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
11860 __builtin_ia32_vpermil2ps256.
11861 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
11862 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
11863 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
11864 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
11865 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
11866 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
11867 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
11868 CODE_FOR_xop_vpermil2v8sf3.
11869 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
11870 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
11871 * config/i386/xopintrin.h (_mm_permute2_pd): New.
11872 (_mm256_permute2_pd): New.
11873 (_mm_permute2_ps): New.
11874 (_mm256_permute2_ps): New.
11876 2010-02-15 Nick Clifton <nickc@redhat.com>
11878 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
11879 boolean parameters. Use emit_jump_insn when emitting a pop
11880 instruction containing a return insn.
11881 (push): Use 'true' rather than '1' as second parameter to F.
11882 (h8300_expand_prologue): Likewise.
11883 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
11884 (h8300_expand_epilogue): Likewise.
11886 2010-02-15 Richard Guenther <rguenther@suse.de>
11888 PR middle-end/43068
11889 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
11892 2010-02-15 Nick Clifton <nickc@redhat.com>
11894 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
11897 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
11899 * intl.c (fake_ngettext): New function.
11900 * intl.h (fake_ngettext): Declare.
11901 (ngettext): Define macro.
11902 * collect2.c (notice_translated): New function.
11903 (main): Use notice_translated and ngettext.
11904 * collect2.h (notice_translated): Declare.
11906 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
11908 * reorg.c (delete_computation): Comment fixes.
11909 * caller-save.c (setup_save_areas): Idem.
11910 * sel-sched-dump.c (dump_lv_set): Idem.
11913 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11915 * config/s390/s390.c (s390_sched_init): New function.
11916 (TARGET_SCHED_INIT): Target hook defined.
11918 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
11919 Jack Howarth <howarth@bromo.med.uc.edu>
11920 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
11923 Partial revert of unintended change in fix for PR41605.
11924 * config/darwin.h: Fix typo.
11925 * config/darwin9.h: Same.
11927 2010-02-11 Jakub Jelinek <jakub@redhat.com>
11929 * c-pch.c (pch_init): Clear v.
11931 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11933 PR middle-end/42930
11934 * graphite-scop-detection.c (graphite_can_represent_scev): Call
11935 graphite_can_represent_init for MULT_EXPR.
11937 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11939 PR middle-end/42914
11940 PR middle-end/42530
11941 * graphite-sese-to-poly.c (remove_phi): New.
11942 (translate_scalar_reduction_to_array): Call remove_phi.
11944 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11946 PR middle-end/42771
11947 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
11948 * graphite-clast-to-gimple.h (gloog): Update declaration.
11949 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
11950 * graphite-poly.h (struct poly_bb): Add missing comments.
11951 (struct scop): Add poly_scop_p field.
11952 (POLY_SCOP_P): New.
11953 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
11954 * graphite.c (graphite_transform_loops): Build the polyhedral
11955 representation for each scop before code generation.
11956 * sese.c (rename_variables_in_operand): Removed.
11957 (rename_variables_in_expr): Return the renamed expression.
11958 (rename_sese_parameters): New.
11959 * sese.h (rename_sese_parameters): Declared.
11961 2010-02-11 Richard Guenther <rguenther@suse.de>
11963 PR tree-optimization/42998
11964 * tree-ssa-pre.c (create_expression_by_pieces): Treat
11965 POINTER_PLUS_EXPR properly.
11967 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
11968 Changpeng Fang <changpeng.fang@amd.com>
11970 PR middle-end/40886
11971 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
11972 the cost of an IV candidate when the IV is used in a test against zero.
11974 * gcc.dg/tree-ssa/ivopts-3.c: New.
11976 2010-02-11 Richard Guenther <rguenther@suse.de>
11979 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
11980 pointer-vs-decl case by swapping refs. Handle some cases
11981 of pointer-vs-decl disambiguations more conservatively.
11982 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
11983 to false after expanding.
11985 2010-02-11 Richard Guenther <rguenther@suse.de>
11988 * gcc.c (process_command): Handle LTO file@offset case more
11991 2010-02-11 Jakub Jelinek <jakub@redhat.com>
11993 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
11994 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
11996 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
11998 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
11999 if MEM's mode size isn't DWARF2_ADDR_SIZE.
12000 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
12001 Optimize eq/ne comparisons when both arguments are known to be
12003 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
12004 Don't mask operands unnecessarily if they are known to be already
12007 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
12009 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
12012 2010-02-10 Richard Guenther <rguenther@suse.de>
12014 PR tree-optimization/43017
12015 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
12016 for wrapping signed arithmetic.
12018 2010-02-10 Jakub Jelinek <jakub@redhat.com>
12021 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
12022 if no debug info should be emitted for it.
12024 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
12026 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
12027 note when flag_exceptions is set.
12029 2010-02-10 Duncan Sands <baldrick@free.fr>
12031 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
12033 2010-02-10 Richard Guenther <rguenther@suse.de>
12036 * tree.c (get_unwidened): Handle constants.
12037 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
12039 2010-02-10 Martin Jambor <mjambor@suse.cz>
12042 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
12043 check for variable argument counts independently.
12045 2010-02-10 Christian Bruel <christian.bruel@st.com>
12048 * config/sh/sh.c (find_barrier): Increase length for non delayed
12049 conditional branches.
12051 2010-02-10 Christian Bruel <christian.bruel@st.com>
12053 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
12055 2010-02-10 Jakub Jelinek <jakub@redhat.com>
12057 * builtins.c (set_builtin_user_assembler_name): Also handle
12058 ffs if int is smaller than word.
12060 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
12062 PR middle-end/42973
12063 * ira-conflicts.c (get_dup): Remove.
12064 (process_reg_shuffles): Add new parameter. Use it as an
12065 additional guard for copy generation.
12066 (add_insn_allocno_copies): Rewrite.
12068 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
12070 * common.opt (fsched2-use-traces): Preserved for backward
12072 * doc/invoke.texi: Remove the documentation about option
12073 -fsched2-use-traces.
12074 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
12075 flag_sched2_use_traces.
12076 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
12077 the backward compatibility flag section.
12079 2010-02-09 Richard Guenther <rguenther@suse.de>
12081 PR tree-optimization/43008
12082 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
12083 make HEAP variables initialized from global memory if they
12084 are not known builtin functions.
12085 (find_func_aliases): Adjust.
12087 2010-02-09 Richard Guenther <rguenther@suse.de>
12089 PR tree-optimization/43000
12090 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
12091 arithmetic manually.
12093 2010-02-08 Jakub Jelinek <jakub@redhat.com>
12095 PR tree-optimization/42931
12096 * tree-loop-linear.c (try_interchange_loops): Don't call
12097 double_int_mul if estimated_loop_iterations failed.
12099 2010-02-08 Martin Jambor <mjambor@suse.cz>
12101 PR middle-end/42898
12102 * tree-sra.c (build_accesses_from_assign): Do not mark in
12103 should_scalarize_away_bitmap if stmt has volatile ops.
12104 (sra_modify_assign): Do not process assigns piecemeal if if stmt
12107 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
12109 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
12111 2010-02-07 Adam Nemet <adambnmet@gmail.com>
12113 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
12114 before the pattern.
12116 2010-02-07 Andrew Pinski <pinskia@gmail.com>
12118 PR middle-end/42946
12119 * df-core.c (df_finish_pass): Change type of saved_flags to int.
12121 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
12123 PR middle-end/42988
12124 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
12125 to unknown_dependence.
12126 (graphite_legal_transform_dr): Handle the unknown_dependence.
12127 (graphite_carried_dependence_level_k): Same.
12129 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
12131 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
12133 2010-02-07 Richard Guenther <rguenther@suse.de>
12135 PR middle-end/42991
12136 * expr.c (get_inner_reference): Always initialize *pbitsize.
12138 2010-02-07 Richard Guenther <rguenther@suse.de>
12140 PR middle-end/42956
12141 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
12142 new ARRAY_REFs on variable size element or minimal index arrays.
12144 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
12145 gimple_fold_indirect_ref.
12147 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
12150 * arm.c (arm_override_options): Just return if the user has specified
12151 an invalid fpu name.
12153 2010-02-03 Jason Merrill <jason@redhat.com>
12156 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
12157 i386_pe_maybe_record_exported_symbol.
12159 2010-02-05 Steve Ellcey <sje@cup.hp.com>
12162 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
12163 (pa_delegitimize_address): New function.
12165 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
12167 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
12168 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
12170 2010-02-05 Richard Guenther <rguenther@suse.de>
12173 * lto-streamer-in.c (get_resolution): Deal with references
12174 to undefined functions.
12176 2010-02-05 Richard Guenther <rguenther@suse.de>
12178 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
12179 (fold_const_aggregate_ref): Likewise.
12180 (ccp_fold_stmt): Substitute loads.
12181 (maybe_fold_reference): Verify types before substituting.
12183 (fold_gimple_assign): Unshare properly.
12184 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
12186 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
12188 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
12189 for rs6000_gen_cell_microcode.
12191 2010-02-04 Richard Guenther <rguenther@suse.de>
12193 PR rtl-optimization/42952
12194 * dse.c (const_or_frame_p): Remove MEM handling.
12196 2010-02-04 Nick Clifton <nickc@redhat.com>
12198 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12199 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
12200 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
12201 (mn10300_asm_output_mi_thunk): New function.
12202 (mn10300_can_output_mu_thunk): New function.
12203 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
12204 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
12205 (FUNCTION_ARG): Delete incorrect comment.
12207 2010-02-03 Jason Merrill <jason@redhat.com>
12210 * fold-const.c (operand_equal_p): Handle erroneous types.
12212 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12214 * config/h8300/h8300.md (can_delay): Fix attibute condition.
12216 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
12218 PR rtl-optimization/42941
12219 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
12222 2010-02-03 Jason Merrill <jason@redhat.com>
12225 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
12227 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
12230 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
12231 (cselib_reset_table): Renamed from...
12232 (cselib_reset_table_with_next_value): ... this.
12233 (cselib_get_next_uid): Renamed from...
12234 (cselib_get_next_unknown_value): ... this.
12235 * cselib.c (next_uid): Renamed from...
12236 (next_unknown_value): ... this.
12237 (cselib_clear_table): Adjust.
12238 (cselib_reset_table): Adjust. Renamed from...
12239 (cselib_reset_table_with_next_value): ... this.
12240 (cselib_get_next_uid): Adjust. Renamed from...
12241 (cselib_get_next_unknown_value): ... this.
12242 (get_value_hash): Use hash.
12243 (cselib_hash_rtx): Likewise.
12244 (new_cselib_val): Adjust. Set and dump uid.
12245 (cselib_lookup_mem): Pass next_uid as hash.
12246 (cselib_subst_to_values): Likewise.
12247 (cselib_log_lookup): Dump uid.
12248 (cselib_lookup): Pass next_uid as hash. Adjust.
12249 (cselib_process_insn): Adjust.
12250 (cselib_init): Initialize next_uid.
12251 (cselib_finish): Adjust.
12252 (dump_cselib_table): Likewise.
12253 * dse.c (canon_address): Dump value uid.
12254 * print-rtl.c (print_rtx): Print value uid.
12255 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
12257 (dv_uid): New function, sort of renamed from...
12258 (dv_htab_hash): ... this, reimplemented in terms of it and...
12259 (dv_uid2hash): ... this. New.
12260 (variable_htab_eq): Drop excess assertions.
12261 (tie_break_pointers): Removed.
12262 (canon_value_cmp): Compare uids.
12263 (variable_post_merge_New_vals): Print uids.
12264 (vt_add_function_parameters): Adjust.
12265 (vt_initialize): Reset table. Adjust.
12267 2010-02-03 Richard Guenther <rguenther@suse.de>
12269 PR tree-optimization/42944
12270 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
12271 (call_may_clobber_ref_p_1): Likewise. Properly handle
12272 malloc and calloc clobbering errno.
12274 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
12276 * doc/invoke.texi: Fix name of sched1 dump.
12278 * opts.c (decode_options): Set flag_tree_switch_conversion
12279 only conditionally on optimize >= 2.
12281 * gcse.c: Assorted comment fixes in pass description.
12283 2010-02-03 Anthony Green <green@moxielogic.com>
12285 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
12286 nop padding in order to maintain alignment of storage location of
12287 target function address.
12288 (moxie_trampoline_init): Store target function address at newly
12290 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
12292 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
12294 2010-02-03 Richard Guenther <rguenther@suse.de>
12296 PR middle-end/42927
12297 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
12299 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12301 * config.gcc: Reenable check for obsolete targets.
12302 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
12303 mips-sgi-irix6.[0-4]*.
12305 2010-02-02 Nick Clifton <nickc@redhat.com>
12307 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
12308 constant size of 4 as being the same as 0.
12309 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
12310 can take values in the range 0..4.
12312 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
12315 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
12316 as _darwin10_Unwind_FindEnclosingFunction().
12317 * libgcc-libsystem.ver: New.
12319 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
12322 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
12323 implicitly set registers.
12325 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
12327 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
12328 (arm_override_options): Allow automatic selection of the thread
12329 pointer register if thumb2.
12330 (legitimize_pic_address): Improve code sequences for Thumb2.
12331 (arm_call_tls_get_addr): Likewise.
12332 (legitimize_tls_address): Likewise.
12333 * arm.md (pic_load_addr_arm): Delete. Replace with ...
12334 (pic_load_addr_32bit): ... this. New named pattern.
12335 * thumb2.md (pic_load_addr_thumb2): Delete.
12336 (pic_load_dot_plus_four): Delete.
12337 (tls_load_dot_plus_four): New named pattern.
12339 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12342 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
12343 Document fix for TLS bug.
12345 2010-01-31 Richard Guenther <rguenther@suse.de>
12347 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
12348 conservatively correct.
12350 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12354 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12356 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12358 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12360 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
12362 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
12364 * config.gcc: Adjust order of makefile fragments for mingw targets.
12366 2010-01-31 Richard Guenther <rguenther@suse.de>
12368 PR middle-end/42898
12369 * gimplify.c (gimplify_init_constructor): For volatile LHS
12370 initialize a temporary.
12372 2010-01-31 Matthias Klose <doko@ubuntu.com>
12374 * configure.ac: Fix __stack_chk_fail check for cross builds configured
12376 * configure: Regenerate.
12378 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
12380 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
12381 the same alias set and their sizes different constantness.
12382 (aliasing_component_refs_p): Revert 2009-10-24 change.
12384 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12386 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
12389 2010-01-29 Richard Guenther <rguenther@suse.de>
12391 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
12392 Assert we successfully updated the call.
12394 2010-01-29 Jakub Jelinek <jakub@redhat.com>
12396 PR rtl-optimization/42889
12397 * df.h (df_set_bb_dirty_nonlr): New prototype.
12398 * df-core.c (df_set_bb_dirty_nonlr): New function.
12399 * df-scan.c (df_insn_rescan): Call it instead of
12400 df_set_bb_dirty for DEBUG_INSNs.
12402 2010-01-29 Richard Guenther <rguenther@suse.de>
12404 PR middle-end/37448
12405 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
12406 quadratic behavior in most cases.
12408 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
12411 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
12412 in the call to gen_x86_movsicc_0_m1.
12414 2010-01-28 Richard Guenther <rguenther@suse.de>
12416 PR tree-optimization/42871
12417 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
12419 2010-01-28 Richard Guenther <rguenther@suse.de>
12421 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
12422 into call arguments.
12424 2010-01-28 Richard Guenther <rguenther@suse.de>
12426 PR middle-end/42883
12427 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
12428 the forwarder if the destination is an EH landing pad.
12430 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
12432 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
12433 block list passed to gimple_duplicate_sese_tail.
12434 (parallelize_loops): Avoid parallelization when the function
12435 has_nonlocal_label.
12436 Avoid parallelization when the preheader is IRREDUCIBLE.
12437 Try to optimize when estimated_loop_iterations_int is unresolved.
12438 Add the loop's location to the dump file.
12439 * tree-cfg.c (add_phi_args_after_redirect): Remove.
12440 (gimple_duplicate_sese_tail): Remove the check for the latch.
12441 Redirect nexits to the exit block.
12442 Remove handling of the incoming edges to the latch.
12443 Redirect the backedge from the copied latch to the exit bb.
12445 2010-01-28 Michael Matz <matz@suse.de>
12448 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
12449 Wrap force_reg into a sequence, emit it before user.
12451 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
12453 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
12455 (arm_legacy_rev): Likewise.
12456 (thumb_legacy_rev): Likewise.
12458 2010-01-27 Jakub Jelinek <jakub@redhat.com>
12460 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
12461 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
12462 on MEM's address failed, try avoid_constant_pool_reference and
12463 recurse if it returned something different.
12464 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
12465 address, try avoid_constant_pool_reference and recurse if it
12466 returned something different.
12467 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
12468 address and avoid_constant_pool_reference returned something
12469 different, don't set have_address.
12471 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
12474 * var-tracking.c (val_store): Add modified argument, obey it.
12476 (count_uses): Move down logging of main.
12477 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
12478 don't need resolution.
12479 (emit_notes_in_bb): Likewise.
12481 2010-01-27 Richard Guenther <rguenther@suse.de>
12483 PR middle-end/42878
12484 * tree-inline.c (remap_decl): Delay remapping of SSA name
12485 default definitions until we need them.
12487 2010-01-27 Jakub Jelinek <jakub@redhat.com>
12489 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
12490 (rs6000_delegitimize_address): New function.
12492 * config/s390/s390.c (s390_delegitimize_address): Call
12493 delegitimize_mem_from_attrs.
12495 PR middle-end/42874
12496 * tree-inline.c (cannot_copy_type_1): Removed.
12497 (copy_forbidden): Don't forbid copying of functions containing
12498 records/unions with variable length fields.
12500 2010-01-27 Christian Bruel <christian.bruel@st.com>
12504 * config/sh/sh.c (find_barrier): Increase length for non delayed
12505 conditional branches.
12507 2010-01-27 Matthias Klose <doko@ubuntu.com>
12509 * configure.ac (gnu-unique-object): Fix ldd version check.
12510 * configure: Regenerate.
12512 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12514 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
12516 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
12517 Test for HAVE_GNU_AS value.
12519 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12521 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
12522 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
12523 INT64_TYPE): Define.
12524 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
12525 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12526 INT_LEAST64_TYPE): Define.
12527 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
12528 UINT_LEAST64_TYPE): Define.
12529 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
12530 INT_FAST64_TYPE): Define.
12531 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12532 UINT_FAST64_TYPE): Define.
12533 (INTMAX_TYPE, UINTMAX_TYPE): Define.
12534 (INTPTR_TYPE, UINTPTR_TYPE): Define.
12535 (SIG_ATOMIC_TYPE): Define.
12537 2010-01-26 Richard Guenther <rguenther@suse.de>
12539 * df-scan.c (df_scan_set_bb_info): Remove assert.
12540 (df_insn_rescan_debug_internal): Merge asserts.
12541 (df_install_ref): Likewise.
12542 (df_mark_reg): Use bitmap_set_range.
12543 (df_hard_reg_used_p): Remove assert.
12544 (df_hard_reg_used_count): Likewise.
12546 2010-01-26 Richard Guenther <rguenther@suse.de>
12548 PR rtl-optimization/42685
12549 * web.c (web_main): Ignore DEBUG_INSNs.
12551 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
12553 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
12555 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
12556 Fix types of fndecl and arglist parameters.
12558 2010-01-26 Richard Guenther <rguenther@suse.de>
12560 PR middle-end/42806
12561 * tree-eh.c (unsplit_eh): Skip debug insns.
12563 2010-01-26 Richard Guenther <rguenther@suse.de>
12565 PR tree-optimization/42250
12566 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
12568 2010-01-26 Jakub Jelinek <jakub@redhat.com>
12571 * omp-low.c (expand_omp_sections): Only use single_pred if
12572 l2_bb is single_pred_p.
12574 2010-01-25 Christian Bruel <christian.bruel@st.com>
12577 * config/sh/sh.c (find_barrier): Increase length for non delayed
12578 conditional branches.
12579 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
12581 2010-01-24 David S. Miller <davem@davemloft.net>
12583 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
12584 define if not using GAS.
12585 * config/sparc/sparc.c (sparc_elf_asm_named_section):
12586 Likewise. Delete SECTION_MERGE code, which is only applicable
12589 2010-01-24 Mark Mitchell <mark@codesourcery.com>
12592 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
12593 mangling of va_list in system headers.
12595 2010-01-23 Toon Moene <toon@moene.org>
12597 * tree-predcom.c (combine_chains): Return NULL, not false.
12599 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
12601 * tree-loop-distribution.c (distribute_loop): Fix declaration and
12602 initialization of variable res to agree with return type.
12604 2010-01-22 Steve Ellcey <sje@cup.hp.com>
12606 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
12607 * tree-sra.c: Add include of expr.h.
12609 2010-01-22 Jakub Jelinek <jakub@redhat.com>
12611 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
12612 insert the debug stmt on the single non-EH edge from the stmt.
12614 2010-01-22 Richard Henderson <rth@redhat.com>
12617 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
12618 the RHS until after generate_subtree_copies has insertted its
12619 code before the current statement.
12621 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
12623 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
12625 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
12627 2010-01-21 Martin Jambor <mjambor@suse.cz>
12629 PR tree-optimization/42585
12630 * tree-sra.c (struct access): New field grp_total_scalarization.
12631 (dump_access): Dump the new field.
12632 (should_scalarize_away_bitmap): New variable.
12633 (cannot_scalarize_away_bitmap): Likewise.
12634 (sra_initialize): Allocate new bitmaps.
12635 (sra_deinitialize): Free new bitmaps.
12636 (create_access_1): New function.
12637 (create_access): Parts moved to create_access_1.
12638 (type_consists_of_records_p): New function.
12639 (completely_scalarize_record): Likewise.
12640 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
12641 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
12642 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
12644 (analyze_all_variable_accesses): Completely scalarize small eligible
12647 2010-01-21 Martin Jambor <mjambor@suse.cz>
12649 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
12651 2010-01-21 Andrew Haley <aph@redhat.com>
12653 * gcc.c (process_command): Move lang_specific_driver before
12654 setting cc_libexec_prefix.
12656 2010-01-21 Richard Guenther <rguenther@suse.de>
12658 PR middle-end/19988
12659 * fold-const.c (negate_expr_p): Pretend only negative
12660 real constants are easily negatable.
12662 2010-01-20 Janis Johnson <janis187@us.ibm.com>
12663 Jason Merrill <jason@redhat.com>
12665 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
12666 (TYPE_TRANSPARENT_AGGR): this, for union and record.
12667 * calls.c (initialize argument_information): Handle it.
12668 * c-common.c (handle_transparent_union_attribute): Use new name.
12669 * c-decl.c (finish_struct): Ditto.
12670 * c-typeck.c (type_lists_compatible_p): Ditto.
12671 (convert_for_assignment): Use new name and also handle record.
12672 * function.c (aggregate_value_p): Handle it.
12673 (pass_by_reference): Ditto.
12674 (assign_parm_data_types): Ditto.
12675 * print-tree.c (print_node): Ditto.
12676 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
12677 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
12678 * tree.c (first_field): New fn.
12680 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
12683 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
12684 even when linking statically, for now.
12686 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
12689 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
12690 without a cselib val.
12691 (count_uses): Accept MO_VAL_SET with no val on stores.
12692 (add_stores): Likewise.
12694 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12696 * var-tracking.c (check_value_val): Add a compile time assertion.
12697 (dv_is_decl_p): Simplify.
12698 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
12699 gcc_assert if ENABLE_CHECKING.
12701 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
12704 * var-tracking.c: Include tree-flow.h.
12705 (mem_dies_at_call): New.
12706 (dataflow_set_preserve_mem_locs): Use it.
12707 (dataflow_set_remove_mem_locs): Likewise.
12708 (dump_var): Renamed from dump_variable. Adjust all callers.
12709 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
12710 * Makefile.in (var-tracking.o): Adjust deps.
12712 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
12714 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
12716 2010-01-20 Richard Guenther <rguenther@suse.de>
12718 PR tree-optimization/42717
12719 * tree-ssa-dce.c (get_live_post_dom): Remove.
12720 (forward_edge_to_pdom): Take an arbitrary edge to copy
12721 degenerate PHI args from.
12722 (remove_dead_stmt): Use the first post-dominator even if it
12723 does not contain live statements as redirection destination.
12725 2010-01-20 Richard Guenther <rguenther@suse.de>
12727 * tree-inline.c (estimate_num_insns): Handle EH builtins.
12729 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12731 * sel-sched.c (create_speculation_check): Remove set but not used
12733 (try_transformation_cache): Remove set but not used variable ds.
12734 (calculate_privileged_insns): Remove set but not used variables
12735 cur_insn and min_spec_insn.
12736 (find_best_expr): Remove set but not used variable avail_n.
12737 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
12739 * cgraphunit.c (assemble_thunk): Remove set but not used variable
12741 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
12742 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
12743 new_scop_exit_edge.
12745 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
12748 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
12749 cpu types. Add support for *-sse3 cpu types.
12750 (x86_64-*-*): Ditto.
12752 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12754 PR middle-end/42803
12755 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
12756 argument, call initializer_constant_valid_p_1 instead of
12757 initializer_constant_valid_p, pass CACHE to it, return NULL
12758 immediately if first call returns NULL.
12759 (initializer_constant_valid_p_1): New function.
12760 (initializer_constant_valid_p): Use it.
12762 2010-01-20 Thomas Quinot <quinot@adacore.com>
12764 * tree.def (PLACEHOLDER_EXPR): Fix comment.
12766 2010-01-20 Jakub Jelinek <jakub@redhat.com>
12768 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
12769 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
12770 (loc_list_from_tree): Don't handle unsigned division. Handle
12771 signed modulo using DW_OP_{over,over,div,mul,minus}.
12772 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
12773 modulo instead of signed.
12775 2010-01-20 DJ Delorie <dj@redhat.com>
12777 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
12779 (h8300_emit_stack_adjustment): Propogate it.
12781 (h8300_expand_prologue): Likewise.
12782 (h8300_expand_epilogue): Likewise.
12784 2010-01-19 Michael Matz <matz@suse.de>
12786 PR tree-optimization/41783
12787 * tree-data-ref.c (toplevel): Include flags.h.
12788 (dump_data_dependence_relation): Also dump the inputs if the
12789 result will be unknown.
12790 (split_constant_offset_1): Look through some conversions.
12791 * tree-predcom.c (determine_roots_comp): Restart a new chain if
12792 the offset from last element is too large.
12793 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
12794 (reassociate_to_the_same_stmt): Handle vector registers.
12795 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
12796 (e.g. conversions).
12797 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
12798 wide_prolog_niters argument, emit widening instructions.
12799 (vect_do_peeling_for_alignment): Adjust caller, use widened
12800 variant of the iteration cound.
12801 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
12803 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12806 * config/arm/neon-testgen.m (emit_automatics): New parameter
12807 features. Adjust for Fixed_return_reg feature.
12808 (test_intrinsic): Call emit_automatics with new feature.
12809 * config/arm/neon.ml: Update copyright years.
12810 (features): New Fixed_return_reg feature.
12811 (ops): Update feature for Vget_low.
12813 2010-01-19 Jakub Jelinek <jakub@redhat.com>
12815 PR tree-optimization/42719
12816 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
12820 * fwprop.c (all_uses_available_at): Return false if def_set dest
12821 is a REG that is used in def_insn.
12823 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
12825 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
12827 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
12828 Add argument names.
12830 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
12832 * target.h (struct gcc_target) <secondary_reload>: Change type
12833 of last argument to secondary_reload_info *.
12835 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
12838 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
12839 memory references with unaligned offsets. Remove CQImode handling.
12840 (unaligned_memory_operand): Return 1 for memory references with
12841 unaligned offsets. Remove CQImode handling.
12843 2010-01-18 Richard Guenther <rguenther@suse.de>
12845 PR middle-end/39954
12846 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
12849 2010-01-18 Richard Guenther <rguenther@suse.de>
12851 PR tree-optimization/42781
12852 * tree-ssa-structalias.c (find_what_var_points_to): Skip
12853 restrict processing only if the original variable was artificial.
12855 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
12857 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
12858 find number of popped argument bytes.
12860 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
12861 Fix the text that describes the return value for invalid insns.
12863 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
12865 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
12866 Clarify what 'cost of the -dependence' is. Fix quoting.
12868 * toplev.c (default_get_pch_validity): Rename argument to "sz".
12869 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
12871 2010-01-17 Jakub Jelinek <jakub@redhat.com>
12873 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12874 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
12876 2010-01-17 Richard Guenther <rguenther@suse.de>
12878 PR middle-end/42248
12879 * function.c (split_complex_args): Take a VEC to modify.
12880 (assign_parms_augmented_arg_list): Build a VEC instead of
12881 a chain of PARM_DECLs.
12882 (assign_parms_unsplit_complex): Take a VEC of arguments.
12883 Do not fixup unmodified parms.
12884 (assign_parms): Deal with the VEC.
12885 (gimplify_parameters): Likewise.
12887 2010-01-17 Richard Guenther <rguenther@suse.de>
12889 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
12890 node existence check.
12891 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
12892 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
12893 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
12894 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
12895 (gimple_execute_on_growing_pred): Likewise.
12897 2010-01-17 Richard Guenther <rguenther@suse.de>
12899 PR tree-optimization/42773
12900 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
12901 (compute_antic_aux): Likewise.
12902 (compute_partial_antic_aux): Likewise.
12904 2010-01-17 Jie Zhang <jie.zhang@analog.com>
12907 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
12910 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
12912 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
12915 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
12916 Fix markup for strict argument.
12918 (TARGET_SCHED_REORDER2): Fix argument types.
12920 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
12921 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
12923 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
12924 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
12926 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
12929 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
12930 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
12931 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
12932 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
12933 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
12935 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
12937 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
12939 (TARGET_ASM_RELOC_RW_MASK): Add return type.
12940 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
12942 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
12944 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
12947 (TARGET_ASM_NAMED_SECTION): Fix argument list.
12949 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
12950 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
12952 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
12954 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
12956 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
12957 referring to it. Fix language.
12959 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
12961 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
12963 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
12965 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
12967 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
12968 '@var{stream}. Remove stray 'and'.
12970 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
12972 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
12974 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
12976 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
12977 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
12979 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
12980 Fix description of return value.
12981 Rename argument "sz" to "len."
12983 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
12984 Clarify meaning of 'true' return value.
12986 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
12988 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
12989 rep_mode versus mode_rep.
12991 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
12993 (TARGET_BUILTIN_DECL): Fix name.
12995 (TARGET_COMMUTATIVE_P): Fix type of first argument.
12997 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
12999 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
13001 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
13003 (TARGET_RELAXED_ORDERING): Use @deftypevr.
13005 (TARGET_GET_DRAP_RTX): Note that this is a hook.
13008 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
13009 Rename argument tm_fn to md_fn.
13011 (TARGET_OPTION_PRINT): Fix argument list.
13013 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
13016 * config/i386/i386.c (ix86_fixup_binary_operands):
13017 Revert FMA4 fixup of operands.
13019 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13022 * Makefile.in (write_entries_to_file, install-plugin):
13023 Use \012 instead of \n with tr.
13025 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
13027 * configure.ac (HAVE_AS_REF): New C macro.
13028 * configure: Regenerate.
13029 * config.in: Likewise.
13030 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
13032 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
13035 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
13037 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
13039 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
13041 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
13043 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
13045 (TARGET_IN_SMALL_DATA_P): Fix argument type.
13047 (TARGET_BINDS_LOCAL_P): Fix argument type.
13049 (TARGET_ASM_FILE_END): Use prototype.
13051 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
13053 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
13055 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
13057 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
13059 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
13060 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
13062 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
13063 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
13065 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
13066 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
13067 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
13068 (TARGET_ADDR_SPACE_CONVERT): Likewise.
13070 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
13072 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
13074 (TARGET_INIT_BUILTINS): Use prototype.
13076 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
13077 Put 'const char *' in braces. Fix parameter types.
13078 (TARGET_INVALID_CONVERSION): Fix parameter types.
13079 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
13080 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
13082 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
13085 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
13087 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
13089 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
13091 * doc/tm.texi (TARGET_HELP): Fix return type.
13093 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
13094 in braces. Fix argument types.
13096 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
13098 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
13100 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
13102 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
13103 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
13105 (TARGET_MANGLE_TYPE): Fix argument types.
13107 (TARGET_IRA_COVER_CLASSES): Use prototype.
13109 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
13111 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
13113 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
13115 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
13117 (TARGET_CALLEE_COPIES): Fix argument types.
13119 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
13121 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
13123 (TARGET_FUNCTION_VALUE): Fix argument types.
13125 (TARGET_RETURN_IN_MSB): Fix argument type.
13127 (TARGET_RETURN_IN_MEMORY): Fix argument types.
13129 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
13131 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
13133 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
13134 agree with return type.
13136 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
13138 2010-01-15 Jing Yu <jingyu@google.com>
13140 PR rtl-optimization/42691
13141 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
13142 a pseudo to a constant and are merged, and adjust comments.
13144 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
13146 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
13148 2010-01-15 Richard Guenther <rguenther@suse.de>
13150 PR middle-end/42739
13151 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
13152 labels of computed or non-local gotos to the destination.
13153 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
13154 landing pad label is the first label.
13156 2010-01-15 Richard Guenther <rguenther@suse.de>
13158 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
13160 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13163 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
13164 to allow generation of the xssqrtdp instruction on power7.
13165 (sqrtdf2_fpr): Ditto.
13167 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13169 PR middle-end/42674
13170 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
13171 functions with noreturn attribute.
13174 * varasm.c (declare_weak): Add weak attribute to decl if it
13175 doesn't have one already.
13176 (assemble_external): Only add decls to weak_decls if they also
13177 have weak attribute.
13179 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
13181 * var-tracking.c (var_reg_delete): Don't delete the association
13182 between REGs and values or one-part variables if the register
13185 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13188 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
13189 because its first operand is a non-localized variable.
13191 2010-01-14 Martin Jambor <mjambor@suse.cz>
13193 PR tree-optimization/42706
13194 * tree-sra.c (encountered_recursive_call): New variable.
13195 (encountered_unchangable_recursive_call): Likewise.
13196 (sra_initialize): Initialize both new variables.
13197 (callsite_has_enough_arguments_p): New function.
13198 (scan_function): Call decl and flags check only for IPA-SRA, check
13199 whether there is a recursive call and whether it has enough arguments.
13200 (all_callers_have_enough_arguments_p): New function.
13201 (convert_callers): Look for recursive calls only when
13202 encountered_recursive_call is set.
13203 (ipa_early_sra): Bail out either if
13204 !all_callers_have_enough_arguments_p or
13205 encountered_unchangable_recursive_call.
13207 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13209 * sel-sched.c: Add 2010 to copyright years.
13210 * sel-sched-ir.c: Likewise.
13211 * sel-sched-ir.h: Likewise.
13213 2010-01-14 Martin Jambor <mjambor@suse.cz>
13215 PR tree-optimization/42714
13216 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
13217 constructors specially.
13219 2010-01-14 Andi Kleen <ak@linux.intel.com>
13221 * config/i386/drivers-i386.c (detect_caches_intel):
13222 Add l2sizekb parameter and fill in.
13223 (host_detect_local_cpu): Add l2sizekb, fill in.
13224 Add Atom small cache heuristic.
13226 2010-01-14 Andi Kleen <ak@linux.intel.com>
13228 * config/i386/drivers-i386.c (detect_caches_cpuid4):
13229 Add level3 parameter and fill in.
13230 (detect_caches_intel): Handle level3 cache.
13232 2010-01-14 Andi Kleen <ak@linux.intel.com>
13234 * config/i386/drivers-i386.c (host_detect_local_cpu):
13235 Fix core duo detection.
13237 2010-01-14 Andi Kleen <ak@linux.intel.com>
13239 * config/i386/drivers-i386.c (host_detect_local_cpu):
13240 Fix Atom detection.
13242 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13244 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
13245 (rs6000_variable_issue_1): this. Use...
13246 (rs6000_variable_issue): here. Reimplement. Print debug info.
13248 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13250 * sel-sched-ir.c (sel_restore_other_notes): Rename to
13251 sel_restore_notes. Update all callers. Call reemit_notes
13254 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13256 PR rtl-optimization/42246
13257 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
13260 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13262 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
13263 all successors is the same as number of successors in current region.
13265 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13267 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
13268 to rename is not separable. Otherwise check that its LHS is not NULL.
13270 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13272 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
13274 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13276 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
13277 available registers when failed to discover LHS register class.
13278 Fix indentation. Update comment.
13280 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13281 Alexander Monakov <amonakov@ispras.ru>
13283 PR rtl-optimization/42389
13284 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
13286 (advance_state_on_fence): Likewise.
13287 (sel_target_adjust_priority): Print debug output only when
13288 sched_verbose >= 4, not 2.
13289 (get_expr_cost): Do not issue all unique insns on the next cycle.
13290 (fill_insns): Initialize can_issue_more from the value saved
13292 * sel-sched-ir.c (flist_add): New parameter issue_more.
13293 Init FENCE_ISSUE_MORE with it.
13294 (merge_fences): Likewise.
13295 (init_fences): Update call to flist_add.
13296 (add_to_fences, add_clean_fence_to_fences)
13297 (add_dirty_fence_to_fences): Likewise.
13298 (move_fence_to_fences): Update call to merge_fences.
13299 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
13301 * sel-sched-ir.h (struct _fence): New field issue_more.
13302 (FENCE_ISSUE_MORE): New accessor macro.
13304 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13306 PR rtl-optimization/42388
13307 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
13308 that have no predecessors nor successors. Do not call move_bb_info
13309 for empty blocks outside of current region.
13311 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13313 PR rtl-optimization/42294
13314 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
13315 * sel-sched.c (move_exprs_to_boundary): Transitively add all
13316 originators' originators.
13318 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
13320 PR rtl-optimization/39453
13321 PR rtl-optimization/42246
13322 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
13324 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
13326 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13327 Alexander Monakov <amonakov@ispras.ru>
13329 PR middle-end/42245
13330 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
13331 (maybe_tidy_empty_bb): ... here. Make static. Add new
13332 argument. Update all callers.
13333 (tidy_control_flow): ... and here. Recompute topological order
13334 of basic blocks in region if necessary.
13335 (sel_redirect_edge_and_branch): Change return type. Return true
13336 if topological order might have been invalidated.
13337 (purge_empty_blocks): Export and move from...
13338 * sel-sched.c (purge_empty_blocks): ... here.
13339 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
13340 (maybe_tidy_empty_bb): Delete prototype.
13341 (purge_empty_blocks): Declare.
13343 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
13345 PR rtl-optimization/42249
13346 * sel-sched.c (try_replace_dest_reg): When chosen register
13347 and original register is the same, do not bail out early, but
13348 still check all original insns for validity of replacing destination
13349 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
13352 2010-01-14 Jakub Jelinek <jakub@redhat.com>
13355 Port from no-undefined-overflow branch:
13356 2009-03-09 Richard Guenther <rguenther@suse.de>
13358 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
13360 2010-01-14 Richard Guenther <rguenther@suse.de>
13363 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
13365 2010-01-14 Ira Rosen <irar@il.ibm.com>
13367 PR tree-optimization/42709
13368 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
13369 as scalar type in creation of constant vector operand.
13371 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13374 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
13375 (check-parallel-%): Match `testsuite' directory component only
13378 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
13380 PR translation/39521
13381 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
13384 2010-01-13 Richard Guenther <rguenther@suse.de>
13386 PR tree-optimization/42730
13387 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
13390 2010-01-13 Steve Ellcey <sje@cup.hp.com>
13393 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
13394 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
13397 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
13399 * config/bfin/libgcc-bfin.ver: Regenerate based on current
13400 libgcc-std.ver. Add entries for ___smulsi3_highpart and
13401 ___umulsi3_highpart.
13403 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
13404 rather than schedule_insns if the pass is enabled.
13406 2010-01-13 Martin Jambor <mjambor@suse.cz>
13408 PR tree-optimization/42704
13409 * tree-sra.c (sra_modify_assign): Do not delete assignments to
13412 2010-01-13 Martin Jambor <mjambor@suse.cz>
13414 PR tree-optimization/42703
13415 * tree-sra.c (analyze_access_subtree): Check that we can build a
13416 reference to the original data within the aggregate.
13418 2010-01-13 Richard Guenther <rguenther@suse.de>
13420 PR tree-optimization/42705
13421 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
13423 2010-01-13 Richard Guenther <rguenther@suse.de>
13425 PR middle-end/42716
13426 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
13428 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13431 * var-tracking.c (values_to_unmark): New variable.
13432 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13433 values_to_unmark vector. Moved body to...
13434 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13435 instead queue it into values_to_unmark vector.
13436 (vt_find_locations): Free values_to_unmark vector.
13438 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
13440 * config/s390/s390.c (override_options): Set
13441 default of max-pending-list-length to 256
13443 2010-01-13 Richard Guenther <rguenther@suse.de>
13446 * tree-pass.h (PROP_gimple_lcx): New.
13447 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
13448 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
13449 before the final cleanup_eh.
13450 (dump_properties): Dump PROP_gimple_lcx.
13451 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
13452 (tree_lower_complex_O0): Remove.
13453 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
13454 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
13455 tree_lower_complex, schedule TODO_update_ssa.
13456 * lto-streamer-out.c (output_function): Stream the functions
13458 * lto-streamer-in.c (input_function): Likewise.
13459 (lto_read_body): Do not override them here.
13461 2010-01-12 Joseph Myers <joseph@codesourcery.com>
13464 * c-typeck.c (build_c_cast): Fold value cast to union type before
13465 wrapping it in a CONSTRUCTOR.
13467 2010-01-12 Jakub Jelinek <jakub@redhat.com>
13469 PR rtl-optimization/42699
13470 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
13473 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13475 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
13476 SUBTARGET_WARN_UNUSED_SPEC): Move ...
13477 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
13478 SUBTARGET_WARN_UNUSED_SPEC): ... here
13479 * config/mips/iris5.h (LIBGCC_SPEC): Define.
13481 2010-01-12 Julian Brown <julian@codesourcery.com>
13483 * config/arm/neon-schedgen.ml (Utils): Don't try to
13484 open missing module.
13485 (find_with_result): New.
13487 2010-01-12 Jakub Jelinek <jakub@redhat.com>
13490 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
13491 sharing when canonicalizing ({lt,ge}u (plus a b) b).
13493 PR tree-optimization/42645
13494 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
13495 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
13496 decl_map, set processing_debug_stmt to -1 and return name without
13499 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
13501 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
13502 binutils version, and reword target configuration description.
13504 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
13506 * config/avr/avr.h (LINKER_NAME): Remove.
13508 2010-01-11 Janis Johnson <janis187@us.ibm.com>
13511 * config/rs6000/rs6000.c (rs6000_override_options): On targets
13512 that support VSX, warn for -mno-altivec if vsx is not disabled,
13515 2010-01-11 Joseph Myers <joseph@codesourcery.com>
13516 Shujing Zhao <pearly.zhao@oracle.com>
13518 PR translation/42469
13519 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
13520 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
13521 character between option name and help text.
13522 * c.opt (imultilib): Likewise.
13524 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
13526 * lto-streamer-out.c (output_unreferenced_globals): Output static
13529 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
13531 PR rtl-optimization/42621
13532 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
13533 optimizing for size.
13534 (duplicate_computed_gotos): Remove now-redundant check.
13536 2010-01-10 Steve Ellcey <sje@cup.hp.com>
13539 * configure.ac: Save and restore LDFLAGS and LIBS
13540 * configure: Regenerate.
13542 2010-01-10 Richard Guenther <rguenther@suse.de>
13544 PR middle-end/42667
13545 * builtins.c (fold_builtin_strlen): Add type argument and
13546 convert the resulting length to it.
13547 (fold_builtin_1): Adjust.
13549 2010-01-09 Jakub Jelinek <jakub@redhat.com>
13551 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
13552 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
13554 (num_insns_constant_wide): Adjust for that change.
13556 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13559 * web.c (union_defs): Add used argument, to combine uses of
13560 uninitialized regs.
13561 (entry_register): Adjust type and tests of used argument.
13562 (web_main): Widen used for new use. Pass it to union_defs.
13563 * df.h (union_defs): Adjust prototype.
13565 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13568 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
13569 uses in new incoming argument. Free body.
13570 (reset_debug_uses_in_loop): New.
13571 (analyze_insn_to_expand_var): Call the latter if the former found
13572 anything. Fix whitespace. Reject invalid dest overlaps before
13573 going through all insns in the loop.
13575 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13578 * haifa-sched.c (dying_use_p): Debug insns don't count.
13580 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13582 PR middle-end/42363
13583 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
13584 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
13585 (verify_gimple_call): Reject LHS in noreturn calls.
13587 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13591 * tree-vect-loop-manip.c (adjust_info): New type.
13592 (adjust_vec): New pointer to vector.
13593 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
13594 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
13595 (slpeel_update_phis_for_duplicate_loop): Use them.
13596 (slpeel_update_phi_nodes_for_guard1): Likewise.
13597 (slpeel_update_phi_nodes_for_guard2): Likewise.
13598 (slpeel_tree_peel_loop_to_edge): Likewise.
13599 (vect_update_ivs_after_vectorizer): Likewise.
13601 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13603 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
13604 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
13606 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
13608 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
13609 bogus uninitialized warning.
13611 2010-01-09 Richard Guenther <rguenther@suse.de>
13613 PR middle-end/42512
13614 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
13615 the evolution is compatible with the initial condition.
13617 2010-01-09 Jakub Jelinek <jakub@redhat.com>
13619 * gcc.c (process_command): Update copyright notice dates.
13620 * gcov.c (print_version): Likewise.
13621 * gcov-dump.c (print_version): Likewise.
13622 * mips-tfile.c (main): Likewise.
13623 * mips-tdump.c (main): Likewise.
13625 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
13628 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
13630 (rotlhi3_8): Delete.
13632 (rotlsi3_8): Delete.
13633 (rotlsi3_16): Delete.
13634 (rotlsi3_24): Delete.
13635 (rotl<mode>3): New.
13636 (*rotw<mode>3): New.
13637 (*rotb<mode>3): New.
13638 * config/avr/avr.c (avr_rotate_bytes): New function.
13639 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
13641 2010-01-08 Steve Ellcey <sje@cup.hp.com>
13644 * configure.ac: Modify -rdynamic check.
13645 * configure: Regenerate.
13647 2010-01-08 DJ Delorie <dj@redhat.com>
13649 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
13650 register popping order.
13652 2010-01-08 Richard Guenther <rguenther@suse.de>
13655 * c.opt (fsigned-char): Also let LTO handle this option.
13656 (funsigned-char): Likewise.
13658 2010-01-07 Richard Guenther <rguenther@suse.de>
13660 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
13661 (gimple_op): Likewise.
13662 (gimple_op_ptr): Likewise.
13663 (gimple_assign_set_lhs): Remove gcc_assert.
13664 (gimple_assign_set_rhs1): Likewise.
13665 (gimple_assign_set_rhs2): Likewise.
13666 (gimple_call_set_lhs): Likewise.
13667 (gimple_call_set_fn): Likewise.
13668 (gimple_call_set_fndecl): Likewise.
13669 (gimple_call_fndecl): Likewise.
13670 (gimple_call_return_type): Likewise.
13671 (gimple_call_set_chain): Likewise.
13672 (gimple_call_num_args): Likewise.
13673 (gimple_call_set_arg): Likewise.
13674 (gimple_cond_set_code): Likewise.
13675 (gimple_cond_set_lhs): Likewise.
13676 (gimple_cond_set_rhs): Likewise.
13677 (gimple_cond_set_true_label): Likewise.
13678 (gimple_cond_set_false_label): Likewise.
13679 (gimple_label_set_label): Likewise.
13680 (gimple_goto_set_dest): Likewise.
13681 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
13682 (gimple_debug_bind_get_value): Likewise.
13683 (gimple_debug_bind_get_value_ptr): Likewise.
13684 (gimple_debug_bind_set_var): Likewise.
13685 (gimple_debug_bind_set_value): Likewise.
13686 (gimple_debug_bind_reset_value): Likewise.
13687 (gimple_debug_bind_has_value_p): Likewise.
13688 (gimple_return_retval_ptr): Remove gcc_assert.
13689 (gimple_return_retval): Likewise.
13690 (gimple_return_set_retval): Likewise.
13691 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
13692 (safe_referenced_var_iterator): Remove.
13693 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
13694 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
13695 (fill_referenced_var_vec): Remove.
13696 (first_readonly_imm_use): Remove redundant gcc_assert.
13697 (phi_arg_index_from_use): Combine gcc_asserts.
13698 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
13699 (first_imm_use_stmt): Remove redundant gcc_assert.
13700 * tree-cfg.c (verify_gimple_call): Verify function and chain
13701 operands. Verify arguments.
13702 (verify_types_in_gimple_stmt): Verify condition code and labels.
13704 2010-01-07 Richard Guenther <rguenther@suse.de>
13706 PR tree-optimization/42641
13707 * sese.c (rename_map_elt_info): Use the SSA name version, do
13710 2010-01-07 Jakub Jelinek <jakub@redhat.com>
13712 PR tree-optimization/42625
13713 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
13714 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
13716 2010-01-07 Duncan Sands <baldrick@free.fr>
13718 * Makefile.in (PLUGIN_HEADERS): Add version.h.
13720 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
13723 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
13724 note itself is not function_invariant_p.
13726 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
13728 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
13729 Do not add the DF_NOTE problem.
13730 * store-motion.c (execute_rtl_store_motion): Likewise.
13732 2010-01-07 Martin Jambor <mjambor@suse.cz>
13734 PR tree-optimization/42157
13735 * tree-sra.c (compare_access_positions): Stabilize sort if both
13736 accesses have integer types, return zero immediately if they are the
13739 2010-01-06 Richard Henderson <rth@redhat.com>
13741 PR middle-end/41883
13742 * haifa-sched.c (add_to_note_list): Merge into ...
13743 (concat_note_lists): ... here, and ...
13744 (unlink_other_notes, rm_other_notes): Merge into...
13745 (remove_notes): ... here. Create REG_SAVE_NOTEs for
13746 NOTE_INSN_EPILOGUE_BEG.
13748 2010-01-06 Richard Guenther <rguenther@suse.de>
13750 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
13751 not inline regular functions into always-inline functions.
13753 2010-01-06 Nick Clifton <nickc@redhat.com>
13755 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
13756 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
13758 (OVERRIDE_OPTIONS): Delete.
13759 (OPTIMIZATION_OPTIONS): Define.
13760 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
13761 * config/rx/rx.c (rx_handle_option): Issue an error message if
13762 -mcpu=rx200 and -fpu are used together.
13763 (rx_set_optimization_options): New function. Issue an error
13764 message if an optimization attribute attempts to reset the FPU/
13765 math optimization pairing.
13766 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
13767 * config/rx/rx.opt: Set the default to 32-bit doubles.
13768 * config/rx/t-rx: Add multilibs for -nofpu option.
13769 * doc/invoke.texi: Update documentation of RX options.
13771 2010-01-06 Richard Guenther <rguenther@suse.de>
13773 * tree-ssa-pre.c (name_to_id): New global.
13774 (alloc_expression_id): Simplify SSA name handling.
13775 (lookup_expression_id): Likewise.
13776 (init_pre): Zero name_to_id.
13777 (fini_pre): Free it.
13779 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
13781 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
13783 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
13786 * config/i386/sse.md (smaxv2di3): New.
13787 (umaxv2di3): Likewise.
13788 (sminv2di3): Likewise.
13789 (uminv2di3): Likewise.
13791 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
13794 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
13795 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
13796 (legitimize_tls_address): Likewise.
13797 (sparc_tls_referenced_p): Likewise.
13798 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
13799 and adjust calls to legitimize_pic_address.
13800 (legitimate_constant_p) Use sparc_tls_referenced_p.
13801 (legitimate_pic_operand_p): Likewise.
13802 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
13803 (sparc_tls_symbol_ref_1): Delete.
13804 (sparc_tls_referenced_p): Make static, recognize specific patterns.
13805 (legitimize_tls_address): Make static, handle CONST patterns.
13806 (legitimize_pic_address): Make static, remove unused parameter and
13807 adjust recursive calls.
13808 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
13809 and adjust call to legitimize_pic_address.
13810 (sparc_output_mi_thunk): Likewise.
13812 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
13813 H.J. Lu <hongjiu.lu@intel.com>
13816 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
13817 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
13818 operands to make them signed.
13821 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13824 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
13825 GTU to GT for V4SI and V2DI.
13827 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
13828 (umin<mode>3): Removed.
13830 (uminv4si3): Likewise.
13832 2010-01-05 Martin Jambor <mjambor@suse.cz>
13834 PR tree-optimization/42462
13835 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
13836 current_function_decl to helper functions and macros.
13838 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13841 * flags.h: Don't include real.h.
13842 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
13843 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
13844 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
13845 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
13846 * dominance.c: Update copyright.
13847 * gimple.c (walk_gimple_op): Remove inline.
13848 * tree-ssa-reassoc.c: Include real.h.
13849 * Makefile.in (FLAGS_H): Remove $(REAL_H).
13850 (tree-ssa-reassoc.o): Depend on $(REAL_H).
13852 2010-01-05 Nick Clifton <nickc@redhat.com>
13854 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
13855 register to push into the stack frame when the accumulator has to
13856 be saved during interrupts.
13858 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
13860 * doc/invoke.texi: Remove the documentation about option
13861 -Wunreachable-code.
13862 * common.opt (Wunreachable-code): Preserved for backward
13864 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
13865 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
13866 the backward compatibility flag section.
13868 2010-01-05 Richard Guenther <rguenther@suse.de>
13870 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
13872 2010-01-05 Jakub Jelinek <jakub@redhat.com>
13875 * cfgexpand.c (expand_one_var): Diagnose too large variables.
13877 PR tree-optimization/42508
13878 * tree-sra.c (convert_callers): Check for recursive call
13879 by comparing cgraph nodes instead of decls.
13880 (modify_function): Call ipa_modify_formal_parameters also
13881 on all same_body aliases.
13883 * cgraphunit.c (cgraph_materialize_all_clones): Compare
13884 cgraph nodes when checking for same_body aliases.
13886 2010-01-05 Richard Guenther <rguenther@suse.de>
13888 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
13889 allocation and lookup.
13890 (get_or_alloc_expr_for_constant): Likewise.
13891 (phi_translate): Sink allocation.
13893 2010-01-04 Richard Guenther <rguenther@suse.de>
13895 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
13896 a new entry only if needed.
13897 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
13898 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
13900 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
13902 (phi_translate): Handle CONSTANTs early.
13904 2010-01-04 Martin Jambor <mjambor@suse.cz>
13906 PR tree-optimization/42398
13907 * tree-sra.c (struct access): Removed flag grp_different_types.
13908 (dump_access): Do not dump the removed flag.
13909 (sort_and_splice_var_accesses): Do not set the removed flag.
13910 (sra_modify_expr): Check for type compatibility directly.
13912 2010-01-04 Martin Jambor <mjambor@suse.cz>
13914 PR tree-optimization/42366
13915 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
13916 edges with variable number of parameters.
13917 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
13918 flag instead of asserting it.
13919 (ipa_read_node_info): Read uses_analysis_done flag.
13921 2010-01-04 Richard Guenther <rguenther@suse.de>
13923 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
13924 iterative_hash_* as intended.
13925 (vn_reference_compute_hash): Likewise. Simplify hashing
13927 (vn_reference_lookup_2): Likewise.
13928 (vn_nary_op_compute_hash): Likewise.
13929 (vn_phi_compute_hash): Likewise.
13930 (expressions_equal_p): Remove strange code.
13931 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
13932 (pre_expr_hash): Likewise. Simplify hashing SSA names.
13933 (bitmap_insert_into_set_1): Take value-id as parameter.
13934 (add_to_value): Pass it.
13935 (bitmap_insert_into_set): Likewise.
13936 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
13938 2010-01-04 Jakub Jelinek <jakub@redhat.com>
13941 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
13942 (do_self_spec): For switches with SWITCH_IGNORE set set also
13943 SWITCH_IGNORE_PERMANENTLY.
13944 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
13947 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
13949 * lto-streamer-out.c (output_unreferenced_globals): Output the full
13950 tree of an unreferenced global var.
13952 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13955 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
13956 GTU to GT for V4SI and V2DI.
13958 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
13959 (umin<mode>3): Removed.
13961 (uminv4si3): Likewise.
13963 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
13966 * collect2.c (main): Turn on trace in collect2 if -v is passed
13969 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
13971 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
13972 description of expression operand.
13974 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
13976 * configure.ac: Add install-html to target_list for Make-hooks.
13977 * configure: Regenerate.
13978 * fortran/Make-lang.in (F95_HTMLFILES): New.
13979 (fortran.html): Use it.
13980 (fortran.install-html): New.
13981 * Makefile.in (install-html): Add lang.install-html.
13982 * java/Make-lang.in (JAVA_HTMLFILES): New.
13983 (java.html): Use it.
13984 (java.install-html): New.
13985 * objc/Make-lang.in (objc.install-html): New.
13986 * objcp/Make-lang.in (obj-c++.install-html): New.
13987 * cp/Make-lang.in (c++.install-html): New.
13988 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
13989 * lto/Make-lang.in (lto.install-html): New.
13991 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
13994 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
13996 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
13998 PR rtl-optimization/41862
13999 * store-motion.c (store_killed_in_insn, compute_store_table,
14000 remove_reachable_equiv_notes, replace_store_insn,
14001 build_store_vectors): Ignore all DEBUG_INSNs.
14003 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
14006 * common.opt: Add dumpdir.
14008 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
14010 (option_map): Add --dumpdir.
14012 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
14014 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
14016 * opts.c (decode_options): Try dump_dir_name first if
14017 dump_base_name isn't an absolute path.
14018 (common_handle_option): Handle OPT_dumpdir.
14020 * toplev.c (dump_dir_name): New.
14021 (print_switch_values): Also ignore -dumpdir.
14023 * toplev.h (dump_dir_name): New.
14025 2010-01-03 Richard Guenther <rguenther@suse.de>
14027 PR tree-optimization/42589
14028 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
14029 double-word expansion of bswap32.
14031 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
14033 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
14034 with BLOCK_FOR_INSN.
14035 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
14036 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
14037 noce_process_if_block): Likewise.
14038 * gcse.c (compute_local_properties, insert_expr_in_table,
14039 insert_set_in_table, canon_list_insert, find_avail_set,
14040 pre_insert_copy_insn): Likewise.
14042 * basic-block.h (BLOCK_NUM): Move from here...
14043 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
14045 2010-01-03 Richard Guenther <rguenther@suse.de>
14047 PR tree-optimization/42438
14048 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
14049 contains_may_not_return_call flag.
14050 (BB_MAY_NOTRETURN): New.
14051 (valid_in_sets): Trapping nary operations are not valid
14052 in blocks that may not return.
14053 (insert_into_preds_of_block): Remove check for trapping expressions.
14054 (compute_avail): Compute also BB_MAY_NOTRETURN.
14056 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
14058 * doc/invoke.texi: Add 2010 to copyright years.
14060 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
14062 * config/sparc/sparc.c: Fix formatting nits.
14064 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14065 Alexander Monakov <amonakov@ispras.ru>
14067 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
14069 2010-01-02 Richard Guenther <rguenther@suse.de>
14071 PR middle-end/42577
14072 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
14073 (simplify_switch_using_ranges): Mark to be removed edges
14076 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14078 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14080 * collect2.c (scan_libraries): Add missing argument in call to
14083 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
14086 * config/alpha/predicates.md (aligned_memory_operand): Return false
14088 (unaligned_memory_operand): Return true for CQImode.
14089 * config/alpha/alpha.c (get_aligned_mem): Assert that location
14090 doesn not cross aligned SImode word boundary.
14092 2010-01-02 Anatoly Sokolov <aesok@post.ru>
14094 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
14096 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
14097 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
14099 2010-01-02 Richard Guenther <rguenther@suse.de>
14102 * toplev.c (compile_file): Emit LTO marker properly. Change
14103 it to __gnu_lto_v1.
14104 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
14106 2010-01-01 Richard Guenther <rguenther@suse.de>
14109 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
14111 2010-01-01 Richard Guenther <rguenther@suse.de>
14114 * c-decl.c (grokdeclarator): For zero-size arrays force
14115 structural equality checks as layout_type does.
14117 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
14119 * builtins.c: Update copyright to 2010.
14121 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
14124 * lto-streamer-out.c (produce_asm): Revert the last change.
14125 (copy_function): Likewise.
14127 * lto-streamer.c (lto_get_section_name): Skip any leading
14130 2010-01-01 Richard Guenther <rguenther@suse.de>
14132 PR middle-end/42559
14133 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
14137 Copyright (C) 2010 Free Software Foundation, Inc.
14139 Copying and distribution of this file, with or without modification,
14140 are permitted in any medium without royalty provided the copyright
14141 notice and this notice are preserved.