1 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
3 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
4 "unused" with attribute "used".
5 (__JCR_END__): Likewise.
6 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
8 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
10 2010-07-14 Richard Guenther <rguenther@suse.de>
12 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13 (maybe_fixup_decls): Likewise.
14 (input_gimple_stmt): Do not fixup anything.
15 * lto-streamer-out.c (output_gimple_stmt): Make sure all
16 non-automatic variable uses are wrapped inside a MEM_REF.
18 2010-07-14 Richard Henderson <rth@redhat.com>
20 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
22 * varasm.c (assemble_variable): Remove early exit for functions;
23 assert that we're given a variable.
25 2010-07-14 Jie Zhang <jie@codesourcery.com>
27 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
28 cortex_a8_default when neon_type is not none.
30 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
32 * lower-subreg.c (subreg_context): New static bitmap.
33 (decompose_multiword_subregs): Allocate and free it.
34 (find_decomposable_subregs): Set a bit in it for a register that
35 occurs in a subreg that changes mode but not size.
36 (can_decompose_p): Test it instead of non_decomposable_context.
38 2010-07-14 Richard Guenther <rguenther@suse.de>
40 PR tree-optimization/44824
41 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
42 is_gimple_mem_ref_addr.
43 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
44 non-decl_address_invariant_p addresses.
46 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
48 * reload.c (find_reloads): Revert code to penalize small register
49 classes that was brought in with the IRA merge.
51 2010-07-14 Richard Guenther <rguenther@suse.de>
53 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
54 as base of ARRAY_REFs.
56 2010-07-14 Richard Guenther <rguenther@suse.de>
59 * tree-pretty-print.c (do_niy): Do not print a newline.
61 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
63 * ira-int.h (struct ira_object): New.
64 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P
66 (struct ira_allocno): Remove members min, max,
67 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
68 conflict_allocnos_num and conflict_vec_p. Add new member object.
69 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
70 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
71 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
72 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
73 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
74 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
75 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
76 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
77 an ira_object_t rather than ira_allocno_t. All uses changed.
78 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
79 contains a vector of ira_object_t; all uses changed.
80 (ira_objects_num): Declare variable.
81 (ira_create_allocno_object): Declare function.
82 (ira_conflict_vector_profitable_p): Adjust prototype.
83 (ira_allocate_conflict_vec): Renamed from
84 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
85 (ira_allocate_object_conflicts): Renamed from
86 ira_allocate_allocno_conflicts; first arg now ira_object_t.
87 (struct ira_object_iterator): New.
88 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
89 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
90 to conflict_vec_p. All uses changed.
91 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
92 Changed to take into account that conflicts are now tracked for
94 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from
95 CONFLICT_ALLOCNO_P. Args changed to accept ira_object_t. All
97 (allocnos_conflict_p): New static function.
98 (collected_conflict_objects): Renamed from collected_allocno_objects;
99 now a vector of ira_object_t. All uses changed.
100 (build_conflict_bit_table): Changed to take into account that
101 conflicts are now tracked for objects.
102 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
103 (print_allocno_conflicts, ira_build_conflicts): Likewise.
104 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
105 setup_allocno_left_conflicts_size, allocno_reload_assign,
106 fast_allocation): Likewise.
107 * ira-lives.c (make_hard_regno_born, make_allocno_born)
108 process_single_reg_class_operands, process_bb_node_lives): Likewise.
109 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
111 * ira-build.c (ira_objects_num): New variable.
112 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
113 contains a vector of ira_object_t; all uses changed.
114 (ira_object_id_map_vec): Corresponding change.
115 (object_pool): New static variable.
116 (initiate_allocnos): Initialize it.
117 (finish_allocnos): Free it.
118 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
120 (ira_create_allocno): Don't set members that were removed.
121 (ira_set_allocno_cover_class): Don't change conflict hard regs.
122 (merge_hard_reg_conflicts): Changed to take into account that
123 conflicts are now tracked for objects.
124 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
125 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
126 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
127 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
128 setup_min_max_conflict_allocno_ids, ): Likewise.
129 ((add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
130 to ira_object_t; all callers changed.
131 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
132 to ira_object_t, all callers changed.
133 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
134 to ira_object_t, all callers changed.
135 (conflict_check, curr_conflict_check_tick): Renamed from
136 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
138 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
139 arg changed to ira_object_t, all callers changed.
140 (create_cap_allocno): Call ira_create_allocno_object.
141 (finish_allocno): Free the corresponding object.
142 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
143 callers changed. Adjusted for dealing with objects.
144 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
145 dealing with objects.
146 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
148 * ira-int.h (struct live_range): Rename allocno member to object and change
149 type to ira_object_t.
150 (struct ira_object): New member live_ranges.
151 (struct ira_allocno): Remove member live_ranges.
152 (ALLOCNO_LIVE_RANGES): Remove.
153 (OBJECT_LIVE_RANGES): New macro.
154 (ira_create_live_range, ira_copy_live_range_list,
155 ira_merge_live_range_list, ira_live_ranges_intersect_p,
156 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
157 * ira-build.c (ira_create_object): Initialize live ranges here.
158 (ira_create_allocno): Not here.
159 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
160 changed to ira_object_t, all callers changed.
161 (copy_live_range): Rename from copy_allocno_live_range, all callers
163 (ira_copy_live_range_list): Rename from ira_copy_allocno_live_range_list,
165 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
167 (ira_live_ranges_intersect_p): Rename from
168 ira_allocno_live_ranges_intersect_p, all callers changed.
169 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
171 (ira_finish_live_range_list): Rename from
172 ira_finish_allocno_live_range_list, all callers changed.
173 (change_object_in_range_list): Rename from change_allocno_in_range_list,
174 last arg changed to ira_object_t, all callers changed.
175 (finish_allocno): Changed to expect live ranges in the allocno's object.
176 (move_allocno_live_ranges, copy_allocno_live_ranges,
177 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
178 ira_flattening, ira_build): Likewise.
179 * ira-color.c (allocnos_have_intersected_live_ranges_p,
180 slot_coalesced_allocno_live_ranges_intersect,
181 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
182 * ira-conflicts.c (build_conflict_bit_table): Likewise.
183 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
184 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
185 make_allocno_dead, create_start_finish_chains,
186 remove_some_program_points_and_update_live_ranges,
187 ira_debug_live_range_list): Likewise.
189 * ira-int.h (ira_object_conflict_iterator): Rename from
190 ira_allocno_conflict_iterator.
191 (ira_object_conflict_iter_init): Rename from
192 ira_allocno_conflict_iter_init, second arg changed to
193 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
194 FOR_EACH_ALLOCNO_CONFLICT.
195 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
196 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
197 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
198 * ira-conflicts.c (print_allocno_conflicts): Likewise.
200 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
203 * tree-dump.c (dump_options): Add enumerate_locals entry.
204 Add TDF_NOID exclusion to all entry.
205 * tree-dump.h (dump_enumerated_decls): Declare.
206 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
207 Don't display type uid.
208 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
209 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
210 * tree-ssa-live.c: Include gimple.h.
211 (numbered_tree_d): New struct.
212 (numbered_tree): New typedef.
213 (DEF_VEC_O (numbered_tree): New.
214 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
215 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
216 (dump_enumerated_decls): Likewise.
217 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
218 debug info and flag_dump_final_insns, call dump_enumerated_decls.
219 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
220 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
222 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
224 * expmed.h (MAX_BITS_PER_WORD): Move to...
225 * defaults.h (MAX_BITS_PER_WORD): ...here.
227 2010-07-13 DJ Delorie <dj@redhat.com>
229 * config/h8300/h8300.c (h8300_init_once): Default to
230 -fstrict_volatile_bitfields.
232 * config/sh/sh.c (sh_override_options): Default to
233 -fstrict_volatile_bitfields.
235 * config/rx/rx.c (rx_option_override): New.
237 * config/m32c/m32c.c (m32c_override_options): Default to
238 -fstrict_volatile_bitfields.
240 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
242 * tree.h (build_function_call_expr): Delete.
243 (build_call_expr_loc_array): New function.
244 (build_call_expr_loc_vec): New function.
245 * tree-flow.h (struct omp_region): Change type of ws_args field
247 * builtins.c (build_function_call_expr): Delete.
248 (build_call_expr_loc_array): New function.
249 (build_call_expr_loc): Call it. Use XALLOCAVEC.
250 (build_call_expr): Likewise.
251 (build_call_expr_loc_vec): New function.
252 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
253 build_function_call_expr.
254 * expr.c (emutls_var_address): Likewise.
255 * varasm.c (emutls_common_1): Likewise.
256 * omp-low.c (expand_omp_atomic_mutex): Likewise.
257 (expand_omp_taskreg): Adjust for new type of region->ws_args.
258 (get_ws_args_for): Return a VEC instead of a tree.
259 (expand_parallel_call): Call build_call_expr_loc_vec instead of
260 build_function_call_expr.
261 * stor-layout.c (self_referential_size): Likewise.
263 2010-07-13 Jakub Jelinek <jakub@redhat.com>
266 * recog.c (constrain_operands): Allow side-effects in memory
267 operands if either < or > constraint is used, rather than if
268 both < and > is used.
270 2010-07-13 Richard Guenther <rguenther@suse.de>
273 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
274 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
277 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
280 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
282 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
283 * config/sh/sh.md (symGOT_load): Likewise.
284 (symDTPOFF2reg): Likewise.
285 (symTPOFF2reg): Likewise.
287 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
289 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
290 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
292 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
296 Find ucontext_t * on Solaris 11.
297 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
298 Handle new Solaris 11 __sighndlr patterns.
300 2010-07-13 Jakub Jelinek <jakub@redhat.com>
303 * vec.h (VEC_block_remove): Fix comment.
304 * tree-ssa-live.c (remove_unused_locals): Don't use
305 VEC_unordered_remove on local_decls, instead replace a single
306 vector element in each iteration if at least one element had
307 to be removed and VEC_truncate at the end.
308 * omp-low.c (expand_omp_taskreg): Likewise.
310 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
312 * c-decl.c (finish_function): Fix typo in comment.
314 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
317 * postreload.c (move2add_use_add3_insn): Silence gcc warning
320 2010-07-12 Jakub Jelinek <jakub@redhat.com>
322 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
323 (simplify_stmt_using_ranges): Use it.
325 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
327 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
328 member. Do not mark as GTY(()).
329 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
330 (spu_builtin_decls): New static variable.
331 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
332 (spu_init_builtins): Likewise.
333 (spu_builtin_mul_widen_even): Likewise.
334 (spu_builtin_mul_widen_odd): Likewise.
335 (spu_builtin_mask_for_load): Likewise.
336 (spu_builtin_vec_perm): Likewise.
337 * config/spu/spu-c.c: Include "target.h".
338 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
339 of using spu_builtins[].fndecl.
341 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
343 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
344 imply -minterlink-mips16.
346 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
348 * config/mips/mips.h (mips16_globals): Declare.
349 (SWITCHABLE_TARGET): Define.
350 * config/mips/mips.c: Include target-globals.h.
351 (mips16_globals): New variable.
352 (mips_set_mips16_mode): Use save_target_globals and
353 restore_target_globals instead of target_reinit.
355 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
357 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
358 to say that the function can be called more than once.
359 * target-globals.c (save_target_globals): Call init_reg_sets.
361 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
363 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
364 * bb-reorder.h: New file.
365 * bb-reorder.c (default_target_bb_reorder): New variable.
366 (this_target_bb_reorder): New conditional variable.
367 (uncond_jump_length): Redefine as a macro.
368 * target-globals.h (this_target_bb_reorder): Declare.
369 (target_globals): Add a bb_reorder field.
370 (restore_target_globals): Copy the bb_reorder field to
371 this_target_bb-reorder.
372 * target-globals.c: Include bb-reorder.h.
373 (default_target_globals): Initialize the bb_reorder field.
374 (save_target_globals): Likewise.
376 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
378 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
380 * gcse.c: Include gcse.h.
381 (default_target_gcse): New variable.
382 (this_target_gcse): New conditional variable.
383 (can_copy): Redefine as a macro.
384 (can_copy_init_p): New macro.
385 (can_copy_p): Remove can_copy_init_p.
386 * target-globals.h (this_target_gcse): Declare.
387 (target_globals): Add a gcse field.
388 (restore_target_globals): Copy the gcse field to
390 * target-globals.c: Include gcse.h.
391 (default_target_globals): Initialize the gcse field.
392 (save_target_globals): Likewise.
394 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
396 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
397 and x_ira_prohibited_mode_move_regs_initialized_p.
398 (ira_prohibited_mode_move_regs): Redefine as a macro.
399 * ira.c (ira_prohibited_mode_move_regs): Delete.
400 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
402 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
404 * reload.h (target_reload): Add x_cached_reg_save_code and
405 x_cached_reg_restore_code.
406 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
409 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
411 * Makefile.in (target-globals.o): Depend on builtins.h.
412 * builtins.h: New file.
413 * builtins.c: Include builtins.h.
414 (default_target_builtins): New variable.
415 (this_target_builtins): New conditional variable.
416 (apply_args_mode, apply_result_mode): Redefine as macros.
417 * target-globals.h (this_target_builtins): Declare.
418 (target_globals): Add a builtins field.
419 (restore_target_globals): Copy the builtins field to
420 this_target_builtins.
421 * target-globals.c: Include builtins.h.
422 (default_target_globals): Initialize the builtins field.
423 (save_target_globals): Likewise.
425 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
427 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
428 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
430 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
431 (alg_hash, alg_hash_used_p): New macros.
432 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
433 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
434 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
436 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
438 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
439 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
440 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
441 (this_op_costs, costs_classes): Redefine as macros.
442 (record_reg_classes): Don't take op_costs as a parameter.
443 (record_operand_costs): Likewise. Update calls to record_reg_classes.
444 (scan_one_insn): Update call to record_operand_costs.
446 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
448 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
449 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
450 (target_ira_int): New structure.
451 (default_target_ira_int): Declare.
452 (this_target_ira_int): Declare as a variable or define as a macro.
453 (ira_reg_mode_hard_regset, ira_register_move_cost)
454 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
455 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
456 (prohibited_class_mode_regs, ira_important_classes_num)
457 (ira_important_classes, ira_reg_class_intersect)
458 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
459 (ira_reg_class_union): Redefine as macros.
460 * ira.h (target_ira): New structure.
461 (default_target_ira): Declare.
462 (this_target_ira): Declare as a variable or define as a macro.
463 (ira_available_class_regs, ira_hard_regno_cover_class)
464 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
465 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
466 (ira_class_hard_regs_num): Redefine as macros.
467 * ira.c (default_target_ira, default_target_ira_int): New variables.
468 (this_target_ira, this_target_ira_int): New conditional variables.
469 (ira_reg_mode_hard_regset, ira_memory_move_cost)
470 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
471 (ira_class_subset_p): Delete.
472 (no_unit_alloc_regs): Redefine as a macro.
473 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
474 (ira_class_hard_regs_num, ira_class_hard_reg_index)
475 (ira_available_class_regs): Delete.
476 (alloc_reg_class_subclasses): Redefine as a macro.
477 (ira_reg_class_cover_size, ira_reg_class_cover)
478 (ira_important_classes_num, ira_important_classes)
479 (ira_important_class_nums, ira_class_translate): Delete.
480 (cover_class_order): Document the variable's lifetime.
481 (reorder_important_classes): Don't set ira_important_class_nums.
482 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
483 (ira_reg_class_super_classes, ira_reg_class_union)
484 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
486 (setup_reg_class_nregs): Don't set ira_max_regs.
487 (prohibited_class_mode_regs): Delete.
488 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
489 (target_globals): Add ira and ira_int fields.
490 (restore_target_globals): Copy the ira field to this_target_ira
491 and the ira_int field to this_target_ira_int.
492 * target-globals.c: Include ira-int.h.
493 (default_target_globals): Initialize the ira and ira_int fields.
494 (save_target_globals): Likewise.
496 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
498 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
499 * cfgloop.h (target_cfgloop): New structure.
500 (default_target_cfgloop): Declare.
501 (this_target_cfgloop): Declare as a variable or define as a macro.
502 (target_avail_regs, target_clobbered_regs, target_res_regs)
503 (target_reg_cost, target_spill_cost): Redefine as macros.
504 * cfgloopanal.c (default_target_cfgloop): New variable.
505 (this_target_cfgloop): New conditional variable.
506 (target_avail_regs, target_clobbered_regs, target_res_regs)
507 (target_reg_cost, target_spill_cost): Delete.
508 * target-globals.h (this_target_cfgloop): Declare.
509 (target_globals): Add a cfgloop field.
510 (restore_target_globals): Copy the cfgloop field to
512 * target-globals.c: Include cfgloop.h.
513 (default_target_globals): Initialize the cfgloop field.
514 (save_target_globals): Likewise.
516 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
518 * regs.h (target_regs): Add x_direct_load, x_direct_store and
519 x_float_extend_from_mem.
520 (direct_load, direct_store, float_extend_from_mem): New macros.
521 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
523 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
525 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
526 (target-globals.o): Depend on $(LIBFUNCS_H).
527 * libfuncs.h: Include hashtab.h.
528 (libfunc_entry): Moved from optabs.c.
529 (target_libfuncs): New structure.
530 (default_target_libfuncs): Declare.
531 (this_target_libfuncs): Declare as a variable or define as a macro.
532 (libfunc_table): Redefine as a macro.
533 * optabs.c (default_target_libfuncs): New variable.
534 (this_target_libfuncs): New conditional variable.
535 (libfunc_table): Delete.
536 (libfunc_entry): Moved to optabs.h.
537 (libfunc_hash): Redefine as a macro.
538 (hash_libfunc, eq_libfunc): Fix comments.
539 (init_optabs): Use libfunc_hash to detect cases where the function
540 has already been called. Clear the hash table instead of
542 * target-globals.h (this_target_libfuncs): Declare.
543 (target_globals): Add a libfuncs field.
544 (restore_target_globals): Copy the libfuncs field to
545 this_target_libfuncs.
546 * target-globals.c: Include libfuncs.h.
547 (default_target_globals): Initialize the libfuncs field.
548 (save_target_globals): Likewise.
550 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
552 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
553 in all dependency lists.
555 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
557 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
558 * optabs.h (target_optabs): New structure.
559 (default_target_optabs): Declare.
560 (this_target_optabs): Declare as a variable or define as a macro.
561 (optab_table, convert_optab_table, direct_optab_table): Redefine
563 * optabs.c (default_target_optabs): New variable.
564 (this_target_optabs): New conditional variable.
565 (optab_table, convert_optab_table, direct_optab_table): Delete.
566 * target-globals.h (this_target_optabs): Declare.
567 (target_globals): Add a optabs field.
568 (restore_target_globals): Copy the optabs field to
570 * target-globals.c: Include expr.h and optabs.h.
571 (default_target_globals): Initialize the optabs field.
572 (save_target_globals): Likewise.
574 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
576 * flags.h (target_flagstate): Add x_flag_excess_precision.
577 (flag_excess_precision): Redefine as a macro.
578 * toplev.c (flag_excess_precision): Delete.
580 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
582 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
583 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
584 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
585 (no_caller_save_reg_set): Redefine as a macro.
586 * reload.h (target_reload): Add x_caller_save_initialized_p and
588 (caller_save_initialized_p): Redefine as a macro.
589 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
590 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
591 (regno_save_mode): Redefine as a macro.
593 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
595 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
596 * expmed.h: New file.
597 * expmed.c (default_target_costs): New variable.
598 (this_target_costs): New conditional variable.
599 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
600 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
601 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
602 * target-globals.h (this_target_expmed): Declare.
603 (target_globals): Add a expmed field.
604 (restore_target_globals): Copy the expmed field to
606 * target-globals.c: Include expmed.h.
607 (default_target_globals): Initialize the expmed field.
608 (save_target_globals): Likewise.
610 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
612 * Makefile.in (target-globals.o): Depend on reload.h.
613 * reload.h (target_reload): New structure.
614 (default_target_reload): Declare.
615 (this_target_reload): Declare as a variable or define as a macro.
616 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
617 * reload1.c (default_target_reload): New variable
618 (this_target_reload): New conditional variable.
619 (indirect_symref_ok, double_reg_address_ok): Delete.
620 (spill_indirect_levels): Redefine as a macro.
621 * target-globals.h (this_target_reload): Declare.
622 (target_globals): Add a reload field.
623 (restore_target_globals): Copy the reload field to
625 * target-globals.c: Include hard-reg-set.h.
626 (default_target_globals): Initialize the reload field.
627 (save_target_globals): Likewise.
629 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
631 * rtl.h (target_rtl): Add x_static_reg_base_value.
632 * alias.c (static_reg_base_value): Redefine as a macro.
634 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
636 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
637 (GTFILES): Remove reginfo.c.
638 * rtl.h (target_rtl): Add x_top_of_stack.
639 (top_of_stack): New macro.
640 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
641 (top_of_stack): Delete.
643 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
645 * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
646 x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
647 x_last_mode_for_init_move_cost.
648 (have_regs_of_mode, contains_reg_of_mode, move_cost)
649 (may_move_in_cost, may_move_out_cost): Redefine as macros.
650 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
651 (may_move_in_cost, may_move_out_cost): Delete.
652 (last_mode_for_init_move_cost): Redefine as a macro.
654 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
656 * hard-reg-set.h (target_hard_regs): New structure.
657 (default_target_hard_regs): Declare.
658 (this_target_hard_regs): Declare as a variable or define as a macro.
659 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
660 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
661 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
662 (reg_class_size, reg_class_subclasses, reg_class_subunion)
663 (reg_class_superunion, reg_names): Redefine as macros.
664 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
665 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
666 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
667 (reg_class_contents, reg_class_size, reg_class_subclasses)
668 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
669 (default_target_hard_regs): New variable
670 (this_target_hard_regs, initial_call_really_used_regs)
671 (initial_reg_alloc_order): New conditional variables.
672 (initial_reg_names): New variable.
673 (init_reg_sets): Assert that initial_call_really_used_regs,
674 initial_reg_alloc_order and initial_reg_names
675 are all the same size as their variable counterparts. Use them to
676 initialize those counterparts.
677 * target-globals.h (this_target_hard_regs): Declare.
678 (target_globals): Add a hard_regs field.
679 (restore_target_globals): Copy the hard_regs field to
680 this_target_hard_regs.
681 * target-globals.c: Include hard-reg-set.h.
682 (default_target_globals): Initialize the hard_regs field.
683 (save_target_globals): Likewise.
685 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
687 * Makefile.in (target-globals.o): Depend on $(RTL_H).
688 * rtl.h: (target_rtl): New structure.
689 (default_target_rtl): Declare.
690 (this_target_rtl): Declare as a variable or define as a macro.
691 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
693 * emit-rtl.c (default_target_rtl): New variable.
694 (this_target_rtl): New conditional variable.
695 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
696 (return_address_pointer_rtx): Delete.
697 (initial_regno_reg_rtx): New macro.
698 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
699 (init_emit_regs): Likewise.
700 * target-globals.h (this_target_rtl): Declare.
701 (target_globals): Add a rtl field.
702 (restore_target_globals): Copy the rtl field to this_target_rtl.
703 * target-globals.c: Include rtl.h.
704 (default_target_globals): Initialize the rtl field.
705 (save_target_globals): Likewise.
707 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
709 * Makefile.in (target-globals.o): Depend on $(REGS_H).
710 * regs.h (target_reg_modes): New structure.
711 (default_target_reg_modes): Declare.
712 (this_target_reg_modes): Declare as a variable or define as a macro.
713 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
714 * reginfo.c (default_target_reg_modes): New variable.
715 (this_target_reg_modes): New conditional variable.
716 (hard_regno_nregs, reg_raw_mode): Delete.
717 * target-globals.h (this_target_regs): Declare.
718 (target_globals): Add a regs field.
719 (restore_target_globals): Copy the regs field to this_target_regs.
720 * target-globals.c: Include regs.h.
721 (default_target_globals): Initialize the regs field.
722 (save_target_globals): Likewise.
724 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
726 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
727 * doc/tm.texi: Regenerate.
728 * Makefile.in (OBJS-common): Add target-globals.o.
729 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
730 and target-globals.h.
731 (target-globals.o): New rule.
732 (GTFILES): Include $(srcdir)/target-globals.h.
733 * defaults.h (SWITCHABLE_TARGET): Define.
734 * gengtype.c (open_base_files): Add target-globals.h to the
736 * target-globals.h: New file.
737 * target-globals.c: Likewise.
739 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
740 * flags.h (target_flag_state): New structure.
741 (default_target_flag_state): Declare.
742 (this_target_flag_state): Declare as a variable or define as a macro.
743 (align_loops_log): Redefine as a macro.
744 (align_loops_max_skip, align_jumps_log): Likewise.
745 (align_jumps_max_skip, align_labels_log): Likewise.
746 (align_labels_max_skip, align_functions_log): Likewise.
747 * toplev.c (default_target_flag_state): New variable.
748 (this_target_flag_state): New conditional variable.
749 (align_loops_log): Delete.
750 (align_loops_max_skip, align_jumps_log): Likewise.
751 (align_jumps_max_skip, align_labels_log): Likewise.
752 (align_labels_max_skip, align_functions_log): Likewise.
753 * target-globals.h (this_target_flag_state): Declare.
754 (target_globals): Add a flag_state field.
755 (restore_target_globals): Copy the flag_state field to
756 this_target_flag_state.
757 * target-globals.c: Include flags.h.
758 (default_target_globals): Initialize the flag_state field.
759 (save_target_globals): Likewise.
761 2010-07-12 Jie Zhang <jie@codesourcery.com>
763 * postreload.c (reg_symbol_ref[]): New.
764 (move2add_use_add2_insn): New.
765 (move2add_use_add3_insn): New.
766 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
767 (move2add_note_store): Likewise.
769 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
771 PR rtl-optimization/44752
772 * genautomata.c (main): Don't emit an empty file even if there
775 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
777 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
778 ix86_solaris_return_in_memory.
779 * config/i386-protos.h: Reflect this.
780 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
781 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
783 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
785 2010-07-12 Jie Zhang <jie@codesourcery.com>
787 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
788 align the stack when it's going to be saved.
790 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793 * config/host-solaris.c (mmap_fixed): New function.
794 (sol_gt_pch_get_address): Use it.
795 (sol_gt_pch_use_address): Likewise.
797 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
799 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
800 pentiumpro on Solaris 8 and 9/x86.
801 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
802 Document SSE/SSE2 support.
803 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
805 2010-07-12 Andi Kleen <ak@linux.intel.com>
807 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
808 instead of gcc_assert to print better error message for multiple
811 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
813 * config/i386/i386.c (ix86_asm_output_function_label): Change format
814 string placeholder from 0x%x to %#x.
815 (ix86_code_end): Use putc to output '\n'.
816 (ix86_print_operand) <case ';'>: Use putc to output ';'.
818 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
820 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
821 in directive -export.
823 2010-07-10 Anatoly Sokolov <aesok@post.ru>
825 * reginfo.h (reg_classes_intersect_p): Change arguments type to
827 * rtl.h (reg_classes_intersect_p): Adjust prototype.
829 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
831 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
832 rs6000_memory_move_cost): Remove
833 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
834 TARGET_MEMORY_MOVE_COST): Define.
835 (rs6000_register_move_cost): Make static. Change arguments type from
836 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
837 (rs6000_memory_move_cost): Make static. Change arguments type from
838 'enum reg_class' to reg_class_t.
840 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
843 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
845 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
847 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
848 * cfgloopanal.c (target_clobbered_regs): Define.
849 (init_set_costs): Initialize target_clobbered_regs.
850 (estimate_reg_pressure_cost): Add call_p argument. When true,
851 adjust the number of available registers to exclude the
852 call-clobbered registers.
853 * cfgloop.h (target_clobbered_regs): Declare.
854 (estimate_reg_pressure_cost): Adjust declaration.
855 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
856 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
857 (determine_set_costs): Dump target_clobbered_regs.
858 (loop_body_includes_call): New function.
859 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
860 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
862 (best_gain_for_invariant): Likewise.
863 (find_invariants_to_move): Likewise.
864 (move_single_loop_invariants): Likewise, using already-computed
867 2010-07-10 Richard Guenther <rguenther@suse.de>
868 Joern Rennecke <joern.rennecke@embecosm.com>
871 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
872 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
873 unless they have DECL_IGNORED_P set.
875 2010-07-10 Richard Guenther <rguenther@suse.de>
878 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
880 (gimple_types_compatible_p): Similar to pointed-to
881 types allow and merge a mix of complete and incomplete aggregate.
882 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
883 (iterative_hash_gimple_type): Adjust for that.
885 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
887 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
889 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
892 * config/darwin.c (output_objc_section_asm_op): Save and restore
893 section when outputting ObjC section list.
895 2010-07-09 Jan Hubicka <jh@suse.cz>
897 * lto-streamer-out.c (produce_symtab): Do not write alias
898 cgraph/varpool nodes.
900 2010-07-09 Jan Hubicka <jh@suse.cz>
902 * tree-inline.c (declare_return_variable): Fix ICE while
903 inlining DECL_BY_VALUE function not in SSA form
905 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
907 PR tree-optimization/44576
908 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
909 New. Pull out from is_loop_prefetching_profitable to implement
910 the trip count to ahead ratio heuristic.
911 (mem_ref_count_reasonable_p): New. Pull out from
912 is_loop_prefetching_profitable to implement the instruction to
913 memory reference ratio heuristic. Also consider not reasonable if
914 the memory reference count is above a threshold (to avoid
915 explosive compilation time.
916 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
917 is_loop_prefetching_profitable to implement the instruction to
918 prefetch ratio heuristic.
919 (is_loop_prefetching_profitable): Removed.
920 (loop_prefetch_arrays): Distribute the cost analysis across the
921 function to allow early exit of the prefetch analysis.
922 is_loop_prefetching_profitable is splitted into three functions,
923 with each one called as early as possible.
924 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
925 number of memory references in a loop is considered too many.
927 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
929 * reload.c (find_reloads): Don't clear badop if we have a winreg
930 alternative, but not win, and the class only has fixed regs.
931 * hard-reg-set.h (class_only_fixed_regs): Declare.
932 * reginfo.c (class_only_fixed_regs): New array.
933 (init_reg_sets_1): Initialize it.
934 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
935 discourage alternatives using the stack pointer.
937 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
939 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
941 * config/arm/arm.md (cbranchqi4): Fix array size.
942 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
945 2010-07-09 Richard Guenther <rguenther@suse.de>
947 * gimple.c (struct type_fixup_s): New struct and VEC type.
948 (gimple_register_type_fixups): New static global.
949 (gimple_queue_type_fixup): New function.
950 (gimple_types_compatible_p): Queue type fixups instead of
952 (gimple_register_type): Apply queued fixups for the
953 canonical type. Empty the type fixup queue.
955 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
957 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
958 * configure: Regenerate.
961 2010-07-09 Jakub Jelinek <jakub@redhat.com>
962 Denys Vlasenko <dvlasenk@redhat.com>
963 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
965 PR tree-optimization/28632
966 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
967 (extract_range_from_binary_expr): Further optimize
968 BIT_AND_EXPR and BIT_IOR_EXPR.
970 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
972 * tree-if-conv.c (fold_or_predicates): New.
973 (add_to_predicate_list): Call it.
975 2010-07-09 Richard Guenther <rguenther@suse.de>
978 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
979 if base is a pointer.
980 * tree-cfg.c (verify_expr): Update MEM_REF checking.
982 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
985 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
986 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
987 builtin mask for load/store builtins.
989 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
991 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
993 * configure: Regenerate.
994 * config/i386/i386.c (ix86_print_operand) <case ';'>:
997 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
999 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
1001 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
1003 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
1005 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
1007 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
1009 * config/picochip/picochip.md (commsTestPort): Emit more
1010 efficient sequence for tstport instruction.
1012 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
1014 * config/i386/i386.c (ix86_veclib_handler): Make static.
1016 2010-07-09 Richard Guenther <rguenther@suse.de>
1018 PR tree-optimization/44852
1019 * tree-ssa-alias.c: Include toplev.h for exact_log2.
1020 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
1022 (indirect_refs_may_alias_p): Likewise.
1023 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
1025 2010-07-09 Richard Guenther <rguenther@suse.de>
1027 PR tree-optimization/44882
1028 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
1030 (vectorizable_load): Likewise.
1032 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
1035 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
1036 All callers changed.
1037 Handle the case when we're called for the epilogue.
1038 (thumb_unexpanded_epilogue): Use it.
1039 (thumb1_expand_epilogue): Likewise.
1041 2010-07-09 Jakub Jelinek <jakub@redhat.com>
1043 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
1044 both ranges are range_int_cst_p with non-negative minimum,
1045 try harder to derive smaller range.
1047 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1049 * genrecog.c: Include diagnostic-core.h before toplev.h.
1050 * genoutput.c: Likewise.
1051 * genextract.c: Likewise.
1052 * genautomata.c: Likewise.
1053 * genemit.c: Likewise.
1054 * genpeep.c: Likewise.
1055 * genattrtab.c: Likewise.
1056 * genconditions.c: Likewise.
1057 * genpreds.c: Likewise.
1059 2010-07-08 Andi Kleen <ak@linux.intel.com>
1061 * lto-section-in.c (lto_section_name): Add missing comma.
1063 2010-07-08 Anatoly Sokolov <aesok@post.ru>
1065 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
1066 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
1067 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
1068 (ia64_override_options): Rename to...
1069 (ia64_option_override): ... this one. Make static.
1071 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1074 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
1075 pointed-to type of the offset in a MEM_REF to compute the alignment.
1077 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
1079 * final.c (final_scan_insn): Replace
1080 TARGET_UNWIND_INFO macro check by unwind_emit
1082 * targhooks.c (default_unwind_emit): Removed.
1083 * targhooks.h (default_unwind_emit): Likewise.
1084 * target.def (unwind_emit): Set default value to NULL.
1086 * config/i386/i386-protos.h (ix86_asm_output_function_label):
1088 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
1089 for NULL fntype argument and allow 64-bit targets.
1090 (ix86_asm_output_function_label): New function.
1091 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
1092 (ix86_handle_fndecl_attribute): Likewise.
1093 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
1094 * doc/doc/tm.texi: Regenerated.
1095 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
1096 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
1097 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
1098 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
1099 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1100 * config/elfos.h: Likewise.
1101 * config/i386/cygming.h: Likewise.
1102 * config/netbsd-aout.h: Likewise.
1103 * config/openbsd.h: Likewise.
1104 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
1105 by ix86_asm_output_function_label function call.
1106 * varasm.c (assemble_start_function): Use
1107 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
1109 2010-07-08 Jan Hubicka <jh@suse.cz>
1111 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
1113 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
1115 * ipa-cp.c (ipcp_estimate_growth): Use it.
1116 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
1119 2010-07-08 Jan Hubicka <jh@suse.cz>
1121 * tree-inline.c (declare_return_variable): Allocate annotation for new
1124 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1126 PR tree-optimization/44710
1127 * tree-if-conv.c (parse_predicate): New.
1128 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
1129 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
1131 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
1133 * common.opt (ftree-loop-if-convert): New flag.
1134 * doc/invoke.texi (ftree-loop-if-convert): Documented.
1135 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
1136 when flag_tree_loop_if_convert is set.
1138 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
1140 * config/i386/i386.c: Use short syntax for function calls
1141 through function pointers.
1142 * config/i386/i386.md: Ditto.
1144 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
1148 2010-07-08 Richard Guenther <rguenther@suse.de>
1150 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
1151 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
1153 2010-07-08 Jakub Jelinek <jakub@redhat.com>
1155 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
1156 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
1157 (loc_list_from_tree): Likewise.
1158 (output_loc_operands): Handle outputting DW_OP_const[48]u
1159 with loc->dtprel set.
1160 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
1162 2010-07-08 Jan Hubicka <jh@suse.cz>
1164 * ipa.c: Include pointer-set.h
1165 (cgraph_externally_visible_p): New attribute ALIASED;
1166 when in LTO, hidden symbols are local unless they are aliased.
1167 (function_and_variable_visibility): Compute aliased nodes;
1168 handle LTO and hidden symbol on functions and vars.
1169 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
1170 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
1172 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1174 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1175 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1176 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1177 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1178 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1179 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
1180 (ix86_gen_probe_stack_range): Likewise.
1181 (override_options): Set them.
1182 (ix86_target_stack_probe): New function.
1183 (ix86_compute_frame_layout): Force use of push instructions to
1184 save registers if stack checking with probes is enabled.
1185 (get_scratch_register_on_entry): New function.
1186 (release_scratch_register_on_entry): Likewise.
1187 (ix86_adjust_stack_and_probe): Likewise.
1188 (output_adjust_stack_and_probe): Likewise.
1189 (ix86_emit_probe_stack_range): Likewise.
1190 (output_probe_stack_range): Likewise.
1191 (ix86_expand_prologue): Emit stack checking code if static built-in
1192 stack checking is enabled.
1193 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
1194 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
1195 (output_adjust_stack_and_probe): Likewise.
1196 (output_probe_stack_range): Likewise.
1197 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1198 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
1200 (allocate_stack_worker_64): Likewise.
1201 (allocate_stack): Likewise.
1202 (adjust_stack_and_probe): New insn.
1203 (probe_stack_range): Likewise.
1205 2010-07-08 Richard Guenther <rguenther@suse.de>
1207 PR tree-optimization/44831
1208 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
1209 a MEM_REF preserving TBAA info of the original dereference.
1210 Dereference the original pointer if the address is not invariant.
1211 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
1212 at least one invariant address that we are going to dereference.
1214 2010-07-08 Richard Guenther <rguenther@suse.de>
1216 PR tree-optimization/44861
1217 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
1218 information when building MEM_REFs.
1219 (vectorizable_load): Likewise.
1220 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
1222 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1224 * config/sol2-c.c: Do not include diagnostic-core.h.
1226 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1229 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
1230 with respect to current_function_decl. Pass decl of the function.
1231 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
1232 * ipa-inline.c (compute_inline_parameters): Pass decl to
1233 estimated_stack_frame_size.
1235 2010-07-08 Richard Guenther <rguenther@suse.de>
1237 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
1239 (valueize_refs): Call it.
1241 2010-07-08 Richard Guenther <rguenther@suse.de>
1243 PR rtl-optimization/44838
1244 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
1245 SSA form do not use pointer equivalence.
1247 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
1249 * dwarf2out.c (AT_linkage_name): Delete.
1250 (add_linkage_attr): New function.
1251 (add_linkage_name): Call it to emit the linkage attribute.
1252 (dwarf2out_finish): Likewise.
1253 (move_linkage_attr): Explicitly accept both attribute variants.
1255 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1257 * toplev.h: Do not include diagnostic-core.h.
1258 Include diagnostic-core.h in every file that includes toplev.h.
1259 * c-tree.h: Do not include toplev.h.
1260 * pretty-print.h: Update comment.
1261 * Makefile.in: Update dependencies.
1262 * alias.c: Include diagnostic-core.h in every file that includes
1264 * attribs.c: Likewise.
1265 * auto-inc-dec.c: Likewise.
1266 * bb-reorder.c: Likewise.
1267 * bt-load.c: Likewise.
1268 * caller-save.c: Likewise.
1269 * calls.c: Likewise.
1271 * cfganal.c: Likewise.
1272 * cfgbuild.c: Likewise.
1273 * cfgcleanup.c: Likewise.
1274 * cfghooks.c: Likewise.
1275 * cfgloop.c: Likewise.
1276 * combine.c: Likewise.
1277 * config/alpha/alpha.c: Likewise.
1278 * config/arc/arc.c: Likewise.
1279 * config/arm/arm.c: Likewise.
1280 * config/arm/pe.c: Likewise.
1281 * config/avr/avr.c: Likewise.
1282 * config/bfin/bfin.c: Likewise.
1283 * config/cris/cris.c: Likewise.
1284 * config/crx/crx.c: Likewise.
1285 * config/darwin-c.c: Likewise.
1286 * config/darwin.c: Likewise.
1287 * config/fr30/fr30.c: Likewise.
1288 * config/frv/frv.c: Likewise.
1289 * config/h8300/h8300.c: Likewise.
1290 * config/host-darwin.c: Likewise.
1291 * config/i386/i386.c: Likewise.
1292 * config/i386/netware.c: Likewise.
1293 * config/i386/nwld.c: Likewise.
1294 * config/i386/winnt-cxx.c: Likewise.
1295 * config/i386/winnt-stubs.c: Likewise.
1296 * config/i386/winnt.c: Likewise.
1297 * config/ia64/ia64-c.c: Likewise.
1298 * config/ia64/ia64.c: Likewise.
1299 * config/iq2000/iq2000.c: Likewise.
1300 * config/lm32/lm32.c: Likewise.
1301 * config/m32c/m32c-pragma.c: Likewise.
1302 * config/m32c/m32c.c: Likewise.
1303 * config/m32r/m32r.c: Likewise.
1304 * config/m68hc11/m68hc11.c: Likewise.
1305 * config/m68k/m68k.c: Likewise.
1306 * config/mcore/mcore.c: Likewise.
1307 * config/mep/mep-pragma.c: Likewise.
1308 * config/mep/mep.c: Likewise.
1309 * config/mmix/mmix.c: Likewise.
1310 * config/mn10300/mn10300.c: Likewise.
1311 * config/moxie/moxie.c: Likewise.
1312 * config/pa/pa.c: Likewise.
1313 * config/pdp11/pdp11.c: Likewise.
1314 * config/picochip/picochip.c: Likewise.
1315 * config/rs6000/rs6000-c.c: Likewise.
1316 * config/rs6000/rs6000.c: Likewise.
1317 * config/rx/rx.c: Likewise.
1318 * config/s390/s390.c: Likewise.
1319 * config/score/score.c: Likewise.
1320 * config/score/score3.c: Likewise.
1321 * config/score/score7.c: Likewise.
1322 * config/sh/sh.c: Likewise.
1323 * config/sh/symbian-base.c: Likewise.
1324 * config/sh/symbian-c.c: Likewise.
1325 * config/sh/symbian-cxx.c: Likewise.
1326 * config/sol2-c.c: Likewise.
1327 * config/sol2.c: Likewise.
1328 * config/sparc/sparc.c: Likewise.
1329 * config/spu/spu.c: Likewise.
1330 * config/stormy16/stormy16.c: Likewise.
1331 * config/v850/v850-c.c: Likewise.
1332 * config/v850/v850.c: Likewise.
1333 * config/vax/vax.c: Likewise.
1334 * config/vxworks.c: Likewise.
1335 * config/xtensa/xtensa.c: Likewise.
1336 * convert.c: Likewise.
1338 * cselib.c: Likewise.
1339 * dbgcnt.c: Likewise.
1340 * dbxout.c: Likewise.
1342 * dominance.c: Likewise.
1343 * emit-rtl.c: Likewise.
1344 * explow.c: Likewise.
1345 * expmed.c: Likewise.
1346 * fixed-value.c: Likewise.
1347 * fold-const.c: Likewise.
1348 * fwprop.c: Likewise.
1350 * ggc-common.c: Likewise.
1351 * ggc-page.c: Likewise.
1352 * ggc-zone.c: Likewise.
1353 * gimple-low.c: Likewise.
1354 * gimplify.c: Likewise.
1355 * graph.c: Likewise.
1356 * haifa-sched.c: Likewise.
1357 * ifcvt.c: Likewise.
1358 * implicit-zee.c: Likewise.
1359 * integrate.c: Likewise.
1360 * ira-build.c: Likewise.
1361 * ira-color.c: Likewise.
1362 * ira-conflicts.c: Likewise.
1363 * ira-costs.c: Likewise.
1364 * ira-lives.c: Likewise.
1366 * lists.c: Likewise.
1367 * loop-doloop.c: Likewise.
1368 * loop-iv.c: Likewise.
1369 * lto-opts.c: Likewise.
1370 * lto-symtab.c: Likewise.
1372 * modulo-sched.c: Likewise.
1373 * optabs.c: Likewise.
1374 * params.c: Likewise.
1375 * plugin.c: Likewise.
1376 * postreload-gcse.c: Likewise.
1377 * postreload.c: Likewise.
1378 * predict.c: Likewise.
1379 * profile.c: Likewise.
1381 * regcprop.c: Likewise.
1382 * reginfo.c: Likewise.
1383 * regmove.c: Likewise.
1384 * reorg.c: Likewise.
1385 * resource.c: Likewise.
1387 * rtlanal.c: Likewise.
1388 * sched-deps.c: Likewise.
1389 * sched-ebb.c: Likewise.
1390 * sched-rgn.c: Likewise.
1391 * sdbout.c: Likewise.
1392 * sel-sched-dump.c: Likewise.
1393 * sel-sched-ir.c: Likewise.
1394 * simplify-rtx.c: Likewise.
1396 * stor-layout.c: Likewise.
1397 * store-motion.c: Likewise.
1398 * targhooks.c: Likewise.
1399 * tree-cfg.c: Likewise.
1400 * tree-cfgcleanup.c: Likewise.
1401 * tree-dump.c: Likewise.
1402 * tree-eh.c: Likewise.
1403 * tree-inline.c: Likewise.
1404 * tree-nomudflap.c: Likewise.
1405 * tree-object-size.c: Likewise.
1406 * tree-optimize.c: Likewise.
1407 * tree-outof-ssa.c: Likewise.
1408 * tree-phinodes.c: Likewise.
1409 * tree-profile.c: Likewise.
1410 * tree-ssa-ccp.c: Likewise.
1411 * tree-ssa-coalesce.c: Likewise.
1412 * tree-ssa-live.c: Likewise.
1413 * tree-ssa-loop-niter.c: Likewise.
1414 * tree-ssa-loop-prefetch.c: Likewise.
1415 * tree-ssa-loop.c: Likewise.
1416 * tree-ssa-structalias.c: Likewise.
1417 * tree-ssa-uninit.c: Likewise.
1418 * tree-ssa.c: Likewise.
1419 * tree-vect-data-refs.c: Likewise.
1420 * tree-vect-loop-manip.c: Likewise.
1421 * tree-vect-loop.c: Likewise.
1422 * tree-vect-patterns.c: Likewise.
1423 * tree-vect-stmts.c: Likewise.
1424 * tree-vrp.c: Likewise.
1425 * varasm.c: Likewise.
1428 * xcoffout.c: Likewise.
1430 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
1432 * gengtype.c (write_field_root): New function.
1433 (write_root): Use it.
1435 2010-07-07 Wei Guozhi <carrot@google.com>
1437 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1438 of lowest bits to lshift/compare): Add a missing line.
1440 2010-07-07 Wei Guozhi <carrot@google.com>
1442 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
1443 of lowest bits to lshift/compare): New.
1445 2010-07-07 Tom Tromey <tromey@redhat.com>
1447 * doc/tm.texi: Update.
1448 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
1450 * target.def (want_debug_pub_sections): New hook.
1451 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
1452 * dwarf2out.c (add_pubname_string): Check
1453 targetm.want_debug_pub_sections.
1454 (add_pubname): Likewise.
1455 (add_pubtype): Likewise.
1457 2010-07-07 Jie Zhang <jie@codesourcery.com>
1459 * genautomata.c (output_automata_list_min_issue_delay_code):
1460 Correctly decompress min_issue_delay.
1462 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1464 PR rtl-optimization/44404
1465 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
1466 possible, use reg_overlap_mentioned_p instead.
1468 2010-07-07 Duncan Sands <baldrick@free.fr>
1471 * tree.c (build_function_type_skip_args): Copy the original type using
1472 build_distinct_type_copy rather than copy_node.
1474 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1477 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
1479 (ix86_expand_prologue): Likewise.
1480 (ix86_handle_fndecl_attribute): Likewise.
1481 (ix86_asm_declare_function_name): Likewise.
1482 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1483 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1484 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
1485 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
1486 * doc/extend.texi: Likewise.
1488 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
1491 * config/i386/i386.md (rdrand<mode>): Changed to expand to
1492 retry if the carry flag isn't valid.
1493 (rdrand<mode>_1): New.
1495 2010-07-07 Richard Guenther <rguenther@suse.de>
1498 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
1499 for expanding the constant offset for MEM_REFs.
1501 2010-07-07 Richard Guenther <rguenther@suse.de>
1503 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
1504 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
1505 * gimple.h (is_gimple_operand): Remove.
1506 * gimple.c (is_gimple_operand): Likewise.
1507 (walk_gimple_op): Fix wi->val_only setting for calls.
1508 * tree-cfg.c (verify_gimple_call): Fix argument validation.
1509 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
1510 invalid gimple calls.
1512 2010-07-06 Jan Hubicka <jh@suse.cz>
1514 * lto-cgraph.c (output_cgraph): Add missing declaration.
1516 2010-07-06 Jan Hubicka <jh@suse.cz>
1518 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
1521 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
1523 * doc/gimple.texi (GIMPLE_DEBUG): Document.
1524 * doc/rtl.texi (Debug Information): New node.
1525 (NOTE_INSN_VAR_LOCATION): Document.
1526 (debug_insn): Likewise.
1527 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
1529 2010-07-07 Jan Hubicka <jh@suse.cz>
1531 With parts by Richard Guenther.
1534 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
1535 for functions passed by reference.
1536 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
1537 in memory when passed by reference.
1538 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
1540 * ipa-split.c (split_function): Cleanup way return value is passed;
1541 handle SSA DECL_BY_REFERENCE retvals.
1542 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
1543 DECL_BY_REFERENCE is set.
1544 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
1545 find_what_p_points_to): Handle RESULT_DECL.
1546 * tree-inline.c (declare_return_variable): Get new entry_block argument;
1547 when passing by reference ensure that RESULT_DECL is gimple_val.
1548 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
1549 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
1551 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
1553 PR rtl-optimization/44787
1554 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
1555 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
1557 2010-07-06 Jan Hubicka <jh@suse.cz>
1559 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
1560 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
1561 with body can prevail.
1562 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
1563 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
1564 * cgraph.c (cgraph_get_node_or_alias): New function.
1565 * cgraph.h (cgraph_get_node_or_alias): Declare.
1567 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
1569 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
1571 (ix86_expand_prologue): Likewise.
1572 (ix86_handle_fndecl_attribute): Likewise.
1573 (ix86_asm_declare_function_name): New function for
1574 ASM_DECLARE_FUNCTION_NAME.
1575 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
1576 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
1577 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
1578 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
1579 * doc/extend.texi: Adjust documentation about ms_hook_prologue
1582 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1584 * config/i386/i386.md (immediate_operand): New mode attribute.
1586 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
1587 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
1588 using P mode iterator.
1589 (pro_epilogue_adjust_stack_di_2): Rename from
1590 pro_epilogue_adjust_stack_rex64_2.
1592 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
1594 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1596 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
1597 through gen_mov_insv_1 function pointer.
1598 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
1599 gen_truncxf<mode>2 through gen_truncxf function pointer.
1600 (remainder<mode>3): Ditto.
1601 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
1602 (allocate_stack): Call gen_allocate_stack_worker_64 or
1603 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
1605 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
1608 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
1610 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
1611 operand constraint instead of <r><i>m.
1613 2010-07-06 Richard Guenther <rguenther@suse.de>
1616 * convert.c (convert_to_integer): Watch out for overflowing
1619 2010-07-05 Jan Hubicka <jh@suse.cz>
1621 * lto-streamer.c (write_symbol_vec): Rename to ...
1622 (write_symbol) ... this one; write only symbol given and when
1623 present in cache. Sanity check that what is defined is present
1624 in cgraph/varpool with body/finalized decl.
1625 (write_symbols_of_kind): Remove.
1626 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
1627 pairs to produce symtab.
1628 (produce_asm_for_decls): Update call of produce_symtab; don't do so
1629 when doing WPA streaming.
1631 2010-07-05 Jan Hubicka <jh@suse.cz>
1633 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
1634 function is still available to fold into.
1636 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1638 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
1639 * function.h (struct_function): Change type of local_decls field
1641 (add_local_decl): New function.
1642 (FOR_EACH_LOCAL_DECL): New macro.
1643 * cfgexpand.c (init_vars_expansion): Adjust for new type of
1645 (estimated_stack_frame_size): Likewise.
1646 (expand_used_vars): Likewise.
1647 * cgraphbuild.c (build_cgraph_edges): Likewise.
1648 * function.c (instantiate_decls_1): Likewise.
1649 * ipa-struct-reorg.c (build_data_structure): Likewise.
1650 * ipa-type-escape.c (analyze_function): Likewise.
1651 * lto-streamer-in.c (input_function): Likewise.
1652 * lto-streamer-out.c (output_function): Likewise.
1653 * tree-ssa-live.c (remove_unused_locals): Likewise.
1654 * tree.c (free_lang_data_in_decl): Likewise.
1655 (find_decls_types_in_node): Likewise.
1656 * omp-low.c (remove_exit_barrier): Likewise.
1657 (expand_omp_taskreg): Likewise.
1658 (list2chain): Rename to...
1659 (vec2chain): ...this. Adjust.
1660 * cgraphunit.c (assemble_thunk): Call add_local_decl.
1661 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1662 * gimple-low.c (record_vars_into): Likewise.
1663 * tree-inline.c (remap_decls): Likewise.
1664 (declare_return_variable): Likewise.
1665 (declare_inline_vars): Likewise.
1666 (copy_forbidden): Adjust for new type of cfun->local_decls.
1667 (add_local_variables): New function.
1668 (expand_call_inline): Call it.
1669 (tree_function_versioning): Likewise.
1671 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
1673 AVX Programming Reference (June, 2010)
1674 * config/i386/cpuid.h (bit_F16C): New.
1675 (bit_RDRND): Likewise.
1676 (bit_FSGSBASE): Likewise.
1678 * config/i386/i386-builtin-types.def: Add
1679 "DEF_FUNCTION_TYPE (UINT16)", function types for
1680 float16 <-> float conversions and
1681 "DEF_FUNCTION_TYPE (VOID, UINT64)".
1683 * config/i386/i386-c.c (ix86_target_macros_internal): Support
1684 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1685 OPTION_MASK_ISA_F16C.
1687 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1688 (OPTION_MASK_ISA_RDRND_SET): Likewise.
1689 (OPTION_MASK_ISA_F16C_SET): Likewise.
1690 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1691 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1692 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1693 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1694 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1695 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1696 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1697 (override_options): Handle them.
1698 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1699 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1700 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1701 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1702 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1703 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1704 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1705 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1706 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1707 (bdesc_args): Likewise.
1708 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1709 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1710 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1711 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1712 Handle non-memory store.
1714 * config/i386/i386.h (TARGET_FSGSBASE): New.
1715 (TARGET_RDRND): Likewise.
1716 (TARGET_F12C): Likewise.
1718 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1719 (UNSPEC_VCVTPS2PH): Likewise.
1720 (UNSPECV_RDFSBASE): Likewise.
1721 (UNSPECV_RDGSBASE): Likewise.
1722 (UNSPECV_WRFSBASE): Likewise.
1723 (UNSPECV_WRGSBASE): Likewise.
1724 (UNSPECV_RDRAND): Likewise.
1725 (rdfsbase<mode>): Likewise.
1726 (rdgsbase<mode>): Likewise.
1727 (wrfsbase<mode>): Likewise.
1728 (wrgsbase<mode>): Likewise.
1729 (rdrand<mode>): Likewise.
1731 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1733 * config/i386/immintrin.h (_rdrand_u16): New.
1734 (_rdrand_u32): Likewise.
1735 (_readfsbase_u32): Likewise.
1736 (_readfsbase_u64): Likewise.
1737 (_readgsbase_u32): Likewise.
1738 (_readgsbase_u64): Likewise.
1739 (_writefsbase_u32): Likewise.
1740 (_writefsbase_u64): Likewise.
1741 (_writegsbase_u32): Likewise.
1742 (_writegsbase_u64): Likewise.
1743 (_rdrand_u64): Likewise.
1744 (_cvtsh_ss): Likewise.
1745 (_mm_cvtph_ps): Likewise.
1746 (_mm256_cvtph_ps): Likewise.
1747 (_cvtss_sh): Likewise.
1748 (_mm_cvtps_ph): Likewise.
1749 (_mm256_cvtps_ph): Likewise.
1751 * config/i386/sse.md (vcvtph2ps): New.
1752 (*vcvtph2ps_load): Likewise.
1753 (vcvtph2ps256): Likewise.
1754 (vcvtps2ph): Likewise.
1755 (*vcvtps2ph): Likewise.
1756 (*vcvtps2ph_store): Likewise.
1757 (vcvtps2ph256): Likewise.
1759 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1761 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1763 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
1766 * genenums.c (main): Output include of insn-constants.h
1767 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1769 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
1771 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1772 (override_options): Initialize it.
1773 (ix86_expand_prologue): Use it.
1775 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1777 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1779 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1781 * double-int.h (fit_double_type): Remove declaration.
1782 * double-int.c (fit_double_type): Remove function.
1783 * tree.h (int_fits_type_p): Adjust prototype.
1784 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1785 instead of fit_double_type.
1786 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1787 instead of fit_double_type and build_int_cst_wide.
1788 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1789 instead of fit_double_type and build_int_cst_wide.
1790 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1793 2010-07-05 Jan Hubicka <jh@suse.cz>
1795 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1797 * lto-cgraph.c (referenced_from_other_partition_p,
1798 reachable_from_other_partition_p): Use in_other_partition flags.
1799 (output_node, output_varpool_node): COMDAT nodes always have private
1800 copies and thus are never used from other partition.
1802 2010-07-05 Anatoly Sokolov <aesok@post.ru>
1804 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1805 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1806 * config/ia64/ia64.c Include reload.h.
1807 (ia64_memory_move_cost): New function.
1808 (TARGET_MEMORY_MOVE_COST): Define.
1809 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1812 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
1815 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1816 comments about cost model.
1817 (try_add_cand_for): Add second strategy for choosing initial set
1818 based on original IVs, controlled by ORIGINALP argument.
1819 (get_initial_solution): Add ORIGINALP argument.
1820 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1821 (find_optimal_iv_set): Try two different strategies for choosing
1822 the IV set, and return the one with lower cost.
1824 2010-07-05 Richard Guenther <rguenther@suse.de>
1826 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1828 2010-07-05 Richard Guenther <rguenther@suse.de>
1830 * tree.c (reference_alias_ptr_type): New function.
1831 * tree.h (reference_alias_ptr_type): Declare.
1832 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1833 allow non-TARGET_MEM_REF new refs.
1834 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1835 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1836 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1837 (create_mem_ref): Get alias pointer type. Adjust calls to
1839 (maybe_fold_tmr): Likewise.
1840 * tree-flow.h (create_mem_ref): Adjust prototype.
1842 2010-07-05 Jakub Jelinek <jakub@redhat.com>
1845 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1846 *from_p is VAR_DECL.
1848 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1850 * tree.h (build_call_list): Remove.
1851 * tree.c (build_call_list): Remove.
1853 2010-07-05 Richard Guenther <rguenther@suse.de>
1855 * double-int.h (double_int_sub): Declare.
1856 * double-int.c (double_int_sub): New function.
1857 * dwarf2out.c (field_byte_offset): Use it.
1858 * fixed-value.c (do_fixed_add): Likewise.
1859 (do_fixed_multiply): Likewise.
1860 (do_fixed_divide): Likewise.
1861 * tree-predcom.c (add_ref_to_chain): Likewise.
1862 (determine_roots_comp): Likewise.
1863 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1865 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
1867 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
1870 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
1872 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1873 * arm-modes.def (CC_NOTB): Don't define.
1874 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1875 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1876 (LTUGEU): New code_iterator.
1877 (cnb, optab): New corresponding code_attrs.
1878 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
1879 to canonical form. Operands 1 and 2 are commutative. Parametrize
1881 (addsi3_carryin_shift_<optab>): Likewise.
1882 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1883 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
1884 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1885 (subsi3_compare): Renamed from subsi3_compare0_c.
1886 Change CC_NOTB to CC.
1887 (arm_subsi3_insn): Allow constants for operand 0.
1888 (compare_scc peephole for eq case): New.
1889 (compare_scc splitters): Change CC_NOTB to CC.
1891 2010-07-05 Richard Guenther <rguenther@suse.de>
1893 * tree-ssa-loop-im.c (for_each_index): Do not handle
1895 (gen_lsm_tmp_name): Likewise.
1896 * tree-dump.c (dequeue_and_dump): Likewise.
1897 * tree-pretty-print.c (dump_generic_node): Likewise.
1898 (op_code_prio): Likewise.
1899 (op_symbol_code): Likewise.
1900 * tree.c (staticp): Likewise.
1901 (build1_stat): Likewise.
1902 * tree.h (INDIRECT_REF_P): Likewise.
1903 * fold-const.c (maybe_lvalue_p): Likewise.
1904 (operand_equal_p): Likewise.
1905 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1906 (ao_ref_init_from_vn_reference): Likewise.
1907 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1908 (find_interesting_uses_address): Likewise.
1909 * dwarf2out.c (loc_list_from_tree): Likewise.
1910 * gimplify.c (gimplify_expr): Likewise.
1911 * tree-eh.c (tree_could_trap_p): Likewise.
1912 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1913 * cfgexpand.c (expand_debug_expr): Likewise.
1914 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1915 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1916 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1917 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1918 * tree-ssa-operands.c (get_expr_operands): Likewise.
1919 * expr.c (safe_from_p): Likewise.
1920 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
1921 * tree-vect-data-refs.c (vect_setup_realignment): Build
1922 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1923 * tree-vect-stmts.c (vectorizable_load): Likewise.
1924 * tree.def (ALIGN_INDIRECT_REF): Remove.
1926 2010-07-05 Richard Guenther <rguenther@suse.de>
1928 PR tree-optimization/44784
1929 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1931 (find_or_generate_expression): Fix SCCVN insertion check.
1933 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
1935 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1936 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1937 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1940 2010-07-05 Ira Rosen <irar@il.ibm.com>
1942 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1943 statements that are not vectorized.
1944 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1947 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
1950 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1952 2010-07-05 Richard Guenther <rguenther@suse.de>
1954 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1955 RESULT_DECLs properly.
1957 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
1959 PR rtl-optimization/44695
1960 * config/i386/i386.md (extract_code): Removed.
1961 (<u>divmodqi4): Likewise.
1963 (udivmodqi4): Likewise.
1964 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1965 (udivmodhiqi3): Likewise.
1967 2010-07-04 Jan Hubicka <jh@suse.cz>
1969 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1971 2010-07-04 Jan Hubicka <jh@suse.cz>
1973 * cgraphunit.c (init_cgraph): Only initialize dump file if it
1974 is not already initialized.
1976 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1978 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1979 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1980 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1981 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1982 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1983 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1984 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1985 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1986 (sync_new_nand_optab): Redefine as macros.
1987 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1989 (direct_optab_index): New enum.
1990 (direct_optab_d): New structure.
1991 (direct_optab): New typedef.
1992 (direct_optab_table): Declare.
1993 (direct_optab_handler, set_direct_optab_handler): New functions.
1994 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1995 (sync_lock_release_optab): New macros.
1996 * optabs.c (direct_optab_table): New variable.
1997 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1998 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1999 cmpstr_optab and cmpstrn_optab.
2000 (emit_conditional_move): Likewise for movcc_optab.
2001 (can_conditionally_move_p): Likewise for movcc_gen_code.
2002 (init_insn_codes): Clear direct_optab_table.
2003 (init_optabs): Don't initialize the new "direct optabs" here.
2004 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
2006 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
2007 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
2008 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
2009 (expand_sync_operation): Likewise other sync_*_optabs.
2010 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
2011 to sync_compare_and_swap_optab.
2012 (expand_sync_lock_test_and_set): Use direct_optab_handler for
2013 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
2014 to the names of both.
2015 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
2016 cmpstr_optab and cmpstrn_optab.
2017 (expand_builtin_lock_release): Likewise sync_lock_release.
2018 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
2019 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
2020 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
2021 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
2022 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
2023 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
2024 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
2025 (sync_lock_test_and_set, sync_lock_release): Delete.
2026 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
2027 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
2028 * genopinit.c (optabs): Use set_direct_optab_handler for the new
2030 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
2031 the "optab" local variable. Use direct_optab_handler for optab and
2032 sync_compare_and_swap_optab.
2033 * reload1.c (reload_in_optab, reload_out_optab): Delete.
2034 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
2035 reload_in_optab and reload_out_optab.
2036 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2037 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
2038 * config/pa/pa.c (pa_secondary_reload): Likewise.
2039 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
2040 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
2041 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
2042 (VMSupportsCS8_builtin): Likewise.
2044 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2046 * optabs.h (optab_handlers): Change type of insn_code to int.
2047 (optab_handler, set_optab_handler, convert_optab_handler)
2048 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
2050 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
2051 (init_insn_codes): Zero both the above arrays.
2052 (init_optabs): Never call init_insn_codes first time around.
2054 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
2056 * optabs.h (optab_handler, convert_optab_handler): Turn into
2057 inline functions that return an insn code.
2058 (set_optab_handler, set_convert_optab_handler): New functions.
2059 * builtins.c: Replace optab_handler(X)->insn_code with
2060 optab_handler or set_optab_handler thoughout. Likewise
2061 convert_optab_handler(X)->insn_code with convert_optab_handler
2062 and set_convert_optab_handler.
2063 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
2064 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
2065 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
2066 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2067 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
2068 config/spu/spu.c: Likewise.
2070 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
2073 * config.gcc (sh*-*-*): Use regular expressions instead of
2074 the 'i' modifier for sed substitutions.
2076 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
2078 * gimple.c (gimple_body): Comments added.
2080 2010-07-04 Richard Guenther <rguenther@suse.de>
2083 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
2086 2010-07-04 Richard Guenther <rguenther@suse.de>
2088 PR tree-optimization/44479
2089 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
2090 extra SSA name copy statements which preserves points-to
2092 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2093 Copy points-to information for all pointers. Properly handle
2095 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
2097 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
2100 2010-07-04 Richard Guenther <rguenther@suse.de>
2103 * tree-inline.c (initialize_inlined_parameters): Do not
2104 re-use pointer-map slot over remap_type call.
2106 2010-07-04 Richard Guenther <rguenther@suse.de>
2108 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
2110 2010-07-04 Richard Guenther <rguenther@suse.de>
2112 PR tree-optimization/44656
2113 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
2114 again after value-replacing in the defintions lhs.
2116 2010-07-04 Ira Rosen <irar@il.ibm.com>
2117 Revital Eres <eres@il.ibm.com>
2119 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
2120 Document new arguments.
2121 * doc/tm.texi: Regenerate.
2122 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
2123 Handle unaligned store.
2124 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
2125 * target.def (builtin_vectorization_cost): Add new arguments.
2126 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
2127 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
2128 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
2129 (vect_vfa_segment_size): Fix indentation.
2130 * tree-vectorizer.h (struct _vect_peel_info): New.
2131 (struct _vect_peel_extended_info): New.
2132 (struct _loop_vec_info): Add new field for peeling hash table and a
2133 macro for its access.
2134 (VECT_MAX_COST): Define.
2135 (vect_get_load_cost): Declare.
2136 (vect_get_store_cost, vect_get_known_peeling_cost,
2137 vect_get_single_scalar_iteraion_cost): Likewise.
2138 (vect_supportable_dr_alignment): Add new argument.
2139 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
2141 (destroy_loop_vec_info): Free peeling hash table.
2142 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
2143 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
2144 vect_analyze_slp. Fix indentation.
2145 (vect_get_single_scalar_iteraion_cost): New function.
2146 (vect_get_known_peeling_cost): Likewise.
2147 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
2148 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
2149 statement. Move outside cost calculation inside unknown peeling case.
2150 Call vect_get_known_peeling_cost for known amount of peeling.
2151 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
2152 reference to the print message of forced alignment.
2153 (vect_verify_datarefs_alignment): Update call to
2154 vect_supportable_dr_alignment.
2155 (vect_get_data_access_cost): New function.
2156 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
2157 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
2158 vect_peeling_hash_choose_best_peeling): Likewise.
2159 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
2160 to store all the accesses in the loop and find best possible access to
2161 align using peeling for known alignment case. For unknown alignment
2162 check if stores are preferred or if peeling is worthy.
2163 (vect_find_same_alignment_drs): Analyze pairs of loads too.
2164 (vect_supportable_dr_alignment): Add new argument and check aligned
2165 accesses according to it.
2166 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
2167 (cost_for_stmt): Call vect_get_stmt_cost.
2168 (vect_model_simple_cost): Likewise.
2169 (vect_model_store_cost): Call vect_get_stmt_cost. Call
2170 vect_get_store_cost to calculate the cost of the statement.
2171 (vect_get_store_cost): New function.
2172 (vect_model_load_cost): Call vect_get_stmt_cost. Call
2173 vect_get_load_cost to calculate the cost of the statement.
2174 (vect_get_load_cost): New function.
2175 (vectorizable_store): Update call to vect_supportable_dr_alignment.
2176 (vectorizable_load): Likewise.
2177 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
2178 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
2179 arguments. Handle unaligned store.
2180 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
2181 (rs6000_builtin_support_vector_misalignment): Return true for word and
2182 double word alignments for VSX.
2183 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
2184 vect_supportable_dr_alignment and builtin_vectorization_cost.
2186 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2189 * config/pa/predicates.md (prefetch_cc_operand): Remove.
2190 (prefetch_nocc_operand): Likewise.
2191 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
2192 (prefetch_20): New insn.
2193 (prefetch_cc): Remove.
2194 (prefetch_nocc): Likewise.
2196 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2198 * expr.c (vector_mode_valid_p): Move to c-common.c.
2199 * expr.h (vector_mode_valid_p): Do not declare here.
2200 * system.h: Poison GCC_EXPR_H in front-ends.
2201 * Makefile.in: Update dependencies.
2203 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2206 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
2208 2010-07-03 Jan Hubicka <jh@suse.cz>
2210 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
2211 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
2212 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
2213 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
2216 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
2218 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
2219 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
2220 TV_IPA_LTO_DECL_OUT): New.
2221 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
2223 2010-07-03 Jan Hubicka <jh@suse.cz>
2225 * ipa-inline.c (update_edge_key): Break out from ...
2226 update_callers_keys): ... here;
2227 (update_callee_keys): Update only the edges from caller to callee.
2228 (update_all_calle_keys): Do what update_calle_keys did.
2229 (decide_inlining_of_small_functions): Avoid recomputing of all
2230 callees when badness increase.
2232 2010-07-03 Jie Zhang <jie@codesourcery.com>
2234 * config/arm/arm.c (arm_attr_length_move_neon): New.
2235 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
2236 * config/arm/neon.md (define_mode_attr V_slen): Remove.
2237 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
2238 to compute length attribute.
2240 2010-07-03 Jie Zhang <jie@codesourcery.com>
2242 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
2243 as predicate for operand 1 and remove its constraint.
2244 * config/arm/predicates.md (vfp_register_operand): New.
2245 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
2246 (*push_fp_multi): Likewise.
2248 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
2250 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
2252 2010-07-03 Jan Hubicka <jh@suse.cz>
2254 * config/i386/i386.c (override_options): Revert accidental commit.
2256 2010-07-02 Le-Chun Wu <lcwu@google.com>
2259 * doc/invoke.texi: Update documentation of -Wshadow.
2261 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
2262 Julian Brown <julian@codesourcery.com>
2263 Sandra Loosemore <sandra@codesourcery.com>
2265 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
2266 comparisons. Adjust to take both operands.
2267 (arm_select_cc_mode): Handle DImode comparisons.
2268 (arm_gen_compare_reg): Generate a scratch register for DImode
2269 comparisons which require one. Use xor for Thumb equality checks.
2270 (arm_const_double_by_immediates): New.
2271 (arm_print_operand): Allow 'Q' and 'R' for constants.
2272 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
2273 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
2274 arm_canonicalize_comparison.
2275 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
2276 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
2278 (arm_const_double_by_immediates): Declare.
2279 * config/arm/constraints.md (Di): New constraint.
2280 * config/arm/predicates.md (arm_immediate_di_operand)
2281 (arm_di_operand, cmpdi_operand): New.
2282 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
2283 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
2284 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
2285 (cstoredi4): Handle non-Cirrus also.
2287 2010-07-02 Julian Brown <julian@codesourcery.com>
2288 Sandra Loosemore <sandra@codesourcery.com>
2291 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
2292 (smax<mode>3): Disable for NEON float modes when
2293 flag_unsafe_math_optimizations is false.
2294 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
2296 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
2297 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
2298 for NEON float modes when flag_unsafe_math_optimizations is false.
2299 (quad_halves_<code>v4sf): Only enable if
2300 flag_unsafe_math_optimizations is true.
2301 * doc/invoke.texi (ARM Options): Add note about floating point
2302 vectorization requiring -funsafe-math-optimizations.
2304 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2305 Julian Brown <julian@codesourcery.com>
2307 * config/arm/neon.md (UNSPEC_VABA): Delete.
2308 (UNSPEC_VABAL): Delete.
2309 (UNSPEC_VABS): Delete.
2310 (UNSPEC_VMUL_N): Delete.
2313 (mul<mode>3add<mode>_neon): Make the pattern named.
2314 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
2315 (neon_vadd<mode>): Replace with define_expand, and move the remaining
2317 (neon_vadd<mode>_unspec): ...to this.
2318 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
2319 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
2320 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
2321 (neon_vaba<mode>): Rewrite in terms of vabd.
2322 (neon_vabal<mode>): Rewrite in terms of vabdl.
2323 (neon_vabs<mode>): Rewrite without unspec.
2324 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
2325 (*arm_subdi3): Likewise.
2326 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
2327 No_op attribute to disable assembly output checks.
2328 * config/arm/arm_neon.h: Regenerated.
2329 * doc/arm-neon-intrinsics.texi: Regenerated.
2331 2010-07-02 Jan Hubicka <jh@suse.cz>
2333 * ipa-split.c (split_function): For aggregate values, set the return
2334 slot optimization bit. When passing DECL_BY_REFERENCE, produce
2335 *<retval> = fncall.part ().
2336 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
2338 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2340 * config/arm/neon.md (UNSPEC_VAND): Delete.
2341 (UNSPEC_VBIC): Delete.
2342 (UNSPEC_VCLZ): Delete.
2343 (UNSPEC_VCNT): Delete.
2344 (UNSPEC_VEOR): Delete.
2345 (UNSPEC_VORN): Delete.
2346 (UNSPEC_VORR): Delete.
2347 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
2349 (anddi3_neon): Likewise.
2350 (orndi3_neon): Likewise.
2351 (bicdi3_neon): Likewise.
2352 (xordi3_neon): Likewise.
2353 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
2354 rid of unspec and handle unused operand.
2355 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
2356 * config/arm/predicates.md (imm_for_neon_logic_operand):
2357 Require TARGET_NEON.
2358 (imm_for_neon_inv_logic_operand): Likewise.
2359 * config/arm/arm.md (define_split for logical_binary_operator):
2360 Disable for NEON registers.
2361 (anddi3): Add new define_expand, and rename the insn. Disable
2362 this insn for NEON, where anddi3_neon now applies.
2363 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
2364 (iordi3): As for anddi3.
2366 * config/arm/neon.ml (Vand): Split DImode variants and mark them
2367 as No_op to disable testing for exact instruction match.
2372 * config/arm/arm_neon.h: Regenerated.
2373 * doc/arm-neon-intrinsics.texi: Regenerated.
2375 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2377 * expr.h (emit_stack_probe): Declare.
2378 * explow.c (emit_stack_probe): Make global.
2379 (anti_adjust_stack_and_probe): Fix comments.
2380 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2381 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2382 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2383 * config/sparc/sparc.c: Include except.h.
2384 (sparc_emit_probe_stack_range): New function.
2385 (output_probe_stack_range): Likewise.
2386 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
2387 built-in stack checking is enabled.
2388 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
2389 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2390 (probe_stack_range): New insn.
2392 2010-07-02 Richard Guenther <rguenther@suse.de>
2395 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
2396 for argument alignment.
2398 2010-07-02 Jan Hubicka <jh@suse.cz>
2400 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
2401 walk backwards from entry_bb to check only those basic block of header
2402 that might lead to execution of split part.
2403 (consider_split) ... here.
2404 (find_return_bb): Allow assignment in return BB.
2406 (split_function): Fix name of cloned function; take care of updating
2407 return value in return_bb containing move.
2409 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
2412 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
2415 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
2417 * implicit-zee.c (combine_reaching_defs): Fix long lines.
2418 (is_set_with_extension_DI): Delete.
2419 (struct zero_extend_info): New structure.
2420 (add_removable_zero_extend): New function.
2421 (find_removable_zero_extends): Use note_stores to find SETs.
2422 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
2424 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2426 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
2427 is_miss_rate_acceptable. Pull total_positions computation
2428 out of the loops. Early return if miss_positions exceeds
2429 the acceptable threshold.
2430 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
2431 is_miss_rate_acceptable after renaming of compute_miss_rate.
2433 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
2436 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
2437 of 1000) for miss rate if the address diference is greater than or
2438 equal to the cache line size (the two reference will never hit the
2441 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
2444 * config/arm/arm-modes.def (CC_NOTB): New mode.
2445 * config/arm/arm.c (get_arm_condition_code): Handle it.
2446 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
2447 * config/arm/arm.md (subsi3_compare0_c): New pattern.
2448 (compare_scc): Now a define_and_split. Add a number of extra
2449 splitters before it.
2452 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
2454 (arm_rtx_costs_1): Likewise.
2455 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
2456 * config/arm/arm.md (is_arch6): New attribute.
2457 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
2458 extendqisi2): Tighten the code somewhat, avoiding invalid
2459 RTL to occur in the expander patterns.
2460 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
2461 (thumb1_zero_extendhisi2_v6): Delete.
2462 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
2463 (thumb1_extendhisi2_v6): Delete.
2464 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
2465 (thumb1_extendqisi2_v6): Delete.
2466 (zero_extendhisi2 for register input splitter): New.
2467 (zero_extendqisi2 for register input splitter): New.
2468 (thumb1_extendhisi2 for register input splitter): New.
2469 (extendhisi2 for register input splitter): New.
2470 (extendqisi2 for register input splitter): New.
2471 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
2472 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
2473 and add support for a register alternative requiring a split.
2474 (thumb1_zero_extendqisi2): Likewise.
2475 (arm_zero_extendqisi2): Likewise.
2476 (arm_extendhisi2): Likewise.
2477 (arm_extendqisi2): Likewise.
2479 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2481 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
2482 instead of an unspec.
2483 (neon_expand_vector_init): Likewise.
2484 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
2485 (UNSPEC_VDUP_LANE): Delete.
2486 (UNSPEC VDUP_N): Delete.
2487 (UNSPEC_VGET_HIGH): Delete.
2488 (UNSPEC_VGET_LANE): Delete.
2489 (UNSPEC_VGET_LOW): Delete.
2490 (UNSPEC_VMVN): Delete.
2491 (UNSPEC_VSET_LANE): Delete.
2492 (V_double_vector_mode): New.
2493 (vec_set<mode>_internal): Make code emitted match that for the
2494 corresponding intrinsics.
2495 (vec_setv2di_internal): Likewise.
2496 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
2497 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
2498 (neon_vset_lane<mode>): Combine double and quad patterns and
2499 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
2500 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
2501 (neon_vdup_n<mode>): Rewrite RTL without unspec.
2502 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
2503 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
2504 with neon_vdup_lanev2di, adjusting the pattern from the latter
2505 to be predicable for consistency.
2506 (neon_vdup_lane<mode>_internal): New.
2507 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
2508 to avoid using an unspec.
2509 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
2510 (neon_vdup_lanev2di): Turn into a define_expand.
2511 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
2512 (neon_vget_high<mode>): Replace with....
2513 (neon_vget_highv16qi): New pattern using canonical RTL.
2514 (neon_vget_highv8hi): Likewise.
2515 (neon_vget_highv4si): Likewise.
2516 (neon_vget_highv4sf): Likewise.
2517 (neon_vget_highv2di): Likewise.
2518 (neon_vget_low<mode>): Replace with....
2519 (neon_vget_lowv16qi): New pattern using canonical RTL.
2520 (neon_vget_lowv8hi): Likewise.
2521 (neon_vget_lowv4si): Likewise.
2522 (neon_vget_lowv4sf): Likewise.
2523 (neon_vget_lowv2di): Likewise.
2525 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
2526 test for this emitting vmov.
2527 (Vset_lane): Likewise.
2531 * doc/arm-neon-intrinsics.texi: Regenerated.
2533 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
2535 * config/arm/neon.md (vec_extractv2di): Correct error in register
2536 numbering to reconcile with neon_vget_lanev2di.
2538 2010-07-02 Richard Guenther <rguenther@suse.de>
2540 * tree-ssa-structalias.c (pt_solution_set_var): New function.
2541 * tree-ssa-alias.h (pt_solution_set_var): Declare.
2542 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
2543 points-to information.
2545 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
2547 * config/s390/s390.c (override_options): Adopt prefetching
2548 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
2550 2010-07-02 Jan Hubicka <jh@suse.cz>
2552 * df-problems.c (df_kill_notes): Do not collect dead notes.
2553 (df_set_note): Just call add_reg_note.
2554 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
2555 df_create_unused_note): Do not deal with lists of old notes.
2556 (df_note_bb_compute): Likewise.
2558 2010-07-02 Richard Guenther <rguenther@suse.de>
2560 * tree-ssa-structalias.c (find_func_aliases): Handle
2561 pointer alignment via BIT_AND_EXPR.
2562 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
2564 2010-07-02 Richard Guenther <rguenther@suse.de>
2566 * tree-data-ref.c (initialize_data_dependence_relation): Handle
2567 mismatching number of dimensions properly.
2569 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2572 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
2573 (lo_sum (high ...) ...) patterns generated by earlier passes.
2575 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2577 * doc/install.texi (Prerequisites): Document Perl requirement on
2579 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
2581 2010-07-02 Richard Guenther <rguenther@suse.de>
2584 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
2586 2010-07-02 Jan Hubicka <jh@suse.cz>
2589 * predict.c (predict_paths_for_bb): Handle case when control dependence
2590 BB has only abnormal edges.
2592 2010-07-02 Richard Guenther <rguenther@suse.de>
2594 PR tree-optimization/44748
2595 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
2596 the embedded conversion in MEM_REFs.
2598 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
2600 * reload.c: Include toplev.h.
2601 * recog.c: Likewise.
2602 * Makefile.in: Adjust dependencies.
2604 2010-07-01 Jakub Jelinek <jakub@redhat.com>
2607 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
2608 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
2610 2010-07-01 Richard Guenther <rguenther@suse.de>
2612 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
2615 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
2618 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
2621 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
2624 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2625 Make sure operand 0 dies.
2627 2010-07-01 Richard Guenther <rguenther@suse.de>
2631 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
2632 * doc/generic.texi (References to storage): Document MEM_REF.
2633 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
2634 (print_call_name): Likewise.
2635 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
2636 (build_simple_mem_ref_loc): New function.
2637 (mem_ref_offset): Likewise.
2638 * tree.h (build_simple_mem_ref_loc): Declare.
2639 (build_simple_mem_ref): Define.
2640 (mem_ref_offset): Declare.
2641 * fold-const.c: Include tree-flow.h.
2642 (operand_equal_p): Handle MEM_REF.
2643 (build_fold_addr_expr_with_type_loc): Likewise.
2644 (fold_comparison): Likewise.
2645 (fold_unary_loc): Fold
2646 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2647 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2648 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2649 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2650 (ptr_deref_may_alias_ref_p_1): Likewise.
2651 (ao_ref_base_alias_set): Properly differentiate base object for
2653 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2654 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2655 (indirect_refs_may_alias_p): Likewise.
2656 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
2658 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2659 (call_may_clobber_ref_p_1): Likewise.
2660 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2661 * expr.c (expand_assignment): Handle MEM_REF.
2662 (store_expr): Handle MEM_REFs from STRING_CSTs.
2663 (store_field): If expanding a MEM_REF of a non-addressable
2664 decl use bitfield operations.
2665 (get_inner_reference): Handle MEM_REF.
2666 (expand_expr_addr_expr_1): Likewise.
2667 (expand_expr_real_1): Likewise.
2668 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2669 * alias.c (ao_ref_from_mem): Handle MEM_REF.
2670 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
2671 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2672 (dr_analyze_indices): Likewise.
2673 (dr_analyze_alias): Likewise.
2674 (object_address_invariant_in_loop_p): Likewise.
2675 * gimplify.c (mark_addressable): Handle MEM_REF.
2676 (gimplify_cond_expr): Build MEM_REFs.
2677 (gimplify_modify_expr_to_memcpy): Likewise.
2678 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2679 (gimple_fold_indirect_ref): Adjust.
2680 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
2681 * tree.def (MEM_REF): New tree code.
2682 * tree-dfa.c: Include toplev.h.
2683 (get_ref_base_and_extent): Handle MEM_REF.
2684 (get_addr_base_and_unit_offset): New function.
2685 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2686 * gimple-fold.c (may_propagate_address_into_dereference): Handle
2688 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2689 accesses if the array has just one dimension. Remove always true
2690 parameter. Do not require type compatibility here.
2691 (maybe_fold_offset_to_component_ref): Remove.
2692 (maybe_fold_stmt_indirect): Remove.
2693 (maybe_fold_reference): Remove INDIRECT_REF handling.
2694 Fold back to non-MEM_REF.
2695 (maybe_fold_offset_to_address): Simplify. Deal with type
2697 (maybe_fold_reference): Likewise.
2698 (maybe_fold_stmt_addition): Likewise. Also handle
2699 &ARRAY + I in addition to &ARRAY[0] + I.
2700 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2701 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2702 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2703 * tree-ssa.c (useless_type_conversion_p): Make most pointer
2704 conversions useless.
2705 (warn_uninitialized_var): Handle MEM_REF.
2706 (maybe_rewrite_mem_ref_base): New function.
2707 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2709 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2710 INDIRECT_REF handling.
2711 (copy_tree_body_r): Handle MEM_REF.
2712 * gimple.c (is_gimple_addressable): Adjust.
2713 (is_gimple_address): Likewise.
2714 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2715 invariant base are invariant.
2716 (is_gimple_min_lval): Adjust.
2717 (is_gimple_mem_ref_addr): New function.
2718 (get_base_address): Handle MEM_REF.
2719 (count_ptr_derefs): Likewise.
2720 (get_base_loadstore): Likewise.
2721 * gimple.h (is_gimple_mem_ref_addr): Declare.
2722 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2723 * tree-cfg.c (verify_address): New function, split out from ...
2724 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
2725 the address operand of MEM_REFs. Verify MEM_REFs. Reject
2727 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
2728 INDIRECT_REF. Allow conversions.
2729 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2730 a register does not change its size.
2731 (verify_types_in_gimple_reference): Verify MEM_REF.
2732 (verify_gimple_assign_single): Disallow INDIRECT_REF.
2734 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2736 (mark_address_taken): Handle MEM_REF.
2737 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2738 (get_asm_expr_operands): Pass opf_not_non_addressable.
2739 (get_expr_operands): Handle opf_[not_]non_addressable.
2740 Handle MEM_REF. Remove INDIRECT_REF handling.
2741 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2742 (search_for_addr_array): Likewise.
2743 (check_array_bounds): Likewise.
2744 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2745 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2746 (ref_always_accessed_p): Likewise.
2747 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
2748 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2750 * cgraphbuild.c (mark_load): Properly check for NULL result
2751 from get_base_address.
2752 (mark_store): Likewise.
2753 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2754 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2755 handling for MEM_REF.
2756 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2757 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2758 * builtins.c (stabilize_va_list_loc): Use the function ABI
2759 valist type if we couldn't canonicalize the argument type.
2760 Always dereference with the canonical va-list type.
2761 (maybe_emit_free_warning): Handle MEM_REF.
2762 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2764 * builtins.c (fold_builtin_memory_op): Use ref-all types
2765 for all memcpy foldings.
2766 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2767 (build_outer_var_ref): Likewise.
2768 (scan_omp_1_op): Likewise.
2769 (lower_rec_input_clauses): Likewise.
2770 (lower_lastprivate_clauses): Likewise.
2771 (lower_reduction_clauses): Likewise.
2772 (lower_copyprivate_clauses): Likewise.
2773 (expand_omp_atomic_pipeline): Likewise.
2774 (expand_omp_atomic_mutex): Likewise.
2775 (create_task_copyfn): Likewise.
2776 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2777 Remove old union trick. Initialize constant offsets.
2778 (ao_ref_init_from_vn_reference): Likewise. Do not handle
2779 INDIRECT_REF. Init base_alias_set properly.
2780 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2781 (vn_reference_fold_indirect): Adjust for MEM_REFs.
2782 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
2784 (may_insert): Remove.
2785 (visit_reference_op_load): Do not test may_insert.
2786 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2787 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2788 a field to store the constant offset this op applies.
2789 (run_scc_vn): Adjust prototype.
2790 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2791 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2792 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
2793 bother about volatile qualifiers on pointers.
2794 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2795 * tree-ssa-loop-ivopts.c
2796 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2797 (strip_offset_1): Likewise.
2798 (find_interesting_uses_address): Replace INDIRECT_REF handling with
2800 (get_computation_cost_at): Likewise.
2801 * ipa-pure-const.c (check_op): Handle MEM_REF.
2802 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2803 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2805 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2806 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2807 (eliminate_local_variables_1): Likewise.
2808 (create_call_for_reduction_1): Likewise.
2809 (create_loads_for_reductions): Likewise.
2810 (create_loads_and_stores_for_name): Likewise.
2811 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2812 (ssa_accessed_in_tree): Handle MEM_REF.
2813 (ssa_accessed_in_assign_rhs): Likewise.
2814 (update_type_size): Likewise.
2815 (analyze_accesses_for_call_stmt): Likewise.
2816 (analyze_accesses_for_assign_stmt): Likewise.
2817 (transform_access_sites): Likewise.
2818 (transform_allocation_sites): Likewise.
2819 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2820 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2821 not handle INDIRECT_REF.
2822 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2823 (cond_store_replacement): Likewise.
2824 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2825 MEM_REF, no not handle INDIRECT_REFs.
2826 (insert_into_preds_of_block): Properly initialize avail.
2827 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
2828 for ARRAY_REFs. Properly handle reference lookups that
2829 require a bit re-interpretation.
2830 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
2831 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2832 (build_ref_for_offset_1): Remove.
2833 (build_ref_for_offset): Build MEM_REFs.
2834 (gate_intra_sra): Disable for now.
2835 (sra_ipa_modify_expr): Handle MEM_REF.
2836 (ipa_early_sra_gate): Disable for now.
2837 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2839 (disqualify_base_of_expr): Likewise.
2840 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2842 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2843 Use mem_ref_offset. Remove bogus folding.
2844 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2845 (make_fancy_name_1): Add support for MEM_REF.
2846 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2847 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2848 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2849 (compute_complex_ancestor_jump_func): Likewise.
2850 (ipa_analyze_virtual_call_uses): Likewise.
2851 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2852 INDIRECT_REF folding with more generalized MEM_REF folding.
2853 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2854 (forward_propagate_addr_into_variable_array_index): Also handle
2855 &ARRAY + I in addition to &ARRAY[0] + I.
2856 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2857 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2858 creates assignments with overlap.
2859 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2860 (get_frame_field): Likewise.
2861 (get_nonlocal_debug_decl): Likewise.
2862 (convert_nonlocal_reference_op): Likewise.
2863 (struct nesting_info): Add mem_refs pointer-set.
2864 (create_nesting_tree): Allocate it.
2865 (convert_local_reference_op): Insert to be folded mem-refs.
2866 (fold_mem_refs): New function.
2867 (finalize_nesting_tree_1): Perform defered folding of mem-refs
2868 (free_nesting_tree): Free the pointer-set.
2869 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2870 (vectorizable_load): Likewise.
2871 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2872 (propagate_with_phi): Likewise.
2873 * tree-object-size.c (addr_object_size): Handle MEM_REFs
2874 instead of INDIRECT_REFs.
2875 (compute_object_offset): Handle MEM_REF.
2876 (plus_stmt_object_size): Handle MEM_REF.
2877 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2879 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2880 (symbol_marked_for_renaming): Likewise.
2881 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2882 (fold-const.o): Add $(TREE_FLOW_H).
2883 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2884 (find_func_clobbers): Likewise.
2885 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2886 (decompose_access): Likewise.
2887 (replace_field_acc): Likewise.
2888 (replace_field_access_stmt): Likewise.
2889 (insert_new_var_in_stmt): Likewise.
2890 (get_stmt_accesses): Likewise.
2891 (reorg_structs_drive): Disable.
2892 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2893 (ix86_canonical_va_list_type): Likewise.
2895 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2898 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2899 * target.def (struct gcc_target): Replace enum reg_class with
2900 reg_class_t in hook argument / return types.
2901 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2902 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2903 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2904 * targhooks.h (default_branch_target_register_class): Likewise.
2905 (default_ira_cover_classes, default_secondary_reload): Likewise.
2906 (default_memory_move_cost, default_register_move_cost): Likewise.
2907 * targhooks.c (default_branch_target_register_class): Likewise.
2908 (default_ira_cover_classes, default_secondary_reload): Likewise.
2909 (default_memory_move_cost, default_register_move_cost): Likewise.
2910 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2911 * bt-load.c (branch_target_load_optimize): Likewise.
2912 * ira.c (setup_cover_and_important_classes): Likewise.
2913 * ira-costs.c (copy_cost): Likewise.
2914 * reload1.c (emit_input_reload_insns): Likewise.
2915 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2916 * config/frv/frv.c (frv_secondary_reload): Likewise.
2917 * config/s390/s390.c (s390_secondary_reload): Likewise.
2918 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2919 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2920 (ix86_register_move_cost): Likewise.
2921 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2922 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2923 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2924 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2925 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2926 (rs6000_ira_cover_classes): Likewise.
2927 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2928 * config/picochip/picochip-protos.h (picochip_secondary_reload):
2930 * config/pa/pa.c (pa_secondary_reload): Likewise.
2931 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2932 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2933 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2934 * doc/tm.texi: Regenerate.
2936 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
2939 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2941 (build_alias_set_optimal_p): Likewise.
2942 (build_base_obj_set_for_drs): Likewise.
2944 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
2946 * target.def: Remove comment about licensing problems of function
2949 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
2950 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2951 * doc/tm.texi: Regenerate.
2953 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
2954 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2956 * target.def (enum_va_list_p): Use DEFHOOK.
2957 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2958 Rename ptype to ptree.
2959 * doc/tm.texi: Regenerate.
2961 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
2962 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2963 * doc/tm.texi: Regenerate.
2965 * target.def (memory_move_cost): Use DEFHOOK.
2966 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2967 Rename regclass AKA class to rclass.
2968 * doc/tm.texi: Regenerate.
2970 * target.def (pragma_parse): Use DEFHOOK.
2971 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2972 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2973 * doc/tm.texi: Regenerate.
2975 * target.def (pass_by_reference): Use DEFHOOK.
2976 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2977 * doc/tm.texi: Regenerate.
2979 * target.def (resolve_overloaded_builtin): Rename params to arglist.
2981 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2982 * doc/tm.texi: Regenerate.
2984 * target.def (return_pops_args): Use DEFHOOK.
2985 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2986 Rename stack-size to size.
2987 * doc/tm.texi: Regenerate.
2989 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
2990 last-sched_cycle to last_clock, cur_cycle to clock.
2991 * doc/tm.texi.in: Use @hook.
2992 * doc/tm.texi: Regenerate.
2994 * target.def (print_operand, print_operand_address): Update comment.
2995 (print_operand_punct_valid_p): Likewise.
2997 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2999 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
3001 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
3002 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
3004 * regrename.c: Do not include toplev.h. Include rtl-error.h.
3005 * rtl-error.c: Likewise.
3006 * reload.c: Likewise.
3007 * recog.c: Likewise.
3008 * sel-sched.c: Likewise.
3009 * function.c: Likewise.
3010 * reg-stack.c: Likewise.
3011 * cfgrtl.c: Likewise.
3012 * reload1.c: Likewise.
3013 * final.c: Include rtl-error.
3014 * Makefile.in: Adjust dependencies.
3016 2010-06-30 Jan Hubicka <jh@suse.cz>
3018 PR middle-end/PR44706
3019 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
3020 to return the value.
3022 2010-06-30 Michael Matz <matz@suse.de>
3025 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
3026 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
3027 a gimple reg, attach the original VDEF to the last store in the
3030 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
3033 * config/darwin.c (darwin_override_options): Use renamed
3034 targetm.asm_out.emit_unwind_label.
3036 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3038 PR tree-optimization/39799
3039 * tree-inline.c (remap_ssa_name): Initialize variable only if
3040 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3042 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
3044 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
3046 2010-06-30 Richard Guenther <rguenther@suse.de>
3049 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
3050 against oscillation with reverse peephole2.
3052 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
3055 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3058 2010-06-30 Nick Clifton <nickc@redhat.com>
3060 * config/rx/rx-modes.def: New file.
3061 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
3062 (CC_REGNUM): Define.
3063 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
3065 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
3066 (SELECT_CC_MODE): Define.
3067 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
3068 (reg:CC CC_REG) instead of (cc0).
3069 (attr "cc"): Delete.
3070 (cbranchsi4): Do not split compare and branch here. Instead move
3072 (cbranchsi4_<code>): ... here. New patterns.
3073 (cmpsi): Call rx-compare_redundant to find out if it is necessary
3074 to emit the compare instruction.
3075 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
3077 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
3078 FIRST_PSEUDO_REGNUM.
3079 (rx_expand_prologue, rx_expand_epilogue): Likewise.
3080 (rx_notice_update_cc): Delete.
3081 (rx_cc_modes_compatible): New function.
3082 (flags_needed_for_conditional): New function.
3083 (flags_from_mode): New function.
3084 (rx_compare_redundant): New function - scans backwards through
3085 insn list to find out if condition flags are already set correctly.
3086 (TARGET_CC_MODES_COMPATIBLE): Define.
3087 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
3089 * config/rx/rx.h (BRANCH_COST): Define.
3090 (REGISTER_MOVE_COST): Define.
3091 * config/rx/predicates (rx_source_operand): Allow all constant types.
3092 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
3093 (tstsi4): New pattern.
3094 * config/rx/rx.c (rx_memory_move_cost): Define.
3095 (TARGET_MEMORY_MOVE_COST): Define.
3097 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3099 * tree.h (block_may_fallthru): Declare here.
3100 * tree-flow.h (block_may_fallthru): Do not declare here.
3101 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
3103 * Makefile.in (c-typeck.o): Update dependencies.
3105 2010-06-30 Jakub Jelinek <jakub@redhat.com>
3108 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
3109 * cselib.c (cfa_base_preserved_regno): New static variable.
3110 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
3111 of REGNO (cfa_base_preserved_val->locs->loc).
3112 (cselib_preserve_cfa_base_value): Add regno argument, set
3113 cfa_base_preserved_regno to it.
3114 (cselib_invalidate_regno): Allow removal of registers other than
3115 cfa_base_preserved_regno from cfa_base_preserved_val.
3116 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
3117 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
3118 of MEM addresses, if not on LHS.
3119 (reverse_op): Don't add reverse ops for cfa_base_rtx.
3120 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
3122 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
3124 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
3126 (peep2_buf_position): New static function.
3127 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
3128 peephole2_optimize): Use it.
3129 (peep2_attempt, peep2_update_life): New static functions, broken out
3130 of peephole2_optimize.
3131 (peep2_fill_buffer): New static function.
3132 (peephole2_optimize): Change the main loop to try to fill the buffer
3133 with the maximum number of insns before matching them against
3134 peepholes. Use a forward scan. Remove special case for targets with
3135 conditional execution.
3136 * genrecog.c (change_state): Delete dead code.
3137 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
3138 Rewrite so as not to expect the second insn to have had a peephole
3141 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3143 * genhooks.c (emit_findices): Cast field precision to int.
3144 (emit_documentation): Likewise.
3146 2010-06-29 Jakub Jelinek <jakub@redhat.com>
3148 PR tree-optimization/43801
3149 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
3150 if old_decl was DECL_ONE_ONLY.
3153 * dwarf2out.c (add_accessibility_attribute): New function.
3154 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
3155 instead of adding DW_AT_accessibility manually.
3156 (gen_enumeration_type_die, gen_struct_or_union_type_die,
3157 gen_typedef_die): Use it.
3159 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3161 * vmsdbgout.c (full_name): Just output the file name if not native.
3163 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3165 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
3166 (funcnam_table): New static table.
3167 (funcnum_table): New static table.
3168 (write_rtnbeg): Write value saved in funcnum_table.
3169 (write_rtnend): Write value saved in funcnum_table.
3170 (vmsdbgout_begin_function): Save current function info in
3171 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
3172 (vmsdbgout_finish): Iterate over funcnum_table.
3174 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3176 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
3177 (vmsdbgout_type_decl): Declare
3178 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
3179 (FUNC_EPILOGUE_LABEL): New macro
3180 (vmsdbgout_begin_epilogue): New function.
3181 (vmsdbgout_type_decl): New function.
3183 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3185 * vmsdbg.h: Update copyright.
3187 2010-06-29 Douglas B Rupp <rupp@gnat.com>
3189 * vmsdbg.h (DST_K_TBG): New DST constant.
3190 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
3191 (write_modbeg): Cast module_language to avoid warning.
3192 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
3194 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3197 * target.def, doc/tm.texi.in, genhooks.c: New files.
3198 * target.h: Instead of defining individual hook members,
3199 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
3201 * target-def.h: Instead of defining individual hook initializers,
3202 include target-hooks-def.h.
3203 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
3204 targetm.live_on_entry -> targetm.extra_live_on_entry
3205 targetm.sched.md_finish ->targetm.sched.finish
3206 targetm.sched.md_init -> targetm.sched.init
3207 targetm.sched.md_init_global -> targetm.sched.init_global
3208 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
3209 targetm.asm_out.except_table_label ->
3210 targetm.asm_out.emit_except_table_label
3211 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
3212 targetm.target_help -> targetm.help
3213 targetm.vectorize.builtin_support_vector_misalignment ->
3214 targetm.vectorize.support_vector_misalignment
3215 targetm.file_start_app_off -> targetm.asm_file_start_app_off
3216 targetm.file_start_file_directive ->
3217 targetm.asm_file_start_file_directive
3218 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
3219 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
3220 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
3221 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
3222 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
3223 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
3224 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
3225 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
3226 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
3227 * Makefile.in (TARGET_H): Depend on target.def.
3228 (TARGET_DEF_H): Depend on target-hooks-def.h.
3229 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
3230 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
3231 * doc/tm.texi: Regenerate.
3233 * Makefile.in (s-tm-texi): Remove stray tab / rule.
3235 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
3236 (targetm.sched.init): Likewise.
3238 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3241 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
3242 (function_arg_advance_32): Const-ify TYPE parameter.
3243 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
3244 (ix86_function_arg_advance): Change type of NAMED to bool.
3245 (function_arg_32): Const-ify CUM and TYPE parameters.
3246 (function_arg_64): Likewise. Change type of NAMED to bool.
3247 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
3249 (ix86_function_arg): Change type of NAMED to bool.
3250 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
3251 last argument as a bool.
3253 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3255 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
3256 (OVERRIDE_OPTIONS): Add note of obsolescence.
3257 Replace references with references to TARGET_OPTION_OVERRIDE.
3258 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
3260 * targhooks.c (default_target_option_override): New function.
3261 * targhooks.h (default_target_option_override): Declare.
3262 * target.h (struct gcc_target): Add override member to
3263 target_option member.
3264 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
3265 targetm.target_option.override call.
3266 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
3267 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
3269 2010-06-29 Jan Hubicka <jh@suse.cz>
3271 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
3273 2010-06-29 Jan Hubicka <jh@suse.cz>
3275 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
3277 (rebuild_frequencies): New function.
3278 * predict.h (rebuild_frequencies): Declare.
3279 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
3280 entry block and edge reaching new_entry.
3281 (tree_function_versioning): When doing partial cloning, rebuild
3282 frequencies when done.
3283 * passes.c (execute_function_todo): Use rebild_frequencies.
3285 2010-06-29 Richard Guenther <rguenther@suse.de>
3287 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
3288 * tree-flow.h (enum noalias_state): Remove.
3289 (struct var_ann_d): Remove noalias_state member.
3291 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3294 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
3295 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
3296 (maddhidi4): Likewise.
3298 Revert parts of the change for PR25130.
3299 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3302 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3304 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
3305 targetm.calls.function_incoming_arg, and
3306 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
3307 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
3308 * target.h (struct gcc_target): Add function_arg_advance,
3309 function_arg, and function_incoming_arg fields.
3310 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
3311 (TARGET_FUNCTION_INCOMING_ARG): Define.
3312 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
3313 and TARGET_FUNCTION_INCOMING_ARG.
3314 * targhooks.h (default_function_arg_advance): Declare.
3315 (default_function_arg, default_function_incoming_arg): Declare.
3316 * targhooks.c (default_function_arg_advance): New function.
3317 (default_function_arg, default_function_incoming_arg): New function.
3318 * config/i386/i386.c (function_arg_advance): Rename to...
3319 (ix86_function_arg_advance): ...this. Make static.
3320 (function_arg): Rename to...
3321 (ix86_function_arg): ...this. Make static.
3322 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3323 (TARGET_FUNCTION_ARG): Define.
3324 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
3325 (FUNCTION_ARG): Delete.
3326 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
3327 (function_arg): Delete prototype.
3329 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
3331 * reginfo.c (init_reg_sets_1): Adjust comments.
3332 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
3333 * calls.c (prepare_call_address): Likewise.
3334 (emit_call_1): Use targetm.calls.return_pops_args.
3335 (expand_call): Likewise.
3336 * function.c (assign_parms): Likewise.
3337 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
3338 * target.h (struct gcc_target) [struct calls]: Add
3339 return_pops_args field.
3340 * targhooks.h (default_return_pops_args): Declare.
3341 * targhooks.c (default_return_pops_args): Define.
3342 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
3343 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
3344 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
3345 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
3347 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
3348 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
3349 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
3350 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
3351 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
3352 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
3353 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
3354 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
3355 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
3356 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
3357 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
3358 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
3359 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
3360 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
3361 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
3362 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
3363 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
3364 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
3365 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
3366 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
3367 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
3368 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
3369 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
3370 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
3371 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
3372 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
3373 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
3374 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
3375 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
3376 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
3377 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
3378 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
3379 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
3380 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
3381 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
3382 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
3383 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
3384 * config/i386/i386.c (ix86_return_pops_args): Make static.
3386 (TARGET_RETURN_POPS_ARGS): Define.
3387 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
3388 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
3389 (TARGET_RETURN_POPS_ARGS): Define.
3390 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
3391 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
3392 (TARGET_RETURN_POPS_ARGS): Define.
3394 2010-06-29 Richard Guenther <rguenther@suse.de>
3397 * tree-inline.c (initialize_inlined_parameters): Make sure
3398 to remap the inlined parameter variable substitutions types.
3400 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
3402 PR rtl-optimization/44659
3403 * combine.c (make_compound_operation) <SUBREG>: Do not return the
3404 result of force_to_mode if it partially re-expanded the compound.
3406 2010-06-28 Jan Hubicka <jh@suse.cz>
3409 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
3412 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3414 * double-int.h (force_fit_type_double): Remove declaration.
3415 * double-int.c (force_fit_type_double): Move to tree.c.
3416 * tree.h (force_fit_type_double): Declare.
3417 * tree.h (force_fit_type_double): Moved from double-int.c. Use
3418 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
3419 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
3420 * convert.c (convert_to_pointer): Adjust call to
3421 force_fit_type_double.
3422 * tree-vrp.c (extract_range_from_assert,
3423 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
3424 * fold-const.c: Update comment.
3425 (int_const_binop, fold_convert_const_int_from_int,
3426 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
3427 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
3428 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
3429 round_up_loc): Adjust call to force_fit_type_double.
3431 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3433 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
3435 2010-06-28 Martin Jambor <mjambor@suse.cz>
3437 * tree-sra.c (convert_callers): New parameter, change fndecls of
3439 (modify_function): Pass the old decl to convert_callers.
3441 2010-06-28 Martin Jambor <mjambor@suse.cz>
3443 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
3444 ipa_check_create_node_params and ipa_initialize_node_params with
3445 checking asserts they are not necessary.
3447 2010-06-28 Jan Hubicka <jh@suse.cz>
3449 PR tree-optimization/44687
3450 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
3452 2010-06-28 Martin Jambor <mjambor@suse.cz>
3455 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
3456 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
3457 instead of BINFO_BASE_BINFO.
3459 2010-06-28 Michael Matz <matz@suse.de>
3462 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
3463 proper VDEF chain for intermediate stores in the sequence.
3465 2010-06-28 Jan Hubicka <jh@suse.cz>
3467 PR tree-optimization/44357
3468 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
3469 uninlinable functions.
3471 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
3473 * config.gcc (powerpc*-*-*): Handle titan.
3474 * config/rs6000/rs6000.c (titan_cost): New costs.
3475 (rs6000_override_options): Add "titan" to processor_target_table.
3476 Add Titan to branch alignment logic.
3477 Correctly set rs6000_cost for titan.
3478 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
3479 * config/rs6000/titan.md: New file.
3480 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
3482 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3484 * tree-browser.c (TB_history_stack): Convert to a VEC.
3485 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
3486 (TB_history_prev): Likewise.
3488 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
3490 * vec.h (vec_heap_free): Add parentheses around free.
3492 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3494 * system.h: Poison GCC_EXCEPT_H for front-end files.
3496 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
3498 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
3499 Define to NULL by default.
3500 * except.h: Define GCC_EXCEPT_H.
3501 (doing_eh): Remove prototype.
3502 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
3503 (lang_protect_cleanup_actions): Remove.
3504 * except.c (lang_protect_cleanup_actions): Remove.
3506 (gen_eh_region): Don't check doing_eh here.
3507 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
3508 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
3509 instead of lang_protect_cleanup_actions.
3510 * omp-low.c (maybe_catch_exception): Likewise.
3511 * Makefile.in: Update dependencies.
3513 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
3515 * cgraph.h (struct varpool_node): new used_from_object_file flag.
3516 (struct cgraph_local_info): new used_from_object_file flag.
3517 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
3518 (cgraph_clone_node): initialize used_from_object_file.
3519 (cgraph_create_virtual_clone): initialize used_from_object_file.
3520 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
3521 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
3522 when compiling with -fwhole-program.
3523 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
3525 * ipa.c (function_and_variable_visibility): Set externally_visible
3526 flag of varpool_node if used_from_object_file flag is set.
3527 (cgraph_externally_visible_p): check used_from_object_file flag.
3528 * doc/invoke.texi (-fwhole-program option): Change description of
3529 externally_visible attribute accordingly.
3530 * doc/extend.texi (externally_visible): Ditto.
3532 2010-06-27 Jan Hubicka <jh@suse.cz>
3534 * params.def (max-inline-insns-auto): Default to 40.
3535 * doc/invoke.texi (max-inline-insns-auto): Document the change.
3537 2010-06-27 Jan Hubicka <jh@suse.cz>
3541 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
3543 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
3544 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
3546 2010-06-27 Anatoly Sokolov <aesok@post.ru>
3548 * target.h (struct gcc_target): Add register_move_cost field.
3549 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
3550 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
3551 * targhooks.c (default_register_move_cost): New function.
3552 * targhooks.h (default_register_move_cost): Declare function.
3553 * defaults.h (REGISTER_MOVE_COST): Delete.
3554 * ira-int.h (ira_register_move_cost): Update comment.
3555 * ira.c: (ira_register_move_cost): Update comment.
3556 * reload.h (register_move_cost): Declare.
3557 * reginfo.c (register_move_cost): New function.
3558 (move_cost): Update comment.
3559 (init_move_cost, memory_move_secondary_cost): Replace
3560 REGISTER_MOVE_COST with register_move_cost.
3561 * postreload.c (reload_cse_simplify_set): (Ditto.).
3562 * reload.c (find_valid_class, find_reloads): (Ditto.).
3563 * reload1.c (choose_reload_regs): (Ditto.).
3564 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
3565 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
3566 * doc/md.texi (can_create_pseudo_p): Update documentation.
3568 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3569 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3570 * config/i386/i386.h (ix86_memory_move_cost): Make static.
3571 (TARGET_MEMORY_MOVE_COST): Define.
3573 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
3574 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
3575 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
3576 (TARGET_MEMORY_MOVE_COST): Define.
3578 2010-06-27 Richard Guenther <rguenther@suse.de>
3580 PR tree-optimization/44683
3581 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
3582 false edge from the inverted condition.
3584 2010-06-27 Richard Guenther <rguenther@suse.de>
3587 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
3588 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
3589 for register LHS. Or non-store assignments.
3591 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
3593 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
3594 (sparc_emit_set_const64): Likewise. Remove disabled code.
3595 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
3596 (sparc_emit_set_const64): Likewise.
3598 2010-06-26 Catherine Moore <clm@codesourcery.com>
3600 * config/mips/mips.md (alu_type): New attribute.
3601 (type): Infer type from alu_type.
3602 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
3603 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
3604 *subsi3_extended, negsi2, negdi2, *low<mode>,
3605 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
3606 xor<mode>3, *nor<mode>3,
3607 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
3608 *zero_extendhi_truncqi): Set alu_type instead of type.
3610 2010-06-26 Douglas B Rupp <rupp@gnat.com>
3612 * config/alpha/alpha.c (alpha_need_linkage): Adjust
3613 splay_tree_new_ggc call.
3614 (alpha_use_linkage): Likewise.
3616 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3618 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
3619 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
3620 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
3621 (static_specs): Remove switches_need_spaces.
3622 (process_command, do_self_spec): Hardcode handling "-o" instead of
3623 checking switches_need_spaces.
3624 * system.h (SWITCHES_NEED_SPACES): Poison.
3626 2010-06-26 Richard Guenther <rguenther@suse.de>
3628 PR tree-optimization/44393
3629 * tree-loop-distribution.c (generate_loops_for_partition): Fix
3630 stmt removal and VOP renaming.
3631 (generate_memset_zero): Remove redundant stmt updating.
3632 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
3633 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
3635 2010-06-26 Jan Hubicka <jh@suse.cz>
3637 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
3638 edges comming from header are equivalent.
3639 (visit_bb): Handle PHIs correctly.
3640 * tree-inline.c (copy_phis_for_bb): Be able to copy
3641 PHI from entry edge.
3642 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3644 2010-06-26 Richard Guenther <rguenther@suse.de>
3647 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3648 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
3650 2010-06-26 Joseph Myers <joseph@codesourcery.com>
3652 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3653 add_infile, alloc_switch): New.
3654 (process_command): Remove variable lang_n_infiles. Process
3655 options in a single pass. Use new functions for allocating
3656 infiles and switches arrays. Properly skip operands of
3657 -Xpreprocessor and -Xassembler.
3659 2010-06-26 Jan Hubicka <jh@suse.cz>
3662 * cgraphunit.c (cgraph_function_versioning): Remove wrong
3663 cgraph_make_decl_local call; fix typo copying RTL data.
3665 2010-06-25 DJ Delorie <dj@redhat.com>
3667 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3668 (m32c_output_aligned_common): Likewise.
3669 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3670 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3671 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3672 (m32c_register_pragmas): Register it.
3673 * config/m32c/m32c.c (m32c_get_pragma_address): New.
3674 (m32c_insert_attributes): Set #pragma address decls volatile.
3675 (pragma_entry_eq): New.
3676 (pragma_entry_hash): New.
3677 (m32c_note_pragma_address): New.
3678 (m32c_get_pragma_address): New.
3679 (m32c_output_aligned_common): New.
3680 * doc/extend.texi: Document the new pragma.
3682 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3684 * config/m32c/predicates.md (m32c_any_operand): Check the code
3685 instead of memory_operand so as to allow matching volatile MEMs.
3686 (m32c_nonimmediate_operand): Likewise.
3687 (mra_operand): Allow volatiles.
3689 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
3692 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3693 address if the offset is unknown.
3695 2010-06-25 Douglas B Rupp <rupp@gnat.com>
3697 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3698 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3699 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3700 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3701 to ia64_start_function. Invoke it.
3702 * config/ia64/ia64.c (ia64_start_function): Call new function
3703 dwarf2out_vms_debug_main_pointer.
3705 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3707 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3708 statements computing the true predicate.
3710 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3712 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3713 to boolean_true_node.
3714 (reset_bb_predicate): New.
3715 (predicate_bbs): Call reset_bb_predicate.
3717 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3719 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3720 (tree_if_conversion): Returns true when something has been changed.
3721 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3724 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
3726 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3727 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3728 * tree-if-conv.c: Include dbgcnt.h.
3729 (tree_if_conversion): Use if_conversion_tree to count the number of
3730 if-convertible loops.
3732 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
3734 * common.opt (fprefetch-loop-arrays): Re-define
3735 -fprefetch-loop-arrays as a tri-state option with the initial
3737 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3738 pass only when flag_prefetch_loop_arrays > 0.
3739 * toplev.c (process_options): Note that, with tri-states,
3740 flag_prefetch_loop_arrays>0 means prefetching is enabled.
3741 * config/i386/i386.c (override_options): Enable prefetching at -O3
3742 for a set of CPUs that sw prefetching is helpful.
3743 (software_prefetching_beneficial_p): New. Return TRUE if software
3744 prefetching is beneficial for the given CPU.
3746 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
3748 PR rtl-optimization/44326
3749 * implicit-zee.c (find_removable_zero_extends): Replace
3750 INSN_P with NONDEBUG_INSN_P.
3752 2010-06-25 Martin Jambor <mjambor@suse.cz>
3754 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3755 (struct ipa_node_params): Removed the modification_analysis_done flag.
3756 (ipa_is_param_modified): Removed.
3757 (ipa_analyze_node): Declare.
3758 (ipa_compute_jump_functions): Remove declaration.
3759 (ipa_count_arguments): Likewise.
3760 (ipa_detect_param_modifications): Likewise.
3761 (ipa_analyze_params_uses): Likewise.
3762 * ipa-prop.c (struct param_analysis_info): New type.
3763 (visit_store_addr_for_mod_analysis): Removed.
3764 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3765 moved down in the file.
3766 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3767 (ipa_count_arguments): Made static.
3768 (mark_modified): New function.
3769 (is_parm_modified_before_call): New function.
3770 (compute_pass_through_member_ptrs): New parameter parms_info, call
3771 is_parm_modified_before_call instead of ipa_is_param_modified.
3772 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3773 it to compute_pass_through_member_ptrs.
3774 (ipa_compute_jump_functions): New parameter parms_info, pass it to
3775 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
3776 on the callee if it is analyzed. Made static.
3777 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3778 is_parm_modified_before_call instead of ipa_is_param_modified.
3779 (ipa_analyze_call_uses): New parameter parms_info, pass it to
3780 ipa_analyze_indirect_call_uses.
3781 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3782 ipa_analyze_call_uses.
3783 (ipa_analyze_params_uses): New parameter parms_info, pass it to
3784 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
3785 (ipa_analyze_node): New function.
3786 (ipa_print_node_params): Do not dump the modified flag.
3787 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3788 it. Do not stream the modified parameter flag.
3789 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3790 it. Do not stream the modified parameter flag.
3791 * ipa-cp.c (ipcp_analyze_node): Removed.
3792 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3793 with only a call to ipa_analyze_node.
3794 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3795 node with only a call to ipa_analyze_node.
3797 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3799 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3801 2010-06-25 Jan Hubicka <jh@suse.cz>
3803 * tree-pass.h (pass_split_functions): Declare.
3804 * opts.c (decode_options): Enable function splitting at -O2
3805 * timevar.def (TV_IPA_FNSPLIT): New macro.
3806 * ipa-split.c: New file.
3807 * common.opt (-fpartial-inlining): New flag.
3808 * Makefile.in (ipa-split.o): New object file.
3809 * passes.c (init_optimization_passes): Add ipa-split.
3810 * params.def (partial-inlining-entry-probability): New parameters.
3811 * doc/invoke.texi (-fpartial-inlining): New.
3813 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
3816 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3817 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3818 (gimplify_expr): Likewise.
3820 2010-06-25 Martin Jambor <mjambor@suse.cz>
3822 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3823 statements instead of bailing out on them.
3824 (ipa_analyze_indirect_call_uses): Do not require that loads from the
3825 parameter are in the same BB as the condition. Update comments.
3827 2010-06-25 Jakub Jelinek <jakub@redhat.com>
3830 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3831 true or always false, return NULL_TREE.
3832 (tree_unswitch_single_loop): Optimize conditions even when reaching
3833 max-unswitch-level parameter. If num > 0, optimize first all conditions
3834 using entry checks, then do still reachable block discovery and consider
3835 only conditions in still reachable basic blocks in the loop.
3837 PR tree-optimization/44539
3838 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3839 the call doesn't have LHS, but has VDEF.
3841 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3843 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3844 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3845 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3846 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3847 * system.h (MODIFY_TARGET_NAME): Poison.
3849 2010-06-25 Alan Modra <amodra@gmail.com>
3851 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3852 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3853 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3854 CMODEL_LARGE as default.
3855 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3856 (offsettable_ok_by_alignment): Delete.
3857 (rs6000_emit_move): Remove mcmodel=medium optimization.
3859 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3861 With large parts from Jim Wilson:
3863 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3864 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3865 * optabs.c (optab_for_tree_code): Likewise.
3866 (expand_widen_pattern_expr): Likewise.
3867 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3868 out of execute_optimize_widening_mul.
3869 (convert_plusminus_to_widen): New function.
3870 (execute_optimize_widening_mul): Use the two new functions.
3871 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3872 Remove code to generate widening multiply-accumulate. Add support
3873 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3874 * gimple-pretty-print.c (dump_ternary_rhs): New function.
3875 (dump_gimple_assign): Call it when appropriate.
3876 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3877 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3878 (expand_gimple_stmt_1): Likewise.
3879 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3880 WIDEN_MULT_MINUS_EXPR.
3881 * tree-ssa-operands.c (get_expr_operands): Likewise.
3882 * tree-inline.c (estimate_operator_cost): Likewise.
3883 * gimple.c (extract_ops_from_tree_1): Renamed from
3884 extract_ops_from_tree. Add new arg for a third operand; fill it.
3885 (gimple_build_assign_stat): Support operations with three operands.
3886 (gimple_build_assign_with_ops_stat): Likewise.
3887 (gimple_assign_set_rhs_from_tree): Likewise.
3888 (gimple_assign_set_rhs_with_ops_1): Renamed from
3889 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
3890 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3891 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3892 WIDEN_MULT_MINUS_EXPR.
3893 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3894 (extract_ops_from_tree_1): Adjust declaration.
3895 (gimple_assign_set_rhs_with_ops_1): Likewise.
3896 (gimple_build_assign_with_ops): Pass NULL for last operand.
3897 (gimple_build_assign_with_ops3): New macro.
3898 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3899 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3901 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3902 (verify_gimple_assign): Call it.
3903 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3904 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3905 functions for dealing with three-operand statements.
3906 * tree.c (commutative_ternary_tree_code): New function.
3907 * tree.h (commutative_ternary_tree_code): Declare it.
3908 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3910 (gimple_assign_nonzero_warnv_p): Likewise.
3911 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3912 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3913 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
3914 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3915 (struct hashtable_expr): New member ternary in the union.
3916 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3917 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
3918 (iterative_hash_hashable_expr): Likewise.
3919 (print_expr_hash_elt): Handle EXPR_TERNARY.
3920 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3921 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3922 statements. Handle GIMPLE_TERNARY_RHS.
3924 2010-06-25 Jan Hubicka <jh@suse.cz>
3926 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3928 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
3931 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3932 parameters are not good.
3933 (c_parser_parameter_declaration): Error unknown type name if the type
3934 name can't start declaration specifiers.
3936 2010-06-25 Joseph Myers <joseph@codesourcery.com>
3938 * gcc.c (translate_options): Don't mention +e in comment.
3939 (process_command): Don't handle +e specially.
3941 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
3943 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3945 * ira-build.c (merge_hard_reg_conflicts): New function.
3946 (create_cap_allocno, copy_info_to_removed_store_destinations,
3947 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3948 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3949 (remove_unnecessary_allocnos, remove_low_level_allocnos)
3950 copy_nifo_to_removed_store_destination): Use them.
3951 * ira-lives.c (make_hard_regno_born): New function, split out of
3953 (make_allocno_born): Likewise.
3954 (make_hard_regno_dead): New function, split out of make_regno_dead.
3955 (make_allocno_dead): Likewise.
3956 (inc_register_pressure): New function, split out of set_allocno_live.
3957 (dec_register_pressure): New function, split out of clear_allocno_live.
3958 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3959 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
3960 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3961 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
3962 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3963 mark_pseudo_regno_live.
3964 (process_bb_node_lives): Use mark_pseudo_regno_live,
3965 make_hard_regno_born and make_allocno_dead.
3966 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3967 set_allocno_live, clear_allocno_live): Delete functions.
3969 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3970 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3972 (ira_flattening): Use ira_parent_allocno.
3973 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3974 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3976 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3979 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3980 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3981 minmax_set_iter_cond, minmax_set_iter_next,
3982 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3983 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3984 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3985 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
3988 * ira-int.h (struct live_range, live_range_t): Renamed from struct
3989 ira_allocno_live_range and allocno_live_range_t; all uses changed.
3990 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3993 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
3995 * thumb2.md (thumb2_tlobits_cbranch): Delete.
3996 (peephole2 to convert zero_extract/compare of single bit to
3997 lshift/compare): New.
3999 2010-06-24 Anatoly Sokolov <aesok@post.ru>
4001 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
4002 recursive call and call to 'int_const_binop'.
4003 (build_range_check, fold_cond_expr_with_comparison, unextend,
4004 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
4005 multiple_of_p): Adjust call to const_binop.
4007 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
4009 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
4010 determine size of XFmode operand.
4011 (XFmode extended DFmode push splitter): Ditto.
4012 (XFmode extended SFmode push splitter): Ditto.
4014 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
4017 * config/i386/i386.md (extract_code): New.
4018 (<u>divmodqi4): Likewise.
4019 (divmodhiqi3): Likewise.
4020 (udivmodhiqi3): Likewise.
4021 (<u>divqi3): Remvoved.
4023 2010-06-24 Jakub Jelinek <jakub@redhat.com>
4026 * recog.h (struct recog_data): Add is_asm field.
4027 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
4028 present in constraints of inline-asm operand and memory operand
4029 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
4030 (extract_insn): Initialize recog_data.is_asm.
4031 * doc/md.texi (Constraints): Document operand side-effect rules.
4033 2010-06-24 Andi Kleen <ak@linux.intel.com>
4035 * c-parser.c (c_parser_conditional_expression): Call
4036 warn_for_omitted_condop.
4037 * doc/invoke.texi: Document omitted condop warning.
4039 2010-06-24 Nick Clifton<nickc@redhat.com>
4041 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
4042 insn in the sequence is a jump insn before setting its label.
4044 2010-06-24 Alan Modra <amodra@gmail.com>
4046 * collect2.c (main): Match exactly --version and --help.
4048 2010-06-24 DJ Delorie <dj@redhat.com>
4050 * config/m32c/m32c-pragma.c: Don't include rtl.h.
4052 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
4054 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
4055 using X87MODEF mode iterator.
4056 (pushsf splitter): Macroize splitter using P mode iterator.
4057 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
4060 (*movxf_internal): Rename from *movxf_integer.
4061 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
4062 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
4063 (*movdf_internal): Rename from *movdf_integer.
4064 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
4065 (*movsf_internal): Rename from *movdf_1.
4067 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
4069 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
4070 (const_gimple_seq_node): Removed typedefs.
4072 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
4073 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
4075 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
4077 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
4078 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
4079 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
4080 and CODE_FOR_vec_extract_lo_v4df.
4082 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
4083 Changed to define_insn_and_split.
4084 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
4085 (vec_extract_lo_v16hi): Likewise.
4086 (vec_extract_lo_v32qi): Likewise.
4087 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
4088 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
4090 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
4093 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
4094 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
4095 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
4096 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
4097 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
4100 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
4103 * df-core.c (struct df): Rename to df_d.
4104 * df.h (struct df): Likewise.
4105 * dse.h (struct df): Remove forward declaration.
4106 * recog.h (struct insn_data): Rename to:
4107 (struct_insn_data_d). Adjusted all users.
4109 2010-06-23 Arnaud Charlet <charlet@adacore.com
4112 * doc/install.texi: Update requirements to build GNAT.
4114 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
4116 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
4118 (m68k_sched_attr_opx_type): Remove unreachable return.
4119 (m68k_sched_attr_opy_type): Likewise.
4120 (m68k_sched_attr_size): Likewise.
4121 (sched_get_opxy_mem_type): Likewise.
4122 (m68k_sched_attr_op_mem): Likewise.
4124 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
4126 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
4127 new statement and adjust VDEF only if necessary. Remove superfluous
4128 call to maybe_clean_or_replace_eh_stmt.
4129 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
4131 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
4132 * tree-inline.c (copy_bb): ...and not there.
4134 2010-06-22 Cary Coutant <ccoutant@google.com>
4136 * dwarf2out.c (is_nested_in_subprogram): New function.
4137 (should_move_die_to_comdat): Use it.
4138 (copy_ancestor_tree): Don't mark DIEs here.
4139 (copy_decls_walk): Start walk from root of newly-added tree;
4140 mark DIEs here instead.
4142 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
4144 * config/i386/i386.md (unit): Also check sseishft1.
4146 2010-06-22 Jan Hubicka <jh@suse.cz>
4148 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
4151 2010-06-22 Jan Hubicka <jh@suse.cz>
4153 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
4154 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
4155 Return true if something changed.
4156 * df.h (df_confluence_function_n): Return bool.
4157 * df-core.c (df_worklist_propagate_forward,
4158 df_worklist_propagate_backward): Track changes and ages.
4159 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
4161 * dse.c (dse_confluence_n): Return always true.
4163 2010-06-22 Jan Hubicka <jh@suse.cz>
4165 * bitmap.c (bitmap_clear_bit): Micro optimize.
4167 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
4169 * config/i386/i386.md (SWI1248x): New mode iterator.
4174 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
4175 SWI1248x mode iterator.
4176 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
4177 using SWI124 mode iterator.
4178 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
4180 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
4181 *pushdi2_prologue_rex64 using P mode iterator.
4182 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
4183 using SWI48 mode iterator.
4184 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
4185 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
4186 using SWI1248x mode iterator.
4187 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
4188 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
4189 SWI48 mode iterator.
4190 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
4192 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
4193 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
4194 SWI12 mode iterator.
4195 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
4196 SWI12 mode iterator.
4197 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
4198 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
4199 SWI24 mode iterator.
4200 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
4201 SWI48 mode iterator.
4202 (mov<mode>_insn_1): New expander.
4203 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
4204 using SWI48x mode iterator.
4206 (*movoi_internal_avx): Rename from *movoi_internal.
4207 (*movti_internal_rex64): Rename from *movti_rex64.
4208 (*movti_internal_sse): Rename from *movti_sse.
4209 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
4210 (*movdi_internal): Rename from *movdi_2.
4211 (*movsi_internal): Rename from *movsi_1.
4212 (*movhi_internal): Rename from *movhi_1.
4213 (*movqi_internal): Rename from *movqi_1.
4215 (insv): Update the call to gen_movsi_insv_1 for rename.
4216 * config/i386/i386.c (promote_duplicated_reg): Ditto.
4218 2010-06-22 Jan Hubicka <jh@suse.cz>
4220 * passes.c (execute_function_todo): Move call of statistics_fini_pass
4222 (execute_todo) ... this one.
4224 2010-06-22 Alan Modra <amodra@gmail.com>
4227 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
4228 * caller-save.c (insert_restore, insert_save): Use non-validate
4229 form of adjust_address.
4231 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4234 * config/pa/pa.c (override_options): Disable
4235 -freorder-blocks-and-partition.
4237 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
4240 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
4242 * config/i386/i386.md (type): Add sseishft1
4244 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
4245 (ppro_insn_load): Likewise.
4246 (ppro_insn_store): Likewise.
4247 (ppro_insn_both): Likewise.
4249 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
4250 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
4252 (*vec_extractv2di_1_avx): Likewise.
4253 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
4254 type. Remove atom_unit.
4255 (*vec_extractv2di_1_sse2): Likewise.
4257 2010-06-21 DJ Delorie <dj@redhat.com>
4259 * diagnostic.h (diagnostic_classification_change_t): New.
4260 (diagnostic_context): Add history and push/pop list.
4261 (diagnostic_push_diagnostics): Declare.
4262 (diagnostic_pop_diagnostics): Declare.
4263 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
4264 from pragmas in a history chain instead of the global table.
4265 (diagnostic_push_diagnostics): New.
4266 (diagnostic_pop_diagnostics): New.
4267 (diagnostic_report_diagnostic): Scan history chain to find state
4268 of diagnostics as of the diagnostic location.
4269 * opts.c (set_option): Pass UNKNOWN_LOCATION to
4270 diagnostic_classify_diagnostic.
4271 (enable_warning_as_error): Likewise.
4272 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
4273 use in the history chain.
4274 * doc/extend.texi: Document pragma GCC diagnostic changes.
4276 2010-06-21 Jakub Jelinek <jakub@redhat.com>
4278 * dwarf2out.c (add_linkage_name): New function. Don't add
4279 anything to DW_TAG_member DIEs.
4280 (add_name_and_src_coords_attributes): Use it.
4281 (gen_variable_die): Call it for C++ static data members if
4282 specification is DW_TAG_member.
4284 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
4285 C++ char16_t and char32_t.
4287 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
4288 * genattrtab.c: Include vecprim.h.
4289 (cached_attrs, cached_attr_count, attrs_seen_once,
4290 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
4291 attrs_cached_after): New variables.
4292 (find_attrs_to_cache): New function.
4293 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
4294 (write_test_expr): Add attrs_cached argument, return it too,
4295 attempt to cache non-const attributes used more than once in
4296 a single case handling.
4297 (write_attr_get): Use find_attrs_to_cache, for caching candidates
4298 emit cached_* variables. Adjust write_attr_set callers.
4299 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
4300 to find attributes that should be cached in this block. Adjust
4301 write_test_expr callers.
4302 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
4304 (make_automaton_attrs): Adjust write_test_expr caller.
4306 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
4307 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
4308 (make_automaton_attrs): If find_tune_attr returns non-NULL,
4309 write separate internal_dfa_insn_code_* and insn_default_latency_*
4310 functions for each attribute's value and emit init_sched_attrs
4311 function and function pointers.
4312 * genattr.c (const_attrs, reservations): New variables.
4313 (gen_attr): Add const attributes to const_attrs vector.
4314 (check_tune_attr, find_tune_attr): New functions.
4315 (main): Add reservations to reservations vector. If find_tune_attr
4316 returns true, add prototype for init_sched_attrs and make
4317 internal_dfa_insn_code and insn_default_latency function pointers,
4318 otherwise define init_sched_attrs as dummy macro.
4319 * cfgexpand.c: Include insn-attr.h.
4320 (gimple_expand_cfg): Call init_sched_attrs.
4322 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
4325 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
4326 va_arg from a set of register save slots into a temporary,
4327 if the container is bigger than type size, do the copying
4328 using smaller mode or using memcpy.
4331 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
4333 (sel_print_to_dot): Remove macro.
4334 (sel_print): Likewise. New prototype.
4335 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
4336 (sel_print): New function.
4338 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4340 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
4341 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
4343 2010-06-21 Nick Clifton <nickc@redhat.com>
4345 * config/rx/rx.h (PTRDIFF_TYPE): Define.
4346 (SMALL_REGISTER_CLASS): Define (to zero).
4347 (PRINT_OPERAND): Delete.
4348 (PRINT_OPERAND_ADDRESS): Delete.
4349 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
4350 (rx_print_operand_address): Delete prototype.
4351 * config/rx/rx.c (rx_print_operand): Make static.
4352 Allow %H and %L to handle CONST_DOUBLEs.
4353 (rx_print_operand_address): Make static.
4354 (rx_gen_move_template): Rename local variable 'template' to
4356 (rx_function_arg): Do not pass unknown sized objects in registers.
4357 (TARGET_PRINT_OPERAND): Define.
4358 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4360 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4362 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
4364 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
4366 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
4367 stack-alignment for simple leaf-functions.
4369 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4371 * doc/install.texi: Document bootstrap-lto.
4373 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
4376 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
4377 (input_function): Drop them here, if VTA is disabled.
4379 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
4382 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
4384 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
4385 ix86_swapped_fp_comparsion_operator instead of
4386 ix86_fp_comparison_operator.
4388 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
4389 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
4390 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
4391 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
4392 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
4393 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
4395 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4398 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
4399 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
4400 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
4401 (decode_cmdline_option): Update for this return value. Set
4402 orig_option_with_args_text field. Set arg field for unknown
4403 options. Make static.
4404 (decode_cmdline_options_to_array): New.
4405 (prune_options): Update handling of find_opt return value.
4406 * opts.c (read_cmdline_option): Take decoded option. Return void.
4407 (read_cmdline_options): Take decoded options.
4408 (decode_options): Add parameters for decoded options. Use
4409 decode_cmdline_options_to_array. Use decoded options for -O
4410 scan. Use integral_argument for -O parameters. Update call to
4411 read_cmdline_options.
4412 (enable_warning_as_error): Update handling of find_opt return value.
4413 * opts.h: Update comment on unknown options.
4414 (struct cl_decoded_option): Update comments on opt_index and arg.
4415 Add orig_option_with_args_text.
4416 (decode_cmdline_option): Remove.
4417 (decode_cmdline_options_to_array): Declare.
4418 (decode_options): Update prototype.
4419 * toplev.c (save_argv): Remove.
4420 (save_decoded_options, save_decoded_options_count): New.
4421 (read_integral_parameter): Remove.
4422 (print_switch_values): Use decoded options.
4423 (toplev_main): Don't set save_argv. Update call to decode_options.
4424 * toplev.h (read_integral_parameter): Remove.
4425 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
4427 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
4430 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
4432 * constraints.md (Pw, Px): New constraints.
4433 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
4435 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
4437 * config/i386/sse.md (fma4modesuffixf4): Removed.
4438 (ssemodesuffixf2s): Likewise.
4439 (ssemodesuffixf4): Likewise.
4440 (ssemodesuffixf2c): Likewise.
4441 (ssescalarmodesuffix2s): Likewise.
4442 (avxmodesuffixf2c): Likewise.
4443 (ssemodesuffix): New.
4444 (ssescalarmodesuffix): Likewise.
4445 Update patterns with ssemodesuffix and ssescalarmodesuffix.
4447 2010-06-19 Philip Herron <herron.philip@googlemail.com>
4449 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
4451 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
4453 * stor-layout.c (debug_rli): Remove unused local variables.
4455 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
4457 PR rtl-optimization/40900
4458 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
4459 original expression for later reuse.
4460 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
4461 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
4463 2010-06-18 Anatoly Sokolov <aesok@post.ru>
4465 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
4466 double_int_fits_in_uhwi_p): Implement as static inline.
4467 (double_int_xor): New inline function.
4468 (double_int_lrotate, double_int_rrotate, double_int_max,
4469 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4470 double_int_smin): Declare.
4471 (lrotate_double, rrotate_double): Remove declaration.
4472 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
4473 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
4474 (double_int_lrotate, double_int_rrotate, double_int_max,
4475 double_int_umax, double_int_smax, double_int_min, double_int_umin,
4476 double_int_smin): New function.
4477 * fold-const.c (int_const_binop): Clean up, use double_int_*
4479 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
4480 double_int_* and immed_double_int_const functions.
4482 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4484 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
4485 * function.c (types_used_by_cur_var_decl): Likewise.
4486 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
4488 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4490 * tree.h (record_layout_info): Change type of pending_statics field
4492 * stor-layout.c (start_record_layout): Store NULL into
4494 (debug_rli): Call debug_vec_tree instead of debug_tree.
4495 (place_field): Likewise.
4496 (finish_record_layout): Likewise.
4498 2010-06-18 Alan Modra <amodra@gmail.com>
4500 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
4502 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4505 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
4506 for SET source operand from SET destination operand.
4508 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
4510 PR rtl-optimization/39871
4511 * reload1.c (init_eliminable_invariants): For flag_pic, disable
4512 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
4513 (function_invariant_p): Rule out a plus of frame or arg pointer with
4515 * ira.c (find_reg_equiv_invariant_const): Likewise.
4517 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
4519 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
4520 print_operand_address and puts to output the operand for CONST.
4522 2010-06-17 Jakub Jelinek <jakub@redhat.com>
4525 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
4528 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4530 * v850-protos.h (print_operand): Delete.
4531 (print_operand_address): Delete.
4532 * v850.h (PRINT_OPERAND): Delete.
4533 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4534 (PRINT_OPERAND_ADDRESS): Delete.
4535 * v850.c (print_operand_address): Rename to...
4536 (v850_print_operand_address): ...this. Make static. Call
4538 (print_operand): Rename to...
4539 (v850_print_operand): ...this. Make static. Call
4540 v850_print_operand_address.
4541 (v850_print_operand_punct_valid_p): New function.
4542 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4543 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4545 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4547 * config/sh/sh-protos.h (print_operand): Delete.
4548 (print_operand_address): Delete.
4549 * config/sh/sh.h (PRINT_OPERAND): Delete.
4550 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4551 (PRINT_OPERAND_ADDRESS): Delete.
4552 * config/sh/sh.c (sh_print_operand_address): Make static.
4553 (sh_print_operand): Make static. Call sh_print_operand_address
4554 and sh_print_operand.
4555 (sh_print_operand_punct_valid_p): New function.
4556 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4557 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4559 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4561 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
4562 (mcore_print_operand_address): Delete.
4563 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
4564 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4565 (PRINT_OPERAND_ADDRESS): Delete.
4566 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
4567 (mcore_print_operand): Make static.
4568 (mcore_print_operand_punct_valid_p): New function.
4569 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
4570 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4572 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4574 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
4575 (print_operand_address): Delete.
4576 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
4577 (PRINT_OPERAND_ADDRESS): Delete.
4578 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
4580 (m68hc11_print_operand): Make static.
4581 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4583 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4585 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
4586 (m32r_print_operand_address): Delete.
4587 * config/m32r/m32r.h (m32r_punct_chars): Delete.
4588 (PRINT_OPERAND): Delete.
4589 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4590 (PRINT_OPERAND_ADDRESS): Delete.
4591 * config/m32r/m32r.c (m32r_punct_chars): Make static.
4592 (m32r_print_operand_address): Make static.
4593 (m32r_print_operand): Make static.
4594 (m32r_print_operand_punct_valid_p): New function.
4595 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4596 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4598 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4600 * config/iq2000/iq2000-protos.h (print_operand): Delete.
4601 (print_operand_address): Delete.
4602 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
4603 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4604 (PRINT_OPERAND_ADDRESS): Delete.
4605 (iq2000_print_operand_punct): Delete.
4606 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
4607 (iq2000_print_operand_address): Make static.
4608 (iq2000_print_operand): Make static.
4609 (iq2000_print_operand_punct_valid_p): New function.
4610 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4611 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4613 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4615 * config/frv/frv-protos.h (frv_print_operand): Delete.
4616 (frv_print_operand_address): Delete.
4617 * config/frv/frv.h (PRINT_OPERAND): Delete.
4618 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4619 (PRINT_OPERAND_ADDRESS): Delete.
4620 * config/frv/frv.c (frv_print_operand_address): Make static.
4621 (frv_print_operand): Make static.
4622 (frv_print_operand_punct_valid_p): New function.
4623 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4624 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4626 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
4628 * tree.h (vec_member): Declare.
4629 * tree.c (vec_member): Define.
4631 2010-06-17 Richard Guenther <rguenther@suse.de>
4633 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
4634 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
4636 2010-06-17 Richard Guenther <rguenther@suse.de>
4638 * tree-inline.c (declare_return_variable): Remove bogus code.
4640 2010-06-17 Richard Guenther <rguenther@suse.de>
4642 * gimplify.c (gimplify_bind_expr): Always promote complex
4643 and vector variables to registers if possible.
4645 2010-06-17 Richard Guenther <rguenther@suse.de>
4647 * expr.c (get_inner_reference): Use double_int for bit_offset
4650 2010-06-16 DJ Delorie <dj@redhat.com>
4652 * common.opt (-fstrict-volatile-bitfields): new.
4653 * doc/invoke.texi: Document it.
4654 * fold-const.c (optimize_bit_field_compare): For volatile
4655 bitfields, use the field's type to determine the mode, not the
4657 * expr.c (expand_assignment): Likewise.
4658 (get_inner_reference): Likewise.
4659 (expand_expr_real_1): Likewise.
4660 * expmed.c (store_fixed_bit_field): Likewise.
4661 (extract_bit_field_1): Likewise.
4662 (extract_fixed_bit_field): Likewise.
4664 2010-06-16 Richard Guenther <rguenther@suse.de>
4666 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4668 2010-06-16 Douglas B Rupp <rupp@gnat.com>
4670 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4671 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4672 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4673 * debug.c: Likewise.
4674 * sdbout.c: Likewise.
4675 * vmsdbgout.c: Likewise.
4676 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4677 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4678 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4679 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4680 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4681 * dwarf2out.c (dw_fde_struct): New fields
4682 dw_fde_vms_{end,begin}_prologue.
4683 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4684 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4685 (dwarf2out_vms_end_prologue): New function.
4686 (dwarf2out_vms_begin_epilogue): New function.
4687 (dw_val_struct): New value dw_val_class_vms_delta.
4688 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4689 begin_epilogue for VMS.
4690 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4691 new static functions.
4692 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4693 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4695 (print_die): New case dw_val_class_vms_delta.
4696 (attr_checksum): Likewise.
4697 (same_dw_val_p: Likewise.
4698 (size_of_die): Likewise.
4699 (value_format): Likewise.
4700 (output_die): Likewise.
4701 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4702 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4703 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4704 dwarf2out_cfi_begin_epilogue
4705 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4707 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4709 * config/cris/cris-protos.h (cris_print_operand): Delete.
4710 (cris_print_operand_address): Delete.
4711 * config/cris/cris.h (PRINT_OPERAND): Delete.
4712 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4713 (PRINT_OPERAND_ADDRESS): Delete.
4714 * config/cris/cris.c (cris_print_operand_address): Make static.
4715 (cris_print_operand): Make static.
4716 (cris_print_operand_punct_valid_p): New function.
4717 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4718 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4720 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
4722 * config/arm/arm-protos.h (arm_print_operand): Delete.
4723 (arm_print_operand_address): Delete.
4724 * config/arm/arm.h (PRINT_OPERAND): Delete.
4725 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4726 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4727 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4728 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
4729 (arm_print_operand): Make static.
4730 (arm_print_operand_punct_valid_p): New function.
4731 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4732 (TARGET_PRINT_OPERAND_ADDRESS): Define.
4734 2010-06-16 Nick Clifton <nickc@redhat.com>
4736 * config/rx/constraints.md (NEGint4): New constraint.
4737 * config/rx/rx.md (attr cc): Add set_zsc.
4738 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4741 (call_internal): Clobber the cc0 register.
4742 (call_value_internal): Likewise.
4743 (cstoresi4): Likewise.
4744 (movsieq): Likewise.
4745 (movsine): Likewise.
4746 (addsi3): Add alternative to handle small negative constants.
4748 (addsi3): Do not set the O bit in the cc0 register.
4752 (andsi3): Reorder alternatives to prefer shorter forms.
4755 (negsi2): Note that the cc0 flags are set.
4756 (rotlsi3): Note that only the Z and S bits are set in cc0.
4757 (lshrsi3): Likewise.
4758 (ashlsi3): Likewise.
4759 (subsf3): Use %Q for the MEM operand.
4760 (fix_truncsfsi2): Likewise.
4761 (floatsisf2): Likewise.
4762 (bitset): Remove early clobber from destination.
4763 (bitset_in_memory): Likewise.
4764 (lrintsf2): Clobber the cc0 register.
4765 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4766 (rx_print_operand): Handle %N.
4768 2010-06-16 Jan Hubicka <jh@suse.cz>
4770 * df-core.c (df_compact_blocks): Free problem_temps vector.
4772 2010-06-16 Martin Jambor <mjambor@suse.cz>
4774 PR tree-optimization/43905
4775 * tree-sra.c: Include tree-inline.h.
4776 (create_abstract_origin): Removed.
4777 (modify_function): Version the call graph node instead of creating
4778 abstract origins and dealing with same_body aliases.
4779 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4780 function is versionable.
4781 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4783 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
4785 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4786 (CHOOSE_DYNAMIC_LINKER): Update.
4788 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
4790 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
4791 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4792 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4793 *prefetch_3dnow_rex.
4795 2010-06-15 Anatoly Sokolov <aesok@post.ru>
4797 * target.h (struct asm_out):Add declare_constant_name field.
4798 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4799 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4800 * output.h (default_asm_declare_constant_name): Declare.
4801 (assemble_label): Update prototype.
4802 * varasm.c (assemble_constant_contents): Use
4803 targetm.asm_out.declare_constant_name target hook.
4804 (assemble_label): Add 'file' argument.
4805 (default_asm_declare_constant_name): New function.
4806 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4807 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4808 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4810 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4811 * config/darwin.c (darwin_asm_declare_constant_name): New function.
4812 (machopic_output_indirection): Update assemble_label argument list.
4813 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4814 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4816 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
4819 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4820 size_one_node for pointer types. Do not call gmp_cst_to_tree.
4822 2010-06-15 Richard Guenther <rguenther@suse.de>
4824 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4826 2010-06-15 Paul Brook <paul@codesourcery.com>
4828 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4831 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
4833 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4834 don't get a vector type for output.
4836 2010-06-15 Jakub Jelinek <jakub@redhat.com>
4839 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4840 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4841 (LANG_HOOKS_DECLS): Add it.
4842 * gimplify.c (omp_notice_variable): Call
4843 lang_hooks.decls.omp_report_decl.
4845 2010-06-15 Martin Jambor <mjambor@suse.cz>
4848 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4849 on the newly dead SSA name.
4851 2010-06-15 Alan Modra <amodra@gmail.com>
4853 * doc/invoke.texi: Add mcmodel to powerpc options.
4854 * configure.ac: Add HAVE_LD_LARGE_TOC test.
4855 * configure: Regenerate.
4856 * config.in: Regenerate.
4857 * config/rs6000/linux64.opt (mcmodel): New.
4858 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4859 (TARGET_CMODEL, SET_CMODEL): Define.
4860 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4861 select CMODEL_MEDIUM default.
4862 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4863 (TARGET_CMODEL): Define default.
4864 * config/rs6000/rs6000.c (cmodel): New variable.
4865 (rs6000_explicit_options): Add cmodel field.
4866 (rs6000_handle_option): Handle -mcmodel.
4867 (create_TOC_reference): Add largetoc_reg param. Generate high,
4868 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
4869 (rs6000_delegitimize_address): Recognise new toc reference rtl
4870 and minimal-toc rtl.
4871 (rs6000_legitimize_reload_address): Handle new toc references.
4872 (print_operand_address): Handle legitimate_constant_pool_address_p
4873 match before lo_sum.
4874 (rs6000_eliminate_indexed_memrefs): Tidy.
4875 (rs6000_emit_move): Tweak threshold for inlining constants.
4876 Keep rs6000_emit_allocate_stack large stack frame offsets
4877 loaded into r0 inline.
4878 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4879 (tocrel_base, tocrel_offset): New variables.
4880 (toc_relative_expr_p): Set them here.
4881 (print_operand_address): Skip over any offset on constant pool address.
4882 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4883 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4884 (offsettable_ok_by_alignment): New function.
4885 (rs6000_emit_move): Address suitably aligned local symbol_refs
4886 relative to the toc pointer for -mcmodel=medium.
4887 (legitimate_constant_pool_address_p): Make param const_rtx. Add
4888 strict param. Allow lo_sum version of addressing. Verify reg
4889 used for -mminimal-toc and -mcmodel != small. Update all callers.
4890 * config/rs6000/constraints.md: Update for above change.
4891 * config/rs6000/predicates.md: Likewise.
4892 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4894 (tls_gd): Split for -mcmodel=medium/large.
4895 (tls_gd_high, tls_gd_low): New.
4896 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4897 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4898 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4899 (largetoc_high, largetoc_low): New.
4900 (cmptf_internal2): Add clobber.
4901 * config/rs6000/rs6000-protos.h: Update.
4903 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
4905 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
4906 true if no prefetch is going to be generated for a given group.
4907 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4908 estimate the prefetch_count.
4909 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4910 prefetch count by considering the unroll_factor and prefetch_mod
4911 for is_loop_prefetching_profitable.
4913 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
4915 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4916 anything if the argument is not a MEM.
4918 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4923 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4925 (canonicalize_loop_ivs): Likewise.
4927 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
4930 * haifa-sched.c (setup_insn_reg_pressure_info,
4931 update_register_pressure): Reject debug insns.
4932 (ready_sort): Don't setup reg pressure for debug insns.
4933 (schedule_insn): Don't update reg pressure for debug insns.
4935 2010-06-14 Richard Guenther <rguenther@suse.de>
4937 * lto-streamer.c (cached_bp): Remove.
4938 (bitpack_delete): Likewise.
4939 (bitpack_create): Likewise.
4940 (bp_get_next_word): Likewise.
4941 (bp_pack_value, bp_unpack_value): Move ...
4942 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4944 (struct bitpack_d): Likewise.
4945 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4946 New inline functions.
4947 * lto-streamer-out.c (lto_output_bitpack): Remove.
4948 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4949 (pack_value_fields): Adjust.
4950 (lto_write_tree): Likewise.
4951 (output_gimple_stmt): Likewise.
4952 (output_function): Likewise.
4953 * lto-streamer-in.c (input_gimple_stmt): Adjust.
4954 (input_function): Likewise.
4955 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
4956 (lto_input_bitpack): Remove.
4957 (lto_materialize_tree): Adjust.
4958 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4959 * lto-cgraph.c (lto_output_edge): Adjust.
4960 (lto_output_node): Likewise.
4961 (lto_output_varpool_node): Likewise.
4962 (lto_output_ref): Likewise.
4963 (input_node): Likewise.
4964 (input_varpool_node): Likewise.
4965 (input_ref): Likewise.
4966 (input_edge): Likewise.
4967 (output_node_opt_summary): Likewise.
4968 (input_node_opt_summary): Likewise.
4969 * ipa-pure-const.c (pure_const_write_summary): Likewise.
4970 (pure_const_read_summary): Likewise.
4971 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4972 (ipa_read_indirect_edge_info): Likewise.
4973 (ipa_write_node_info): Likewise.
4974 (ipa_read_node_info): Likewise.
4976 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
4979 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4980 (vec_extract_lo_v16hi): Likewise.
4981 (vec_extract_lo_v32qi): Likewise.
4983 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4986 * tree.h (build_call_expr): Don't define as vararg macro, instead
4988 * builtins.c (build_call_nofold): Remove.
4989 (expand_builtin_int_roundingfn, expand_builtin_pow,
4990 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4991 expand_builtin_memset_args, expand_builtin_strcmp,
4992 expand_builtin_strncmp, expand_builtin_memory_chk): Use
4993 build_call_nofold_loc instead of build_call_nofold.
4994 (build_call_expr): New function.
4996 PR tree-optimization/44508
4997 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4998 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4999 don't eliminate trivially dead stmts.
5000 * tree-vrp.c (vrp_finalize): Pass false as last argument
5001 to substitute_and_fold.
5002 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
5003 to substitute_and_fold.
5004 * tree-ssa-ccp.c (ccp_finalize): Likewise.
5007 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
5009 2010-06-14 Ira Rosen <irar@il.ibm.com>
5011 PR tree-optimization/44507
5012 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
5013 to build initial vector for BIT_AND_EXPR.
5014 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5016 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5018 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
5019 adjust z10prop set_attr.
5021 2010-06-13 Jan Hubicka <jh@suse.cz>
5023 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
5024 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
5025 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
5026 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
5027 datastructure checks into checking asserts.
5028 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
5029 * tree-ssa-sccvn.c (VN_INFO): Likewise.
5030 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
5031 df_ref_create_structure): Likewise.
5032 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
5033 pool_free): Use gcc_checking_assert.
5034 * alias.c (get_alias_set): Likewise.
5035 * var-tracking.c (variable_htab_free, shared_hash_copy,
5036 canonicalize_values_mark, variable_merge_over_cur): Likewise.
5037 * lto-streamer.c (bp_unpack_value): Likewise.
5039 2010-06-13 Richard Guenther <rguenther@suse.de>
5041 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
5042 Do not stream but initialize TYPE_CANONICAL to NULL.
5043 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
5044 * gimple.c (gimple_types_compatible_p): Disregard
5045 TYPE_STRUCTURAL_EQUALITY_P.
5046 (gimple_register_type): Use TYPE_CANONICAL as cache.
5047 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
5048 before registering common types.
5049 * config/i386/i386.c (ix86_function_arg_boundary): Do not
5050 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
5051 * tree.h (TYPE_CANONICAL): Clarify documentation.
5053 2010-06-13 Anatoly Sokolov <aesok@post.ru>
5055 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
5056 LIBCALL_VALUE): Remove macros.
5057 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
5058 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5059 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5060 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
5061 (ia64_function_value): Make static. Handle receiving the function
5062 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
5064 2010-06-12 Jan Hubicka <jh@suse.cz>
5066 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
5069 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
5071 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
5073 2010-06-12 Jan Hubicka <jh@suse.cz>
5075 * df-core.c (df_clear_bb_info): New function.
5076 (df_set_blocks): bb_info is always allocated.
5077 (df_get_bb_info): Use block_info_elt_size.
5078 (df_set_bb_info): Likewise.
5079 (df_compact_blocks): Update for new block_info.
5080 (grow_bb_info): New function.
5081 * df-problems.c (df_grow_bb_info): Move to df-core.c
5082 (df_rd_set_bb_info): Remove.
5083 (df_rd_free_bb_info): Do not free block pool.
5084 (df_rd_alloc): Do not create pool, use check for
5085 obstack presence instead of NULL pointer for new blocks.
5086 (df_rd_free): DO not free alloc pool; clear block_info.
5087 (problem_RD): Add size of block info structure.
5088 (df_lr_set_bb_info): Remove.
5089 (df_lr_free_bb_info): Do not free block pool.
5090 (df_lr_alloc): Do not create pool, use check for
5091 obstack presence instead of NULL pointer for new blocks.
5092 (df_lr_free): DO not free alloc pool; clear block_info.
5093 (problem_LR): Add size of block info structure.
5094 (df_live_set_bb_info): Remove.
5095 (df_live_free_bb_info): Do not free block pool.
5096 (df_live_alloc): Do not create pool, use check for
5097 obstack presence instead of NULL pointer for new blocks.
5098 (df_live_free): DO not free alloc pool; clear block_info.
5099 (problem_LIVE): Add size of block info structure.
5100 (problem_CHAIN): Add size of block info structure.
5101 (df_byte_lr_set_bb_info): Remove.
5102 (df_byte_lr_free_bb_info): Do not free block pool.
5103 (df_byte_lr_alloc): Do not create pool, use check for
5104 obstack presence instead of NULL pointer for new blocks.
5105 (df_byte_lr_free): DO not free alloc pool; clear block_info.
5106 (problem_BYTE_LR): Add size of block info structure.
5107 (problem_NOTE): Add size of block info structure.
5108 (df_byte_MD_set_bb_info): Remove.
5109 (df_byte_MD_free_bb_info): Do not free block pool.
5110 (df_byte_MD_alloc): Do not create pool, use check for
5111 obstack presence instead of NULL pointer for new blocks.
5112 (df_byte_MD_free): DO not free alloc pool; clear block_info.
5113 (problem_BD): Add size of block info structure.
5114 * df-scan.c (df_scan_free_internal): Free block pool.
5115 (df_scan_set_bb_info): Remove.
5116 (df_scan_free_bb_info): Check for artificial_defs instead
5117 of bb_info being non-NULL.
5118 (df_scan_alloc): DO not create df_scan_block pool.
5119 (problem_SCAN): Set size of block info.
5120 (df_bb_refs_record): Do not allocate bb_info.
5121 * df.h (df_problem): Add block_info_elt_size.
5122 (struct dataflow): Change block_info to void *.
5123 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
5124 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
5127 2010-06-12 Jan Hubicka <jh@suse.cz>
5129 PR tree-optimize/44485
5130 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
5131 containing use of return value of noreturn function.
5133 2010-06-12 Anatoly Sokolov <aesok@post.ru>
5135 * targhooks.c (default_function_value): Don't use
5136 FUNCTION_OUTGOING_VALUE.
5137 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
5138 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
5140 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
5142 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
5143 Add crtfastmath.o to extra_parts.
5144 * config/mips/crtfastmath.c: New.
5145 * config/mips/linux.h (ENDFILE_SPEC): New.
5147 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
5149 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
5150 old_type in parameter.
5151 (gcc_type_for_value): Update call to gcc_type_for_interval.
5152 (compute_type_for_level_1): Renamed compute_type_for_level.
5153 Update call to gcc_type_for_interval.
5155 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5157 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
5158 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
5160 2010-06-11 Joseph Myers <joseph@codesourcery.com>
5162 * opts-common.c: Include options.h.
5163 (integral_argument): Move from opts.c.
5164 (decode_cmdline_option): New. Based on read_cmdline_option.
5165 * opts.c (integral_argument): Move to opts-common.c.
5166 (read_cmdline_option): Move most contents to
5167 decode_cmdline_option. Use %qs in diagnostics.
5168 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
5169 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
5170 decode_cmdline_option): New.
5172 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5175 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
5176 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
5177 (partiysi2_cmp): Ditto.
5178 (*partiyhi2_cmp): Ditto.
5179 (*parityqi2_cmp): Remove.
5181 2010-06-11 Jan Hubicka <jh@suse.cz>
5183 * bitmap.h (bmp_iter_next_bit): New.
5184 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
5186 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
5187 Eric Botcazou <ebotcazou@adacore.com>
5189 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
5192 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5194 * config/i386/i386.md (unspec): New define_c_enum.
5197 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5199 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
5201 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
5204 * tree-if-conv.c (bb_predicate_s): New struct.
5205 (bb_predicate_p): New.
5206 (bb_has_predicate): New.
5207 (bb_predicate): New.
5208 (set_bb_predicate): New.
5209 (bb_predicate_gimplified_stmts): New.
5210 (set_bb_predicate_gimplified_stmts): New.
5211 (add_bb_predicate_gimplified_stmts): New.
5212 (init_bb_predicate): New.
5213 (free_bb_predicate): New.
5214 (is_predicated): Use bb_predicate.
5215 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
5216 (predicate_bbs): Same. Gimplify the condition of the basic blocks
5217 before processing their successors.
5218 (clean_predicate_lists): Removed.
5219 (find_phi_replacement_condition): Use bb_predicate.
5220 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
5222 (insert_gimplified_predicates): New.
5223 (combine_blocks): Call insert_gimplified_predicates.
5224 (tree_if_conversion): Call free_bb_predicate instead of
5225 clean_predicate_lists.
5227 2010-10-11 Paul Brook <paul@codesourcery.com>
5229 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
5230 * config/arm/arm.c (all_architectures): Change v7e-m default to
5232 * config/arm/arm-cores.def: Add cortex-m4.
5233 * config/arm/arm-tune.md: Regenerate.
5235 2010-06-11 Jan Hubicka <jh@suse.cz>
5237 * ipa-pure-const.c (special_builtlin_state): New function.
5238 (check_call): Use it instead of special casign BUILT_IN_RETURN.
5239 (propagate_pure_const): Use it.
5241 2010-06-11 Jan Hubicka <jh@suse.cz>
5243 * df-problems.c (df_live_scratch): Convert to bitmap_head.
5244 (df_live_alloc): Initialize df_live_scratch when initializing
5246 (df_live_transfer_function): Update uses of df_live_scratch.
5247 (df_live_free): Free problem_data; clear df_live_scratch before
5248 releasing the obstack.
5249 (df_md_free): Free problem data.
5251 2010-06-11 Jan Hubicka <jh@suse.cz>
5253 * doc/invoke.texi (Wsuggest-attribute): Document.
5254 (Wmissing-noreturn): Remove.
5255 * ipa-pure-const.c (warn_function_noreturn): New function.
5256 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
5257 warn_missing_noreturn.
5258 * common.opt (Wsuggest-attribute=noreturn): New.
5259 * tree-flow.h (warn_function_noreturn): Declare.
5260 * tree-cfg.c (execute_warn_function_noreturn): Use
5261 warn_function_noreturn.
5262 (gate_warn_function_noreturn): New.
5263 (pass_warn_function_noreturn): Update.
5265 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5267 * c-typeck.c (handle_warn_cast_qual): Add loc
5268 parameter. Improve warning message.
5269 (build_c_cast): Pass location to handle_warn_cast_qual.
5271 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
5273 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
5274 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
5276 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
5278 2010-06-10 Dodji Seketeli <dodji@redhat.com>
5280 Fix bootstap on mips
5281 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
5284 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
5286 * system.h (helper_const_non_const_cast): New inline for
5288 (CONST_CAST2): For gcc version <= 4.0 use
5289 new helper to do const/non-const casting.
5291 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5293 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
5294 * Makefile.in (OBJS-common): Include insn-enums.o.
5295 (insn-enums.o): New rule.
5296 (simple_generated_c): Add insn-enums.c.
5297 (build/genenums.o): New rule.
5298 (genprogmd): Add "enums".
5299 * genconstants.c (print_enum_type): Declare a C string array
5301 * genenums.c: New file.
5302 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
5303 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
5304 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
5306 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5308 * doc/md.texi (define_enum_attr): Document.
5309 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
5310 * read-md.h (lookup_enum_type): Declare.
5311 * read-md.c (lookup_enum_type): New function.
5312 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
5313 * genattrtab.c (attr_desc): Add an enum_name field.
5314 (evaluate_eq_attr): Take the associated attribute as argument.
5315 Get the enum prefix from the enum_name field, if defined.
5316 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
5317 (simplify_test_exp): Pass attr to evaluate_eq_attr.
5318 (add_attr_value): New function, split out from...
5319 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
5320 (write_test_expr): Pass attr to evaluate_eq_attr.
5321 (write_attr_get): Use the enum_name as the enum tag, if defined.
5322 (write_attr_valueq): Use the enum_name as a prefix, if defined.
5323 (find_attr): Initialize enum_name.
5324 (main): Handle DEFINE_ENUM_ATTR.
5325 * gensupport.c (process_rtx): Likewise.
5326 * config/mips/mips.h (mips_tune_attr): Delete.
5327 * config/mips/mips.md (cpu): Use define_attr_enum.
5329 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5331 * doc/md.texi (define_c_enum, define_enum): Document.
5332 * read-md.h (md_constant): Add a parent_enum field.
5333 (enum_value, enum_type): New structures.
5334 (upcase_string, traverse_enum_types): Declare.
5335 * read-md.c (enum_types): New variable.
5336 (upcase_string, add_constant): New functions.
5337 (handle_constants): Don't create the hash table here.
5339 (traverse_md_constants): Don't check for a null md_constants.
5340 (decimal_string, handle_enum, traverse_enum_types): New functions.
5341 (read_md_files): Initialize md_constants and md_enums.
5342 * genconstants.c (print_md_constant): Ignore info argument.
5343 Only print constants that belong to no enum.
5344 (print_enum_type): New function.
5345 (main): Don't pass stdout to print_md_constant. Call print_enum_type
5346 for each defined enum type.
5347 * config/mips/mips.md (processor): New define_enum.
5348 (unspec): New define_c_enum.
5349 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
5350 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
5351 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
5352 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
5353 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
5354 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
5355 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
5356 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
5357 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
5358 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
5359 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
5360 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
5361 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
5362 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
5363 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
5364 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
5365 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
5366 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
5367 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
5368 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
5369 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
5370 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
5371 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5372 (UNSPEC_RDDSP): Move to mips-dsp.md.
5373 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
5374 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
5375 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
5376 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
5377 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
5378 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
5379 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
5380 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
5381 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
5382 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
5383 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
5384 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
5385 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
5386 Moved to mips-dspr2.md.
5387 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
5388 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
5389 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
5390 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
5391 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
5392 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
5393 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5394 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5395 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5396 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5397 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5398 UNSPEC_LOONGSON_PSADBH)
5399 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5400 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5401 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
5402 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5403 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5404 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5405 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
5406 (cpu): Update comment.
5407 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
5408 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
5409 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
5410 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
5411 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
5412 UNSPEC_LOONGSON_PCMPEQ)
5413 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
5414 UNSPEC_LOONGSON_PINSR_0)
5415 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
5416 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
5417 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
5418 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
5419 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
5420 UNSPEC_LOONGSON_PSADBH)
5421 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
5422 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
5423 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
5424 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
5425 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
5426 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
5427 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
5428 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
5429 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
5430 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
5431 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
5432 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
5433 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
5434 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
5435 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
5436 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
5437 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
5438 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
5439 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
5440 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
5441 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
5442 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
5443 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
5444 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
5445 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
5446 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
5447 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
5448 (UNSPEC_RDDSP): Moved from mips.md.
5449 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
5450 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
5451 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
5452 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
5453 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
5454 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
5455 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
5456 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
5457 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
5458 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
5459 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
5460 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
5461 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
5462 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
5463 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
5464 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
5465 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
5466 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
5467 (UNSPEC_SCC): Moved from mips.md.
5468 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
5469 "processor_type" to "processor".
5470 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
5471 * config/mips/mips.h (processor_type): Delete.
5472 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
5473 "processor_type" to "processor".
5475 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5477 * configure.ac (tm_include_list): Add insn-constants.h.
5478 * configure: Regenerate.
5479 * Makefile.in (GTM_H): Move insn-constants.h here from...
5481 * mkconfig.sh: Remove special handling for insn-constants.h.
5483 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5485 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
5486 (BUILD_MD): ...this new variable.
5487 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
5488 that include the old contents of simple_generated_h and
5490 (simple_generated_h, simple_generated_c): Include them. Add
5492 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
5493 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
5494 Remove these dependencies from the main rule and include
5495 insn-conditions.md in the command line only if it appears
5496 in the dependency list.
5497 (insn-constants.h, s-constants): Delete.
5498 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
5500 (build/genmddeps.o): Likewise.
5501 (genprogrtl): New variable that contains everything from genprogmd
5502 except mddeps and constants.
5503 (genprogmd): Redefine in terms of genprogrtl. Make these programs
5504 depend on $(BUILD_MD)
5505 (genprog): New variable. Make these programs depend on
5507 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
5508 (main): Use read_md_files instead of init_rtx_reader_args.
5509 * genconstants.c: As for genmddeps.c.
5510 * read-md.h (read_skip_construct): Declare.
5511 * read-md.c (read_skip_construct): New function.
5512 (handle_file): Allow a null handle_directive, skipping the
5514 (parse_include): Update the comment accordingly.
5516 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5518 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
5519 * genmddeps.c: Include read-md.h.
5520 (main): Call init_rtx_reader_args instead of init_md_reader_args.
5521 * genattr.c (main): Likewise.
5522 * genattrtab.c (main): Likewise.
5523 * genautomata.c (main): Likewise.
5524 * gencodes.c (main): Likewise.
5525 * genconditions.c (main): Likewise.
5526 * genconfig.c (main): Likewise.
5527 * genconstants.c (main): Likewise.
5528 * genemit.c (main): Likewise.
5529 * genextract.c (main): Likewise.
5530 * genflags.c (main): Likewise.
5531 * genopinit.c (main): Likewise.
5532 * genoutput.c (main): Likewise.
5533 * genpeep.c (main): Likewise.
5534 * genrecog.c (main): Likewise.
5535 * genpreds.c (main): Likewise.
5536 * gensupport.h (in_fname): Move to read-md.h.
5537 (init_md_reader_args_cb): Rename to...
5538 (init_rtx_reader_args_cb): ...this and return a bool.
5539 (init_md_reader_args): Rename to...
5540 (init_rtx_reader_args): ...this and return a bool.
5541 (include_callback): Move to read-md.h.
5542 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
5543 (file_name_list, first_dir_md_include): Move to read-md.c
5544 (first_bracket_include): Delete unused variable.
5545 (last_dir_md_include): Move to read-md.c.
5546 (process_include): Delete, moving code to read-md.c:handle_include.
5547 (process_rtx): Don't handle INCLUDE.
5548 (save_string): Delete.
5549 (rtx_handle_directive): New function.
5550 (init_md_reader_args_cb): Rename to...
5551 (init_rtx_reader_args_cb): ...this and return a boolean success value.
5553 (init_md_reader_args): Rename to...
5554 (init_rtx_reader_args): ...this and return a boolean success value.
5555 * rtl.def (INCLUDE): Delete.
5556 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
5558 * read-rtl.c (read_conditions): Don't gobble ')' here.
5559 (read_mapping): Likewise.
5560 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
5561 Handle top-level non-rtx constructs here rather than in read_rtx_1.
5562 Store the whole queue in *X. Remove call to init_md_reader.
5563 (read_rtx_1): Rename to...
5564 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
5565 Don't handle top-level non-rtx constructs here. Don't handle (nil)
5567 (read_nested_rtx): New function. Handle (nil) here rather than
5569 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
5571 * read-md.h (directive_handler_t): New type.
5572 (in_fname, include_callback): Moved from read-md.h.
5573 (read_constants, init_md_reader): Delete.
5574 (read_md_files): Declare.
5575 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
5576 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
5578 (read_constants): Rename to...
5579 (handle_constants): ...this. Don't gobble ')' here.
5580 (handle_include, handle_file, handle_toplevel_file)
5581 (parse_include): New functions, mostly taken from gensupport.c.
5582 (init_md_reader): Subsume into...
5583 (read_md_files): ...this new function.
5585 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5587 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
5588 (unread_char): Decrement read_md_lineno after putting back '\n'.
5589 * read-md.c (fatal_with_file_and_line): Push back any characters
5590 that we decide not to add to the context.
5591 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
5592 fatal_expected_char in cases where '/' ends a line (for example).
5593 (read_name): Don't increment read_md_lineno here.
5594 (read_escape): Likewise.
5595 (read_quoted_string): Likewise.
5596 (read_braced_string): Likewise.
5598 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5600 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
5601 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
5602 * genconstants.c: Include read-md.h.
5603 * read-rtl.c (md_constants): Move to read-md.c.
5604 (md_name): Move to read-md.h.
5605 (initialize_iterators): Use leading_string_hash instead of def_hash
5606 and leading_string_eq_p instead of def_name_eq_p.
5607 (read_name): Move to read-md.c.
5608 (def_hash, def_name_eq_p): Delete.
5609 (read_constants, traverse_md_constants): Move to read-md.c.
5610 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
5611 * read-md.h: Include hashtab.h.
5612 (md_name): Moved from read-rtl.c.
5613 (md_constant): Moved from read-md.h.
5614 (leading_string_hash, leading_string_eq_p, read_name)
5615 (read_constants, traverse_md_constants): Declare.
5616 * read-md.c (md_constants): Moved from read-rtl.c.
5617 (leading_string_hash, leading_string_eq_p): New functions.
5618 (read_name, read_constants, traverse_md_constants): Moved from
5621 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5623 * read-rtl.c (md_name): New structure.
5624 (read_name): Take an md_name instead of a buffer pointer.
5625 Use the "string" field instead of strcpy when expanding constants.
5626 (read_constants): Remove the tmp_char argument. Update the calls
5627 to read_name, using two local name buffers instead of the tmp_char
5628 argument. Merge the constant-creation code.
5629 (read_conditions): Remove the tmp_char argument. Update the calls
5630 to read_name, using a local name buffer instead of the tmp_char
5632 (read_mapping): Replace tmp_char variable with a local name buffer.
5633 Update the calls to read_name.
5634 (read_rtx_1): Likewise. Update the calls to read_constants and
5637 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5639 * Makefile.in (build/read-md.o): Depend on errors.h.
5640 * read-md.h (error_with_line): Declare.
5641 * read-md.c: Include errors.h.
5642 (message_with_line_1): New function, extracted from...
5643 (message_with_line): ...here.
5644 (error_with_line): New function.
5645 * genattrtab.c: If a call to message_with_line is followed by
5646 "have_error = 1;", replace both statements with a call to
5648 * genoutput.c: Likewise.
5649 * genpreds.c: Likewise.
5650 * genrecog.c: If a call to message_with_line is followed by
5651 "error_count++;", replace both statements with a call to
5653 (errorcount): Delete.
5654 (main): Don't check it.
5655 * gensupport.c: If a call to message_with_line is followed by
5656 "errors = 1;", replace both statements with a call to error_with_line.
5658 (process_define_cond_exec): Check have_error instead of errors.
5659 (init_md_reader_args_cb): Likewise. Don't set errors.
5661 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5663 * read-md.h (read_md_file): Declare.
5664 (read_char, unread_char): New functions.
5665 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5666 (read_quoted_string, read_string): Remove FILE * argument.
5667 * read-md.c (read_md_file): New variable.
5668 (read_md_filename, read_md_lineno): Update comments and remove
5669 unnecessary initialization.
5670 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5671 (read_escape, read_quoted_string, read_braced_string, read_string):
5672 Remove FILE * argument. Update calls accordingly, using read_char
5673 and unread_char instead of getc and ungetc.
5674 * rtl.h (read_rtx): Remove FILE * argument.
5675 * read-rtl.c (iterator_group): Remove FILE * argument from
5677 (iterator_traverse_data): Remove "infile" field.
5678 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5679 (add_mapping, read_name, read_constants, read_conditions)
5680 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5681 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5682 Remove file arguments from all calls, using read_char and unread_char
5683 instead of getc and ungetc.
5684 * gensupport.c (process_include): Preserve read_md_file around
5685 the include. Set read_md_file to the handle of the included file.
5686 Update call to read_rtx.
5687 (init_md_reader_args_cb): Set read_md_file to the handle of the file
5688 and remove local FILE *. Update calls to read_rtx.
5690 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5692 * read-md.h (read_rtx_lineno): Rename to...
5693 (read_md_lineno): ...this.
5694 (read_rtx_filename): Rename to...
5695 (read_md_filename): ...this.
5696 (copy_rtx_ptr_loc): Rename to...
5697 (copy_md_ptr_loc): ...this.
5698 (print_rtx_ptr_loc): Rename to...
5699 (print_md_ptr_loc): ...this.
5700 * read-md.c: Likewise. Update references after renaming.
5701 (string_obstack): Replace RTL with MD in comment.
5702 (set_rtx_ptr_loc): Rename to...
5703 (set_md_ptr_loc): ...this.
5704 (get_rtx_ptr_loc): Rename to...
5705 (get_md_ptr_loc): ...this.
5706 * genconditions.c: Update references after renaming.
5707 * genemit.c: Likewise.
5708 * genoutput.c: Likewise.
5709 * genpreds.c: Likewise.
5710 * gensupport.c: Likewise.
5711 * read-rtl.c: Likewise.
5713 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
5715 * Makefile.in (READ_MD_H): New variable.
5716 (BUILD_RTL): Add build/read-md.o.
5717 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5718 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5719 (build/genattrtab.o, build/genconditions.o build/genemit.o)
5720 (build/genextract.o, build/genflags.o, build/genoutput.o)
5721 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5722 (build/read-md.o): New rule.
5723 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5724 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5725 * coretypes.h: ...here.
5726 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5727 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5728 * genattr.c: Include read-md.h.
5729 * genattrtab.c: Likewise.
5730 * genconditions.c: Likewise.
5731 * genemit.c: Likewise.
5732 * genextract.c: Likewise.
5733 * genflags.c: Likewise.
5734 * genoutput.c: Likewise.
5735 * genpreds.c: Likewise.
5736 * genrecog.c: Likewise.
5737 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5738 (join_c_conditions, print_c_condition, read_rtx_filename)
5739 (read_rtx_lineno): Move to read-md.h.
5740 * read-rtl.c: Include read-md.h.
5741 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5742 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5743 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5744 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5745 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5746 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5747 (read_braced_string, read_string): Move to read-md.c.
5748 (read_rtx): Move some initialization to init_md_reader and call
5749 init_md_reader here.
5750 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5752 * gensupport.c: Include read-md.h.
5753 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5754 * read-md.h, read-md.c: New files.
5756 2010-06-10 Anatoly Sokolov <aesok@post.ru>
5758 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5759 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5760 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5761 * config/moxie/moxie.c (moxie_function_value): Make static.
5762 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5763 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5765 2010-06-10 Martin Jambor <mjambor@suse.cz>
5767 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5768 * dbgcnt.def (tree_sra): New counter.
5769 * tree-sra.c: Include dbgcnt.h.
5770 (gate_intra_sra): Check tree_sra debug counter.
5772 2010-06-10 Martin Jambor <mjambor@suse.cz>
5774 PR tree-optimization/44258
5775 * tree-sra.c (build_access_subtree): Return false iff there is a
5777 (build_access_trees): Likewise.
5778 (analyze_all_variable_accesses): Disqualify candidates if
5779 build_access_trees returns true for them.
5781 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
5784 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5785 tail-recurse into canonical node. Fast-forward over
5786 non-canonical VALUEs.
5788 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
5791 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5792 (*addsi_1_zext) <TYPE_LEA>: Likewise.
5793 (add lea splitter): Likewise.
5794 (add_zext lea splitter): Likewise.
5796 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5798 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5800 2010-06-10 Jan Hubicka <jh@suse.cz>
5802 * df-problems.c (df_live_problem_data): Add live_bitmaps.
5803 (df_live_alloc): Initialize problem data and live_osbtacks.
5804 (df_live_finalize): Remove obstack, problem data; do not
5806 (df_live_top_dump, df_live_bottom_dump): Do not dump old
5807 data when not allocated.
5808 (df_live_verify_solution_start): Do not allocate problem data.
5809 (df_live_verify_solution_end): Check if out is allocated.
5810 (struct df_md_problem_data): New structure.
5811 (df_md_alloc): Allocate problem data.
5812 (df_md_free): Free problem data; do not clear bitmaps.
5814 2010-06-10 Jan Beulich <jbeulich@novell.com>
5817 * configure.ac: Replace $() with ${} when intending to expand
5818 variables rather than invoking commands.
5819 * configure: Re-generate.
5821 2010-06-10 Jan Hubicka <jh@suse.cz>
5823 PR rtl-optimization/44460
5824 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5825 TYPE_NEEDS_CONSTRUCTING sanity check.
5827 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5829 * doc/include/fdl.texi: Move to GFDL version 1.3.
5831 * doc/cpp.texi: Move to GFDL version 1.3.
5832 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
5833 * doc/gccint.texi: Move to GFDL version 1.3.
5834 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
5835 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
5836 * doc/invoke.texi: Move to GFDL version 1.3.
5838 2010-06-09 Jan Hubicka <jh@suse.cz>
5840 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5842 (propagate) ... here; swap the order.
5844 2010-06-09 Jan Hubicka <jh@suse.cz>
5846 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5847 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5848 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5849 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5851 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5853 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5854 Do not the gather memory reference in the outer loop if the step
5857 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
5859 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5860 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5861 8 to 4. Minor change of the related comments.
5863 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5865 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5866 the scev analysis when the variable is not used outside the loop
5867 in a close phi node: call compute_overall_effect_of_inner_loop.
5869 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5871 * graphite-sese-to-poly.c (single_pred_cond): Renamed
5872 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
5873 (build_sese_conditions_before): Renamed call to single_pred_cond.
5874 (build_sese_conditions_after): Same.
5876 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
5878 * graphite-poly.h: Fix comments and indentation.
5879 * graphite-sese-to-poly.c: Same.
5880 (build_sese_conditions_before): Compute stmt and gbb only when needed.
5881 * tree-chrec.c: Fix comments and indentation.
5882 (tree-ssa-loop-niter.c): Same.
5884 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
5886 PR rtl-optimization/42461
5887 * dce.c (deletable_insn_p): Return true for const or pure calls again.
5888 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5890 2010-06-09 Jan Hubicka <jh@suse.cz>
5892 * bitmap.c (bitmap_and): Walk array forward.
5893 (bitmap_and_compl_into): Likewise.
5894 (bitmap_xor): Likewise.
5895 (bitmap_xor_into): Likewise.
5896 (bitmap_equal_p): Likewise.
5897 (bitmap_intersect_p): Likewise.
5898 (bitmap_intersect_compl_p): Likewise.
5899 (bitmap_ior_and_into): Likewise.
5900 (bitmap_elt_copy): Likewise.
5901 (bitmap_and_compl): Likewise.
5902 (bitmap_elt_ior): Likewise.
5904 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
5906 * opts-common.c (prune_options): Ensure replacement argv array
5907 is correctly terminated by a NULL entry.
5909 2010-06-09 Jan Hubicka <jh@suse.cz>
5911 * cgraph.h (varpool_first_static_initializer,
5912 varpool_next_static_initializer): Make checking only when
5914 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5915 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5916 gcc_assert to gcc_checking_assert.
5917 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5918 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5919 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5920 op_iter_init_phiuse, op_iter_init_phidef,
5921 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5922 gcc_checking_assert.
5923 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5924 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5925 partition_is_global, live_on_entry, live_on_exit,
5926 live_merge_and_clear): Likewise.
5927 * system.h (gcc_checking_assert): New macro.
5928 * gimple.h (set_bb_seq): Use gcc_checking_assert.
5930 2010-06-09 Jason Merrill <jason@redhat.com>
5932 * Makefile.in (TAGS): Collect tags info from c-family.
5934 2010-06-09 Jan Hubicka <jh@suse.cz>
5936 * gimple.h (gcc_gimple_checking_assert): New macro.
5937 (gimple_set_def_ops, gimple_set_use_ops,
5938 gimple_set_vuse, gimple_set_vdef,
5939 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5940 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5941 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5942 gimple_asm_output_op, gimple_asm_output_op_ptr,
5943 gimple_asm_set_output_op, gimple_asm_clobber_op,
5944 gimple_asm_set_clobber_op, gimple_asm_label_op,
5945 gimple_asm_set_label_op, gimple_try_set_kind,
5946 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5947 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5948 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5949 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5950 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5951 gimple_omp_for_set_initial, gimple_omp_for_final,
5952 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5953 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5954 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5955 conditional with ENABLE_GIMPLE_CHECKING.
5956 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5958 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
5960 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5961 (get_computation_cost_at): Use it.
5962 (determine_use_iv_cost_condition): Likewise.
5963 (determine_iv_cost): Likewise.
5965 2010-06-09 Richard Guenther <rguenther@suse.de>
5967 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5970 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
5972 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5974 2010-06-09 Martin Jambor <mjambor@suse.cz>
5976 PR tree-optimization/44423
5977 * tree-sra.c (dump_access): Dump also grp_assignment_read.
5978 (analyze_access_subtree): Pass negative allow_replacements to children
5979 if the current type is scalar.
5981 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
5984 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5985 * doc/plugins.texi (Plugin license check): Update information
5986 on type of plugin_is_GPL_compatible.
5987 * Makefile.in (PLUGINCC): Define as $(COMPILER).
5988 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5990 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
5992 * config/arm/arm.c (thumb2_reorg): New function.
5993 (arm_reorg): Call it.
5994 * config/arm/thumb2.md (define_peephole2 for flag clobbering
5995 arithmetic operations): Delete.
5997 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
6000 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
6003 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
6006 * gcc-plugin.h: Encapsulate all declarations in extern "C".
6008 2010-06-08 Jan Hubicka <jh@suse.cz>
6010 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
6011 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
6013 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
6015 PR tree-optimization/39874
6017 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
6019 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
6020 same_bool_result_p): New.
6021 (and_var_with_comparison, and_var_with_comparison_1,
6022 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
6023 (or_var_with_comparison, or_var_with_comparison_1,
6024 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
6025 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
6026 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
6027 of combine_comparisons.
6028 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
6030 2010-06-08 Anatoly Sokolov <aesok@post.ru>
6032 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6033 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6034 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
6035 pdp11_function_value_regno_p): New functions.
6036 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6037 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6039 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
6041 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
6042 Thumb-2 in the MINUS case.
6044 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6046 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
6048 * doc/gty.texi (GTY Options): Document typed GC allocation and
6049 variable_size GTY option.
6051 * ggc-internal.h: New.
6053 * ggc.h: Update copyright year.
6054 (digit_string): Move to stringpool.c.
6055 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
6056 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
6057 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
6058 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
6059 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
6060 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
6061 (ggc_force_collect, ggc_get_size, ggc_statistics)
6062 (ggc_print_common_statistics): Move to ggc-internal.h.
6063 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
6064 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
6065 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
6066 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
6067 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
6068 (ggc_alloc_zone_pass_stat): Remove.
6069 (ggc_internal_alloc_stat, ggc_internal_alloc)
6070 (ggc_internal_cleared_alloc_stat): New.
6071 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
6072 (ggc_internal_vec_alloc_stat)
6073 (ggc_internal_cleared_vec_alloc_stat)
6074 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
6075 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
6076 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
6077 (ggc_cleared_alloc_ptr_array_two_args): New.
6078 (htab_create_ggc, splay_tree_new_ggc): Redefine.
6079 (ggc_splay_alloc): Change the type of the first argument to
6081 (ggc_alloc_string): Make macro.
6082 (ggc_alloc_string_stat): New.
6083 (ggc_strdup): Redefine.
6084 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
6085 (ggc_alloc_rtvec_sized): New.
6086 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
6087 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
6088 (ggc_internal_cleared_alloc_zone_stat)
6089 (ggc_internal_zone_alloc_stat)
6090 (ggc_internal_zone_cleared_alloc_stat)
6091 (ggc_internal_zone_vec_alloc_stat)
6092 (ggc_alloc_zone_rtx_def_stat)
6093 (ggc_alloc_zone_tree_node_stat)
6094 (ggc_alloc_zone_cleared_tree_node_stat)
6095 (ggc_alloc_cleared_gimple_statement_d_stat): New.
6097 * ggc-common.c: Include ggc-internal.h.
6098 (ggc_internal_cleared_alloc_stat): Rename from
6099 ggc_alloc_cleared_stat.
6100 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
6101 (ggc_calloc): Remove.
6102 (ggc_cleared_alloc_htab_ignore_args): New.
6103 (ggc_cleared_alloc_ptr_array_two_args): New.
6104 (ggc_splay_alloc): Add obj_type parameter.
6105 (init_ggc_heuristics): Formatting fixes.
6107 * ggc-none.c: Update copyright year.
6108 (ggc_alloc_stat): Rename to ggc_alloc_stat.
6109 (ggc_alloc_cleared_stat): Rename to
6110 ggc_internal_cleared_alloc_stat.
6111 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6113 * ggc-page.c: Update copyright year. Include ggc-internal.h.
6114 Remove references to ggc_alloc in comments.
6115 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
6116 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
6117 (new_ggc_zone, destroy_ggc_zone): Remove.
6118 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
6120 * ggc-zone.c: Include ggc-internal.h. Remove references to
6121 ggc_alloc in comments.
6122 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
6123 (ggc_internal_alloc_zone_pass_stat): New.
6124 (ggc_internal_cleared_alloc_zone_stat): New.
6125 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
6126 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
6127 (new_ggc_zone, destroy_ggc_zone): Remove.
6129 * stringpool.c: Update copyright year. Include ggc-internal.h
6130 (digit_vector): Make static.
6131 (digit_string): Moved from ggc.h.
6132 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
6133 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
6135 * Makefile.in (GGC_INTERNAL_H): New.
6136 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
6137 $(GGC_INTERNAL_H) to dependencies.
6139 * gentype.c: Update copyright year.
6140 (walk_type): Accept variable_size GTY option.
6141 (USED_BY_TYPED_GC_P): New macro.
6142 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
6143 whitespace at the end of strings.
6144 (get_type_specifier, variable_size_p): New functions.
6145 (alloc_quantity, alloc_zone): New enums.
6146 (write_typed_alloc_def): New function.
6147 (write_typed_struct_alloc_def): Likewise.
6148 (write_typed_typed_typedef_alloc_def): Likewise.
6149 (write_typed_alloc_defns): Likewise.
6150 (output_typename, write_splay_tree_allocator_def): Likewise.
6151 (write_splay_tree_allocators): Likewise.
6152 (main): Call write_typed_alloc_defns and
6153 write_splay_tree_allocators.
6155 * lto-streamer.h (lto_file_decl_data_ptr): New.
6157 * passes.c (order): Define using cgraph_node_ptr.
6159 * strinpool.c (struct string_pool_data): Declare nested_ptr using
6162 * gimple.h (union gimple_statement_d): Likewise.
6164 * rtl.h (struct rtx_def): Likewise.
6165 (struct rtvec_def): Likewise.
6167 * tree.h (union tree_node): Likewise.
6169 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
6171 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
6173 * tree-scalar-evolution.c (scev_initialize): Likewise.
6175 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
6177 * dwarf2asm.c (dw2_force_const_mem): Likewise.
6179 * omp-low.c (lower_omp_critical): Likewise.
6181 * bitmap.h (struct bitmap_head_def): Update comment to not
6182 reference ggc_alloc.
6184 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
6186 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
6188 * ipa-prop.c (duplicate_ggc_array): Rename to
6189 duplicate_ipa_jump_func_array. Use typed GC allocation.
6190 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
6192 * gimple.c (gimple_alloc_stat): Use
6193 ggc_alloc_cleared_gimple_statement_d_stat.
6195 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
6197 * tree.c (make_node_stat): Use
6198 ggc_alloc_zone_cleared_tree_node_stat.
6199 (make_tree_vec_stat): Likewise.
6200 (build_vl_exp_stat): Likewise.
6201 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
6202 (make_tree_binfo_stat): Likewise.
6203 (tree_cons_stat): Likewise.
6205 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
6206 (shallow_copy_rtx_stat): Likewise.
6207 (make_node_stat): Likewise.
6209 * lto-symtab.c: Fix comment.
6211 * tree-cfg.c (create_bb): Update comment to not reference
6213 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
6215 * varpool.c (varpool_node): Use typed GC allocation.
6216 (varpool_extra_name_alias): Likewise.
6218 * varasm.c (emutls_decl): Likewise.
6219 (get_unnamed_section): Likewise.
6220 (get_noswitch_section): Likewise.
6221 (get_section): Likewise.
6222 (get_block_for_section): Likewise.
6223 (build_constant_desc): Likewise.
6224 (create_constant_pool): Likewise.
6225 (force_const_mem): Likewise.
6227 * tree.c (build_vl_exp_stat): Likewise.
6228 (build_real): Likewise.
6229 (build_string): Likewise.
6230 (decl_debug_expr_insert): Likewise.
6231 (decl_value_expr_insert): Likewise.
6232 (type_hash_add): Likewise.
6233 (build_omp_clause): Likewise.
6235 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
6237 * tree-ssa.c (init_tree_ssa): Likewise.
6239 * tree-ssa-structalias.c (heapvar_insert): Likewise.
6241 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
6243 * tree-ssa-loop-niter.c (record_estimate): Likewise.
6245 * tree-ssa-alias.c (get_ptr_info): Likewise.
6247 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
6249 * tree-phinodes.c (allocate_phi_node): Likewise.
6251 * tree-iterator.c (tsi_link_before): Likewise.
6252 (tsi_link_after): Likewise.
6254 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
6256 * tree-dfa.c (create_var_ann): Likewise.
6258 * tree-cfg.c (create_bb): Likewise.
6260 * toplev.c (alloc_for_identifier_to_locale): Likewise.
6261 (general_init): Likewise.
6263 * stringpool.c (stringpool_ggc_alloc): Likewise.
6264 (gt_pch_save_stringpool): Likewise.
6266 * sese.c (if_region_set_false_region): Likewise.
6268 * passes.c (do_per_function_toporder): Likewise.
6270 * optabs.c (set_optab_libfunc): Likewise.
6271 (set_conv_libfunc): Likewise.
6273 * lto-symtab.c (lto_symtab_register_decl): Likewise.
6275 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
6276 (input_eh_region): Likewise.
6277 (input_eh_lp): Likewise.
6278 (make_new_block): Likewise.
6279 (unpack_ts_real_cst_value_fields): Likewise.
6281 * lto-section-in.c (lto_new_in_decl_state): Likewise.
6283 * lto-cgraph.c (input_node_opt_summary): Likewise.
6285 * loop-init.c (loop_optimizer_init): Likewise.
6287 * lambda.h (lambda_vector_new): Likewise.
6289 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
6291 * ira.c (update_equiv_regs): Likewise.
6293 * ipa.c (cgraph_node_set_new): Likewise.
6294 (cgraph_node_set_add): Likewise.
6295 (varpool_node_set_new): Likewise.
6296 (varpool_node_set_add): Likewise.
6298 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
6299 (duplicate_ipa_jump_func_array): Likewise.
6300 (ipa_read_node_info): Likewise.
6302 * ipa-cp.c (ipcp_create_replace_map): Likewise.
6304 * integrate.c (get_hard_reg_initial_val): Likewise.
6306 * gimple.c (gimple_alloc_stat): Likewise.
6307 (gimple_build_omp_for): Likewise.
6308 (gimple_seq_alloc): Likewise.
6309 (gimple_copy): Likewise.
6311 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
6312 (gsi_insert_after_without_update): Likewise.
6314 * function.c (add_frame_space): Likewise.
6315 (insert_temp_slot_address): Likewise.
6316 (assign_stack_temp_for_type): Likewise.
6317 (allocate_struct_function): Likewise.
6318 (types_used_by_var_decl_insert): Likewise.
6320 * except.c (init_eh_for_function): Likewise.
6321 (gen_eh_region): Likewise.
6322 (gen_eh_region_catch): Likewise.
6323 (gen_eh_landing_pad): Likewise.
6324 (add_call_site): Likewise.
6326 * emit-rtl.c (get_mem_attrs): Likewise.
6327 (get_reg_attrs): Likewise.
6328 (start_sequence): Likewise.
6329 (init_emit): Likewise.
6331 * dwarf2out.c (new_cfi): Likewise.
6332 (queue_reg_save): Likewise.
6333 (dwarf2out_frame_init): Likewise.
6334 (new_loc_descr): Likewise.
6335 (find_AT_string): Likewise.
6336 (new_die): Likewise.
6337 (add_var_loc_to_decl): Likewise.
6338 (clone_die): Likewise.
6339 (clone_as_declaration): Likewise.
6340 (break_out_comdat_types): Likewise.
6341 (new_loc_list): Likewise.
6342 (loc_descriptor): Likewise.
6343 (add_loc_descr_to_each): Likewise.
6344 (add_const_value_attribute): Likewise.
6345 (tree_add_const_value_attribute): Likewise.
6346 (add_comp_dir_attribute): Likewise.
6347 (add_name_and_src_coords_attributes): Likewise.
6348 (lookup_filename): Likewise.
6349 (store_vcall_insn): Likewise.
6350 (dwarf2out_init): Likewise.
6352 * dbxout.c (dbxout_init): Likewise.
6354 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
6356 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
6358 * config/score/score7.c (score7_output_external): Likewise.
6360 * config/score/score3.c (score3_output_external): Likewise.
6362 * config/s390/s390.c (s390_init_machine_status): Likewise.
6364 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
6365 (rs6000_init_machine_status): Likewise.
6366 (output_toc): Likewise.
6368 * config/pa/pa.c (pa_init_machine_status): Likewise.
6369 (get_deferred_plabel): Likewise.
6371 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
6373 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
6375 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
6377 * config/mep/mep.c (mep_init_machine_status): Likewise.
6378 (mep_note_pragma_flag): Likewise.
6380 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
6382 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
6384 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
6386 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
6387 (i386_pe_maybe_record_exported_symbol): Likewise.
6389 * config/i386/i386.c (get_dllimport_decl): Likewise.
6390 (ix86_init_machine_status): Likewise.
6391 (assign_386_stack_local): Likewise.
6393 * config/frv/frv.c (frv_init_machine_status): Likewise.
6395 * config/darwin.c (machopic_indirection_name): Likewise.
6397 * config/cris/cris.c (cris_init_machine_status): Likewise.
6399 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
6401 * config/avr/avr.c (avr_init_machine_status): Likewise.
6403 * config/arm/arm.c (arm_init_machine_status): Likewise.
6405 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
6406 (alpha_need_linkage): Likewise.
6407 (alpha_use_linkage): Likewise.
6409 * cgraph.c (cgraph_allocate_node): Likewise.
6410 (cgraph_create_edge_1): Likewise.
6411 (cgraph_create_indirect_edge): Likewise.
6412 (cgraph_add_asm_node): Likewise.
6414 * cfgrtl.c (init_rtl_bb_info): Likewise.
6416 * cfgloop.c (alloc_loop): Likewise.
6417 (rescan_loop_exit): Likewise.
6419 * cfg.c (init_flow): Likewise.
6420 (alloc_block): Likewise.
6421 (unchecked_make_edge): Likewise.
6423 * c-parser.c (c_parse_init): Likewise.
6424 (c_parse_file): Likewise.
6426 * c-decl.c (bind): Likewise.
6427 (record_inline_static): Likewise.
6428 (push_scope): Likewise.
6429 (make_label): Likewise.
6430 (lookup_label_for_goto): Likewise.
6431 (finish_struct): Likewise.
6432 (finish_enum): Likewise.
6433 (c_push_function_context): Likewise.
6435 * bitmap.c (bitmap_element_allocate): Likewise.
6436 (bitmap_gc_alloc_stat): Likewise.
6438 * alias.c (record_alias_subset): Likewise.
6439 (init_alias_analysis): Likewise.
6441 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
6443 * fold-const.c (fold_comparison): Remove redundant parenthesis.
6444 * tree-inline.c (expand_call_inline): Pass translated return value of
6445 cgraph_inline_failed_string to diagnostic function.
6447 2010-06-08 Andrew Pinski <pinskia@gmail.com>
6448 Shujing Zhao <pearly.zhao@oracle.com>
6451 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
6452 implicit bad conversions is initialization.
6453 (error_init): Use gmsgid instead of msgid for argument name and change
6455 (pedwarn_init): Use gmsgid instead of msgid for argument name and
6456 change the call for pedwarn.
6457 (warning_init): Use gmsgid instead of msgid for argument name and
6458 change the call for warning.
6460 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
6462 * config/mips/mips-protos.h (mips_print_operand): Delete.
6463 (mips_print_operand_address): Delete.
6464 * config/mips/mips.h (mips_print_operand_punct): Delete.
6465 (PRINT_OPERAND): Delete.
6466 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6467 (PRINT_OPERAND_ADDRESS): Delete.
6468 * config/mips/mips.c (mips_print_operand_punct): Make static.
6469 (mips_print_operand_address): Make static.
6470 (mips_print_operand): Make static. Call
6471 mips_print_operand_punct_valid_p.
6472 (mips_print_operand_punct_valid_p): New function.
6473 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
6474 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6476 2010-06-07 Jan Hubicka <jh@suse.cz>
6479 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
6482 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
6484 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
6487 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6489 * doc/sourcebuild.texi (Effective-Target Keywords, Other
6490 attributes): Document gas.
6492 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
6494 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
6495 <TYPE_LEA>: Split instruction.
6496 <default>: Remove alternative 2 handling.
6497 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
6498 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
6499 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
6501 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
6502 (ashift_zext lea splitter): Use DImode for multiplication.
6504 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
6505 to generate addition.
6507 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6509 * common.opt (fira-verbose): Use Var.
6510 (fpcc-struct-return): Use Init instead of VarExists.
6511 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
6513 * flags.h (flag_signed_char, flag_short_enums,
6514 flag_pcc_struct_return, flag_ira_verbose,
6515 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
6516 * toplev.c (flag_detailed_statistics, flag_signed_char,
6517 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
6518 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
6519 * toplev.h (flag_crossjumping, flag_if_conversion,
6520 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
6521 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
6522 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
6523 flag_cprop_registers, time_report, flag_ira_loop_pressure,
6524 flag_ira_coalesce, flag_ira_move_spills,
6525 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
6527 2010-06-07 Jan Hubicka <jh@suse.cz>
6529 * df-core.c (df_analyze_problem): Do verification after allocation.
6531 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
6532 (df_lr_alloc): Initialize problem data; move bitmaps to
6534 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
6535 (df_lr_verify_solution_start): Do not initialize problem data;
6536 allocate bitmaps in lr_bitmaps.
6537 (df_lr_verify_solution_end): Do not free problem data.
6539 2010-06-07 Jan Hubicka <jh@suse.cz>
6541 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
6542 if caller is noreturn.
6543 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
6544 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
6545 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
6546 * ipa-pure-const.c (check_decl): Add IPA parameter.
6547 (state_from_flags): New function.
6548 (better_state, worse_state): New functions.
6549 (check_call): When in IPA mode, do not care about callees.
6550 (check_load, check_store): Update.
6551 (check_ipa_load, check_ipa_store): New.
6552 (check_stmt): When in IPA mode, use IPA checkers.
6553 (analyze_function): Use state_from_flags.
6554 (propagate): Check indirect edges and references.
6556 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
6558 PR rtl-optimization/44404
6559 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
6560 of count_occurrences to see if it's safe to modify mem_insn.
6562 2010-06-07 Richard Guenther <rguenther@suse.de>
6564 * gimplify.c (gimplify_cleanup_point_expr): For empty body
6565 and EH-only cleanup drop the cleanup instead of inserting it
6568 2010-06-07 Ira Rosen <irar@il.ibm.com>
6570 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
6572 * targhooks.c (default_builtin_vectorization_cost): New function.
6573 * targhooks.h (default_builtin_vectorization_cost): Declare.
6574 * target.h (enum vect_cost_for_stmt): Define.
6575 (builtin_vectorization_cost): Change argument and comment.
6576 * tree-vectorizer.h: Remove cost model macros.
6577 * tree-vect-loop.c: Include target.h.
6578 (vect_get_cost): New function.
6579 (vect_estimate_min_profitable_iters): Replace cost model macros with
6580 calls to vect_get_cost.
6581 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
6582 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
6583 default implementation.
6584 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
6585 calls to target hook builtin_vectorization_cost.
6586 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
6588 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
6589 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
6590 implementation to return costs.
6591 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
6592 * config/spu/spu.h: Remove vectorizer cost model macros.
6593 * config/i386/i386.h: Likewise.
6594 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
6595 a call to target hook builtin_vectorization_cost.
6597 2010-06-06 Sriraman Tallam <tmsriram@google.com>
6600 * config/i386/i386.c (override_options): Turn zee pass on for level 2
6601 and above and defer till target is known.
6602 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
6605 2010-05-25 Jan Hubicka <jh@suse.cz>
6607 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
6608 (df_compact_blocks): Likewise.
6609 * df.h (struct df): Turn hardware_regs_used,
6610 regular_block_artificial_uses, eh_block_artificial_uses,
6611 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
6613 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
6614 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
6615 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
6616 df_scan_blocks, df_insn_delete, df_insn_rescan,
6617 df_insn_rescan_debug_internal, df_insn_rescan_all,
6618 df_process_deferred_rescans, df_process_deferred_rescans,
6619 df_notes_rescan, df_get_call_refs, df_get_call_refs,
6620 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
6621 df_record_entry_block_defs, df_record_exit_block_uses,
6622 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
6623 df_scan_verify): Update.
6625 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6628 * c-common.c (is_typedef_decl): Move this definition ...
6629 * tree.c (is_typedef_decl): ... here.
6630 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6631 * c-common.h (is_typedef_decl): Move this declaration ...
6632 * tree.h (is_typedef_decl): ... here.
6633 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6634 * dwarf2out.c (is_naming_typedef_decl): New function.
6635 (gen_tagged_type_die): Split out of ...
6636 (gen_type_die_with_usage): ... this function. When an anonymous
6637 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6638 is emitted for the typedef.
6639 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6640 anonymous tagged types.
6642 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
6645 * c-decl.c (grokdeclarator): Delete warning.
6647 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
6649 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6650 newly built CALL_EXPR.
6651 * tree-profile.c (tree_profiling): Don't profile functions produced
6654 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
6658 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6659 endianness-independent.
6661 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6663 * c-common.c: Move to c-family/.
6664 * c-common.def: Likewise.
6665 * c-common.h: Likewise.
6666 * c-cppbuiltin.c: Likewise.
6667 * c-dump.c: Likewise.
6668 * c-format.c: Likewise.
6669 * c-format.h : Likewise.
6670 * c-gimplify.c: Likewise.
6671 * c-lex.c: Likewise.
6672 * c-omp.c: Likewise.
6674 * c-opts.c: Likewise.
6675 * c-pch.c: Likewise.
6676 * c-ppoutput.c: Likewise.
6677 * c-pragma.c: Likewise.
6678 * c-pragma.h: Likewise.
6679 * c-pretty-print.c: Likewise.
6680 * c-pretty-print.h: Likewise.
6681 * c-semantics.c: Likewise.
6682 * stub-objc.c: Likewise.
6684 * gengtype.c (get_file_langdir): Special-case files in c-family/.
6685 (get_output_file_with_visibility): Fix name for c-common.h.
6686 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6688 * c-tree.h: Update include path for moved files.
6689 * c-lang.c: Likewise.
6690 * c-lang.h: Likewise.
6691 * c-parser.c: Likewise.
6692 * c-convert.c: Likewise.
6693 * c-decl.c: Likewise.
6694 * c-objc-common.c: Likewise.
6695 * configure.ac: Make sure c-family/ exists in the build directory.
6696 * configure: Regenerate.
6697 * Makefile.in: Update paths for moved files. Regroup files per
6698 location and update dependencies. Move generated_files down after
6701 * config/spu/spu-c.c: Update paths for moved files.
6702 * config/mep/mep-pragma.c: Likewise.
6703 * config/darwin-c.c: Likewise.
6704 * config/i386/msformat-c.c: Likewise.
6705 * config/i386/i386-c.c: Likewise.
6706 * config/avr/avr-c.c: Likewise.
6707 * config/sol2-c.c: Likewise.
6708 * config/ia64/ia64-c.c: Likewise.
6709 * config/rs6000/rs6000-c.c: Likewise.
6710 * config/arm/arm.c: Likewise.
6711 * config/arm/arm-c.c: Likewise.
6712 * config/h8300/h8300.c: Likewise.
6713 * config/v850/v850-c.c: Likewise.
6715 * config/t-darwin: Fix dependencies for moved files.
6716 * config/t-sol2: Fix dependencies for moved files.
6717 * config/mep/t-mep: Fix dependencies for moved files.
6718 * config/ia64/t-ia64: Fix dependencies for moved files.
6719 * config/rs6000/t-rs6000: Fix dependencies for moved files.
6720 * config/v850/t-v850: Fix dependencies for moved files.
6721 * config/v850/t-v850e: Fix dependencies for moved files.
6723 * config/m32c/m32c-pragma.c
6725 * po/exgettext: Look in c-family/ also.
6727 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
6729 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6730 (mark_control_dependent_edges_necessary): Call it instead of marking
6731 the last statement manually.
6732 (propagate_necessity): Likewise.
6734 2010-06-05 Jan Hubicka <jh@suse.cz>
6736 * basic-block.h (compute_dominance_frontiers): Updated.
6737 (compute_idf): Likewise.
6739 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6740 for dominance frontiers.
6741 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6742 (insert_updated_phi_nodes_for): Likewise.
6743 (update_ssa): Likewise.
6744 * cfganal.c (compute_dominance_frontiers_1): Likewise.
6745 (compute_dominance_frontiers): Likewise.
6746 (compute_idf): Likewise.
6747 * df-problems.c (df_md_local_compute): Likewise.
6749 2010-06-05 Anatoly Sokolov <aesok@post.ru>
6751 * target.h (struct gcc_target): Add memory_move_cost field.
6752 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6753 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6754 * targhooks.c (default_memory_move_cost): New function.
6755 * targhooks.h (default_memory_move_cost): Declare function.
6756 * reload.h (memory_move_cost): Declare.
6757 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6758 * reginfo.c (memory_move_cost): New function.
6759 (memory_move_secondary_cost): Change type of 'in' argument to bool.
6760 * ira.h (ira_memory_move_cost): Update comment.
6761 * ira.c: (ira_memory_move_cost): Update comment.
6762 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6763 with memory_move_cost.
6764 * postreload.c (reload_cse_simplify_set): (Ditto.).
6765 * reload1.c (choose_reload_regs): (Ditto.).
6766 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6767 (MEMORY_MOVE_COST): Revise documentation.
6769 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6770 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6771 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6772 type of 'in' argument to bool.
6773 (TARGET_MEMORY_MOVE_COST): Define.
6775 2010-06-05 Jan Hubicka <jh@suse.cz>
6777 * ipa-pure-const.c (propagate): Fix typo in handling of functions
6778 that cannot return. Be more careful when merging the results with
6779 previously known ones.
6781 2010-06-05 Matthias Klose <doko@ubuntu.com>
6783 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6784 function to add the -iplugindir option.
6785 (find_plugindir_spec_function): Add new declaration and function.
6786 (static_spec_func): Use it for "find-plugindir".
6788 2010-06-05 Jakub Jelinek <jakub@redhat.com>
6791 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6792 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6793 statement expression.
6795 2010-06-05 Jan Hubicka <jh@suse.cz>
6797 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6798 (df_rd_problem_data): Convert sparse_invalidated_by_call,
6799 dense_invalidated_by_call to bitmap head.
6800 (df_rd_alloc, df_rd_bb_local_compute_process_def,
6801 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6802 df_rd_start_dump, df_lr_verify_transfer_functions,
6803 df_live_verify_transfer_functions, df_chain_create_bb,
6804 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6805 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6806 df_simulate_one_insn_forwards, df_md_alloc,
6807 df_md_bb_local_compute_process_def,
6808 df_md_bb_local_compute_process_def, df_md_local_compute,
6809 df_md_transfer_function df_md_free): Update.
6811 2010-06-05 Joseph Myers <joseph@codesourcery.com>
6814 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6815 target type for ADDR_EXPR; require no changes to qualifiers except
6817 * c-tree.h (c_build_type_variant): Remove.
6819 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6821 * genautomata.c (get_excl_set): Do work per element, not per char.
6822 (check_presence_pattern_sets): Similar.
6823 (check_absence_pattern_sets): Similar.
6825 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
6827 * genautomata.c (curr_state_pass_num): Delete.
6828 (min_issue_delay_pass_states): Delete.
6829 (min_issue_delay): Delete.
6830 (initiate_min_issue_delay_pass_states): Delete.
6831 (output_min_issue_delay_table): Compute min_issue_delay_vect
6832 using a breadth-first search variant.
6833 (output_tables): Don't call initiate_min_issue_delay_pass_states.
6835 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
6838 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6839 (df_byte_lr_bb_local_compute): Likewise.
6841 2010-06-03 Jason Merrill <jason@redhat.com>
6843 Implement noexcept operator (5.3.7)
6844 * c-common.c (c_common_reswords): Add noexcept.
6845 * c-common.h (enum rid): Add RID_NOEXCEPT.
6847 2010-06-04 Joseph Myers <joseph@codesourcery.com>
6849 * config/darwin-driver.c (darwin_default_min_version): Use
6850 GCC-specific formats in diagnostics.
6851 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6853 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6854 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6855 eval_spec_function, handle_braces, process_brace_body, main,
6856 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6857 getenv_spec_function, compare_version_strings,
6858 version_compare_spec_function): Use GCC-specific formats in
6861 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6863 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6864 that operand 0 and operand 1 are equal.
6865 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6866 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6867 and operand 1 are equal.
6868 <default>: Ditto. Remove ??? comment.
6869 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6870 and operand 1 are equal.
6871 <default>: Ditto. Remove ??? comment.
6872 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6874 (*add<mode>_4) <default>: Ditto.
6875 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6877 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
6879 * config/i386/i386-protos.h (ix86_print_operand): Declare.
6880 * config/i386/i386.c (ix86_print_operand): Make non-static.
6881 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6882 * output.h (output_operand): Declare.
6883 * final.c (output_operand): Make non-static.
6885 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
6887 PR rtl-optimization/44013
6888 * sched-deps.c (add_dependence_list_and_free): Don't free lists
6889 when processing debug insns.
6892 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6893 recursing. Check that recursion is bounded. Rename inner var
6894 to avoid hiding incoming argument.
6896 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
6898 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6903 (*addqi_ext_1_rex64): Ditto.
6904 (*addqi_ext_1): Ditto.
6906 (*addqi_4): Check for incdec_operand in QImode.
6908 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6909 using SWI mode iterator.
6910 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6911 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6913 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6914 using SWI mode iterator.
6916 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6919 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6920 * c-format.c (gcc_diag_flag_specs): Add hash.
6921 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6922 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6923 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6924 pp_c_cv_qualifiers. Handle qualifiers spelling here.
6925 (pp_c_type_qualifier_list): Call the function above.
6926 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6927 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6928 (WARN_FOR_QUALIFIERS): New macro.
6929 (convert_for_assignment): Use it.
6931 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
6933 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6935 2010-06-04 Jan Hubicka <jh@suse.cz>
6937 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6938 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6939 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6940 DF_BYTE_LR_OUT): Update for embedded bitmaps.
6941 * fwprop.c (single_def_use_enter_block): Likewise.
6942 * ddg.c (create_ddg_dep_from_intra_loop_link,
6943 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6944 * loop-iv.c (latch_dominating_def): Likewise.
6945 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6946 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6947 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6948 df_rd_transfer_function, df_rd_top_dump,
6949 df_rd_bottom_dump): Update.
6950 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6951 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6952 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6953 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6954 df_lr_verify_solution_start, df_lr_verify_solution_end,
6955 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6956 df_live_free_bb_info, df_live_alloc, df_live_reset,
6957 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6958 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6959 df_live_verify_solution_start, df_live_verify_solution_end,
6960 df_live_verify_transfer_functions, df_chain_create_bb,
6961 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6962 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6963 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6964 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6965 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6966 df_byte_lr_transfer_function, df_byte_lr_top_dump,
6967 df_byte_lr_bottom_dump, df_create_unused_note,
6968 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6969 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6970 df_md_transfer_function, df_md_init, df_md_confluence_0,
6972 df_md_top_dump, df_md_bottom_dump): Update.
6973 (struct df_lr_problem_data): Embedd bitmap headers.
6975 2010-06-04 Jan Hubicka <jh@suse.cz>
6977 * dce.c (dce_process_block): Do not re-scan already marked
6980 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
6982 PR rtl-optimization/39871
6983 PR rtl-optimization/40615
6984 PR rtl-optimization/42500
6985 PR rtl-optimization/42502
6986 * ira.c (init_reg_equiv_memory_loc: New function.
6987 (ira): Call it twice.
6988 * reload.h (calculate_elim_costs_all_insns): Declare.
6989 * ira-costs.c: Include "reload.h".
6990 (regno_equiv_gains): New static variable.
6991 (init_costs): Allocate it.
6992 (finish_costs): Free it.
6993 (ira_costs): Call calculate_elim_costs_all_insns.
6994 (find_costs_and_classes): Take estimated elimination costs
6996 (ira_adjust_equiv_reg_cost): New function.
6997 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6998 * reload1.c (init_eliminable_invariants, free_reg_equiv,
6999 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
7000 (elim_bb): New static variable.
7001 (reload): Move code out of here into init_eliminable_invariants and
7002 free_reg_equiv. Call them.
7003 (calculate_elim_costs_all_insns): New function.
7004 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
7005 all callers changed. If FOR_COSTS is true, don't call alter_reg,
7006 but call note_reg_elim_costly if we turned a valid memory address
7007 into an invalid one.
7008 * Makefile.in (ira-costs.o): Depend on reload.h.
7010 2010-06-04 Julian Brown <julian@codesourcery.com>
7012 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
7015 2010-06-04 Richard Guenther <rguenther@suse.de>
7018 * cgraph.h (struct varpool_node): Add lto_file_data field.
7019 * lto-cgraph.c (input_varpool_node): Initialize it.
7021 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
7023 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
7024 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
7025 predicate in "type" attribute calculation.
7026 (*addsi_1_zext): Ditto.
7027 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
7028 (*addsi_2_zext): Ditto.
7029 (*add<mode>_3): Ditto.
7030 (*addsi_3_zext): Ditto.
7031 (*add<mode>_5): Ditto.
7033 2010-06-03 Jan Hubicka <jh@suse.cz>
7035 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
7037 * cfganal.c (compute_dominance_frontiers_1): Likewise.
7039 2010-06-03 Jan Hubicka <jh@suse.cz>
7041 * df-problems.c (df_create_unused_note, df_note_bb_compute):
7042 micro-optimize the checks when to add new note.
7044 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
7046 * final.c (output_asm_insn): Call
7047 targetm.asm_out.print_operand_punct_valid_p. Update comments.
7048 (output_operand): Call targetm.asm_out.print_operand. Update comments.
7049 (output_address): Call targetm.asm_out.print_operand_address.
7051 * target.h (struct gcc_target): Add print_operand,
7052 print_operand_address, and print_operand_punct_valid_p fields.
7053 * targhooks.h (default_print_operand): Declare.
7054 (default_print_operand_address): Declare.
7055 (default_print_operand_punct_valid_p): Declare.
7056 * targhooks.c (default_print_operand): Define.
7057 (default_print_operand_address): Define.
7058 (default_print_operand_punct_valid_p): Define.
7059 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
7060 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
7061 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7062 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
7063 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
7064 * vmsdbgout.c (addr_const_to_string): Update comment.
7065 * config/i386/i386.c (print_operand): Rename to...
7066 (ix86_print_operand): ...this. Make static.
7067 (print_operand_address): Rename to...
7068 (ix86_print_operand_address): ...this. Make static. Call
7069 ix86_print_operand instead of PRINT_OPERAND.
7070 (ix86_print_operand_punct_valid_p): New function.
7071 (TARGET_PRINT_OPERAND): Define.
7072 (TARGET_PRINT_OPERAND_ADDRESS): Define.
7073 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7074 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
7075 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7076 (PRINT_OPERAND): Delete.
7077 (PRINT_OPERAND_ADDRESS): Delete.
7078 * config/i386/i386-protos.h (print_operand): Delete prototype.
7079 (print_operand_address): Delete prototype.
7081 2010-06-03 Richard Guenther <rguenther@suse.de>
7083 PR tree-optimization/44403
7084 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7085 Preserve pointer qualifiers.
7086 (vect_create_data_ref_ptr): Likewise.
7088 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7091 * defaults.h (MAX_FIXED_MODE_SIZE): New.
7093 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
7095 2010-06-03 Jakub Jelinek <jakub@redhat.com>
7098 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
7099 return false if merging the bbs would lead to goto_locus
7100 location being lost from the IL.
7102 2010-06-03 Jan Hubicka <jh@suse.cz>
7103 Jakub Jelinek <jakub@redhat.com>
7105 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
7106 set->regs[i] is NULL or has just one entry.
7108 2010-06-03 Jan Hubicka <jh@suse.cz>
7110 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
7111 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
7113 2010-06-03 Paul Brook <paul@codesourcery.com>
7115 * config/arm/arm.c (FL_TUNE): Define.
7116 (arm_default_cpu, arm_cpu_select): Remove.
7117 (all_cores): Populate core field.
7118 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
7119 (arm_find_cpu): New function.
7120 (arm_handle_option): Lookup cpu/architecture names.
7121 (arm_override_options): Cleanup mcpu/march/mtune handling.
7122 (arm_file_start): Ditto.
7124 2010-06-03 Alan Modra <amodra@gmail.com>
7127 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
7128 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
7129 rtx to gen_load_toc_v4_PIC_1b. Tidy.
7130 (rs6000_emit_load_toc_table): Likewise.
7132 2010-06-02 Jan Hubicka <jh@suse.cz>
7134 * passes.c (init_optimization_passes): Put ipa reference
7135 after ipa pure-const.
7137 2010-06-02 Jan Hubicka <jh@suse.cz>
7139 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
7140 calls_read_all and calls_write_all.
7141 (get_reference_optimization_summary): Fix formatting.
7142 (is_proper_for_analysis): Check that decl is not readonly.
7143 (propagate_bits): Check CONST/PURE/noreturn flags.
7144 (ipa_init): Move all_module_statics to optimization_summary_obstack.
7145 (analyze_function): Ignore indirect edges.
7146 (copy_global_bitmap): For all module statics, do nothing.
7147 (generate_summary): Do not print calls_read_all/calls_write_all.
7148 (read_write_all_from_decl): Take node as argument; check
7149 cgraph_node_cannot_return.
7150 (propagate): Reorganize read_all/write_all computation;
7151 check indirect edges; check ecf flags; use all_module_statics
7152 in the results; do not free all_module_statics.
7153 (stream_out_bitmap): Handle all_module_statics.
7154 (ipa_reference_write_optimization_summary): Likewise; use
7155 varpool/cgraph encoders to get boundaries.
7156 (ipa_reference_read_optimization_summary): Read in all_module_statics;
7157 use it when possible.
7159 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7162 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
7163 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
7165 * doc/extend.texi (powerpc builtins): Document vec_recip,
7166 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
7168 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
7169 (rs6000_emit_swrsqrt): Ditto.
7170 (rs6000_emit_swdivsf): Delete.
7171 (rs6000_emit_swdivdf): Ditto.
7172 (rs6000_emit_swrsqrtsf): Ditto.
7174 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
7175 describe the reciprocal estimate support for each type.
7176 (recip_options): Map -mrecip=<opt> into option bits.
7177 (gen_2arg_fn_t): New typedef for binary rtx gen function.
7178 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
7179 reciprocal estimate instructions.
7180 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
7181 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
7182 Set up rs6000_recip_bits based on the -mrecip* options. Print the
7183 cost information if -mdebug=cost or -mdebug=reg.
7184 (rs6000_override_options): Set -mrecip-precision for power6, and
7185 power7 machines. If -mvsx or -mdfp, enable various options that
7186 came in previous instruction set ISAs, unless the option was
7187 explicitly disabled by the command line option. Parse
7188 -mrecip=<opt> options.
7189 (rs6000_builtin_vectorized_function): Add support for vectorizing
7190 the reciprocal estimate builtins and expansions.
7191 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
7192 (bdesc_2arg): Add reciprocal estimate builtins.
7193 (bdesc_1arg): Add reciprocal square root estimate builtins.
7194 (rs6000_expand_builtin): Rewrite to use a switch statement,
7195 instead of multiple if/then/elses. Add reciprocal estimate builtins.
7196 (rs6000_init_builtins): Create declarations for reciprocal
7198 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
7199 sized, prefer traditional floating point registers, if integer
7200 vector types, prefer altivec registers. Don't actually look at
7201 the memory address any more.
7202 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
7204 (rs6000_load_constant_and_splat): New helper function to load up
7205 the constant for reciprocal estimate instructions.
7206 (rs6000_emit_madd): New helper function for generating
7207 multiply/add type instructions, based on the current switches.
7208 (rs6000_emit_msub): Ditto.
7209 (rs6000_emit_mnsub): Ditto.
7210 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
7211 replace a divide with a reciprocal estimate and fixup, adding
7212 support for machines with high precision and vectors.
7213 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
7214 low precision machines.
7215 (rs6000_emit_swdiv): New common function to be called to replace a
7216 division with reciprocal estimate and fixup.
7217 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
7218 for double and vector types. Add support for high precision machines.
7220 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
7221 the reciprocal estimate instructions can be generated.
7222 (TARGET_FRE): Ditto.
7223 (TARGET_FRSQRTES): Ditto.
7224 (TARGET_FRSQRTE): Ditto.
7225 (RS6000_RECIP_*): New macros for reciprocal estimate support.
7227 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
7228 square root estimate on vectors.
7229 (re<mode>2): New insn for reciprocal division estimate on vectors.
7231 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
7233 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
7234 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
7235 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
7236 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
7237 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
7238 (RS6000_BUILTIN_RSQRT): Ditto.
7239 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
7240 floating point builtin.
7242 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7243 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
7244 __RECIP_PRECISION__ based on the command line switches.
7245 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
7247 * config/rs6000/rs6000.opt (-mrecip): Document add support for
7248 replacing division instructions with reciprocal estimate and fixup.
7249 (-mrecip=<opt>): New option.
7250 (-mrecip-precision): Ditto.
7252 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
7253 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
7254 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
7257 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
7258 (UNSPEC_VREFP): Ditto.
7259 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
7260 conterparts with regard to support of -mno-fused-madd and -ffast-math.
7261 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
7262 reciprocal estimate instructions to be generated.
7263 (altivec_vrefp): Ditto.
7265 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
7267 (rreg): New mode attribute for reciprocal estimate support.
7268 (recip<mode>3): New insn for division using reciprocal estimate
7270 (divide define_split): New define_split to convert floating point
7271 division to use reciprocal estimate if the user used the
7272 appropriate options and the split is run when we can add new
7273 pseudo registers for the fixup.
7274 (rsqrt<mode>2): New insn for reciprocal square root support.
7275 (recipsf3): Move into recip<mode>3.
7277 (fres): Use TARGET_FRES.
7278 (rsqrtsf2): Move into rsqrt<mode>2.
7279 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
7280 (copysignsf3): Add support for VSX.
7281 (fred): Use TARGET_FRE.
7283 (rsqrtdf_internal1): New function for frsqrte instruciton.
7285 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
7288 2010-06-03 Richard Guenther <rguenther@suse.de>
7291 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
7292 (set_user_assembler_libfunc): Likewise.
7294 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7296 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
7298 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
7300 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
7301 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
7302 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
7303 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
7304 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
7305 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
7306 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
7307 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
7308 * defaults.h: Updated for above mentioned changes.
7310 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
7312 * c-common.c: Remove header include of tm_p.h.
7313 * Makefile.in (c-common.o): Remove TM_P_H dependency.
7315 2010-06-02 Jakub Jelinek <jakub@redhat.com>
7317 * tree.h (struct tree_decl_map): New type.
7318 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
7319 (tree_decl_map_hash): New prototype.
7320 (debug_expr_for_decl, value_expr_for_decl): Change into
7321 tree_decl_map hashtab from tree_map.
7322 (init_ttree): Adjust initialization.
7323 (tree_decl_map_hash): New function.
7324 (decl_debug_expr_lookup, decl_debug_expr_insert,
7325 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
7327 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7329 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
7331 * configure: Regenerate.
7332 * config.in: Regenerate.
7334 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
7335 (X86_64_EMULATION): Define.
7336 (TARGET_LD_EMULATION): Use them.
7338 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
7339 (SPARC64_EMULATION): Define.
7340 (LINK_ARCH_SPEC): Use them.
7342 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7344 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
7345 smallest_mode_for_size for computing the precision types of new
7346 graphite IVs. Do not call lang_hooks.types.type_for_size.
7348 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7350 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
7352 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
7354 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
7357 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
7358 return false instead.
7360 2010-06-02 Jan Hubicka <jh@suse.cz>
7363 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
7364 create new cgraph node to check callee.
7366 2010-06-02 Richard Guenther <rguenther@suse.de>
7368 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
7370 2010-06-02 Richard Guenther <rguenther@suse.de>
7372 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
7373 (lto_wrapper_cleanup): ... this. Do not exit.
7374 (fatal): Adjust. Exit here.
7375 (fatal_perror): Likewise.
7376 (fatal_signal): New function.
7377 (main): Set up signal handlers to cleanup temporary files.
7378 * Makefile.in (lto-wrapper.o): Adjust dependencies.
7380 2010-06-02 Richard Guenther <rguenther@suse.de>
7382 PR tree-optimization/44377
7383 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
7385 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7387 * config/s390/2097.md (z10_fhex): Remove insn reservation.
7388 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
7389 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
7390 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
7392 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
7394 2010-06-02 Jan Hubicka <jh@suse.cz>
7396 * bitmap.c (bitmap_descriptor): Add search_iter.
7397 (bitmap_find_bit): Increment it.
7398 (print_statistics): Print it.
7400 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
7402 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
7403 instead of gimple_build_call_vec. Delete unnecessary local variable.
7405 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7407 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
7408 change from yesterday.
7410 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
7412 * c-ada-spec.c: Clean up redundant includes.
7414 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
7416 * gimplify.c: Do not include except.h and optabs.h.
7417 (gimplify_body): Do not initialize RTL profiling.
7418 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
7419 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
7420 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
7421 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
7424 * tree-pretty-print.h: Include pretty-print.h.
7425 * gimple-pretty-print.h: Include pretty-print.h.
7427 * tree-pretty-print.c: Do not include diagnostic.h.
7428 * tree-vrp.c: Likewise.
7429 * tree-tailcall.c: Likewise
7430 * tree-scalar-evolution.c: Likewise
7431 * tree-ssa-dse.c: Likewise
7432 * tree-chrec.c: Likewise
7433 * tree-ssa-sccvn.c: Likewise
7434 * tree-ssa-copyrename.c: Likewise
7435 * tree-nomudflap.c: Likewise
7436 * tree-call-cdce.c: Likewise
7437 * tree-stdarg.c: Likewise
7438 * tree-ssa-math-opts.c: Likewise
7439 * tree-nrv.c: Likewise
7440 * tree-ssa-sink.c: Likewise
7441 * tree-browser.c: Likewise
7442 * tree-ssa-loop-ivcanon.c: Likewise
7443 * tree-ssa-loop.c: Likewise
7444 * tree-parloops.c: Likewise
7445 * tree-ssa-address.c: Likewise
7446 * tree-ssa-ifcombine.c: Likewise
7447 * tree-if-conv.c: Likewise
7448 * tree-data-ref.c: Likewise
7449 * tree-affine.c: Likewise
7450 * tree-ssa-phiopt.c: Likewise
7451 * tree-ssa-coalesce.c: Likewise
7452 * tree-ssa-pre.c: Likewise
7453 * tree-ssa-live.c: Likewise
7454 * tree-predcom.c: Likewise
7455 * tree-ssa-forwprop.c: Likewise
7456 * tree-ssa-dce.c: Likewise
7457 * tree-ssa-ter.c: Likewise
7458 * tree-ssa-loop-prefetch.c: Likewise
7459 * tree-optimize.c: Likewise
7460 * tree-ssa-phiprop.c: Likewise
7461 * tree-object-size.c: Likewise
7462 * tree-outof-ssa.c: Likewise
7463 * tree-ssa-structalias.c: Likewise
7464 * tree-switch-conversion.c: Likewise
7465 * tree-ssa-reassoc.c: Likewise
7466 * tree-ssa-operands.c: Likewise
7467 * tree-vectorizer.c: Likewise
7468 * tree-vect-data-refs.c: Likewise
7469 * tree-vect-generic.c: Likewise
7470 * tree-vect-stmts.c: Likewise
7471 * tree-vect-patterns.c: Likewise
7472 * tree-vect-slp.c: Likewise
7473 * tree-vect-loop.c: Likewise
7474 * tree-ssa-loop-ivopts.c: Likewise
7475 * tree-ssa-loop-im.c: Likewise
7476 * tree-ssa-loop-niter.c: Likewise
7477 * tree-ssa-loop-unswitch.c: Likewise
7478 * tree-ssa-loop-manip.c: Likewise
7479 * tree-ssa-loop-ch.c: Likewise
7480 * tree-dump.c: Likewise
7481 * tree-complex.c: Likewise
7483 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
7484 * tree-ssa-uninit.c: Likewise
7485 * tree-ssa-threadupdate.c: Likewise
7486 * tree-ssa-uncprop.c: Likewise
7487 * tree-ssa-ccp.c: Likewise
7488 * tree-ssa-dom.c: Likewise
7489 * tree-ssa-propagate.c: Likewise
7490 * tree-ssa-alias.c: Likewise
7491 * tree-dfa.c: Likewise
7492 * tree-cfgcleanup.c: Likewise
7493 * tree-sra.c: Likewise
7494 * tree-ssa-copy.c: Likewise
7495 * tree-ssa.c: Likewise
7496 * tree-profile.c: Likewise
7497 * tree-cfg.c: Likewise
7498 * tree-ssa-threadedge.c: Likewise
7499 * tree-vect-loop-manip.c: Likewise
7501 * tree-inline.c: Do not include diagnostic.h and expr.h.
7503 (copy_decl_for_dup_finish): Do not use NULL_RTX.
7505 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
7506 * tree-loop-distribution.c: Likewise.
7508 2010-06-01 Jan Hubicka <jh@suse.cz>
7510 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
7512 2010-06-01 Jan Hubicka <jh@suse.cz>
7514 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
7515 remove return value.
7516 (split_bbs_on_noreturn_calls) .... here.
7517 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
7518 * tree-flow.h (fixup_noreturn_call): New.
7520 2010-06-01 Jan Hubicka <jh@suse.cz>
7522 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
7524 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
7526 * tree.h (build_nt_call_list): Delete.
7527 * tree.c (build_nt_call_list): Delete.
7529 2010-06-01 Jan Hubicka <jh@suse.cz>
7531 * fwprop.c: Make emit-rtl.h include last.
7532 * rtlanal.c: Include emit-rtl.h.
7533 * genautomata.c: Output emit-rtl include into insn-automata.c
7534 * df-scan.c: Include emit-rtl.h.
7535 * haifa-sched.c: Indlude emit-rtl.h.
7536 * mode-switching.c: Indlude emit-rtl.h.
7537 * graph.c: Indlude emit-rtl.h.
7538 * sel-sched.c: Include emit-rtl.h.
7539 * sel-sched-ir.c: Include emit-rtl.h.
7540 * ira-build.c: Include emit-rtl.h.
7541 * emit-rtl.c: (first_insn, last_insn): Remove defines.
7542 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
7544 (set_new_first_and_last_insn, get_last_insn_anywhere,
7545 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
7546 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
7547 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
7548 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
7549 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
7550 Use accessor functions.
7551 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7552 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7553 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7554 mem_expr_equal_p): Move here from rtl.h.
7555 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
7556 Move here from emit-rtl.c; make inline.
7557 * cfglayout.h: Include emit-rtl.h.
7558 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
7559 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
7560 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
7561 mem_expr_equal_p, get_insns, set_first-insn,
7562 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
7563 * reg-stack.c: Include emit-rtl.h.
7566 2010-06-01 Jan Hubicka <jh@suse.cz>
7568 * cgraph.h (tree_function_versioning): Update prototype.
7569 (cgraph_function_versioning): Update prototype.
7570 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
7572 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
7573 (cgraph_materialize_clone, save_inline_function_body): Update use of
7574 tree_function_versioning.
7575 * tree-inline.c (copy_bb): Look for previous copied block to link
7576 after; fix debug output.
7577 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
7578 (copy_body): Likewise.
7579 (expand_call_inline): Update use of copy_body.
7580 (tree_function_versioning): Update use of copy body; accept
7581 blocks_to_copy and new_entry.
7583 2010-06-01 Jan Hubicka <jh@suse.cz>
7585 * gegenrtl.c: Remove unnecesary prototypes.
7587 (gendef): Produce static inline.
7589 (main): Do not decode parameters; generate header only.
7590 * Makefile.in (genrtl.c): Remove.
7592 2010-06-01 Jan Hubicka <jh@suse.cz>
7594 * tree-switch-conversion.c (build_one_array): Make it readonly.
7596 2010-06-01 Richard Guenther <rguenther@suse.de>
7598 * optabs.c (init_optabs): Guard all accesses to reinit.
7599 * ipa-pure-const.c (propagate): Fix another typo.
7600 * opts.c (common_handle_option): Split assignment to bool.
7601 * c-opts.c (c_common_handle_option): Likewise.
7603 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7604 Matthew Gingell <gingell@adacore.com>
7606 * doc/invoke.texi: Mention -fdump-ada-spec.
7607 * tree-dump.c (dump_files): Add ada-spec.
7608 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
7609 * tree-pass.h (tree_dump_index): Add TDI_ada.
7610 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
7611 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
7612 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
7613 * c-decl.c: Include c-ada-spec.h.
7614 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
7616 (c_write_global_declarations): Add handling of -fdump-ada-spec.
7617 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
7618 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
7619 * c-ada-spec.h, c-ada-spec.c: New files.
7621 2010-06-01 Richard Guenther <rguenther@suse.de>
7624 * ipa-pure-const.c (get_function_state): Hand back varying state
7625 if we do not have one.
7626 (has_function_state): New function.
7627 (duplicate_node_data): Adjust.
7628 (remove_node_data): Likewise.
7629 (pure_const_write_summary): Likewise.
7630 (propagate): Likewise. Fix typo.
7632 2010-06-01 Jan Hubicka <jh@suse.cz>
7634 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
7635 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
7636 (execute_all_ipa_transforms): Do not play with the states.
7638 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
7640 * config/arm/t-linux-androideabi: New.
7641 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7643 2010-06-01 Jan Hubicka <jh@suse.cz>
7645 * tree-inline.c (estimate_num_insns): For stdarg functions look
7646 into call statement to count cost of argument passing.
7648 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
7650 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7651 argument for fprintf.
7652 (ix86_output_addr_diff_elt): Likewise.
7653 (x86_function_profiler): Likewise.
7654 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7655 (LPREFIX): Likewise.
7656 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7658 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7661 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7662 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7663 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7664 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7665 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7666 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7667 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7668 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7671 2010-05-31 Jan Hubicka <jh@suse.cz>
7673 * tree.h (tree_range_check_failed): Declare noreturn.
7675 2010-05-31 Jan Hubicka <jh@suse.cz>
7677 * gimple.c (gimple_call_builtin_p): New function.
7678 * gimple.h (gimple_call_builtin_p): Declare.
7679 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7681 (execute_warn_function_return): BUILT_IN_RETURN is return.
7682 (split_critical_edges): Return edges are not critical.
7683 (is_ctrl_altering_stmt): Builtin_in_return is altering.
7684 (gimple_verify_flow_info): Handle built_in_return.
7685 (execute_warn_function_return): Handle built_in_return.
7686 * ipa-pure-const.c (check_call): Ignore builtin_return.
7688 2010-05-31 Jakub Jelinek <jakub@redhat.com>
7691 * expr.c (expand_assignment): Don't store anything for out-of-bounds
7692 array accesses with non-MEM.
7694 PR tree-optimization/44182
7695 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7696 newly needs to end a bb is followed by debug stmts, instead return
7697 true from the function at the end.
7698 (maybe_move_debug_stmts_to_successors): New function.
7699 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7701 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
7704 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7706 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
7708 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7709 for nested functions in non-optimized compilation.
7711 2010-05-31 Richard Guenther <rguenther@suse.de>
7713 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7715 2010-05-30 Jan Hubicka <jh@suse.cz>
7717 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7719 2010-05-30 Richard Guenther <rguenther@suse.de>
7722 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7723 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7726 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
7728 * config/darwin.c (output_objc_section_asm_op): Add comment.
7729 (name_needs_quotes): Add '_' to list of valid comment chars.
7730 (machopic_output_function_base_name): Remove unneeded quotes.
7731 (darwin_encode_section_info): Adjust asm whitespace.
7732 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7733 (ASM_OUTPUT_LOCAL): Ditto.
7734 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7735 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7736 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7738 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7740 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7741 RS6000_OUTPUT_BASENAME unconditionally.
7742 (rs6000_output_function_epilogue): Likewise.
7744 2010-05-30 Jan Hubicka <jh@suse.cz>
7746 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7749 2010-05-30 Richard Guenther <rguenther@suse.de>
7751 * tree-cfg.c (verify_gimple_assign_single): Implement
7752 verification for COND_EXPR rhs.
7754 2010-05-30 Jan Hubicka <jh@suse.cz>
7756 * cgraph.h (cgraph_dump_file): Declare.
7757 * cgraphunit.c (cgraph_dump_file): Export.
7758 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7760 2010-05-30 Jan Hubicka <jh@suse.cz>
7762 * dwarf2out.c (reference_to_unused,
7763 premark_types_used_by_global_vars_helper): Avoid creation of new
7766 2010-05-30 Jan Hubicka <jh@suse.cz>
7768 * cgraph.h (cgraph_node_cannot_return,
7769 cgraph_edge_cannot_lead_to_return): New functions.
7770 * cgraph.c (cgraph_node_cannot_return,
7771 cgraph_edge_cannot_lead_to_return): Use them.
7772 * ipa-pure-const.c (pure_const_names): New static var.
7773 (check_call): Handle calls not leading to return.
7774 (pure_const_read_summary): Dump info read.
7775 (propagate): Dump info about propagation process; ignore side effects
7776 of functions not leading to exit; fix handling of pure functions.
7778 2010-05-30 Jan Hubicka <jh@suse.cz>
7780 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7781 for tail call epilogues.
7783 2010-05-30 Jan Hubicka <jh@suse.cz>
7785 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7786 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7789 2010-05-29 Jan Hubicka <jh@suse.cz>
7791 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7792 node; remove references in node we no longer keep in cgrpah but need
7795 2010-05-29 Jan Hubicka <jh@suse.cz>
7797 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7799 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7802 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7804 2010-05-29 Jan Hubicka <jh@suse.cz>
7806 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7807 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7808 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7809 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7810 debug_names_replaced_by, debug_update_ssa): Likewise.
7811 * sbitmap.c (debug_sbitmap): Likewise.
7812 * genrecog.c (debug_decision, debug_decision_list): Likewise.
7813 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7814 debug_tree_chain): Likewise.
7815 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7816 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7817 * optabs.c (debug_optab_libfuncs): Likewise.
7818 (verify_loop_closed_ssa): Likewise.
7819 * value-prof.c (verify_histograms): Likewise.
7820 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7821 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7822 * cfghooks.c (verify_flow_info): Likewise.
7823 * fold-const.c (debug_fold_checksum): Likewise.
7824 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7825 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7827 * omega.c (debug_omega_problem): Likewise.
7828 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7829 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7830 * dominance.c (verify_dominators, debug_dominance_info,
7831 debug_dominance_tree): Likewise.
7832 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7833 * df_regno_debug, df_ref_debug,
7834 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7835 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7836 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7837 * sel-sched.c (debug_state): Likewise.
7838 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7840 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7841 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7842 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7843 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7845 * c-pretty-print.c (debug_c_tree): Likewise.
7846 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7847 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7848 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7849 * ebitmap.c (debug_ebitmap): Likewise.
7850 * function.c (debug_find_var_in_block_tree): Likewise.
7851 * print-rtl.c (debug_rtx): Likewise.
7852 (debug_rtx_count): Likewise.
7853 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7854 * stor-layout.c (debug_rli): Likewise.
7855 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7856 * tree-data-ref.c (debug_data_references,
7857 debug_data_dependence_relations, debug_data_reference,
7858 debug_data_dependence_relation, debug_rdg_vertex,
7859 debug_rdg_component, debug_rdg): Likewise.
7860 * tree-affine.c (debug_aff): Likewise.
7861 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7863 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7864 * emit-rtl.c (verify_rtl_sharing): Likewise.
7865 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7866 debug_value_expressions): Likewise.
7867 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7868 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7869 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7870 * cfglayout.c (verify_insn_chain): Likewise.
7871 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7872 debug_clast_stmt, debug_generated_program): Likewise.
7873 * ggc-page.c (debug_print_page_list): Likewise.
7874 * tree-ssa-ter.c (debug_ter): Likewise.
7875 * graphite-dependences.c (debug_pddr): Likewise.
7876 * sched-deps.c (debug_ds): Likewise.
7877 * tree-ssa.c (verify_ssa): Likewise.
7878 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7879 debug_scattering_functions, debug_iteration_domains, debug_pdr,
7880 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7881 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7882 * tree-inline.c (debug_find_tree): Likewise.
7883 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7884 debug_ppl_powerset_matrix): Likewise.
7885 * var-tracking.c (debug_dv): Likewise.
7886 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7887 * cfgloop.c (verify_loop_structure): Likewise.
7888 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7889 * c-common.c (verify_sequence_points): Likewise.
7890 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7891 debug_candidates, debug_rgn_dependencies): Likewise.
7892 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7893 * debug_constraint_graph, debug_solution_for_var,
7894 debug_sa_points_to_info): Likewise.
7895 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7897 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7898 debug_loops, debug_loop, debug_loop_num): Likewise.
7899 * passes.c (debug_pass): Likewise.
7900 (dump_properties): Likewise; add cfglayout property.
7901 (debug_properties): Likewise.
7902 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7903 * varpool.c (debug_varpool): Likewise.
7904 * regcprop.c (debug_value_data): Likewise.
7905 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7906 debug_immediate_uses_for): Likewise.
7908 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7911 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7912 Filter out insn-flags.h.
7914 2010-05-29 Jan Hubicka <jh@suse.cz>
7916 * cgraph.h (struct varpool_node_set_def,
7917 struct cgraph_node_set_def): Remove unused AUX pointer.
7918 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7921 2010-05-29 Jan Hubicka <jh@suse.cz>
7924 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7926 2010-05-29 Richard Guenther <rguenther@suse.de>
7928 * lto-streamer.c (cached_bp): New global variable.
7929 (bitpack_create): Return the cached bitpack, if available.
7930 (bitpack_delete): Clear and cache the bitpack, if appropriate.
7931 (bp_pack_value): Remove redundant asserts.
7933 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7936 * tree-if-conv.c (is_true_predicate): New.
7937 (is_predicated): Use is_true_predicate.
7938 (add_to_predicate_list): Same. Do not use unshare_expr.
7939 (add_to_dst_predicate_list): Same.
7941 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
7943 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7945 (predicate_bbs): Same.
7946 (clean_predicate_lists): Same.
7947 (find_phi_replacement_condition): Do not AND the predicate from
7950 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
7953 * Makefile.in (build/gencondmd.o): Add a missing `\'.
7955 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7958 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7959 (negdf2): Adjust expander pattern and use negdf2_slow.
7962 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
7964 * basic-block.h (struct control_flow_graph): Move last_label_uid field
7966 * df.h (struct df_base_ref): Move regno field up.
7967 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7968 * expr.h (struct separate_ops): Move location field up.
7969 * optabs.h (struct optab_d): Move libcall_basename field down.
7970 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7971 * config/i386/i386.h (struct machine_function): Convert call_abi field
7972 into a bitfield. Move cfa field to the end of the structure.
7974 2010-05-29 Jan Hubicka <jh@suse.cz>
7976 * varpool.c (varpool_get_node): Fix lookup.
7978 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
7980 * config/spu/spu-protos.h: Do not include rtl.h. Protect
7981 RTL specific prototypes with #ifdef RTX_CODE.
7982 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7983 * config/spu/t-spu-elf: Fix dependencies.
7985 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7987 2010-05-29 Mike Stump <mikestump@comcast.net>
7990 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7991 TM_H when building to avoid dependency loops.
7993 2010-05-29 Jan Hubicka <jh@suse.cz>
7995 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7996 refs and body; not the whole node for masters of materialized clones.
7998 2010-05-29 Mike Stump <mikestump@comcast.net>
8000 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
8002 2010-05-29 Jan Hubicka <jh@suse.cz>
8004 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
8005 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
8006 use of clone_function_name.
8007 * cgraph.h (cgraph_create_virtual_clone,
8008 cgraph_function_versioning): update prototypes.
8009 (clone_function_name): Declare.
8010 * ipa-cp.c (ipcp_insert_stage): Update call of
8011 cgraph_create_virtual_clone.
8012 * omp-low.c (create_omp_child_function_name): Use
8013 cgraph_create_virtual_clone.
8014 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
8015 (cgraph_function_versioning): Take SUFFIX argument; produce new name
8016 and make decl local.
8018 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8020 * vec.h: Include statistics.h
8021 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
8024 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8026 * c-lex.c: Do not include c-tree.h.
8027 * c-pretty-print.c: Likewise.
8028 * c-opts.c: Likewise.
8029 * c-gimplify.c: Likewise.
8030 * c-common.c: Likewise.
8031 * c-dump.c: Likewise. Include c-common.h.
8033 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8035 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
8036 before including diagnostic-core.h.
8037 (c_cpp_error): New prototype moved from c-tree.h.
8038 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
8039 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
8040 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
8041 (c_cpp_error): Prototype moved to c-common.h.
8042 * Makefile.in: Update dependency for C_COMMON_H.
8044 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
8046 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
8047 * c-common.c (c_register_addr_space): Remove here.
8048 * c-decl.c (c_register_addr_space): Re-add here.
8050 2010-05-28 Mike Stump <mikestump@comcast.net>
8052 * config/darwin-c.c: Remove c-tree.h include.
8054 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8056 * gcc.c: Include diagnostic.h.
8057 (error_count): Remove. All users changed to use errorcount.
8058 (programname): Remove. All users changed to use progname.
8059 (fancy_abort, internal_error, fatal_error, error, warning, inform,
8061 (execute): Don't include "Internal error" and bug reporting
8062 information in argument of internal_error call.
8063 (process_command): Don't increment error_count after calling
8065 (input_filename): Rename to gcc_input_filename. All users
8067 (main): Call diagnostic_initialize. Register delete_temp_files
8068 with atexit. Use seen_error to test for errors.
8069 * gcc.h: Include diagnostic-core.h.
8070 (fatal_error, error, warning): Remove.
8071 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
8072 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
8073 (gcc.o): Update dependencies.
8075 2010-05-28 Jeff Law <law@redhat.com>
8077 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
8079 * ira.h (ira_bad_reload_regno): Declare
8080 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
8082 * ira-color.c (update_curr_costs): Free updated hard reg costs.
8083 (ira_reassign_conflict_allocnos): Remove bogus asserts.
8084 (allocno_reload_assign): Likewise.
8086 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
8088 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
8091 2010-05-28 Richard Guenther <rguenther@suse.de>
8094 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
8095 Stream fixed-point constants mode.
8096 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
8098 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
8099 Stream fixed-point constants mode.
8100 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
8103 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8105 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
8106 only place it was called from.
8107 (number_of_latch_executions): Do not return chrec_dont_know when the
8108 may_be_zero is a runtime condition: instead, return a COND_EXPR
8109 including the may_be_zero condition.
8110 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
8112 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
8115 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8117 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
8118 generate COND_EXPRs for degenerate_phi_result.
8120 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
8123 * tree-if-conv.c (if_convertible_loop_p): Check the
8124 if-convertibility of phi nodes in non predicated BBs.
8126 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8128 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
8130 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8133 * gcc.c (inform, warning, inform): New functions.
8134 (fatal_ice): Rename to internal_error; change cmsgid parameter to
8135 gmsgid. All callers changed.
8136 (notice): Rename to fnotice; add parameter fp. All callers changed.
8137 (fatal_error): Rename to fatal_signal. All users changed.
8138 (fatal): Rename to fatal_error; change cmsgid parameter to
8139 gmsgid. All callers changed.
8140 (process_command): Use warning instead of error for warnings.
8141 (end_going_arg): Don't use _() around argument of error.
8142 (do_spec_1): Use inform for message from %n specs. Use warning
8143 instead of error for warnings.
8144 (main): Use inform for comparison messages. Use warning for
8145 message about unused linker input.
8146 (error): Increment error_count. Print "error: ".
8147 * gcc.h (fatal): Change to fatal_error.
8149 * config/darwin-driver.c (darwin_default_min_version): Use warning
8150 instead of fprintf for warnings.
8151 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
8153 2010-05-28 Julian Brown <julian@codesourcery.com>
8155 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
8156 (*thumb2_addsi3_compare0_scratch): New.
8157 * config/arm/constraints.md (Pv): New.
8158 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
8160 (*addsi3_compare0_scratch): Likewise.
8162 2010-05-28 Jan Hubicka <jh@suse.cz>
8164 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
8166 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
8167 only on local statics.
8169 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
8171 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
8173 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
8176 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
8177 (OPTION_GLIBC): Define.
8179 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8182 * dwarf2out.c (double_int_type_size_in_bits): New function.
8183 (round_up_to_align): Change first argument and return value to
8185 (field_byte_offset): Work internally on double_ints.
8188 * builtins.c (expand_movstr): Use a temporary pseudo instead
8189 of target even when target is not NULL and not const0_rtx, but
8190 fails movstr predicate.
8191 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
8193 2010-05-28 Joseph Myers <joseph@codesourcery.com>
8195 * final.c (rest_of_clean_state): Use %m in errors instead of
8197 * gengtype.c (read_input_list, close_output_files): Use xstrerror
8198 instead of strerror.
8199 * toplev.c (process_options): Use %m in errors instead of strerror
8201 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
8204 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
8206 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
8207 (ix86_canonical_va_list_type): Make static. Add declaration.
8208 (ix86_enum_va_list): Make static. Reindent.
8209 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
8210 (ix86_canonical_va_list_type): Ditto.
8211 (ix86_enum_va_list): Ditto.
8213 2010-05-28 Richard Guenther <rguenther@suse.de>
8215 * lto-wrapper.c (run_gcc): With -save-temps generate a
8216 user-visible ltrans filename. Fixup ltrans unit numbering.
8218 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
8220 * c-common.c (c_common_nodes_and_builtins): Replace use
8221 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
8222 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
8223 to ix86_enum_va_list.
8224 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
8225 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
8226 (TARGET_ENUM_VA_LIST_P): Add hook description.
8227 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
8228 * target.h (gcc_target): Add enum_va_list hook.
8231 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
8232 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
8233 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
8235 2010-05-28 Alan Modra <amodra@gmail.com>
8238 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8239 emit_library_call machinery to set up __tls_get_addr calls.
8241 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8243 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
8245 2010-05-28 Dodji Seketeli <dodji@redhat.com>
8247 Revert fix for PR c++/44188
8248 * c-common.c (is_typedef_decl): Revert the moving of this
8250 * tree.c (is_typedef_decl): ... here.
8251 (typdef_variant_p): Revert the moving of this definition
8252 here from gcc/cp/tree.c.
8253 * c-common.h (is_typedef_decl): Revert the moving of this
8255 * tree.h (is_typedef_decl): ... here.
8256 (typedef_variant_p): Revert the moving of this declaration here
8257 from gcc/cp/cp-tree.h
8258 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
8259 (gen_tagged_type_die): Revert the splitting out of ...
8260 (gen_type_die_with_usage): ... this function. Revert the anonymous
8261 tagged type handling.
8262 (gen_typedef_die): Revert emitting DW_TAG_typedef for
8263 typedefs naming anonymous tagged types.
8265 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8267 * config/rs6000/rs6000-modes.def (PSImode): Delete.
8269 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
8271 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
8272 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
8274 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
8276 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
8277 XER_REGS to CA_REGS throughout.
8278 * config/rs6000/rs6000.h: Same.
8279 (ADDITIONAL_REGISTER_NAMES): Add "xer".
8280 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
8281 that mode_iterator "P" is the size for arithmetic carries as well.
8282 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
8284 2010-05-28 Jakub Jelinek <jakub@redhat.com>
8287 * combine.c (struct rtx_subst_pair): Define unconditionally.
8288 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
8289 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
8290 Call make_compound_operation on pair->to.
8291 (propagate_for_debug): Don't call make_compound_operation here.
8292 Always use simplify_replace_fn_rtx.
8294 2010-05-27 Sterling Augustine <sterling@tensilica.com>
8296 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
8297 * config/xtensa/xtensa.c (override_options): Check
8298 TARGET_FORCE_NO_PIC and set flag_pic.
8299 * config/xtensa/xtensa.opt: Document -mforce-no-pic
8301 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8304 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
8305 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
8307 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8309 * diagnostic-core.h: New. Contents moved from diagnostic.h and
8311 * diagnostic.c: Don't include toplev.h.
8312 (progname): Define. Moved from toplev.c.
8313 (seen_error): New function.
8314 * diagnostic.h: Include diagnostic-core.h.
8315 (diagnostic_t, emit_diagnostic): Don't declare here.
8316 * toplev.c (progname): Move to toplev.c.
8317 (emit_debug_global_declarations, compile_file, finalize,
8318 do_compile, toplev_main): Use seen_error.
8319 * toplev.h: Include diagnostic-core.h.
8320 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
8321 internal_error, warning, warning_at, error, error_n, error_at,
8322 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
8323 verbatim, fnotice, progname): Move to diagnostic-core.h.
8324 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
8325 (expand_builtin_expect): Use seen_error.
8326 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
8327 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
8328 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
8329 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
8330 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
8331 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
8332 errorcount for errors.
8333 * c-opts.c (c_common_finish): Use seen_error.
8334 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8335 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
8336 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
8337 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
8338 (get_coverage_counts): Use seen_error.
8339 * dwarf2out.c (dwarf2out_finish): Use seen_error.
8340 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
8341 gimplify_body): Use seen_error.
8342 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
8343 * ipa-pure-const.c (gate_pure_const): Use seen_error.
8344 * ipa-reference.c (gate_reference): Use seen_error.
8345 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
8346 * lambda-code.c: Include diagnostic-core.h instead of
8348 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
8349 * lto-compress.c: Include diagnostic-core.h instead of
8351 * lto-section-in.c: Include diagnostic-core.h instead of
8353 * lto-streamer-out.c: Include diagnostic-core.h instead of
8355 * lto-streamer.c: Include diagnostic-core.h instead of
8357 (gate_lto_out): Use seen_error.
8358 * matrix-reorg.c: Include diagnostic-core.h instead of
8360 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
8361 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
8362 (gate_expand_omp, lower_omp_1): Use seen_error.
8363 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
8364 (rest_of_decl_compilation, rest_of_type_compilation,
8365 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
8366 * tree-cfg.c (label_to_block_fn): Use seen_error.
8367 * tree-inline.c (optimize_inline_calls): Use seen_error.
8368 * tree-mudflap.c (mudflap_finish_file): Use
8370 * tree-optimize.c (gate_all_optimizations,
8371 gate_all_early_local_passes, gate_all_early_optimizations): Use
8373 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
8374 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
8375 (varpool_remove_unreferenced_decls,
8376 varpool_assemble_pending_decls): Use seen_error.
8377 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
8378 (TOPLEV_H, DIAGNOSTIC_H): Update.
8379 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
8380 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
8381 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
8382 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
8383 coverage.o, lambda-code.o): Update dependencies.
8385 2010-05-25 Dodji Seketeli <dodji@redhat.com>
8388 * c-common.c (is_typedef_decl): Move this definition ...
8389 * tree.c (is_typedef_decl): ... here.
8390 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
8391 * c-common.h (is_typedef_decl): Move this declaration ...
8392 * tree.h (is_typedef_decl): ... here.
8393 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
8394 * dwarf2out.c (is_naming_typedef_decl): New function.
8395 (gen_tagged_type_die): Split out of ...
8396 (gen_type_die_with_usage): ... this function. When an anonymous
8397 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
8398 is emitted for the typedef.
8399 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
8400 anonymous tagged types.
8402 2010-05-27 Jason Merrill <jason@redhat.com>
8404 * print-tree.c (debug_vec_tree): New fn.
8405 (print_vec_tree): New fn.
8406 * tree.h: Declare them.
8407 * gdbinit.in (pvt): New command.
8409 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
8411 * gdbinit.in (pdd): New command.
8413 2010-05-27 Jan Hubicka <jh@suse.cz>
8415 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
8416 (update_caller_keys): Return early if there are no callers;
8417 only update fibheap when decresing the key.
8418 (update_callee_keys): Avoid recursion.
8419 (decide_inlining_of_small_functions): When badness does not match;
8420 re-insert into fibheap.
8422 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8424 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
8425 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
8426 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
8427 (ALL_HOST_OBJS): Now a union of the above two.
8428 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
8429 all files in ALL_HOST_FRONTEND_OBJS.
8430 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
8432 * c-common.c: Pretend to be a backend file by undefining
8433 IN_GCC_FRONTEND (still need rtl.h here).
8435 2010-05-27 Jan Hubicka <jh@suse.cz>
8437 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
8438 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
8440 2010-05-27 Jan Hubicka <jh@suse.cz>
8442 * sched-ebb.c: Rename struct deps to struct deps_desc.
8444 * sel-sched-ir.c: Likewise.
8445 * sched-deps.c: Likewise.
8446 * sched-int.h: Likewise.
8447 * sched-rgn.c: Likewise.
8449 2010-05-27 Jon Beniston <jon@beniston.com>
8452 * config/lm32/lm32.h: Remove definition of
8453 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
8455 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
8458 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
8460 2010-05-27 Richard Guenther <rguenther@suse.de>
8462 PR tree-optimization/44284
8463 * tree-vect-stmts.c (vectorizable_assignment): Handle
8464 sign-changing conversions as simple copy.
8466 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8468 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
8470 (__gthread_active_p): Check for pthread_create if compiling against
8473 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8475 Support compilation for Android platform. Reimplement -mandroid.
8477 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
8478 (*android*): Set ANDROID_DEFAULT.
8479 (arm*-*-linux*): Include linux-android.h.
8480 (arm*-*-eabi*): Don't include previous -mandroid implementation.
8481 * config/arm/eabi.h: Remove, move Android-specific parts ...
8482 * config/linux-android.h: ... here. New file.
8483 * config/arm/eabi.opt: Rename to ...
8484 * config/linux-android.opt: ... this.
8485 (mandroid): Allow -mno-android option. Initialize based on
8487 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
8488 Move logic to corresponding LINUX_TARGET_* macros.
8489 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
8490 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
8491 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
8492 Android definitions.
8493 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
8494 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
8497 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
8499 Add support for Bionic C library
8501 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
8503 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
8504 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
8506 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
8507 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
8508 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
8509 to support multiple C libraries. Handle Bionic.
8510 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
8511 (BIONIC_DYNAMIC_LINKER64): Define.
8512 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
8514 (TARGET_HAS_SINCOS): Enable for Bionic.
8516 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
8517 the last option specified on command line take effect.
8518 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
8520 (mglibc, muclibc): Update.
8522 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
8523 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
8526 * doc/invoke.texi (-mglibc, -muclibc): Update.
8527 (-mbionic): Document.
8529 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8531 * c-common.h (c_register_addr_space): Add prototype.
8532 (ADDR_SPACE_KEYWORD): Remove.
8533 * c-common.c (c_register_addr_space): New function.
8534 (c_addr_space_name): Reimplement.
8535 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
8537 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
8538 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
8540 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
8541 Remove TARGET_ADDR_SPACE_KEYWORDS.
8543 2010-05-27 Joseph Myers <joseph@codesourcery.com>
8545 * input.c: New file.
8546 * input.h (main_input_filename): Move declaration to toplev.h.
8547 * toplev.c (input_location, line_table): Move to input.c
8548 * toplev.h (main_input_filename): Move declaration from input.h.
8549 * tree.c (expand_location): Move to input.c.
8550 * Makefile.in (OBJS-common): Add input.o.
8551 (input.o): Add dependencies.
8553 2010-05-27 Richard Guenther <rguenther@suse.de>
8555 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
8556 for non-existant files.
8557 (fork_execute): Mark args_name file as deleted.
8559 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
8562 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
8563 (narrow_signed_type): Likewise.
8565 2010-05-26 Jan Hubicka <jh@suse.cz>
8567 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
8568 edge only when checking is enabled; check using former_clone_of;
8569 check inline clones too.
8570 (cgraph_materialize_clone): Record former_clone_of pointer.
8571 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
8572 combining redirections; dump args_to_skip bitmap
8573 (cgraph_materialize_all_clones): Do no redirection here.
8574 * ipa-inline.c (inline_transform): Do redirection here.
8575 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
8578 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8580 * config/avr/avr-c.c: Do not include regs.h.
8581 Include cpplib.h for cpp_define and tree.h for c-common.h.
8582 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
8583 * config/avr/t-avr: Fix dependencies for avr-c.o.
8585 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8587 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
8588 string instead of SYMBOL_REF rtx.
8589 * rtl.h (set_stack_check_libfunc): Move prototype from here...
8590 * libfuncs.h: ...to here. Adjust for explow.c change.
8592 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8594 * pretty-print.c: Don't include ggc.h.
8595 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
8596 (identifier_to_locale): Use them for allocation.
8597 * pretty-print.h (identifier_to_locale_alloc,
8598 identifier_to_locale_free): Declare.
8599 * toplev.c (alloc_for_identifier_to_locale): New.
8600 (general_init): Set identifier_to_locale_alloc and
8601 identifier_to_locale_free.
8602 * Makefile.in (pretty-print.o): Update dependencies.
8604 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8606 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
8607 pointer types if they have different alignment or mode.
8609 2010-05-26 Anatoly Sokolov <aesok@post.ru>
8611 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8612 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8613 * config/sparc/sparc-protos.h (function_value): Remove declaration.
8614 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
8615 sparc_function_value_regno_p): New functions.
8616 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8617 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8618 (function_value): Rename to...
8619 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
8620 argument to 'outgoing'.
8621 (function_arg_record_value, function_arg_union_value,
8622 function_arg_vector_value): Update comment.
8624 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
8626 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
8627 (fde_needed_for_eh_p): New predicate.
8628 (output_call_frame_info): Use it throughout to decide whether FDEs
8629 are needed for EH purpose.
8630 (dwarf2out_begin_prologue): Reorder assignments.
8632 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8634 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
8635 special case loop->header.
8636 (is_predicated): New.
8637 (if_convertible_loop_p): Call it.
8639 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8641 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8642 iterator in parameter. Do not generate code during the analysis.
8643 (tree_if_convert_cond_stmt): Removed.
8644 (tree_if_convert_stmt): Removed.
8645 (predicate_bbs): New.
8646 (if_convertible_loop_p): Call predicate_bbs.
8647 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8648 now contains all the analysis part.
8650 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8652 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8653 statements in the analysis part.
8654 (tree_if_convert_stmt): Update comment.
8655 (remove_conditions_and_labels): New.
8656 (combine_blocks): Call remove_conditions_and_labels.
8657 (tree_if_conversion): Update comment.
8659 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8661 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8662 than 2 predecessors or more than 2 successors.
8664 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8666 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8667 of loops in which the data dependence analysis fails.
8669 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8671 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8672 CDI_POST_DOMINATORS.
8673 (tree_if_conversion): Same.
8675 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8677 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8679 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
8681 * tree-if-conv.c: Update copyright years. Fix comments.
8684 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
8686 * builtin-types.def (BT_INT128): New primitive type.
8687 (BT_UINT128): Likewise.
8688 * c-common.c (c_common_r): Add __int128 keyword.
8689 (c_common_type_for_size): Handle __int128.
8690 (c_common_type_for_mode): Likewise.
8691 (c_common_signed_or_unsigned_type): Likewise.
8692 (c_common_nodes_and_builtins): Add builtin type
8693 if target supports 128-bit integer scalar.
8694 * c-common.h (enum rid): Add RID_INT128.
8695 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8696 if target supports 128-bit integer scalar.
8697 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8698 (finish_declspecs): Likewise.
8699 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8700 (c_token_starts_declspecs): Likewise.
8701 (c_parser_declspecs): Likewise.
8702 (c_parser_attributes): Likewise.
8703 (c_parser_objc_selector): Likewise.
8704 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8705 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8706 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8707 * tree.c (make_or_reuse_type): Likewise.
8708 (make_unsigned_type): Likewise.
8709 (build_common_tree_nodes_2): Likewise.
8710 * tree.h (enum integer_type_kind): Add itk_int128 and
8711 itk_unsigned_int128.
8712 (int128_integer_type_node): New define.
8713 (int128_unsigned_type_node): New define.
8714 * doc/extend.texi: Add documentation about __int128 type.
8716 2010-05-26 Richard Guenther <rguenther@suse.de>
8718 * tree-ssa-sccvn.c (copy_nary): Adjust.
8719 (copy_phis): Rename to ...
8720 (copy_phi): ... this. Adjust.
8721 (copy_references): Rename to ...
8722 (copy_reference): ... this. Adjust.
8723 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8724 result into the valid table.
8726 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8728 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8729 insn-config.h, insn-codes.h, recog.h, and optabs.h.
8731 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8733 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8735 2010-05-26 Richard Guenther <rguenther@suse.de>
8737 * opts.c (common_handle_option): Handle OPT_Ofast.
8739 2010-05-26 Joseph Myers <joseph@codesourcery.com>
8741 * diagnostic.c: Don't include opts.h.
8742 (permissive_error_option): Define.
8743 (diagnostic_initialize): Take n_opts parameter. Allocate memory
8744 for classify_diagnostic. Don't use memset for
8745 classify_diagnostic. Initialize new and recently added fields.
8746 (diagnostic_classify_diagnostic): Use context->n_opts instead of
8748 (diagnostic_report_diagnostic): Pass context parameter to
8749 diagnostic_report_warnings_p. Use option_enabled and option_name
8751 (emit_diagnostic): Use permissive_error_option.
8752 (permerror): Likewise.
8753 * diagnostic.h: Don't include options.h.
8754 (struct diagnostic_context): Add n_opts, opt_permissive,
8755 inhibit_warnings, warn_system_headers, option_enabled and
8756 option_name fields. Change classify_diagnostic to a pointer.
8757 * opts-diagnostic.h: New file.
8758 * opts.c: Include opts-diagnostic.h.
8759 (common_handle_option): Set global_dc fields for -Wfatal-errors,
8760 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8761 (option_name): New function.
8762 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8763 (c_common_handle_option): Set global_dc->permissive for
8765 * c-common.c (c_cpp_error): Save and restore
8766 global_dc->warn_system_headers, not variable warn_system_headers.
8767 * toplev.c: Include opts-diagnostic.h.
8768 (general_init): Update call to diagnostic_initialize. Set
8769 global_dc->show_column, global_dc->option_enabled and
8770 global_dc->option_name.
8771 (process_options): Don't set global_dc fields here.
8772 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8773 (diagnostic.o, opts.o, toplev.o): Update dependencies.
8775 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8777 * config/picochip/picochip.md (movsi): Split a movsi from a
8780 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8782 * ggc-zone.c: Update copyright year.
8783 (poison_region): Mark memory for Valgrind as undefined before
8784 memset () call and inaccessible afterwards.
8785 (ggc_pch_total_size): Change type of i to int.
8787 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8789 * ggc-common.c (ggc_free_overhead): Allow empty slot.
8791 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8793 * ggc-common.c: Update copyright year.
8794 (ggc_rlimit_bound): Remove prototype. Compile only if
8795 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8796 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8797 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
8798 (ggc_min_heapsize_heuristic): Likewise.
8800 2010-05-26 Richard Guenther <rguenther@suse.de>
8802 PR rtl-optimization/44164
8803 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8804 no-common access-path disambiguation.
8805 (indirect_ref_may_alias_decl_p): Adjust.
8806 (indirect_refs_may_alias_p): Likewise.
8807 (refs_may_alias_p_1): Likewise.
8809 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8811 * c-typeck.c: Do not include expr.h.
8813 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8815 * rtl.h (decl_default_tls_model): Move prototype from here...
8816 * output.h: ...to here.
8817 * c-decl.c: Do not include rtl.h.
8818 * c-pragma.c: Likewise.
8819 * c-parser.c: Likewise.
8820 * c-gimplify.c: Likewise. And also not hard-reg-set.
8821 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
8822 FIXME note for it. Add a FIXME note for expr.h.
8823 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8824 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8827 2010-05-26 Jakub Jelinek <jakub@redhat.com>
8830 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8831 or total_size is larger than red zone size for non-V4 ABI, emit a
8832 stack_tie resp. frame_tie insn before stack pointer restore.
8833 * config/rs6000/rs6000.md (frame_tie): New insn.
8835 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
8837 * function.h (struct function): Add can_throw_non_call_exceptions bit.
8838 * lto-streamer-in.c (input_function): Stream it in.
8839 * lto-streamer-out.c (output_function): Stream it out.
8840 * function.c (allocate_struct_function): Set it.
8841 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8842 for flag_non_call_exceptions.
8843 * cfgbuild.c (control_flow_insn_p): Likewise.
8844 (make_edges): Likewise.
8845 * cfgexpand.c (expand_stack_alignment): Likewise.
8846 * combine.c (distribute_notes): Likewise.
8847 * cse.c (cse_extended_basic_block): Likewise.
8848 * except.c (insn_could_throw_p): Likewise.
8849 * gcse.c (simple_mem): Likewise.
8850 * ipa-pure-const.c (check_call): Likewise.
8851 (check_stmt ): Likewise.
8852 * lower-subreg.c (lower-subreg.c): Likewise.
8853 * optabs.c (emit_libcall_block): Likewise.
8854 (prepare_cmp_insn): Likewise.
8855 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8856 * postreload.c (rest_of_handle_postreload): Likewise.
8857 * reload1.c (reload_as_needed): Likewise.
8858 (emit_input_reload_insns): Likewise.
8859 (emit_output_reload_insns): Likewise.
8860 (fixup_abnormal_edges): Likewise.
8861 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8862 * store-motion.c (find_moveable_store): Likewise.
8863 * tree-eh.c (stmt_could_throw_p): Likewise.
8864 (tree_could_throw_p): Likewise.
8865 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8866 * config/arm/arm.c (arm_expand_prologue): Likewise.
8867 (thumb1_expand_prologue): Likewise.
8868 * config/rx/rx.md (cbranchsf4): Likewise.
8870 * config/s390/s390.c (s390_emit_prologue): Likewise.
8871 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8872 (inline_forbidden_into_p): New predicate.
8873 (expand_call_inline): Use it to forbid inlining.
8874 (tree_can_inline_p): Likewise.
8876 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8878 * config/i386/i386-c.c: Do not include rtl.h.
8879 * config/i386/t-i386: Update dependencies.
8881 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8883 * attribs.c: Do not include rtl.h.
8884 * Makefile.in: Update dependencies.
8886 2010-05-25 Anatoly Sokolov <aesok@post.ru>
8888 * double-int.h (double_int_and): New.
8889 * combine.c (try_combine): Clean up, use double_int_* and
8890 immed_double_int_const functions.
8892 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8894 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8895 stderr to /dev/null instead of grep -q.
8896 * configure: Regenerate.
8898 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8900 * Makefile.in (EXCEPT_H): Fix typo.
8902 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
8904 * ira-build.c (update_conflict_hard_reg_costs): New.
8905 (ira_build): Call update_conflict_hard_reg_costs.
8907 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8910 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8912 (intersect_loc_chains): Walk the s2var's loc_chain together
8913 with s1node chain as long as the locations are equal, don't
8914 call find_loc_in_1pdv in that case.
8917 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8918 (copy_bind_expr): ... instead of here.
8919 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8920 if the block hasn't been remapped.
8921 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8922 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8924 2010-05-25 Richard Guenther <rguenther@suse.de>
8927 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8928 out-of-bounds array accesses.
8930 2010-05-25 Richard Guenther <rguenther@suse.de>
8932 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8933 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8934 (run_gcc): Re-organize to make cleanup easier.
8936 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8938 * config/s390/s390.c (optimization_options): Fix and move the
8939 flag_prefetch_loop_arrays override ...
8940 (override_options): ... here.
8942 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8944 * diagnostic.c: Don't include plugin.h.
8945 (diagnostic_report_diagnostic): Don't handle plugins specially
8946 here. Pass context to internal_error callback.
8947 * diagnostic.h (struct diagnostic_context): Add context parameter
8948 to internal_error callback.
8949 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8950 * plugin.h (struct diagnostic_context): Declare.
8951 (warn_if_plugins, plugins_internal_error_function): Declare.
8952 * toplev.c (general_init): Set global_dc->internal_error.
8953 * Makefile.in (diagnostic.o): Update dependencies.
8955 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
8957 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8958 * config/rs6000/t-darwin64: New.
8959 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8962 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
8965 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8966 match the original (and intended) behaviour before r159557. This
8967 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8970 2010-05-25 Richard Guenther <rguenther@suse.de>
8972 * doc/invoke.texi: Document -Ofast.
8973 * target.h (struct gcc_target): Add handle_ofast.
8974 * target-def.h (TARGET_HANDLE_OFAST): Add.
8975 (TARGET_INITIALIZER): Adjust.
8976 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
8977 * common.opt (Ofast): Add.
8979 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8981 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8982 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8984 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
8987 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8988 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
8989 false_rtx. Use false_rtx to compute the correct *ptest for reversed
8990 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8992 2010-05-25 Jakub Jelinek <jakub@redhat.com>
8994 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8995 DW_OP_minus with negated offset instead of DW_OP_plus.
8996 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8998 2010-05-25 Wei Guozhi <carrot@google.com>
9000 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
9001 tst instruction and a new alternative.
9002 * config/arm/constraints.md (Pu): New constraint.
9004 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
9006 * function.c (assign_stack_local_1): Initialize variable
9007 to avoid warning when bootstrapping at -O3.
9009 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
9011 * configure.ac (all_lang_makefiles): Remove everything related to it.
9012 * configure: Regenerate.
9013 * Makefile.in: Fix reference to ada Make-lang.in.
9014 Remove support for LANG_MAKEFILES.
9016 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
9017 Sandra Loosemore <sandra@codesourcery.com>
9019 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
9020 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
9021 description. Add arm_neon_fp16_ok.
9022 (Add Options): Add arm_neon and arm_neon_fp16.
9024 2010-05-24 Joseph Myers <joseph@codesourcery.com>
9026 * diagnostic.c: Don't include flags.h.
9027 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
9028 context parameters. Check flags in the context passed as a parameter.
9029 (diagnostic_build_prefix): Add context parameter. Check
9030 show_column flag in context.
9031 (diagnostic_action_after_output): Check fatal_errors flag in context.
9032 (diagnostic_report_current_module): Check show_column flag in context.
9033 (default_diagnostic_starter): Update call to
9034 diagnostic_build_prefix.
9035 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
9036 (emit_diagnostic): Pass context to permissive_error_kind.
9037 (permerror): Pass context to permissive_error_kind.
9038 * diagnostic.h (struct diagnostic_context): Add show_column,
9039 pedantic_errors, permissive and fatal_errors fields.
9040 (diagnostic_build_prefix): Update prototype.
9042 * toplev.c (process_options): Set flags in global_dc from
9043 flag_show_column, flag_pedantic_errors, flag_permissive,
9045 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
9046 to diagnostic_build_prefix.
9047 * Makefile.in (diagnostic.o): Update dependencies.
9049 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
9051 * config/i386/ia32intrin.h (__crc32q): Define only if
9052 __SSE4_2__ is defined.
9054 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
9058 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
9059 DECL_VISIBILITY_SPECIFIED.
9060 (emutls_decl): Set DECL_PRESERVE_P and copy
9061 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
9062 (emutls_finalize_control_var): New callback.
9063 (emutls_finish): Finalize emutls control variables.
9064 * toplev.c (compile_file): Move the call to emutls_finish ()
9065 before varpool_assemble_pending_decls ().
9067 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
9069 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
9070 added to the preprocessor condition.
9072 2010-05-24 Paul Brook <paul@codesourcery.com>
9074 * gengtype-lex.l: Add HARD_REG_SET.
9075 * expr.c (expand_expr_real_1): Record writes to hard registers.
9076 * function.c (rtl_data): Add asm_clobbers.
9077 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
9078 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
9079 Use crtl->asm_clobbers.
9081 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9083 * doc/makefile.texi (Makefile): Mention stages 'profile'
9084 and 'feedback' for profiledbootstrap.
9086 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
9089 * config/i386/i386.c (def_builtin): Properly check
9090 OPTION_MASK_ISA_64BIT.
9092 2010-05-23 Joseph Myers <joseph@codesourcery.com>
9094 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
9095 typedefs with different but compatible types. Allow duplicate
9096 typedefs with the same type except for pedantic non-C1X, but give
9097 warning for variably modified types.
9098 * c-typeck.c (tagged_types_tu_compatible_p,
9099 function_types_compatible_p, type_lists_compatible_p,
9100 comptypes_internal): Add parameter different_types_p; set
9101 *different_types_p for different but compatible types. All
9103 (comptypes_check_different_types): New.
9104 * c-tree.h (comptypes_check_different_types): Declare.
9106 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9108 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
9109 * jump.c: Include basic-block.h.
9110 * profile.c: Likewise.
9111 * tree-profile.c: Likewise.
9112 * coverage.c: Likewise.
9113 * basic-block.h (optimize_function_for_size_p): Move to function.h.
9114 (optimize_function_for_speed_p): Likewise.
9115 * function.h (optimize_function_for_size_p,
9116 optimize_function_for_speed_p): Moved here from basic-block.h.
9117 * Makefile.in: Update dependencies.
9119 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9121 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
9122 before calling make; allow override through $MAKE.
9123 * doc/invoke.texi (Optimize Options): Document override.
9125 2010-05-23 Anatoly Sokolov <aesok@post.ru>
9127 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
9128 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9129 (rs6000_mode_dependent_address_ptr): Make static.
9130 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9131 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
9134 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
9137 * config/i386/i386.c: Make sure that the correct regparm is passed.
9139 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
9141 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
9142 * sbitmap.c: ...to here to internalize sbitmap element access.
9143 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
9144 Explain why basic-block.h is included.
9145 * function.h: Include tm.h for CUMULATIVE_ARGS.
9146 * Makefile.in: Update dependencies.
9148 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9150 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
9152 * sbitmap.h (struct sbitmap_def): Do not typedef here.
9153 * sbitmap.c: Include sbitmap.h.
9154 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
9155 hard-reg-set.h. Split everything related to regsets out from here...
9156 * regset.h: ...to here. New file.
9157 * df.h: Include regset.h and sbitmap.h.
9158 * tree-flow.h: Likewise.
9159 * cfgloop.h: Likewise.
9160 * except.h: Do not include sbitmap.h. Include hashtab.h.
9161 * cgraph.h: Include vec.h and function.h.
9162 * reload.h (struct insn_chain): Change types of live_throughout
9163 and dead_or_set from regset_head to bitmap_head.
9164 (compute_use_by_pseudos): Be defined also if regset.h is not included.
9165 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
9166 spilled_regs from regset_head to bitmap_head to avoid dependency
9168 * sel-sched-ir.h: Include regset.h.
9169 * reload.c: Include df.h before reload.h.
9170 * caller-save.c: Likewise.
9171 * reload1.c: Likewise.
9173 (mark_elimination): Update type of r to bitmap, consistent with
9175 * dominance.c: Include bitmap.h.
9176 * modulo-sched.c: Include df.h.
9177 * cfganal.c: Include bitmap.h and sbitmap.h.
9178 * cfgbuild.c: Include sbitmap.h.
9179 * lcm.c: Include sbitmap.h.
9180 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
9181 * domwalk.c: Include sbitmap.h, exclude ggc.h.
9182 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
9183 * cselib.c: Include bitmap.h.
9184 * tree-optimize.c: Include regset.h.
9185 * stmt.c: Include bitmap.h.
9186 * Makefile.in: Update dependencies.
9188 2010-05-22 Jan Hubicka <jh@suse.cz>
9190 * cgraph.h (struct varpool_node): Add same_comdat_group.
9191 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
9193 (output_varpool): Update call of lto_output_varpool_node.
9194 (input_varpool): Read same_comdat_group pointer.
9195 (input_varpool_1): Fixup same_comdat_group pointer.
9196 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
9197 group is needed, all are.
9198 * varpool.c (varpool_remove_node): Remove node from same comdat group
9200 (varpool_analyze_pending_decls): Walk same comdat groups.
9202 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
9204 * rtl.h (union rtunion_def): Remove rt_bit member.
9205 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
9206 * print-rtl (print_rtx): Do not print the member.
9207 * gengtype.c (adjust_field_rtx_def): Do not handle it.
9208 * gengenrtl.c (type_from_format): Likewise.
9209 (accessor_from_format): Likewise.
9211 2010-05-22 Joseph Myers <joseph@codesourcery.com>
9213 * dbgcnt.c: Include toplev.h instead of errors.h.
9214 * ira-emit.c: Don't include errors.h.
9215 * ira.c: Include toplev.h instead of errors.h.
9216 * lto-compress.c: Include toplev.h instead of errors.h.
9217 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
9218 ira.o, dbgcnt.o): Update dependencies.
9220 2010-05-22 Richard Guenther <rguenther@suse.de>
9222 * gimple.c (gimple_types_compatible_p): Check type qualifications
9223 before merging pointer to complete and pointer to incomplete type.
9224 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
9225 we use our own resolution algorithm. The gold linker plugin
9226 doesn't do the job we want it to do here.
9228 2010-05-22 Anatoly Sokolov <aesok@post.ru>
9230 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9231 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9232 (sparc_mode_dependent_address_p): New function.
9234 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9236 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
9238 * timevar.c: Do not include any core headers.
9239 (timevar_print): De-i18n-ize.
9240 (print_time): Likewise.
9241 * timevar.h (timevar_push, timevar_pop): Make inline functions.
9243 2010-05-21 Joseph Myers <joseph@codesourcery.com>
9245 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
9247 (diagnostic_initialize): Initialize x_data not last_function.
9248 (diagnostic_report_current_function): Move to tree-diagnostic.c.
9249 (default_diagnostic_starter): Call
9250 diagnostic_report_current_module not
9251 diagnostic_report_current_function.
9252 (diagnostic_report_diagnostic): Initialize x_data not
9254 (verbatim): Likewise.
9255 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
9257 (struct diagnostic_context): Change last_function to x_data.
9258 (diagnostic_auxiliary_data): Replace with
9259 diagnostic_context_auxiliary_data and
9260 diagnostic_info_auxiliary_data.
9261 (diagnostic_last_function_changed, diagnostic_set_last_function,
9262 diagnostic_report_current_function): Move to tree-diagnostic.h.
9263 (print_declaration, dump_generic_node, print_generic_stmt,
9264 print_generic_stmt_indented, print_generic_expr,
9265 print_generic_decl, debug_c_tree, dump_omp_clauses,
9266 print_call_name, debug_generic_expr, debug_generic_stmt,
9267 debug_tree_chain, default_tree_printer): Move to
9268 tree-pretty-print.h.
9269 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
9270 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
9271 gimple-pretty-print.h.
9272 * pretty-print.c: Don't include tree.h
9273 (pp_base_format): Don't handle %K here.
9274 (pp_base_tree_identifier): Move to tree-pretty-print.c.
9275 * pretty-print.h (text_info): Change abstract_origin to x_data.
9276 (pp_tree_identifier, pp_unsupported_tree,
9277 pp_base_tree_identifier): Move to tree-pretty-print.h.
9278 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
9279 tree-pretty-print.h: New files.
9280 * tree-pretty-print.c: Include tree-pretty-print.h.
9281 (percent_K_format): New. Moved from pretty-print.c.
9282 (pp_base_tree_identifier): Move from pretty-print.c.
9283 * c-objc-common.c: Include tree-pretty-print.h.
9284 (c_tree_printer): Handle %K here.
9285 * langhooks.c: Include tree-diagnostic.h.
9286 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
9287 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
9288 (default_tree_printer): Handle %K using percent_K_format.
9289 (general_init): Use default_tree_diagnostic_starter.
9290 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
9291 (free_lang_data): Use default_tree_diagnostic_starter.
9292 * c-pretty-print.c: Include tree-pretty-print.h.
9293 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9294 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9295 * dwarf2out.c: Include tree-pretty-print.h.
9296 * except.c: Include tree-pretty-print.h.
9297 * gimple-pretty-print.c: Include tree-pretty-print.h and
9298 gimple-pretty-print.h.
9299 * gimplify.c: Include tree-pretty-print.h.
9300 * graphite-poly.c: Include tree-pretty-print.h and
9301 gimple-pretty-print.h.
9302 * ipa-cp.c: Include tree-pretty-print.h.
9303 * ipa-inline.c: Include gimple-pretty-print.h.
9304 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9305 * ipa-pure-const.c: Include gimple-pretty-print.h.
9306 * ipa-struct-reorg.c: Include tree-pretty-print.h and
9307 gimple-pretty-print.h.
9308 * ipa-type-escape.c: Include tree-pretty-print.h.
9309 * print-rtl.c: Include tree-pretty-print.h.
9310 * print-tree.c: Include gimple-pretty-print.h.
9311 * sese.c: Include tree-pretty-print.h.
9312 * tree-affine.c: Include tree-pretty-print.h.
9313 * tree-browser.c: Include tree-pretty-print.h.
9314 * tree-call-cdce.c: Include gimple-pretty-print.h.
9315 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
9316 * tree-chrec.c: Include tree-pretty-print.h.
9317 * tree-data-ref.c: Include tree-pretty-print.h and
9318 gimple-pretty-print.h.
9319 * tree-dfa.c: Include tree-pretty-print.h.
9320 * tree-if-conv.c: Include tree-pretty-print.h and
9321 gimple-pretty-print.h.
9322 * tree-inline.c: Include tree-pretty-print.h.
9323 * tree-into-ssa.c: Include tree-pretty-print.h and
9324 gimple-pretty-print.h.
9325 * tree-nrv.c: Include tree-pretty-print.h.
9326 * tree-object-size.c: Include tree-pretty-print.h and
9327 gimple-pretty-print.h.
9328 * tree-outof-ssa.c: Include tree-pretty-print.h and
9329 gimple-pretty-print.h.
9330 * tree-parloops.c: Include tree-pretty-print.h and
9331 gimple-pretty-print.h.
9332 * tree-predcom.c: Include tree-pretty-print.h and
9333 gimple-pretty-print.h.
9334 * tree-scalar-evolution.c: Include tree-pretty-print.h and
9335 gimple-pretty-print.h.
9336 * tree-sra.c: Include tree-pretty-print.h.
9337 * tree-ssa-address.c: Include tree-pretty-print.h.
9338 * tree-ssa-alias.c: Include tree-pretty-print.h.
9339 * tree-ssa-ccp.c: Include tree-pretty-print.h and
9340 gimple-pretty-print.h.
9341 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
9342 * tree-ssa-copy.c: Include tree-pretty-print.h and
9343 gimple-pretty-print.h.
9344 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
9345 * tree-ssa-dce.c: Include tree-pretty-print.h and
9346 gimple-pretty-print.h.
9347 * tree-ssa-dom.c: Include tree-pretty-print.h and
9348 gimple-pretty-print.h.
9349 * tree-ssa-dse.c: Include gimple-pretty-print.h.
9350 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
9351 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
9352 * tree-ssa-live.c: Include tree-pretty-print.h and
9353 gimple-pretty-print.h.
9354 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
9355 gimple-pretty-print.h.
9356 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
9357 gimple-pretty-print.h.
9358 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
9359 gimple-pretty-print.h.
9360 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
9361 gimple-pretty-print.h.
9362 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
9363 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
9364 * tree-ssa-operands.c: Include tree-pretty-print.h and
9365 gimple-pretty-print.h.
9366 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
9367 gimple-pretty-print.h.
9368 * tree-ssa-pre.c: Include tree-pretty-print.h and
9369 gimple-pretty-print.h.
9370 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
9371 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
9372 gimple-pretty-print.h.
9373 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
9374 gimple-pretty-print.h.
9375 * tree-ssa-sink.c: Include gimple-pretty-print.h.
9376 * tree-ssa-ter.c: Include tree-pretty-print.h and
9377 gimple-pretty-print.h.
9378 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
9379 * tree-ssa.c: Include tree-pretty-print.h and
9380 gimple-pretty-print.h.
9381 * tree-stdarg.c: Include gimple-pretty-print.h.
9382 * tree-switch-conversion.c: Include gimple-pretty-print.h.
9383 * tree-tailcall.c: Include tree-pretty-print.h and
9384 gimple-pretty-print.h.
9385 * tree-vect-data-refs.c: Include tree-pretty-print.h and
9386 gimple-pretty-print.h.
9387 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
9388 gimple-pretty-print.h.
9389 * tree-vect-loop.c: Include tree-pretty-print.h and
9390 gimple-pretty-print.h.
9391 * tree-vect-patterns.c: Include gimple-pretty-print.h.
9392 * tree-vect-slp.c: Include tree-pretty-print.h and
9393 gimple-pretty-print.h.
9394 * tree-vect-stmts.c: Include tree-pretty-print.h and
9395 gimple-pretty-print.h.
9396 * tree-vectorizer.c: Include tree-pretty-print.h.
9397 * tree-vrp.c: Include tree-pretty-print.h and
9398 gimple-pretty-print.h.
9399 * value-prof.c: Include tree-pretty-print.h and
9400 gimple-pretty-print.h.
9401 * var-tracking.c: Include tree-pretty-print.h.
9402 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
9403 (tree-diagnostic.o): New dependencies.
9404 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
9405 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
9406 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
9407 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
9408 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
9409 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
9410 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
9411 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
9412 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
9413 tree-ssa-address.o, tree-ssa-loop-niter.o,
9414 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
9415 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
9416 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
9417 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
9418 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
9419 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
9420 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
9421 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
9422 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
9423 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
9424 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
9425 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
9426 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
9427 tree-switch-conversion.o, var-tracking.o, value-prof.o,
9428 cfgexpand.o, pretty-print.o): Update dependencies.
9430 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
9432 * tree-ssa-structalias.c: Remove tm_p.h from include.
9434 2010-05-21 Jeff Law <law@redhat.com>
9436 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
9438 2010-05-21 Jason Merrill <jason@redhat.com>
9440 * tree-eh.c (cleanup_is_dead_in): New.
9441 (lower_try_finally): Don't generate a dead cleanup region.
9442 (lower_cleanup): Likewise.
9444 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9447 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
9448 unchain each use from the cyclic next_regno_use chain first.
9450 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9452 * real: Do not include gmp.h, mpfr.h, and mpc.h.
9453 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
9454 (real_value_negate, real_value_abs): New prototypes.
9455 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
9456 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
9457 new include file for interface between MPFR and REAL_VALUE_TYPE.
9458 * real.c: Include realmpfr.h.
9459 (real_arithmetic2): Remove legacy function.
9460 (real_value_negate): New.
9461 (real_value_abs): New.
9462 (mfpr_from_real, real_from_mpfr): Move from here...
9463 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
9464 * builtins.c: Include realmpfr.h.
9465 * fold-const.c: Include realmpfr.h.
9466 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
9467 (fold_negate_const): Likewise.
9468 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
9469 * toplev.c: Include realmpfr.h.
9470 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
9471 and real_value_negate.
9472 * fixed-value.c (check_real_for_fixed_mode): Likewise.
9473 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
9474 (vfp3_const_double_index): Likewise.
9475 (arm_print_operand): Likewise.
9476 * Makefile.in: Update dependencies.
9478 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9480 * config/s390/s390.c (override_options): Increase the default
9481 of max-completely-peel-times.
9483 2010-05-21 Julian Brown <julian@codesourcery.com>
9484 Mark Mitchell <mark@codesourcery.com>
9486 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
9487 sibling calls for Thumb-1.
9488 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
9489 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
9491 (*call_insn, *call_value_insn): Don't use for Thumb-2.
9492 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
9494 (return): New expander.
9495 (*arm_return): New name for ARM return insn.
9496 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
9498 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
9500 * config.gcc (sparc64-*-rtems*): New target.
9502 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9504 * tree.c (build_function_decl_skip_args): Fix grammar.
9505 (build_function_type_list_1): Fix typos, adjust formatting.
9507 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9509 * tree.h: Include real.h and fixed-value.h as basic datatypes.
9510 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
9511 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
9512 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
9513 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
9514 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
9515 tree-pretty-print.c, tree-loop-distribution.c,
9516 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
9517 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
9518 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
9519 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
9520 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
9521 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
9522 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
9523 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
9524 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
9525 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
9526 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
9527 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
9528 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
9529 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
9530 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
9531 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
9532 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
9533 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
9534 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
9535 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
9536 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
9537 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
9538 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
9539 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
9540 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
9541 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
9542 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
9543 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
9544 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
9545 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
9546 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
9547 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
9548 config/score/score7.c, config/score/score.c, config/arm/arm.c,
9549 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
9550 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
9551 config/bfin/bfin.c: Clean up redundant includes.
9552 * Makefile.in: Update accordingly.
9554 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
9557 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
9558 statement has no arguments.
9560 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
9563 * varasm.c (emutls_decl): Merge attributes to new decl.
9565 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
9568 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
9569 around the uniquized constructor if its type requires a conversion.
9571 2010-05-21 Jakub Jelinek <jakub@redhat.com>
9574 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
9575 at -O0 goto_locus of any of the incoming edges differs from
9576 goto_locus of outgoing edge, or gimple_location of any of the
9579 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
9581 * ira.c (ira_non_ordered_class_hard_regs): Define.
9582 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
9583 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
9584 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
9585 cost of unaligned hard regs when allocating multi-reg pseudos.
9587 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
9589 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
9590 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
9591 for TARGET_NO_FLOAT.
9592 * config/mips/mips.c (mips_file_start): Expand conditional expression
9593 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
9594 (mips_override_options): Move -mno-float override -msoft-float and
9596 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
9597 Condition(TARGET_SUPPORTS_NO_FLOAT).
9598 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
9599 __mips_no_float here.
9600 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
9601 (TARGET_SUPPORTS_NO_FLOAT): Define.
9602 * config/mips/sdemtk.opt: Delete.
9604 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
9606 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
9608 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
9611 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
9612 * configure: Regenerate.
9613 * config.in: Regenerate.
9614 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
9615 instead of sahf only for 64bit targets.
9617 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9620 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
9621 setup_ref_regs for DEBUG_INSNs.
9623 2010-05-20 Jan Hubicka <jh@suse.cz>
9626 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
9628 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
9631 * df-scan.c (df_ref_compare): Stabilize sort.
9633 2010-05-20 Jakub Jelinek <jakub@redhat.com>
9635 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
9636 argument. Don't use DW_OP_piece if offset is non-zero,
9637 put offset into second DW_OP_bit_piece argument.
9638 (dw_sra_loc_expr): Adjust callers. For memory expressions
9641 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
9644 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9645 settings for 16-bit-constant "addo" alternative.
9647 2010-05-19 James E. Wilson <wilson@codesourcery.com>
9649 * config/mips/mips-dsp.md (add<DSPV:mode>3,
9650 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9653 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
9654 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9657 2010-05-19 Joseph Myers <joseph@codesourcery.com>
9659 * diagnostic.c (FLOAT, FFS): Don't undefine.
9660 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9661 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9664 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
9666 * combine.c (propagate_for_debug): Call make_compound_operation
9667 on the source value.
9668 (try_combine): When implementing a split chosen by find_split_point,
9669 either copy i2src or set it to null. Assert that i2src is not null
9670 before substituting into CALL_INSN_FUNCTION_USAGE.
9672 2010-05-19 Anatoly Sokolov <aesok@post.ru>
9674 * double-int.h (double_int_ior): New function.
9675 * tree.h (build_int_cst_wide_type): Remove.
9676 * tree.c (build_int_cst_wide_type): Remove.
9677 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9678 of build_int_cst_wide_type.
9679 * stor-layout.c (set_sizetype): (Ditto.).
9680 * dojump.c (do_jump): Use build_int_cstu instead of
9681 build_int_cst_wide_type.
9683 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
9685 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9686 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9687 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9688 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9689 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
9690 propagate the 'data' argument to copy_tree_r.
9691 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9692 Propagate 'data' argument to walk_tree.
9693 (copy_if_shared): New function.
9694 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9695 (unmark_visited): New function.
9696 (unshare_body): Call copy_if_shared instead of doing it manually.
9697 (unvisit_body): Call unmark_visited instead of doing it manually.
9699 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
9701 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9702 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
9703 * hooks.c: Likewise.
9704 * target-def.h (TARGET_FOLD_BUILTIN): Define to
9705 hook_tree_tree_int_treep_bool_null.
9706 * target.h (struct gcc_target): Update signature of fold_builtin
9708 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9709 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9710 instead of the call expression.
9711 (fold_builtin_call_array): Pass n and argarray directly.
9712 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9714 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
9715 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
9716 `i' and use it in place of `arity'.
9717 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9718 Dereference `args' directly.
9719 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9721 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9723 * doc/sourcebuild.texi (Effective-Target Keywords): Document
9725 (Directives): Document optional dg-require-effective-target
9728 2010-05-19 Richard Guenther <rguenther@suse.de>
9731 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9733 2010-05-19 Richard Guenther <rguenther@suse.de>
9735 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9736 * common.opt (fwhopr=): New.
9737 * opts.c (common_handle_option): Handle OPT_fwhopr.
9738 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9739 * collect2.c (main): Match -fwhopr*.
9740 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9741 Execute ltrans stage in parallel when jobs is bigger than 1.
9743 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9745 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9746 pentiumpro on Solaris 8/x86 with Sun as.
9747 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9749 (gcc_cv_as_ix86_quad): Check for .quad directive.
9750 * configure: Regenerate.
9751 * config.in: Regenerate.
9752 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9754 2010-05-19 Martin Jambor <mjambor@suse.cz>
9756 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9757 also for indirect edges. Actual printing moved...
9758 (ipa_print_node_jump_functions_for_edge): ...here.
9759 (ipa_compute_jump_functions): Renamed to
9760 ipa_compute_jump_functions_for_edge and made static.
9761 (ipa_compute_jump_functions): New function.
9762 (make_edge_direct_to_target): Check if the number of arguments on
9763 the newly direct edge is the same as the number of parametrs of
9765 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9766 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
9767 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9768 analysis functions unconditionally, call the new
9769 ipa_analyze_params_uses on the node instead of every edge.
9771 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
9773 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9775 (dump_mem_ref): Adopt debug code to handle a tree as step. This
9776 also checks for a constant int vs. non-constant but
9777 loop-invariant steps.
9778 (find_or_create_group): Change the sort algorithm to only consider
9779 steps that are constant ints.
9780 (idx_analyze_ref): Adopt code to handle a tree instead of a
9781 HOST_WIDE_INT for step.
9782 (gather_memory_references_ref): Handle tree instead of int and be
9783 prepared to see a NULL_TREE.
9784 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9785 prefetches if the step cannot be calculated at compile time.
9786 (issue_prefetch_ref): Issue prefetches for non-constant but
9787 loop-invariant steps.
9789 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9792 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9794 * tree.h (build_call_list): Remove.
9795 * tree.c (build_call_list): Remove.
9797 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
9799 * tree.h (build_call_list): Remove.
9800 * tree.c (build_call_list): Remove.
9802 2010-05-18 Jan Hubicka <jh@suse.cz>
9804 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9806 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
9808 PR rtl-optimization/43332
9809 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9811 2010-05-18 Anatoly Sokolov <aesok@post.ru>
9813 * tree.h (build_int_cstu): Implement as static inline.
9814 * tree.c (build_int_cstu): Remove function.
9815 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9818 2010-05-18 Richard Guenther <rguenther@suse.de>
9821 * lto-wrapper.c (verbose): New variable. Initialize from -v.
9822 (debug): Initialize from -save-temps.
9823 (collect_execute): Print command-line when verbose.
9824 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
9825 for ltrans invocation. Produce -dumpbase flag again.
9826 (process_args): Remove.
9828 * collect2.c (maybe_run_lto_and_relink): Only pass object
9829 files to lto-wrapper.
9830 * gcc.c (LINK_COMMAND_SPEC): Likewise.
9832 2010-05-18 Jan Hubicka <jh@suse.cz>
9834 * opts.c (decode_options): Do not disable whopr at ipa_cp.
9835 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9837 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9840 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9842 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9845 2010-05-18 Jakub Jelinek <jakub@redhat.com>
9848 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9851 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
9853 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9854 lto-macho as lto_binary_reader.
9856 * darwin.c (darwin_asm_named_section): Do not add assembler comment
9857 after .section directive; just print it before the directive instead.
9859 2010-05-17 Jan Hubicka <jh@suse.cz>
9861 * cgraph.c (cgraph_create_virtual_clone): Only check
9862 versionable_function_p when not in wpa and checking is enabled.
9863 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9864 there are no more functions to materialize.
9866 2010-05-17 Jan Hubicka <jh@suse.cz>
9868 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9869 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9871 (output_cgraph): Call output_cgraph_opt_summary.
9872 (input_cgrpah): Call input_cgraph_opt_summary.
9873 (output_cgraph_opt_summary_p, output_node_opt_summary,
9874 input_node_opt_summary, input_cgraph_opt_section): New functions.
9875 * lto-section-in.c (lto_section_name): Add cgraphopt.
9876 * tree-inline.c (tree_function_versioning): Handle parm_num.
9877 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9878 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9880 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9882 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9883 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9884 the insn to prefetch ratio heuristic to loops with known trip count.
9886 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
9888 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9889 (schedule_prefetches): Do not generate a prefetch if the unroll factor
9890 is far from what is required by the prefetch.
9892 2010-05-17 Jan Hubicka <jh@suse.cz>
9894 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9895 (ipcp_estimate_growth): Likewise.
9896 (ipcp_const_param_count): Likewise.
9897 (ipcp_insert_stage): Likewise.
9898 * ipa-prop.c (visit_load_for_mod_analysis): New function.
9899 (visit_store_addr_for_mod_analysis): Set used flag.
9900 (ipa_detect_param_modifications): Set used flag for SSE params;
9901 update use of walk_stmt_load_store_addr_ops.
9902 (ipa_print_node_params): Print used flag.
9903 (ipa_write_node_info): Stream used flag.
9904 (ipa_read_node_info): Likewise.
9905 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9906 (ipa_is_param_used): New function.
9907 (lto_ipa_fixup_call_notes): Remove unused declaration.
9909 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9912 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9913 * configure: Regenerate.
9914 * config.in: Regenerate.
9915 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9916 !HAVE_AS_IX86_REP_LOCK_PREFIX.
9917 Don't emit whitespace.
9918 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9919 (*rep_movsi): Likewise.
9920 (*rep_movsi_rex64): Likewise.
9921 (*rep_movqi): Likewise.
9922 (*rep_movqi_rex64): Likewise.
9923 (*rep_stosdi_rex64): Likewise.
9924 (*rep_stossi): Likewise.
9925 (*rep_stossi_rex64): Likewise.
9926 (*rep_stosqi): Likewise.
9927 (*rep_stosqi_rex64): Likewise.
9928 (*cmpstrnqi_nz_1): Use {%;} after repz.
9929 (*cmpstrnqi_nz_rex_1): Likewise.
9930 (*cmpstrnqi_1): Likewise.
9931 (*cmpstrnqi_rex_1): Likewise.
9932 (*strlenqi_1): Use {%;} after repnz.
9933 (*strlenqi_rex_1): Likewise.
9934 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9935 (*sync_compare_and_swap<mode>): Likewise.
9936 (sync_double_compare_and_swap<mode>): Likewise.
9937 (*sync_double_compare_and_swapdi_pic): Likewise.
9938 (sync_old_add<mode>): Likewise.
9939 (sync_add<mode>): Likewise.
9940 (sync_sub<mode>): Likewise.
9941 (sync_<code><mode>): Likewise.
9943 2010-05-17 Martin Jambor <mjambor@suse.cz>
9945 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9946 otr_token and polymorphic.
9947 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9948 (cgraph_clone_edge): Copy the above fields.
9949 * tree.c (get_binfo_at_offset): New function.
9950 * tree.h (get_binfo_at_offset): Declare.
9951 * ipa-prop.h (enum jump_func_type): Added known_type jump function
9952 type, reordered items, updated comments.
9953 (union jump_func_value): Added base_type field, reordered fields.
9954 (enum ipa_lattice_type): Moved down in the file.
9955 (struct ipa_param_descriptor): New field polymorphic.
9956 (ipa_is_param_polymorphic): New function.
9957 * ipa-prop.c: Include gimple.h and gimple-fold.h.
9958 (ipa_print_node_jump_functions): Print known type jump functions.
9959 (compute_complex_pass_through): Renamed to...
9960 (compute_complex_assign_jump_func): this.
9961 (compute_complex_ancestor_jump_func): New function.
9962 (compute_known_type_jump_func): Likewise.
9963 (compute_scalar_jump_functions): Create known type and complex ancestor
9965 (ipa_note_param_call): New parameter polymorphic, set the corresponding
9966 flag in the call note accordingly.
9967 (ipa_analyze_call_uses): Renamed to...
9968 (ipa_analyze_indirect_call_uses): this. New parameter target, define
9969 variable var only in the block where it is used.
9970 (ipa_analyze_virtual_call_uses): New function.
9971 (ipa_analyze_call_uses): Likewise.
9972 (combine_known_type_and_ancestor_jfs): Likewise.
9973 (update_jump_functions_after_inlining): Implemented handling of a
9974 number of new jump function types combination.
9975 (print_edge_addition_message): Removed.
9976 (make_edge_direct_to_target): New function.
9977 (try_make_edge_direct_simple_call): Likewise.
9978 (try_make_edge_direct_virtual_call): Likewise.
9979 (update_call_notes_after_inlining): Renamed to...
9980 (update_indirect_edges_after_inlining): this. Moved edge creation for
9981 indirect calls to try_make_edge_direct_simple_call, also calls
9982 try_make_edge_direct_virtual_call for virtual calls.
9983 (ipa_print_node_params): Changed the header message.
9984 (ipa_write_jump_function): Stream also known type jump functions.
9985 (ipa_read_jump_function): Likewise.
9986 (ipa_write_indirect_edge_info): Stream new fields in
9987 cgraph_indirect_call_info.
9988 (ipa_read_indirect_edge_info): Likewise.
9989 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9992 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9994 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9996 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
9998 * tree.h (CALL_EXPR_ARGS): Delete.
9999 (call_expr_arglist): Delete.
10000 * tree.c (call_expr_arglist): Delete.
10001 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
10002 targetm.fold_builtin.
10003 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
10004 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
10005 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
10006 arglist parameter. Use CALL_EXPR_ARG.
10007 (picochip_expand_builtin_3op): Likewise.
10008 (picochip_expand_builtin_2opvoid): Likewise.
10009 (picochip_expand_array_get): Likewise.
10010 (picochip_expand_array_put): Likewise.
10011 (picochip_expand_array_testport): Likewise.
10012 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
10013 rather than arglist.
10014 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
10016 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
10017 than TREE_VALUE and TREE_CHAIN.
10018 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
10019 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
10022 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10025 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
10026 to have no fallthru edge.
10028 PR middle-end/44102
10029 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
10030 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
10031 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
10032 add BARRIER after previous bb if needed.
10034 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
10036 * tree.c (build_function_type_list_1): Remove bogus assert condition.
10038 2010-05-17 Alan Modra <amodra@gmail.com>
10040 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
10041 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
10042 with copy_reg rtx param.
10043 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
10044 Correct cases where code for ABI_V4 did not initialise the reg
10045 used to access frame. Also leave frame_reg_rtx as sp for large
10046 frames that save no regs.
10048 2010-05-17 Martin Jambor <mjambor@suse.cz>
10050 PR middle-end/44133
10051 * tree-sra.c (create_access_replacement): New parameter rename, mark
10052 the replaement for renaming only when it is true.
10053 (get_access_replacement): Pass true in the rename parameter of
10054 create_access_replacement.
10055 (get_unrenamed_access_replacement): New function.
10056 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
10057 replacement declaration from it.
10059 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
10061 * function.c (try_fit_stack_local, add_frame_space): New static
10063 (assign_stack_local_1): Use them. Look for opportunities to use
10064 space previously wasted on alignment.
10065 * function.h (struct frame_space): New.
10066 (struct rtl_data): Add FRAME_SPACE_LIST member.
10067 * reload1.c (something_was_spilled): New static variable.
10068 (alter_reg): Set it.
10069 (reload): Test it in addition to testing if the frame size changed.
10071 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
10073 * config/s390/s390.c: Define sane prefetch settings and activate
10074 flag_prefetch_loop_arrays on -O3.
10075 * config/s390/s390.h: Declare that read can use write prefetch.
10077 2010-05-17 Jakub Jelinek <jakub@redhat.com>
10079 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
10082 2010-05-16 Jan Hubicka <jh@suse.cz>
10084 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
10085 function body; do not check stdarg field of struct function.
10087 2010-05-16 Jan Hubicka <jh@suse.cz>
10089 * cgraph.c (dump_cgraph_node): Dump versionable flag.
10090 * cgraph.h (cgraph_local_info): Add versionable flag.
10091 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
10092 (ipcp_versionable_function_p): Use it.
10093 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
10096 2010-05-16 Jan Hubicka <jh@suse.cz>
10098 * cgraph.c (cgraph_clone_node): Take decl argument and insert
10099 clone into hash when it is different from orig.
10100 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
10101 * cgraph.h (cgraph_clone_node): Update prototype.
10102 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
10103 (lto_cgraph_encoder_delete): Delete body map.
10104 (lto_cgraph_encoder_size): Move to header.
10105 (lto_cgraph_encoder_encode_body_p,
10106 lto_set_cgraph_encoder_encode_body): New.
10107 (lto_output_node): Do not take written_decls argument; output clone_of
10109 (add_node_to): Add include_body_argument; call
10110 lto_set_cgraph_encoder_encode_body on master of the clone.
10111 (add_references): Update use of add_node_to.
10112 (compute_ltrans_boundary): Likewise.
10113 (output_cgraph): Do not create written_decls bitmap.
10114 (input_node): Take nodes argument; stream in clone_of correctly.
10115 (input_cgraph_1): Update use of input_node.
10116 * lto-streamer-out.c (lto_output): Use encoder info to decide
10117 what bodies to output.
10118 * ipa-inline.c (cgraph_clone_inlined_nodes,
10119 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
10120 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
10121 (lto_cgraph_encoder_size): Define here.
10122 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
10125 2010-05-16 Richard Guenther <rguenther@suse.de>
10127 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
10129 * ipa-type-escape.c (gate_type_escape_vars): Run when
10130 -fipa-struct-reorg runs.
10131 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
10132 * common.opt (fipa-type-escape): Remove.
10134 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10136 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
10137 (decode_options): Likewise.
10138 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
10140 2010-05-16 Jan Hubicka <jh@suse.cz>
10142 * ipa.c (function_and_variable_visibility): Also bring local all
10145 2010-05-16 Richard Guenther <rguenther@suse.de>
10147 * alias.c (nonoverlapping_memrefs_p): Remove use of
10148 IPA type-escape information.
10150 2010-05-16 Joseph Myers <joseph@codesourcery.com>
10152 * c-common.c (c_common_reswords): Add _Static_assert for C.
10153 * c-parser.c (c_token_starts_declaration,
10154 c_parser_next_token_starts_declaration,
10155 c_parser_static_assert_declaration_no_semi,
10156 c_parser_static_assert_declaration): New.
10157 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
10158 Handle static assertions if static_assert_ok.
10159 (c_parser_external_declaration, c_parser_declaration_or_fndef,
10160 c_parser_compound_statement_nostart, c_parser_label,
10161 c_parser_for_statement, c_parser_objc_methodprotolist,
10162 c_parser_omp_for_loop): All callers of
10163 c_parser_declaration_or_fndef changed.
10164 (c_parser_struct_declaration): Handle static assertions.
10165 (c_parser_compound_statement_nostart): Use
10166 c_parser_next_token_starts_declaration and
10167 c_token_starts_declaration to detect start of declarations.
10168 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
10171 2010-05-16 Anatoly Sokolov <aesok@post.ru>
10173 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
10174 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10175 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10176 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10177 (mmix_function_outgoing_value): Rename to...
10178 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
10179 (mmix_function_value_regno_p): Make static.
10180 (mmix_libcall_value): New function.
10181 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
10182 mmix_function_value_regno_p): Remove declaration.
10184 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
10186 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
10187 BUILT_IN_ALLOCA if stack checking is enabled.
10189 2010-05-16 Richard Guenther <rguenther@suse.de>
10191 * var-tracking.c (vars_copy_1): Inline ...
10192 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
10193 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
10194 (variable_merge_over_cur): Adjust. Merge asserts.
10195 (variable_merge_over_src): Likewise.
10196 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
10197 (variable_post_merge_new_vals): Merge asserts.
10198 (variable_post_merge_perm_vals): Likewise.
10199 (find_mem_expr_in_1pdv): Likewise.
10200 (dataflow_set_different_value): Remove.
10201 (onepart_variable_different_p): Merge asserts.
10202 (variable_different_p): Likewise.
10203 (dataflow_set_different_1): Inline ...
10204 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
10205 (emit_notes_for_differences_1): Merge asserts.
10207 2010-05-16 Richard Guenther <rguenther@suse.de>
10209 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
10210 * optabs.c (libfunc_decl_hash): Likewise.
10211 * varasm.c (emutls_decl): Likewise.
10213 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
10215 * c-decl.c: Don't include gimple.h.
10216 (merge_decls): Do not copy gimple_body.
10218 2010-05-15 Jason Merrill <jason@redhat.com>
10220 * c.opt: Add -fnothrow-opt.
10222 2010-05-15 Jan Hubicka <jh@suse.cz>
10224 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
10226 * passes.c (ipa_write_summaries): Write all analyzed nodes.
10228 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
10230 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
10231 * Makefile.in: Add it.
10232 Fix all other Makefile dependencies for changes below.
10233 * tree.h: Include it instead of defining VEC primitives here.
10234 * gimple.h: Likewise.
10236 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
10237 * except.h: Include vecir.h, break dependence on tree.h.
10239 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
10241 * tree-iterator.c: ...to here.
10242 * tree-iterator.h: Fix file introduction comment. Add extern markers.
10244 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
10246 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
10247 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
10248 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
10249 tree-mudflap.h, and target.h.
10250 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
10251 predict.h, tree-inline.h, gimple.h, and langhooks.h.
10252 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
10253 Add FIXME for why gimple.h is still included (should be unnecessary
10254 since GCC 4.5 gimplification unit-at-a-time).
10255 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
10256 * c-pragma.c: Add FIXME for why function.h needs to be included just
10257 for cfun, at front-end level.
10258 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
10259 Do not include ggc.h, but include vecprim.h for VEC(char).
10260 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
10261 Explain why target.h is included.
10262 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
10263 Explain why gimple.h is included.
10264 * c-ppoutput.c: Do not include tm.h.
10265 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
10266 * c-parses.c: Explain why rtl.h is included, and that this (and only
10267 this) is also why tm.h must be included.
10268 Do not include except.h.
10269 * c-lang.c: Do not include ggc.h.
10271 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
10273 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
10275 2010-05-15 Joseph Myers <joseph@codesourcery.com>
10277 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
10278 unions by default if those structs and unions have no tags. Do
10279 not condition anonymous struct and unions handling on flag_iso.
10280 Allow anonymous structs and unions for C1X.
10281 (finish_struct): Do not diagnose lack of named fields when
10282 anonymous structs and unions present for C1X. Accept flexible
10283 array members in structure with anonymous structs or unions but no
10284 directly named fields.
10285 * doc/extend.texi (Unnamed Fields): Update.
10287 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
10289 * gimple.h (compare_field_offset): Rename into...
10290 (gimple_compare_field_offset): ...this.
10291 * gimple.c (compare_field_offset): Rename into...
10292 (gimple_compare_field_offset): ...this. Compare the full access if
10293 the offset is self-referential.
10294 (gimple_types_compatible_p): Adjust for above renaming.
10295 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
10296 DECL_NONADDRESSABLE_P flag of fields before merging them.
10298 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
10300 * tree.h (ctor_to_list): Delete.
10301 * tree.c (ctor_to_list): Delete.
10303 2010-05-15 Jan Hubicka <jh@suse.cz>
10305 * ipa-reference.c: Include toplev.h
10306 (is_proper_for_analysis): Only add to all_module_statics
10307 if it is allocated.
10308 (write_node_summary_p, stream_out_bitmap,
10309 ipa_reference_write_optimization_summary,
10310 ipa_reference_read_optimization_summary): New.
10311 (struct ipa_opt_pass_d pass_ipa_reference): Add
10312 optimization summary streaming.
10313 * lto-cgraph.c (referenced_from_this_partition_p,
10314 reachable_from_this_partition_p): New functions.
10315 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
10316 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
10317 * opts.c (decode_options): Enable ipa_reference.
10318 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
10319 * lto-streamer.h (referenced_from_this_partition_p,
10320 reachable_from_this_partition_p): Declare.
10322 2010-05-15 Richard Guenther <rguenther@suse.de>
10324 PR tree-optimization/44038
10325 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
10326 taking the address of a V_C_E of a constant.
10328 2010-05-14 Jan Hubicka <jh@suse.cz>
10330 * tree.h (memory_identifier_string): Remove.
10331 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
10332 (ipa_reference_global_vars_info_d): Remove statics_not_read and
10333 statics_not_written.
10334 (ipa_reference_optimization_summary_d): New structure.
10335 (ipa_reference_optimization_summary_t): New type and vector.
10336 (ipa_reference_vars_info_d): Embedd structures instead of using
10338 (reference_vars_to_consider): Remove out of GGC space.
10339 (module_statics_escape): Remove.
10340 (global_info_obstack): Rename to ...
10341 (optimization_summary_obstack): ... this one.
10342 (initialization_status_t): Remove.
10343 (memory_identifier_string): Remove.
10344 (get_reference_vars_info): Fix indenting.
10345 (set_reference_vars_info): Likewise.
10346 (get_reference_optimization_summary): New.
10347 (set_reference_optimization_summary): New.
10348 (get_global_reference_vars_info): Remove.
10349 (ipa_reference_get_read_global): Remove.
10350 (ipa_reference_get_written_global): Remove.
10351 (ipa_reference_get_not_read_global): Update.
10352 (ipa_reference_get_not_written_global): Update.
10353 (is_proper_for_analysis): Outlaw addressable.
10354 (propagate_bits): Update for new datastructures.
10355 (analyze_variable): Remove.
10356 (init_function_info): Update for new datastructures.
10357 (clean_function_local_data): Remove.
10358 (clean_function): Remove.
10359 (copy_global_bitmap): Use optimizations_summary_obstack.
10360 (duplicate_node_data): Duplicate optimization summary only.
10361 (remove_node_data): Remove optimization summary only.
10362 (generate_summary): Do not analyze variables; do not compute
10363 module_statics_escape; do not prune solutions by it.
10364 (read_write_all_from_decl): Fix typos in comments.
10365 (propagate): Doscover readonly and nonaddressable first;
10366 update for new datastructures; share global bitmaps.
10367 * ipa-reference.h (ipa_reference_get_read_global,
10368 ipa_reference_get_written_global): Remove.
10369 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
10370 * Makefile.in: Remove ipa-refereference from GT files.
10372 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10375 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
10376 for all SYMBOL_REF_DECLs.
10378 2010-05-14 Jan Hubicka <jh@suse.cz>
10380 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
10381 (varpool_all_refs_explicit_p): New inline function.
10382 * ipa-reference.c: Update comment.
10383 (module_statics_written): Remove.
10384 (get_static_decl): Remove.
10385 (ipa_init): Do not initialize module_statics_written.
10386 (analyze_function): Likewise.
10387 (generate_summary): Likewise; do not compute module_statics_readonly
10388 and do not update variable flags.
10389 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
10390 * ipa.c: Inlucde flags.h
10391 (cgraph_local_node_p): New.
10392 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
10393 promote functions to local.
10394 (ipa_discover_readonly_nonaddressable_vars): New function.
10395 (function_and_variable_visibility): Use cgraph_local_node_p.
10396 * varpool.c (varpool_finalize_decl): Set force_output for
10397 DECL_PRESERVE_P vars.
10399 2010-05-14 Jan Hubicka <jh@suse.cz>
10401 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
10403 2010-05-14 Richard Guenther <rguenther@suse.de>
10405 PR tree-optimization/44119
10406 * tree-ssa-pre.c (eliminate): Properly mark replacement of
10407 a PHI node necessary.
10409 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
10411 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
10413 2010-05-14 Jason Merrill <jason@redhat.com>
10416 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
10417 (gimple_call_set_nothrow): New.
10418 * gimple.c (gimple_build_call_from_tree): Call it.
10419 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
10422 * gimplify.c (gimplify_seq_add_stmt): No longer static.
10423 * gimple.h: Declare it.
10424 * gimple.c (gimple_build_eh_filter): No ops.
10426 2010-05-14 Jan Hubicka <jh@suse.cz>
10428 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
10429 nodes already in queue.
10430 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
10431 re-enqueueing node.
10433 2010-05-14 Jakub Jelinek <jakub@redhat.com>
10436 * cfgexpand.c (expand_debug_expr): If non-memory op0
10437 has BLKmode, return NULL.
10439 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
10441 * config.gcc: Add support for --with-cpu option for bdver1.
10442 * config/i386/i386.h (TARGET_BDVER1): New macro.
10443 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
10444 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10445 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
10446 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
10447 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
10448 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
10449 (processor_type): Add PROCESSOR_BDVER1.
10450 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
10451 processor_type in config/i386/i386.h.
10452 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
10453 movaps <reg, reg> instead of movapd <reg, reg> when replacing
10454 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
10455 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
10456 to emit packed xor instead of packed double/packed integer
10457 xor for SSE and AVX when moving a zero value.
10458 * config/i386/sse.md: Add check for
10459 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
10460 movapd/movdqa for SSE and AVX.
10461 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
10462 single logical operations i.e and, or and xor instead of packed double
10463 logical operations for SSE and AVX.
10464 * config/i386/i386-c.c (ix86_target_macros_internal):
10465 Add PROCESSOR_BDVER1.
10466 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
10467 (has_fma4, has_xop): New.
10468 * config/i386/i386.c (bdver1_cost): New variable.
10469 (m_BDVER1): New macro.
10470 (m_AMD_MULTIPLE): Add m_BDVER1.
10471 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
10472 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
10473 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
10474 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
10475 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
10476 x86_tune_sse_partial_reg_dependency,
10477 x86_tune_sse_unaligned_load_optimal,
10478 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
10479 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
10480 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
10481 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
10482 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
10483 Enable/disable for bdver1.
10484 (processor_target_table): Add bdver1_cost.
10485 (cpu_names): Add bdver1.
10486 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
10487 processor_alias_table.
10488 (ix86_expand_vector_move_misalign): Change.
10489 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
10490 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
10491 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
10492 of movupd/movdqu for SSE and AVX.
10493 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
10494 (ix86_tune_adjust_cost): Add code for bdver1.
10495 (standard_sse_constant_opcode): Add check for
10496 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
10497 of packed double xor for SSE and AVX.
10499 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
10501 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
10502 result to unsigned.
10504 2010-05-14 Tristan Gingold <gingold@adacore.com>
10506 * toplev.c (default_debug_hooks): Remove this variable.
10507 (process_options): Remove assignments to default_debug_hooks.
10509 2010-05-14 Martin Jambor <mjambor@suse.cz>
10511 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
10512 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
10513 * langhooks.h (struct lang_hooks_for_decls): Removed field
10515 * tree.c (free_lang_data): Remove assignment to
10516 lang_hooks.fold_obj_type_ref.
10517 * tree.def (OBJ_TYPE_REF): Update comment.
10519 2010-05-14 Richard Guenther <rguenther@suse.de>
10521 PR tree-optimization/44124
10522 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
10524 2010-05-14 Alan Modra <amodra@gmail.com>
10527 * config/rs6000/rs6000.c (struct machine_function): Reorder
10528 fields for better packing. Add lr_save_state.
10529 (rs6000_ra_ever_killed): Return lr_save_state if set.
10530 (rs6000_emit_eh_reg_restore): Set lr_save_state.
10532 2010-05-13 Jan Hubicka <jh@suse.cz>
10534 * varpool.c (decide_is_variable_needed): Drop code checking
10535 TREE_SYMBOL_REFERENCED.
10537 2010-05-13 Jan Hubicka <jh@suse.cz>
10539 * final.c (output_addr_const): Do not call mark_decl_referenced.
10540 * cgraphunit.c (process_function_and_variable_attributes): Use
10541 mark_needed_node dirrectly.
10542 (assemble_thunk): Do not call mark_decl_referenced.
10544 2010-05-13 Anatoly Sokolov <aesok@post.ru>
10546 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
10548 2010-05-13 Jeff Law <law@redhat.com>
10550 * ira-conflicts.c (print_allocno_conflicts): New function broken out
10552 (print_conflicts): Call print_allocno_conflicts.
10554 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10557 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
10560 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
10562 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
10563 t-mingw-w64 or t-mingw-w32 for multilib configuration.
10564 * config/i386/t-mingw-w32: New.
10565 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
10567 2010-05-13 Martin Jambor <mjambor@suse.cz>
10569 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
10571 * gimple-fold.c (get_base_binfo_for_type): New function.
10572 (gimple_get_relevant_ref_binfo): Likewise.
10573 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10574 (gimple_fold_obj_type_ref): Likewise.
10575 (fold_gimple_call): Simplify condition for folding virtual calls
10576 and call gimple_fold_obj_type_ref.
10577 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
10578 (gimple_fold_obj_type_ref_known_binfo): Likewise.
10580 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
10582 * config/rs6000/rs6000-protos.h
10583 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
10584 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
10585 (rs6000_debug_mode_dependent_address)
10586 (rs6000_mode_dependent_address_ptr): Likewise.
10588 2010-05-13 Jakub Jelinek <jakub@redhat.com>
10591 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
10593 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
10594 * tree-sra.c (create_access_replacement): Call unshare_expr before
10595 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
10596 * dwarf2out.c: Include tree-flow.h.
10597 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
10598 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
10599 Handle DW_OP_bit_piece.
10600 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
10601 construct_piece_list, adjust_piece_list): New functions.
10602 (add_var_loc_to_decl): Handle SRA optimized variables.
10603 Adjust for var_loc_note to loc field renaming.
10604 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
10605 in VAR_LOCATION note.
10606 (new_loc_descr_op_bit_piece): New function.
10607 (dw_sra_loc_expr): New function.
10608 (dw_loc_list): Use it. Don't handle the last range after the
10609 loop, handle it inside of the loop. Adjust for var_loc_note
10610 to loc field renaming.
10611 (add_location_or_const_value_attribute): Only special case
10612 single entry loc lists if loc is NOTE_P. Adjust for
10613 var_loc_note to loc field renaming.
10614 (dwarf2out_var_location): Don't set newloc->var_loc_note
10615 and newloc->next here.
10617 2010-05-12 Jan Hubicka <jh@suse.cz>
10619 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
10621 * cgraph.h (cgraph_only_called_directly_p,
10622 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
10623 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
10624 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
10626 * ipa.c (cgraph_remove_unreachable_nodes): Use
10627 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
10629 * tree-inline.c (copy_bb): Check address_taken flag.
10630 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
10631 externally_visible flag.
10633 2010-05-12 Jason Merrill <jason@redhat.com>
10637 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
10638 * sdbout.c (plain_type_1): Likewise.
10639 * dwarf2out.c (is_base_type): Likewise.
10640 (gen_type_die_with_usage): Likewise. Generate
10641 DW_TAG_unspecified_type for any LANG_TYPE.
10643 2010-05-12 Jan Hubicka <jh@suse.cz>
10645 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10647 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10648 (cgraph_clone_edge): Update.
10649 (cgraph_node_remove_callees): Remove indirect calls too.
10650 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10651 (cgraph_create_indirect_edge): Update prototype.
10652 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10653 is_proper_for_analysis.
10654 (add_new_function, visited_nodes, function_insertion_hook_holder,
10655 get_local_reference_vars_info, mark_address_taken, mark_address,
10656 mark_load, mark_store, check_asm_memory_clobber, check_call,
10657 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10658 (ipa_init): Do not initialize visited_nodes;
10659 function_insertion_hook_holder.
10660 (analyze_variable): Rewrite.
10661 (analyze_function): Rewrite.
10662 (copy_local_bitmap): Remove.
10663 (duplicate_node_dat): Do not duplicate local info.
10664 (generate_summary): Simplify to only walk cgraph.
10665 (write_node_summary_p, ipa_reference_write_summary,
10666 ipa_reference_read_summary): Remove.
10667 (propagate): Do not remove function insertion;
10669 (pass_ipa_reference): NULLify summary handling fields.
10670 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10671 (input_edge): Input ecf_flags.
10672 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10673 (update_indirect_edges_after_inlining): Ignore edges with unknown
10676 2010-05-12 Sriraman Tallam <tmsriram@google.com>
10678 * implicit-zee.c: New file.
10679 * tree-pass.h (pass_implicit_zee): Declare.
10680 * passes.c (init_optimization_passes): Add zee pass.
10681 * common.opt (fzee): New flag.
10682 * timevar.def (TV_ZEE): Define.
10683 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10685 * Makefile.in (implicit-zee.o): Add new build file.
10687 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10688 Nathan Froyd <froydnj@codesourcery.com>
10690 * c-common.c (sync_resolve_params): Remove write-only variable.
10692 2010-05-12 Anatoly Sokolov <aesok@post.ru>
10694 * target.h (struct gcc_target): Add mode_dependent_address_p field.
10695 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10696 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10697 * targhooks.c (default_mode_dependent_address_p): New function.
10698 * targhooks.h (default_mode_dependent_address_p): Declare function.
10699 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10700 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10701 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10702 target hook. Change return type to bool.
10703 * recog.h (mode_dependent_address_p): Change return type to bool.
10705 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10706 Nathan Froyd <froydnj@codesourcery.com>
10708 * tree-mudflap.c (build_function_type_0, build_function_type_1,
10709 build_function_type_2, build_function_type_3): Remove.
10710 (mudflap_init): Use build_function_type_list.
10712 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
10713 Nathan Froyd <froydnj@codesourcery.com>
10715 * coverage.c (build_fn_info_value): Call build_constructor instead of
10716 build_constructor_from_list.
10717 (build_ctr_info_value): Likewise.
10718 (build_gcov_info): Likewise.
10720 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
10722 * tree.c (build_constructor): Compute TREE_CONSTANT for the
10723 resultant constructor.
10724 (build_constructor_single): Don't set TREE_CONSTANT.
10725 (build_constructor_from_list): Don't compute TREE_CONSTANT.
10727 2010-05-12 Jan Hubicka <jh@suse.cz>
10729 * cgraph.h (struct varpool_node): Add aux.
10730 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10731 * varpool.c (varpool_remove_node): Do not remove initializer.
10732 (varpool_reset_queue): Export.
10733 (varpool_finalize_decl): Volatile vars are forced to be output.
10734 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10736 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10737 process_references, varpool_can_remove_if_no_refs): New functions.
10738 (cgraph_remove_unreachable_nodes): Handle variables too.
10740 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
10743 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10745 2010-05-12 Jakub Jelinek <jakub@redhat.com>
10747 PR middle-end/44085
10748 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10749 change value of ORT_TASK.
10750 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10751 (omp_notice_threadprivate_variable): New function.
10752 (omp_notice_variable): Call it for threadprivate variables.
10753 If enclosing ctx is a task, print enclosing task rather than
10754 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
10755 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10756 if task has untied clause.
10759 * dwarf2out.c (base_type_die): Don't add name attribute here.
10760 (modified_type_die): Instead of sizetype use
10761 its underlying original type. If a DW_TAG_base_type doesn't
10762 have name added, add __unknown__.
10763 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10764 always call force_type_die instead.
10766 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
10768 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10769 for __stack_chk_guard.
10771 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10773 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10774 don't call start_source_file debug hook here...
10775 (finish_options): ... but here, after outputting predefined and
10776 command line defines and undefs.
10778 PR middle-end/44071
10779 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10781 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10782 optimizing away empty bb with no successors, move over its
10783 footer chain to fallthru predecessor.
10784 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10785 (rtl_split_edge): For asm goto call patch_jump_insn even if
10786 splitting fallthru edge.
10789 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10790 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10791 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10792 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10796 * c-parser.c (c_parser_expression): Mark LHS of a comma
10797 expression as read if it is a decl, handled component or
10798 COMPOUND_EXPR with that on the RHS.
10799 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10800 if it is a decl or handled component.
10802 2010-05-11 Jan Hubicka <jh@suse.cz>
10804 * lto-symtab.c (lto_symtab_free): New function.
10805 * lto-streamer.h (lto_symtab_free): Declare.
10807 2010-05-11 Jan Hubicka <jh@suse.cz>
10809 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10810 that if function is needed it is reachable.
10811 (lto_output_node): See if it the function is reachable or referenced.
10812 (output_cgraph): Update call of lto_output_node.
10813 * lto-streamer.h (reachable_from_other_partition_p): Declare.
10815 2010-05-11 Jan Hubicka <jh@suse.cz>
10817 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10820 2010-05-11 Jan Hubicka <jh@suse.cz>
10822 PR tree-optimize/44063
10823 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10825 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10827 (estimate_function_body_sizes): Compute sizes even when disregarding.
10829 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
10831 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10833 2010-05-11 Jan Hubicka <jh@suse.cz>
10835 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10836 into every boundary.
10838 2010-05-11 Jan Hubicka <jh@suse.cz>
10840 * matrix-reorg.c (matrix_reorg): Rebuild edges.
10842 2010-05-11 Jan Hubicka <jh@suse.cz>
10844 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10845 lto_streamer_cache_delete): Put nodes into heap.
10846 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10849 2010-05-11 Jan Hubicka <jh@suse.cz>
10851 * cgraphbuild.c (cgraph_rebuild_references): New.
10852 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10853 out extern inlines.
10854 * cgraph.h (cgraph_rebuild_references): Declare.
10855 * tree-inline.c (tree_function_versioning): Use it.
10856 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10858 2010-05-11 Jan Hubicka <jh@suse.cz>
10860 * cgraph.c: Include ipa-utils.h
10861 (cgraph_create_virtual_clone): Update references.
10862 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10864 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10866 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10867 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10870 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
10872 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10874 2010-05-11 Jakub Jelinek <jakub@redhat.com>
10876 * gcc.c (execute): For -### don't quote arguments that
10877 contain just alphanumerics and _/-. characters.
10878 * doc/invoke.texi: Document that change for -###.
10881 * df-problems.c (struct dead_debug): Add to_rescan field.
10882 (dead_debug_init): Clear to_rescan field.
10883 (dead_debug_finish): Rescan all debug insns in to_rescan
10884 bitmap and free the bitmap.
10885 (dead_debug_insert_before): Instead of rescanning debug insns
10886 immediately queue their rescanning until dead_debug_finish.
10887 (df_note_bb_compute): After dead_debug_add do continue instead
10890 2010-05-10 Jakub Jelinek <jakub@redhat.com>
10893 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10894 clear also INSN_REG_USE_LIST.
10896 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10898 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10900 2010-05-10 Jan Hubicka <jh@suse.cz>
10902 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10905 2010-05-10 Jan Hubicka <jh@suse.cz>
10907 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10909 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10910 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10911 (lto_streamer_cache_create): Init alloc pool.
10912 (lto_streamer_cache_delete): Free alloc pool.
10913 * lto-streamer.h: Include alloc pool.
10914 (lto_streamer_cache_d): Use alloc pool.
10915 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10917 2010-05-10 Jan Hubicka <jh@suse.cz>
10919 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10920 * cgraphbuild.c: Include except.h
10921 (record_type_list, record_eh_tables): New function.
10922 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10924 2010-05-10 Jan Hubicka <jh@suse.cz>
10926 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10927 __frame_dummy_init_array_entry, force_to_data): Attribute as used
10928 rather than unused.
10930 2010-05-10 Michael Matz <matz@suse.de>
10932 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10933 (can_reassociate_p): Use FLOAT_TYPE_P.
10934 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10935 (vect_force_simple_reduction): ... this.
10936 * tree-parloops.c (gather_scalar_reductions): Use
10937 vect_force_simple_reduction.
10938 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10939 vect_is_simple_reduction, add modify argument, if true rewrite
10940 "a-b" into "a+(-b)".
10941 (vect_is_simple_reduction, vect_force_simple_reduction): New
10943 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10945 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
10946 Vladimir Makarov <vmakarov@redhat.com>
10948 PR rtl-optimization/44012
10949 * ira-build.c (remove_unnecessary_allocnos): Nullify
10950 regno_allocno_map of the removed allocno.
10952 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10954 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10956 * configure: Regenerate.
10958 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10960 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10962 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10963 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10965 * configure: Regenerate.
10967 2010-05-10 Richard Guenther <rguenther@suse.de>
10969 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10970 marked if the entry identifier is marked.
10972 2010-05-10 Richard Guenther <rguenther@suse.de>
10974 * c-common.c (struct c_common_attributes): Add fnspec attribute.
10975 (handle_fnspec_attribute): New function.
10976 * gimple.h (gimple_call_return_flags): Declare.
10977 (gimple_call_arg_flags): Likewise.
10978 * gimple.c (gimple_call_arg_flags): New function.
10979 (gimple_call_return_flags): Likewise.
10980 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10981 New argument flags.
10982 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10983 return value flags.
10984 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10985 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10987 (make_heapvar_for): ... this new function.
10988 (handle_rhs_call): Handle fnspec attribute argument specifiers.
10989 (handle_lhs_call): Likewise.
10990 (find_func_aliases): Adjust.
10992 2010-05-10 Richard Guenther <rguenther@suse.de>
10994 PR tree-optimization/44050
10995 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10997 2010-05-10 Wei Guozhi <carrot@google.com>
11000 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
11002 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11005 * c-typeck.c (lookup_field): Take a type directly. Update
11007 (build_component_ref): Update call to lookup_field.
11008 (set_init_label): Use lookup_field to find initialized field.
11009 Handle returned list of fields like a sequence of designators.
11011 2010-05-09 Richard Guenther <rguenther@suse.de>
11013 PR middle-end/44024
11014 * fold-const.c (tree_single_nonzero_warnv_p): Properly
11015 handle &FUNCTION_DECL.
11017 2010-05-09 Joseph Myers <joseph@codesourcery.com>
11020 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
11021 structures and unions recursively.
11022 (detect_field_duplicates): Move duplicate detection with a hash to
11023 detect_field_duplicates_hash. Always use a hash if anonymous
11024 structures or unions are present.
11025 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
11028 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
11031 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
11032 detect Atom, Core 2 and Core i7.
11034 2010-05-09 Richard Guenther <rguenther@suse.de>
11036 * gcc.c (store_arg): Handle temporary file deletion for
11039 2010-05-09 Richard Guenther <rguenther@suse.de>
11041 PR middle-end/44043
11042 * ipa-inline.c (estimate_function_body_sizes): Return after
11043 disregarding inline limits.
11045 2010-05-09 Richard Guenther <rguenther@suse.de>
11047 * gcc.c (store_arg): Revert last change.
11049 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
11051 PR middle-end/28685
11052 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
11053 (optimize_ops_list): Call it.
11055 2010-05-08 Richard Guenther <rguenther@suse.de>
11057 PR tree-optimization/44030
11058 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
11059 NECESSARY flag if we propagate from a inserted expression.
11061 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
11063 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
11064 domain types as equal if they are both PLACEHOLDER_EXPRs.
11066 2010-05-08 Richard Guenther <rguenther@suse.de>
11068 * lto-wrapper.c (run_gcc): Remove linker output from
11069 command line for LTRANS invocation.
11071 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11073 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11074 lto-macho as lto_binary_reader.
11075 * target.h (struct gcc_target): New hooks lto_start and lto_end.
11076 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
11077 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
11078 in lto_start and lto_end calls.
11079 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
11081 (scan_prog_file): Update is_elf_or_coff call.
11082 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
11084 * collect2.c (main): Fix enum comparison.
11086 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
11088 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
11089 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
11090 and TARGET_ASM_LTO_END.
11091 * darwin.c: Include obstack.h and lto-streamer.h.
11092 (lto_section_names_offset, lto_section_names_obstack,
11093 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
11095 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
11096 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
11097 to a temporary file.
11098 (darwin_asm_lto_end): New function. Restore asm_out_file.
11099 (darwin_asm_named_section): For LTO sections, replace the name with
11100 the offset of the section name in a string table, and build this
11102 (darwin_file_start): Initialize global vars for LTO support.
11103 (darwin_file_end): If output to asm_out_file was redirected, append it
11104 to the proper asm_out_file here. Add the section names section.
11106 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
11108 * c-pragma.c (pending_weak_d, pending_weak): New.
11109 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
11110 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
11111 handle_pragma_weak): Update the uses of pending_weaks.
11113 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11115 PR documentation/44016
11116 * doc/standards.texi (Standards): Link to unversioned
11117 cxx0x_status.html page.
11119 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
11122 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
11123 in addition to TREE_USED, to avoid "set but unused" warnings.
11125 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11127 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
11128 (is_loop_prefetching_profitable): Do not insert prefetches
11129 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
11130 times the prefetch ahead distance.
11132 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11134 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
11135 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
11136 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
11139 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
11141 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
11142 a diagnostic info when the insn-to-mem ratio is too small.
11144 2010-05-07 Richard Guenther <rguenther@suse.de>
11146 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
11148 (store_arg): Queue temp_filename for deletion instead of
11149 the whole argument.
11151 2010-05-07 Richard Guenther <rguenther@suse.de>
11153 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
11154 (run_gcc): Handle LTRANS phase invocation.
11155 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
11157 2010-05-07 Jakub Jelinek <jakub@redhat.com>
11159 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
11160 this is also meaningful on PARM_DECLs and RESULT_DECLs.
11162 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11164 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
11166 2010-05-07 Richard Guenther <rguenther@suse.de>
11168 PR tree-optimization/44020
11169 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
11170 code when PRE is not yet initialized.
11172 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11174 * config/mips/dbxmdebug.h: Remove.
11175 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
11177 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
11179 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
11180 with null pointer and also warn about ordered comparison of zero with
11181 pointer if -Wextra.
11183 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11185 * graphite-blocking.c
11186 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
11187 * graphite-clast-to-gimple.c
11188 (clast_to_gcc_expression): Same.
11189 (precision_for_value): Same.
11190 (precision_for_interval): Same.
11191 (gcc_type_for_interval): Same.
11192 (graphite_create_new_guard): Same.
11193 (compute_bounds_for_level): Same.
11194 (graphite_create_new_loop_guard): Same.
11195 * graphite-interchange.c
11196 (build_linearized_memory_access): Same.
11197 (pdr_stride_in_loop): Same.
11198 (memory_strides_in_loop_1): Same.
11199 (memory_strides_in_loop): Same.
11200 (extend_scattering): Same.
11201 (psct_scattering_dim_for_loop_depth): Same.
11202 (pbb_number_of_iterations): Same.
11204 (debug_iteration_domains): Same.
11206 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11207 (ppl_set_inhomogeneous_gmp): Same.
11208 (ppl_strip_loop): Same.
11209 (ppl_lexico_compare_linear_expressions): Same.
11210 (ppl_read_polyhedron_matrix): Same.
11211 (ppl_max_for_le_pointset): Same.
11213 (ppl_read_polyhedron_matrix): Same.
11214 (tree_int_to_gmp): Same.
11215 (gmp_cst_to_tree): Same.
11216 (ppl_set_inhomogeneous): Same.
11217 (ppl_set_inhomogeneous_tree): Same.
11218 (ppl_set_coef): Same.
11219 (ppl_set_coef_tree): Same.
11220 * graphite-sese-to-poly.c
11221 (build_pbb_scattering_polyhedrons): Same.
11222 (build_scop_scattering): Same.
11223 (scan_tree_for_params_right_scev): Same.
11224 (scan_tree_for_params): Same.
11225 (find_params_in_bb): Same.
11226 (find_scop_parameters): Same.
11227 (add_upper_bounds_from_estimated_nit): Same.
11228 (build_loop_iteration_domains): Same.
11229 (add_condition_to_domain): Same.
11230 (pdr_add_memory_accesses): Same.
11232 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11234 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
11235 CLooG's value_* macros to their respective mpz_* counterparts.
11236 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
11237 (graphite_create_new_loop_guard): Same.
11238 * graphite-interchange.c (build_linearized_memory_access): Same.
11239 (pdr_stride_in_loop): Same.
11240 (memory_strides_in_loop_1): Same.
11241 (1st_interchange_profitable_p): Same.
11242 * graphite-poly.c (extend_scattering): Same.
11243 (psct_scattering_dim_for_loop_depth): Same.
11244 (pbb_number_of_iterations): Same.
11245 (pbb_number_of_iterations_at_time): Same.
11246 * graphite-poly.h (new_1st_loop): Same.
11247 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
11248 (oppose_constraint): Same.
11249 (insert_constraint_into_matrix): Same.
11250 (ppl_set_inhomogeneous_gmp): Same.
11251 (ppl_set_coef_gmp): Same.
11252 (ppl_strip_loop): Same.
11253 (ppl_lexico_compare_linear_expressions): Same.
11254 (ppl_max_for_le_pointset): Same.
11255 (ppl_min_for_le_pointset): Same.
11256 (ppl_build_realtion): Same.
11257 * graphite-ppl.h (gmp_cst_to_tree): Same.
11258 (ppl_set_inhomogeneous): Same.
11259 (ppl_set_inhomogeneous_tree): Same.
11260 (ppl_set_coef): Same.
11261 (ppl_set_coef_tree): Same.
11262 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
11263 (build_scop_scattering): Same.
11264 (add_value_to_dim): Same.
11265 (scan_tree_for_params_right_scev): Same.
11266 (scan_tree_for_params_int): Same.
11267 (scan_tree_for_params): Same.
11268 (find_params_in_bb): Same.
11269 (find_scop_parameters): Same.
11270 (add_upper_bounds_from_estimated_nit): Same.
11271 (build_loop_iteration_domains): Same.
11272 (create_linear_expr_from_tree): Same.
11273 (add_condition_to_domain): Same.
11274 (pdr_add_memory_accesses): Same.
11276 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
11277 Jason Merrill <jason@redhat.com>
11279 * c-common.c (c_common_reswords): Add nullptr.
11280 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
11281 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
11282 (gen_type_die_with_usage): Likewise.
11283 * dbxout.c (dbxout_type): Likewise.
11284 * sdbout.c (plain_type_1): Likewise.
11286 2010-05-06 Jason Merrill <jason@redhat.com>
11288 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
11289 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
11291 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
11293 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
11294 stripping WITH_SIZE_EXPR.
11295 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
11298 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11300 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
11301 list of obsolete configurations.
11302 Disabled check for obsolete configurations.
11303 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
11304 Removed support for previous versions.
11305 * config/mips/iris.h: Removed.
11306 * config/mips/iris5.h: Removed.
11307 * config/mips/iris6.h: Merged old iris.h contents.
11308 (TARGET_IRIX): Removed.
11309 (DRIVER_SELF_SPECS): Removed mabi=32.
11310 (IDENT_ASM_OP): Removed undef.
11311 (STARTFILE_SPEC): Removed mabi=32.
11312 (ENDFILE_SPEC): Likewise.
11313 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
11314 (MACHINE_TYPE): Update for IRIX 6.5.
11315 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
11316 TARGET_IRIX by TARGET_IRIX6.
11317 (mips_file_start): Likewise.
11318 (mips_output_external): Remove IRIX 5/6 O32 support.
11319 (mips_output_function_prologue): Likewise.
11320 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
11322 (TARGET_CPU_CPP_BUILTINS): Likewise.
11323 (TARGET_IRIX): Removed.
11324 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
11325 (MULTILIB_DIRNAMES): Removed 32.
11326 (MULTILIB_OSDIRNAMES): Removed ../lib.
11327 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
11328 (Specific, mips-sgi-irix5): Document removal.
11329 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
11330 Remove references to older IRIX 6 releases and the O32 ABI.
11332 2010-05-06 Jakub Jelinek <jakub@redhat.com>
11335 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
11336 instead of DF_REF_REAL_REG.
11338 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
11341 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
11342 handling to still return true for x64 targets.
11344 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11346 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
11348 2010-05-06 Jan Hubicka <jh@suse.cz>
11350 PR tree-optimization/43791
11351 * ipa-inline.c (update_caller_keys): Remove bogus
11352 disregard_inline_limits check.
11354 2010-05-06 Michael Matz <matz@suse.de>
11356 PR tree-optimization/43984
11357 * tree-ssa-pre.c (inserted_phi_names): Remove.
11358 (inserted_exprs): Change to bitmap.
11359 (create_expression_by_pieces): Set bits, don't append to vector.
11360 (insert_into_preds_of_block): Don't handle inserted_phi_names.
11361 (eliminate): Don't look at inserted_phi_names, remove deleted
11362 insns from inserted_exprs.
11363 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
11364 (init_pre, fini_pre): Allocate and free bitmaps.
11365 (execute_pre): Insert insns on edges before elimination.
11367 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
11369 * tree.c (initializer_zerop): Handle STRING_CST.
11371 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
11374 * doc/invoke.texi (Wimplicit): Document as C only.
11375 * opts.c (common_handle_option): Add argument kind.
11376 (handle_option): Rename as read_cmdline_option. Factor out code to...
11377 (handle_option): ... here. New.
11378 (handle_options): Rename as read_cmdline_options.
11379 (decode_options): Update call.
11380 (set_option): Use option index instead of option pointer. Classify
11381 diagnostics correctly.
11382 (enable_warning_as_error): Call handle_option.
11383 * opts.h (set_option): Update declaration.
11384 (handle_option): Declare.
11385 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
11386 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
11387 * c-opts.c (set_Wimplicit): Delete.
11388 (c_family_lang_mask): New static constant.
11389 (c_common_handle_option): Add argument kind. Use handle_option
11390 instead of set_Wimplicit.
11391 (c_common_post_options): warn_implicit and warn_implicit_int
11392 are disabled by default.
11393 * c-common.c (warn_implicit): Do not define here.
11394 * c-common.h (warn_implicit): Do not declare here.
11395 (c_common_handle_option): Update declaration.
11396 * lto-opts.c (lto_reissue_options): Update call to set_option.
11398 2010-05-06 Richard Guenther <rguenther@suse.de>
11400 PR tree-optimization/43571
11401 * domwalk.c (walk_dominator_tree): Walk the dominator
11402 sons in more optimal order.
11404 2010-05-06 Richard Guenther <rguenther@suse.de>
11406 PR tree-optimization/43934
11407 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
11408 (stmt_cost): Likewise.
11409 (extract_true_false_args_from_phi): New helper.
11410 (determine_max_movement): For PHI nodes verify we can hoist them
11411 and compute their cost.
11412 (determine_invariantness_stmt): Handle PHI nodes.
11413 (move_computations_stmt): Likewise. Hoist PHI nodes in
11414 if-converted form using COND_EXPRs.
11415 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
11416 (tree_ssa_lim): Likewise.
11417 * tree-flow.h (tree_ssa_lim): Adjust prototype.
11418 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
11420 2010-05-06 Richard Guenther <rguenther@suse.de>
11422 PR tree-optimization/43987
11423 * tree-ssa-structalias.c (could_have_pointers): For possibly
11424 address-taken variables force pointers to be recorded.
11425 (create_variable_info_for_1): Likewise.
11426 (push_fields_onto_fieldstack): Pass in wheter all fields
11427 must have pointers.
11428 (find_func_aliases): Query types instead of vars whether
11429 they contain pointers where appropriate.
11431 2010-05-06 Jan Hubicka <jh@suse.cz>
11433 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
11434 (record_reference, mark_address, mark_load, mark_store): Record
11436 (record_references_in_initializer): Update call of record_references.
11437 (rebuild_cgraph_edges): Remove all references before rebuiding.
11438 * cgraph.c (cgraph_create_node): Clear ref list.
11439 (cgraph_remove_node): Remove references.
11440 (dump_cgraph_node): Dump references.
11441 (cgraph_clone_node): Clone references.
11442 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
11443 (struct cgraph_node, varpool_node): Add ref_lst.
11444 * ipa-ref.c: New file.
11445 * ipa-ref.h: New file.
11446 * ipa-ref-inline.h: New file.
11447 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
11448 (referenced_from_other_partition_p): New function.
11449 (lto_output_varpool_node): Take set arugment; call
11450 referenced_from_other_partition.
11451 (lto_output_ref): New.
11452 (add_references): New.
11453 (output_refs): New.
11454 (output_cgraph): Compute boundary based on references; output refs.
11455 (output_varpool): Accept cgraph_node_set argument.
11458 (input_cgraph): Call input_refs.
11459 * lto-section-in.c (lto_section_name): Add refs.
11460 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
11461 (ipa-ref.o): New file.
11462 * varpool.c (varpool_node): Clear ipa ref list.
11463 (varpool_remove_node): Remove references.
11464 (dump_varpool_node): Dump references.
11465 (varpool_assemble_decl): Only compile finalized ones.
11466 (varpool_extra_name_alias): Initialize ref list.
11467 * lto-streamer.c (lto-get_section_name): Add .refs section.
11468 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
11469 (referenced_from_other_partition_p): Declared.
11471 2010-05-06 Ira Rosen <irar@il.ibm.com>
11473 PR tree-optimization/43901
11474 * tree-vect-stmts.c (vectorizable_call): Assert that vector
11475 type is not NULL if it's transformation phase, and return
11476 FALSE if it's analysis.
11477 (vectorizable_conversion, vectorizable_operation,
11478 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
11480 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
11482 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11484 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
11486 * config/mips/mips-protos.h
11487 (mips_small_register_classes_for_mode_p): Delete prototype.
11489 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
11491 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
11492 * config/arm/arm.c (multiple_operation_profitable_p,
11493 compute_offset_order): New static functions.
11494 (load_multiple_sequence, store_multiple_sequence): Use them.
11495 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
11496 memory offsets, not register numbers.
11497 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
11499 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
11501 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
11502 (get_pending_sizes, put_pending_size, put_pending_sizes):
11503 Update the uses of pending_sizes.
11504 * c-decl.c (store_parm_decls): Likewise.
11505 * c-tree.h (struct c_arg_info): Likewise.
11506 * tree.h: Update the prototype for get_pending_sizes and
11509 2010-05-05 Jason Merrill <jason@redhat.com>
11512 * c-common.c (handle_aligned_attribute): Respect
11513 ATTR_FLAG_TYPE_IN_PLACE.
11516 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
11517 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11518 (TARGET_INITIALIZER): Use it.
11519 * c-common.c (attribute_takes_identifier_p): Call it.
11520 * c-common.h: Update prototype.
11521 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
11522 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
11524 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11527 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
11528 DW_ID_down_case for Fortran compilation units.
11530 2010-05-05 Jan Hubicka <jh@suse.cz>
11532 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
11535 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
11537 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
11538 a variable-sized RESULT_DECL.
11540 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
11542 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
11544 2010-05-05 Jason Merrill <jason@redhat.com>
11547 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
11549 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
11551 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
11552 Jakub Jelinek <jakub@redhat.com>
11555 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
11556 (dead_debug_init, dead_debug_finish): New functions.
11557 (dead_debug_add, dead_debug_insert_before): Likewise.
11558 (df_note_bb_compute): Initialize a dead_debug object, add dead
11559 debug uses to it, insert debug bind insns before death insns,
11560 reset debug insns that refer to pending uses at the end.
11561 * rtl.h (make_debug_expr_from_rtl): New prototype.
11562 * varasm.c (make_debug_expr_from_rtl): New function.
11564 2010-05-05 Jan Hubicka <jh@suse.cz>
11566 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
11567 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
11568 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
11569 lto_varpool_encoder_deref, lto_varpool_encoder_size,
11570 lto_varpool_encoder_encode_initializer_p,
11571 lto_set_varpool_encoder_encode_initializer): New functions.
11572 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
11573 call output_varpool.
11574 (input_varpool_node): Do not always set analyzed.
11575 (input_cgraph_1): Return vector of cgraph nodes.
11576 (input_varpool_1): Return vector of varpools.
11577 (input_cgraph): Free the vectors.
11578 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11579 output only initializers needed.
11580 (lto_output): Only call output_cgraph.
11581 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
11582 * lto-section-out.c (lto_new_out_decl_state): Initialize
11583 state->varpool_node_encoder.
11584 * lto-streamer.h (lto_varpool_encoder_d): New.
11585 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
11586 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
11587 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
11588 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
11589 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
11591 (output_varpool, input_varpool): Remove declarations.
11593 2010-05-05 Jan Hubicka <jh@suse.cz>
11595 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
11596 with body can prevail.
11598 2010-05-05 Jan Hubicka <jh@suse.cz>
11600 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
11603 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11605 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
11607 * gengtype.h (erro_at_line): Constify pos argument.
11609 * gengtype.c: Include hashtab.h.
11610 (enum gc_used): Document GC_MAYBE_POINTED_TO.
11611 (error_at_line): Constify pos argument.
11612 (do_typedef): Initialize p->opt field.
11613 (get_file_gtfilename): Fix comment typo.
11614 (struct walk_type_data): Constify line field.
11615 (get_output_file_for_structure): New function.
11616 (write_local_func_for_structure): Constify orig_s argument.
11617 Use get_output_file_for_structure.
11618 (write_func_for_structure): Use get_output_file_for_structure.
11619 (INDENT): New define.
11620 (dump_pair, dump_type, dump_type_list, dump_typekind)
11621 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
11622 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
11624 (seen_types): New variable.
11625 (main): New variable do_dump. Process "-d" command line option.
11626 Call dump_everything if dump requested.
11628 2010-05-05 Jakub Jelinek <jakub@redhat.com>
11630 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
11631 in a temporary instead of invoking the macro multiple times.
11632 (track_expr_p): Likewise.
11634 2010-05-04 Neil Vachharajani <nvachhar@google.com>
11636 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
11638 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
11639 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
11640 conditions for printing notes.
11641 * common.opt (-Wcoverage-mismatch): Allow negative, default to
11642 true, update documentation.
11643 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11645 2010-05-04 Jakub Jelinek <jakub@redhat.com>
11648 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11651 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11654 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11655 (*sse_prologue_save_insn1): Likewise.
11656 (SSE prologue save splitter): Likewise.
11658 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
11660 * tree.c (free_lang_data_in_one_sizepos): New inline function.
11661 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11662 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11663 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11664 all decls. Call it on DECL_FIELD_OFFSET of fields.
11665 (find_decls_types_r): Follow DECL_VALUE_EXPR.
11666 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11668 2010-05-04 Martin Jambor <mjambor@suse.cz>
11670 * tree-sra.c (build_access_from_expr_1): The first parameter type
11671 changed to simple tree.
11672 (build_access_from_expr): Likewise, gsi parameter was eliminated.
11673 (scan_assign_result): Renamed to assignment_mod_result, enum elements
11675 (build_accesses_from_assign): Removed all parameters except for a
11676 simple gimple statement. Now returns a simple bool.
11677 (scan_function): All non-analysis parts moved to separate functions
11678 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
11679 parameters and updated both callers.
11680 (sra_modify_expr): Removed parameter data.
11681 (sra_modify_function_body): New function.
11682 (perform_intra_sra): Call sra_modify_function_body to modify the
11684 (replace_removed_params_ssa_names): Parameter data changed into
11685 adjustments vector.
11686 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
11687 changed the parameter dont_convert to convert with the opposite
11689 (sra_ipa_modify_assign): Parameter data changed into adjustments
11690 vector, return value changed to bool.
11691 (ipa_sra_modify_function_body): New function.
11692 (sra_ipa_reset_debug_stmts): Updated a comment.
11693 (modify_function): Use ipa_sra_modify_function_body to modify function
11696 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
11698 PR middle-end/43671
11699 * alias.c (true_dependence): Handle the same VALUE in x and mem.
11700 (canon_true_dependence): Likewise.
11701 (write_dependence_p): Likewise.
11703 2010-05-04 Jan Hubicka <jh@suse.cz>
11705 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11706 * cgraphbuild.c: Include ipa-utils.h
11707 (record_reference_ctx): New struct.
11708 (record_reference): Simplify to work on initializers; not statements.
11709 (mark_address, mark_load, mark_store): New.
11710 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11711 walk PHI nodes too.
11712 (record_references_in_initializer): Update use of record_reference.
11713 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11714 walk PHI nodes too.
11716 2010-05-04 Jan Hubicka <jh@suse.cz>
11718 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11719 node will be removed anyway.
11720 (lto_varpool_replace_node): Allow also unanalyzed nodes;
11721 relink aliases of node into prevailing node.
11722 * varpool.c (varpool_remove_node): Remove aliases properly;
11723 when removing node, remove all its aliases too; remove DECL_INITIAL
11724 of removed node; ggc_free the varpool node.
11726 2010-05-04 Richard Guenther <rguenther@suse.de>
11728 PR tree-optimization/43879
11729 * tree-ssa-structalias.c (alias_get_name): Use
11730 DECL_ASSEMBLER_NAME if available.
11731 (create_function_info_for): Return the varinfo node.
11732 (ipa_pta_execute): Associate same-body aliases and extra names
11733 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
11735 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
11737 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11739 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
11742 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11743 only if HONOR_REG_ALLOC_ORDER is not defined.
11745 2010-05-04 Richard Guenther <rguenther@suse.de>
11747 PR tree-optimization/43949
11748 * tree-vrp.c (extract_range_from_binary_expr): Only handle
11751 2010-04-26 Jason Merrill <jason@redhat.com>
11753 * c.opt (-fstrict-enums): New.
11754 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11756 2010-05-03 David Ung <davidu@mips.com>
11757 James E. Wilson <wilson@codesourcery.com>
11759 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11760 emit the trap instruction before the divide for TUNE_74K.
11762 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
11764 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11765 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11766 based on the above, for new target hook.
11768 * hooks.c (hook_bool_mode_true): New generic hook.
11769 * hooks.h (hook_bool_mode_true): Add prototype.
11771 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11773 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11774 target hook, set to hook_bool_mode_false.
11775 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11776 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11777 with targetm.small_register_classes_for_mode_p.
11778 (find_reusable_reload): Likewise.
11779 (combine_reloads): Likewise.
11780 * reload1.c (reload_as_needed): Likewise.
11781 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11782 * ifcvt.c (noce_process_if_block, check_cond_move_block,
11783 dead_or_predicable): Likewise.
11784 * regmove.c (optimize_reg_copy_1): Likewise.
11785 * calls.c (prepare_call_address): Likewise.
11786 (precompute_register_parameters): Likewise.
11788 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11790 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11791 implementation of the hook that considers all register classes
11792 small except for SH64.
11793 (sh_override_options): Use the new hook.
11794 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11797 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11799 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11800 implementation of the hook that considers all register classes
11802 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11805 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11807 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11808 implementation of the hook that considers all register classes
11810 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11813 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11815 * config/m32c/m32c.h: Likewise.
11816 * config/pdp11/pdp11.h: Likewise.
11817 * config/avr/avr.h: Likewise.
11818 * config/xtensa/xtensa.h: Likewise.
11819 * config/m68hc11/m68hc11.h: Likewise.
11820 * config/mn10300/mn10300.h: Likewise.
11821 * config/mcore/mcore.h: Likewise.
11822 * config/h8300/h8300.h: Likewise.
11823 * config/bfin/bfin.h: Likewise.
11825 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11826 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11828 2010-05-03 Anatoly Sokolov <aesok@post.ru>
11830 * double-int.h (tree_to_double_int): Remove macro.
11831 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11832 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11833 (tree_to_double_int): New function.
11834 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11836 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11838 2010-05-03 Richard Guenther <rguenther@suse.de>
11840 PR tree-optimization/43971
11841 * tree-ssa-structalias.c (get_constraint_for_1): Fix
11842 constraints in the !flag_delete_null_pointer_checks case.
11844 2010-05-03 Jakub Jelinek <jakub@redhat.com>
11847 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11848 result mode matches original rtl mode.
11850 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
11853 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11855 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11857 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11858 when processing flag options.
11860 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11862 * gcov-iov.c (main): Change format string placeholder
11863 from %#08x to 0x%08x.
11864 * genchecksum.c (dosum): Change format string placeholder
11865 from %#02x to 0x%02x.
11867 2010-05-02 Richard Guenther <rguenther@suse.de>
11869 PR tree-optimization/43879
11870 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11872 2010-05-02 Bruno Haible <bruno@clisp.org>
11874 * doc/extend.texi (Function Attributes): Fix a typo.
11876 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11879 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11880 placeholder from 0x%x to %#x.
11881 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11882 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11883 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11884 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11885 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11886 * config/i386/i386.c (ix86_target_string): Ditto.
11887 * config/i386/i386.c (output_pic_addr_const): Ditto.
11888 (print_operand): Ditto.
11890 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
11892 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11893 placeholder from 0x%x to %#x.
11894 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11895 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11896 (ASM_OUTPUT_DEBUG_DATA): Ditto.
11897 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11898 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11899 * optc-gen.awk: Ditto.
11900 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11901 (HOST_WIDE_INT_PRINT_HEX): Ditto.
11902 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11903 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11905 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11907 * target.h (struct calls): Add function_value_regno_p field.
11908 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11909 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11910 * targhooks.c (default_function_value_regno_p): New function.
11911 * targhooks.h (default_function_value_regno_p): Declare function.
11912 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11913 * builtins.c. (apply_result_size): (Ditto.).
11914 * combine.c. (likely_spilled_retval_p): (Ditto.).
11915 * mode-switching.c. Include 'target.h'.
11916 (create_pre_exit): Use function_value_regno_p hook.
11917 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11918 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11919 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11921 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11922 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11923 (ix86_function_value_regno_p): Declare as static, change argument
11924 type to const unsigned int.
11925 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11927 2010-05-01 Richard Guenther <rguenther@suse.de>
11929 PR tree-optimization/43949
11930 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11932 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11934 2010-05-01 Anatoly Sokolov <aesok@post.ru>
11936 * rtl.h (CONST_DOUBLE_P): Define.
11937 (rtx_to_double_int): Declare.
11938 * emit-rtl.c (rtx_to_double_int): New function.
11939 * dwarf2out.c (insert_double): New function.
11940 (loc_descriptor, add_const_value_attribute): Clean up, use
11941 rtx_to_double_int and insert_double functions.
11943 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
11945 * doc/extend.texi (Inline): Add missing return keyword to examples.
11946 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11949 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
11951 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11952 the variable part of the offset as well. Use highest_pow2_factor for
11953 all alignment checks.
11955 2010-04-30 Richard Guenther <rguenther@suse.de>
11957 PR tree-optimization/43879
11958 * tree-ssa-structalias.c (type_could_have_pointers): Functions
11961 2010-04-30 Jan Hubicka <jh@suse.cz>
11963 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11965 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11967 2010-04-30 Jan Hubicka <jh@suse.cz>
11969 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11971 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11972 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11973 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11974 cgraph_node_set_needs_ltrans_p): Remove.
11976 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
11978 * sdbout.c: Include vec.h, do not include varray.h.
11979 (deferred_global_decls, sdbout_global_decl,
11980 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11981 * toplev.c: Do not include varray.h.
11982 (dump_memory_report): Do not dump VARRAY statistics.
11983 * gengtype.c (open_base_file): Ignore varray.h.
11984 * Makefile.in: Update for abovementioned changes.
11985 Remove all traces of varray.c and varray.h.
11986 * varray.c: Remove file.
11987 * varray.h: Remove file.
11989 2010-04-30 Jan Hubicka <jh@suse.cz>
11991 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11994 2010-04-30 Jan Hubicka <jh@suse.cz>
11996 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11999 2010-04-30 Richard Guenther <rguenther@suse.de>
12001 * tree-ssa-structalias.c (get_constraint_for_1): Generate
12002 constraints for CONSTRUCTOR.
12004 2010-04-30 Richard Guenther <rguenther@suse.de>
12007 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
12008 first after all lowering passes.
12010 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
12012 * toplev.c: Include varray.h for statistics dumping.
12013 * tree.h: Do not declare varray_head_tag.
12014 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
12015 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
12016 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
12017 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
12018 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
12019 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
12020 c-common.c, c-common.h, reg-stack.c, basic-block.h,
12021 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
12023 * Makefile.in: Update for abovementioned changes.
12025 2010-04-30 Jakub Jelinek <jakub@redhat.com>
12028 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
12030 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
12032 * config/picochip/picochip.c (picochip_legitimize_address): Define.
12033 Use this function to do machine-specific conversion.
12034 (picochip_legitimize_reload_address): Likewise.
12035 (picochip_legitimate_address_p): Check valid base register only if
12037 (picochip_check_conditional_copy): Check for modw only if opnd is
12039 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
12040 to call the function in c.
12041 * config/picochip/picochip-protos.h
12042 (picochip_legitimize_reload_address): Define.
12043 * config/picochip/picochip.md (supported_compare1): Define.
12045 2010-04-30 Jan Hubicka <jh@suse.cz>
12047 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
12048 (cgraph_global_info): Remove inlined.
12049 (LTO_cgraph_tag_names): Remove.
12050 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
12051 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
12052 simplify cgraph tags and document.
12053 (lto_output_node): Use only LTO_cgraph_unavail_node and
12054 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
12055 for_functions_valid, global info, process and output flags.
12056 (input_overwrite_node): Initialize estimated stack size and
12057 estimated growth. Do not read flags we no longer store.
12058 (input_node): Likewise do not read info no longer stored.
12059 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
12062 2010-04-30 Richard Guenther <rguenther@suse.de>
12064 PR tree-optimization/43879
12065 * tree-ssa-structalias.c (get_constraint_for_1): Properly
12066 handle non-zero initializers.
12068 2010-04-30 Richard Guenther <rguenther@suse.de>
12070 * builtins.c (fold_builtin_1): Delete free (0).
12072 2010-04-29 Jan Hubicka <jh@suse.cz>
12074 * gengtype.c (open_base_files): Add lto-streamer.h
12075 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
12076 (pass_ipa_cp): GGC collect.
12077 * toplev. (compile_file): Do not output symbols.
12078 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
12079 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
12080 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
12081 * lto-section-in.c: Include ggc.h
12082 (lto_new_in_decl_state): Alloc in GGC.
12083 (lto_delete_in_decl_state): Likewise.
12084 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
12087 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12090 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
12091 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
12092 (HONOR_REG_ALLOC_ORDER): Describe new macro.
12093 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
12094 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
12095 account only if HONOR_REG_ALLOC_ORDER is not defined.
12096 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
12097 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
12099 2010-04-29 Jon Grant <04@jguk.org>
12101 * collect2.c (vflag): Change type from int to bool.
12103 (helpflag): New global bool.
12104 (main): Set vflag and debug with boolean, not integer truth values.
12105 Accept new "--help" option and output usage text if found.
12106 * collect2.h (vflag): Update prototype.
12109 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12112 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
12114 2010-04-29 Richard Guenther <rguenther@suse.de>
12117 * plugin.h (invoke_plugin_callbacks): Annotate arguments
12118 with ATTRIBUTE_UNUSED.
12120 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
12123 * config/i386/i386.c (get_some_local_dynamic_name): Replace
12124 INSN_P with NONDEBUG_INSN_P.
12125 (distance_non_agu_define): Likewise.
12126 (distance_agu_use): Likewise.
12128 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
12130 From Dominique d'Humieres <dominiq@lps.ens.fr>
12132 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
12135 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
12137 * plugin.h (invoke_plugin_callbacks): New inline function.
12138 * plugin.c (flag_plugin_added): New global flag.
12139 (add_new_plugin): Initialize above flag.
12140 (invoke_plugin_callbacks): Rename to ...
12141 (invoke_plugin_callbacks_full): ... this.
12143 2010-04-28 Jan Hubicka <jh@suse.cz>
12145 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
12146 (lto_varpool_replace_node): New.
12147 (lto_symtab_resolve_symbols): Resolve varpool nodes.
12148 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
12149 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
12150 * cgraph.h (varpool_node_ptr): New type.
12151 (varpool_node_ptr): New vector.
12152 (varpool_node_set_def): New structure.
12153 (varpool_node_set): New type.
12154 (varpool_node_set): New vector.
12155 (varpool_node_set_element_def): New structure.
12156 (varpool_node_set_element, const_varpool_node_set_element): New types.
12157 (varpool_node_set_iterator): New type.
12158 (varpool_node): Add prev pointers, add used_from_other_partition,
12159 in_other_partition.
12160 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
12161 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
12162 varpool_get_node, varpool_remove_node): Declare.
12163 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
12164 varpool_node_set_size): New inlines.
12165 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
12166 * tree-pass.h (varpool_node_set_def): Forward declare.
12167 (ipa_opt_pass_d): Summary writting takes vnode sets too.
12168 (ipa_write_optimization_summaries): Update prototype.
12169 * ipa-cp.c (ipcp_write_summary): Update.
12170 * ipa-reference.c (ipa_reference_write_summary): Update.
12171 * lto-cgraph.c (lto_output_varpool_node): New static function.
12172 (output_varpool): New function.
12173 (input_varpool_node): New static function.
12174 (input_varpool_1): New function.
12175 (input_cgraph): Input varpool.
12176 * ipa-pure-const.c (pure_const_write_summary): Update.
12177 * lto-streamer-out.c (lto_output): Update, output varpool too.
12178 (write_global_stream): Kill WPA hack.
12179 (produce_asm_for_decls): Update.
12180 (output_alias_pair_p): Handle variables.
12181 (output_unreferenced_globals): Output only needed partition of varpool.
12182 * ipa-inline.c (inline_write_summary): Update.
12183 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
12185 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
12186 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
12187 varpool_node_set_new, varpool_node_set_add,
12188 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
12189 debug_varpool_node_set): New functions.
12190 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
12191 (execute_one_pass): Process new decls too.
12192 (ipa_write_summaries_2): Pass around vsets.
12193 (ipa_write_summaries_1): Likewise.
12194 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
12196 (ipa_write_optimization_summaries_1): Pass around vsets.
12197 (ipa_write_optimization_summaries): Likewise.
12198 * varpool.c (varpool_get_node): New.
12199 (varpool_node): Update doubly linked lists.
12200 (varpool_remove_node): New.
12201 (dump_varpool_node): More dumping.
12202 (varpool_enqueue_needed_node): Update doubly linked lists.
12203 (decide_is_variable_needed): Kill ltrans hack.
12204 (varpool_finalize_decl): Kill lto hack.
12205 (varpool_assemble_decl): Skip decls in other partitions.
12206 (varpool_assemble_pending_decls): Update doubly linkes lists.
12207 (varpool_empty_needed_queue): Likewise.
12208 (varpool_extra_name_alias): Likewise.
12209 * lto-streamer.c (lto_get_section_name): Add vars section.
12210 * lto-streamer.h (lto_section_type): Update.
12211 (output_varpool, input_varpool): Declare.
12213 2010-04-28 Mike Stump <mikestump@comcast.net>
12215 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
12217 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12219 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
12220 record or union type with RECORD_OR_UNION_TYPE_P predicate.
12221 (lto_input_ts_type_tree_pointers): Likewise.
12222 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
12223 (lto_output_ts_type_tree_pointers): Likewise.
12225 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12227 Uniquization of constants at the Tree level
12228 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
12229 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
12231 (tree_output_constant_def): Declare.
12232 * gimplify.c (gimplify_init_constructor): When using block copy, first
12233 uniquize the constant constructor on the RHS.
12234 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
12235 DECL_IN_CONSTANT_POOL flag.
12236 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
12237 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
12239 (assemble_variable): Deal with symbols belonging to the tree constant
12241 (get_constant_section): Add ALIGN parameter and simplify.
12242 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
12243 (assemble_constant_contents): Use the expression of the VAR_DECL.
12244 (output_constant_def_contents): Use the alignment of the VAR_DECL.
12245 (tree_output_constant_def): New global function.
12246 (mark_constant): Use the expression of the VAR_DECL.
12247 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
12249 (output_object_block): Likewise and assemble the expression.
12251 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
12253 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
12254 hash_tree, eq_tree): New tree hash table.
12255 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
12256 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
12257 lto_orig_address_remove): Reimplement.
12259 2010-04-28 Xinliang David Li <davidxl@google.com>
12262 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
12263 (compute_uninit_opnds_pos): New function.
12264 (is_non_loop_exit_postdominating): New function.
12265 (compute_control_dep_chain): New function.
12266 (find_pdom): New function.
12267 (convert_control_dep_chain_into_preds): New function.
12268 (find_predicates): New function.
12269 (find_control_equiv_block): New function.
12270 (collect_phi_def_edges): New function.
12271 (find_def_preds): New function.
12272 (find_dom): New function.
12273 (dump_predicates): New function.
12274 (get_cmp_code): New function.
12275 (is_value_included_in): New function.
12276 (find_matching_predicate_in_rest_chains): New function.
12277 (use_pred_not_overlap_with_undef_path_pred): New function.
12278 (is_use_properly_guarded): New function.
12279 (normalize_cond_1): New function.
12280 (is_and_or_or): New function.
12281 (normalize_cond): New function.
12282 (is_gcond_subset_of): New function.
12283 (is_subset_of_any): New function.
12284 (is_or_set_subset_of): New function.
12285 (is_and_set_subset_of): New function.
12286 (is_norm_cond_subset_of): New function.
12287 (is_pred_expr_subset_of): New function.
12288 (is_pred_chain_subset_of): New function.
12289 (is_included_in): New function.
12290 (is_superset_of): New function.
12291 (find_uninit_use): New function.
12292 (warn_uninitialized_phi): New function.
12293 (compute_possibly_undefined_names): New function.
12294 (ssa_undefined_value_p): New function.
12295 (execute_late_warn_uninitialized): New function.
12296 * tree-ssa.c (ssa_undefined_value_p): Removed.
12297 (warn_uninit): Changed to extern.
12298 (warn_uninitialized_phi): Removed.
12299 (warn_uninitialized_vars): Changed to extern.
12300 (execute_late_warn_uninitialized): Removed
12301 * tree-flow.h: Add new prototypes.
12302 * timevar.def: Add new time variable.
12303 * Makefile.in: Add new build file.
12305 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
12307 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
12310 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12313 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
12315 2010-04-28 Martin Jambor <mjambor@suse.cz>
12317 * cgraph.h (struct cgraph_node): New field indirect_calls.
12318 (struct cgraph_indirect_call_info): New type.
12319 (struct cgraph_edge): Removed field indirect_call. New fields
12320 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
12321 (cgraph_create_indirect_edge): Declare.
12322 (cgraph_make_edge_direct): Likewise.
12323 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
12324 * ipa-prop.h (struct ipa_param_call_note): Removed.
12325 (struct ipa_node_params): Removed field param_calls.
12326 (ipa_create_all_structures_for_iinln): Declare.
12327 * cgraph.c: Described indirect edges and uids in initial comment.
12328 (cgraph_add_edge_to_call_site_hash): New function.
12329 (cgraph_edge): Search also among the indirect edges, use
12330 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
12331 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
12332 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
12334 (initialize_inline_failed): Assign a reason to indirect edges.
12335 (cgraph_create_edge_1): New function.
12336 (cgraph_create_edge): Moved some functionality to
12337 cgraph_create_edge_1.
12338 (cgraph_create_indirect_edge): New function.
12339 (cgraph_edge_remove_callee): Add an assert checking for
12341 (cgraph_edge_remove_caller): Special-case indirect edges.
12342 (cgraph_remove_edge): Likewise.
12343 (cgraph_set_edge_callee): New function.
12344 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
12345 (cgraph_make_edge_direct): New function.
12346 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
12347 the declaration of the call statement matches.
12348 (cgraph_node_remove_callees): Special-case indirect edges.
12349 (cgraph_clone_edge): Likewise.
12350 (cgraph_clone_node): Clone also the indirect edges.
12351 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
12352 indirect_call, dump count of indirect_calls edges.
12353 * ipa-prop.c (iinlining_processed_edges): New variable.
12354 (ipa_note_param_call): Create indirect edges instead of
12355 creating notes. New parameter node.
12356 (ipa_analyze_call_uses): New parameter node, pass it on to
12357 ipa_note_param_call.
12358 (ipa_analyze_stmt_uses): Likewise.
12359 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
12360 (print_edge_addition_message): Work on edges rather than on notes.
12361 (update_call_notes_after_inlining): Likewise, renamed to
12362 update_indirect_edges_after_inlining.
12363 (ipa_create_all_structures_for_iinln): New function.
12364 (ipa_free_node_params_substructures): Do not free notes.
12365 (ipa_edge_duplication_hook): Propagate bits within
12366 iinlining_processed_edges bitmap.
12367 (ipa_node_duplication_hook): Do not duplicate notes.
12368 (free_all_ipa_structures_after_ipa_cp): Renamed to
12369 ipa_free_all_structures_after_ipa_cp.
12370 (free_all_ipa_structures_after_iinln): Renamed to
12371 ipa_free_all_structures_after_iinln.
12372 (ipa_write_param_call_note): Removed.
12373 (ipa_read_param_call_note): Removed.
12374 (ipa_write_indirect_edge_info): New function.
12375 (ipa_read_indirect_edge_info): Likewise.
12376 (ipa_write_node_info): Do not stream notes, do stream information
12378 (ipa_read_node_info): Likewise.
12379 (lto_ipa_fixup_call_notes): Removed.
12380 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
12381 * ipa-inline.c (pass_ipa_inline): Likewise.
12382 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
12383 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
12384 * tree-inline.c (copy_bb): Removed an unnecessary double check for
12386 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
12388 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
12389 (output_cgraph): Stream also indirect edges.
12390 (lto_output_edge): Added capability to stream indirect edges.
12391 (input_edge): Likewise.
12392 (input_cgraph_1): Likewise.
12393 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
12396 2010-04-28 Richard Guenther <rguenther@suse.de>
12398 PR tree-optimization/43879
12399 PR tree-optimization/43909
12400 * tree-ssa-structalias.c (struct variable_info): Add
12401 only_restrict_pointers flag.
12402 (new_var_info): Initialize it. Increment stats.total_vars here.
12403 (create_function_info_for): Do not increment stats.total_vars here.
12404 (get_function_part_constraint): Fix build with C++.
12405 (insert_into_field_list): Remove.
12406 (push_fields_onto_fieldstack): Properly merge fields.
12407 (create_variable_info_for): Split and simplify.
12408 (create_variable_info_for_1): New piece.
12409 (intra_create_variable_infos): Properly make restrict constraints
12412 2010-04-28 Richard Guenther <rguenther@suse.de>
12415 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
12417 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
12418 Jan Hubicka <hubicka@ucw.cz>
12420 * doc/invoke.texi (-Wsuggest-attribute=const,
12421 -Wsuggest-attribute=pure): Document.
12422 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
12423 (function_always_visible_to_compiler_p,
12424 suggest_attribute, warn_function_pure, warn_function_const):
12426 (check_call): Improve debug info.
12427 (analyze_function): Do not check availability.
12428 (add_new_function): Check availability.
12429 (propagate): Output warnings.
12430 (skip_function_for_local_pure_const): New function.
12431 (local_pure_const): Use it; output warnings.
12432 * common.opt (Wsuggest-attribute=const,
12433 Wsuggest-attribute=pure): New.
12435 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12437 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
12438 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
12439 or DW_CFA_def_cfa_offset{,_sf}.
12441 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12443 * tree.h: Fix truncated long macros.
12445 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
12447 * collect2.c (TARGET_64BIT): Redefine to target's default.
12448 * tlink.c: Likewise.
12449 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
12450 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
12451 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
12452 for underscoring __USER_LABEL_PREFIX__.
12453 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
12454 (SUB_LINK_ENTRY32): New.
12455 (SUB_LINK_ENTRY64): New.
12456 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
12457 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
12458 (SUB_LINK_ENTRY64): New.
12459 (SUB_LINK_ENTRY): New.
12460 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
12461 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
12462 x64 target is choosen.
12463 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
12464 * configure: Regenerated.
12465 * configure.ac (leading-mingw64-underscores): Option added.
12467 2010-04-27 Jan Hubicka <jh@suse.cz>
12469 * doc/invoke.texi (-fipa-profile): Document.
12470 * opts.c (decode_options): Enable ipa-profile at -O1.
12471 * timevar.def (TV_IPA_PROFILE): Define.
12472 * common.opt (fipa-profile): Add.
12473 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
12475 (cgraph_propagate_frequency): Handle only local ones.
12476 * tree-pass.h (pass_ipa_profile): Declare.
12477 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
12478 (pass_ipa_profile): Use TV_IPA_PROFILE.
12479 * ipa.c (ipa_profile): New function.
12480 (gate_ipa_profile): Likewise.
12481 (pass_ipa_profile): New global variable.
12482 * passes.c (pass_ipa_profile): New.
12484 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
12486 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
12488 2010-04-27 Martin Jambor <mjambor@suse.cz>
12490 PR middle-end/43812
12491 * ipa.c (dissolve_same_comdat_group_list): New function.
12492 (function_and_variable_visibility): Call
12493 dissolve_same_comdat_group_list when comdat group contains external or
12495 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
12496 lists are circular and that they contain only DECL_ONE_ONLY nodes.
12498 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
12500 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
12501 (const_hash_1) <VECTOR_CST>: New case.
12502 (compare_constant) <VECTOR_CST>: Likewise.
12503 <ADDR_EXPR>: Deal with LABEL_REFs.
12504 (copy_constant) <VECTOR_CST>: New case.
12506 2010-04-27 Jan Hubicka <jh@suse.cz>
12508 * cgraph.c (cgraph_propagate_frequency): New function.
12509 * cgraph.h (cgraph_propagate_frequency): Declare.
12510 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
12511 cgraph_propagate_frequency.
12513 2010-04-27 Jakub Jelinek <jakub@redhat.com>
12515 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
12517 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
12520 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
12521 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
12522 here to determine which regs to push and how much stack to reserve.
12524 2010-04-27 Jie Zhang <jie@codesourcery.com>
12526 * doc/gimple.texi (gimple_statement_with_ops): Remove
12527 addresses_taken field.
12528 (gimple_statement_with_memory_ops): Likewise.
12530 2010-04-27 Jan Hubicka <jh@suse.cz>
12532 * tree-inline.c (eni_inlining_weights): Remove.
12533 (estimate_num_insns): Special case more builtins.
12535 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
12538 * c-typeck.c (build_binary_op): Move forward check for comparison
12539 pointer with null pointer constant and adjust the diagnostic message.
12541 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
12544 * configure.ac (gcc_cv_as_section_has_align): Set if installed
12545 binutils supports extended .section directive needed by LTO, or
12546 warn if older binutils found.
12547 (LTO_BINARY_READER): New AC_SUBST'd variable.
12548 (LTO_USE_LIBELF): Likewise.
12549 * gcc/config.gcc (lto_binary_reader): New target-specific configure
12551 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
12552 (LTO_USE_LIBELF): Likewise.
12553 * configure: Regenerate.
12555 * collect2.c (is_elf): Rename from this ...
12556 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
12557 object files in addition to ELF-formatted ones.
12558 (scan_prog_file): Caller updated. Also allow for LTO info marker
12559 symbol to be prefixed or not by an extra underscore.
12561 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
12562 * config/i386/winnt.c: Also #include lto-streamer.h
12563 (i386_pe_asm_named_section): Specify 1-byte section alignment for
12564 LTO named sections.
12565 (i386_pe_asm_output_aligned_decl_common): Add comment.
12566 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
12568 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
12571 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
12572 Add missing earlyclobber for second alternative.
12574 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
12576 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
12577 bits for artificial defs at the top of the block.
12578 * fwprop.c (single_def_use_enter_block): Don't call it.
12580 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
12583 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
12584 instead of "$gcc_cv_objdump -T".
12585 Use "-undefined dynamic_lookup" on darwin.
12586 * gcc/configure: Regenerate.
12588 2010-04-26 Jakub Jelinek <jakub@redhat.com>
12591 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
12593 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12595 * c-parser.c (struct c_token): Move location field up.
12596 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
12597 (struct c_declspecs): Convert typespec_word, storage_class, and
12598 default_int_p into bitfields.
12599 (struct c_declarator): Move loc field up.
12601 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
12603 * cfgloop.h (struct loop): Move can_be_parallel field up.
12604 * ipa-prop.h (struct ip_node_params): Move bitfields up.
12605 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
12607 (struct iv_cand): Convert pos field into a bitfield.
12608 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
12610 (struct _stmt_vec_info): Shuffle fields for better packing.
12612 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12614 * varasm.c (IN_NAMED_SECTION): Remove guard.
12615 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
12616 (IN_NAMED_SECTION_P): ...this.
12617 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
12618 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12620 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
12622 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
12623 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
12624 of shadowing it. Fix comments.
12626 2010-04-26 Jan Hubicka <jh@suse.cz>
12628 * cgraph.c (cgraph_create_node): Set node frequency to normal.
12629 (cgraph_clone_node): Copy function frequency.
12630 * cgraph.h (node_frequency): New enum
12631 (struct cgraph_node): Add.
12632 * final.c (rest_of_clean_state): Update.
12633 * lto-cgraph.c (lto_output_node): Output node frequency.
12634 (input_overwrite_node): Input node frequency.
12635 * tre-ssa-loop-ivopts (computation_cost): Update.
12636 * lto-streamer-out.c (output_function): Do not output function
12638 * predict.c (maybe_hot_frequency_p): Update and handle functions
12640 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
12642 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12643 (compute_function_frequency): Set noreturn functions to be executed
12645 (choose_function_section): Update.
12646 * lto-streamer-in.c (input_function): Do not input function frequency.
12647 * function.c (allocate_struct_function): Do not initialize function
12649 * function.h (function_frequency): Remove.
12650 (struct function): Remove function frequency.
12651 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12652 (try_update): Update.
12653 * tree-inline.c (initialize_cfun): Do not update function frequency.
12654 * passes.c (pass_init_dump_file): Update.
12655 * i386.c (ix86_compute_frame_layout): Update.
12656 (ix86_pad_returns): Update.
12658 2010-04-26 Jie Zhang <jie@codesourcery.com>
12660 PR tree-optimization/43833
12661 * tree-vrp.c (range_int_cst_p): New.
12662 (range_int_cst_singleton_p): New.
12663 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12664 when both operands are constants. Use range_int_cst_p in
12667 2010-04-26 Jan Hubicka <jh@suse.cz>
12669 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12671 2010-04-26 Richard Guenther <rguenther@suse.de>
12674 * gimple.c (gimple_decl_printable_name): Deal gracefully
12675 with a NULL DECL_NAME.
12677 2010-04-26 Richard Guenther <rguenther@suse.de>
12680 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12681 if emitting debug information and it is either a function
12682 or a namespace decl.
12684 2010-04-26 Ira Rosen <irar@il.ibm.com>
12686 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12687 determine if the statement is vectorizable, and a macro to access it.
12688 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12689 Skip statements that can't be vectorized. If the analysis fails,
12690 mark the statement as unvectorizable if vectorizing basic block.
12691 (vect_compute_data_refs_alignment): Likewise.
12692 (vect_verify_datarefs_alignment): Skip statements marked as
12693 unvectorizable. Add print.
12694 (vect_analyze_group_access): Skip statements that can't be
12695 vectorized. If the analysis fails, mark the statement as
12696 unvectorizable if vectorizing basic block.
12697 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12698 * tree-vect-stmts.c (vectorizable_store): Fix the number of
12699 generated stmts for SLP.
12700 (new_stmt_vec_info): Initialize the new field.
12701 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12702 statements marked as unvectorizable.
12704 2010-04-25 Joseph Myers <joseph@codesourcery.com>
12706 * c-common.c (flag_isoc1x): New.
12707 (flag_isoc99): Update comment.
12708 * c-common.h (flag_isoc1x): New.
12709 (flag_isoc99): Update comment.
12710 * c-cppbuiltin.c (builtin_define_float_constants): Also define
12711 __<type>_DECIMAL_DIG__.
12712 * c-opts.c (set_std_c1x): New.
12713 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12714 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12715 * c.opt (-std=c1x, -std=gnu1x): New options.
12716 * doc/cpp.texi: Mention -std=c1x.
12717 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12718 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12719 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12720 * doc/standards.texi: Mention C1X.
12721 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12722 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12723 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12726 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
12728 * config/i386/gmon-sol2.c (_mcleanup): Change format string
12729 placeholder from 0x%x to %#x.
12730 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12731 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12732 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12733 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12734 * config/i386/i386.c (ix86_target_string): Ditto.
12735 (output_pic_addr_const): Ditto.
12736 (print_operand): Ditto.
12738 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
12740 * combine.c (find_split_point): Add third argument. Use it
12741 to find nested multiply-accumulate instructions. Adjust calls.
12742 (try_combine): Adjust call to find_split_point.
12744 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
12746 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12748 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
12750 PR tree-optimization/41442
12751 * fold-const.c (merge_truthop_with_opposite_arm): New function.
12752 (fold_binary_loc): Call it.
12754 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12756 * toplev.c (general_init): Set default for fdiagnostics-show-option.
12757 * opts.c (common_handle_option): Allow disabling it.
12758 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12760 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
12762 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12763 between modes if both types are integral.
12765 2010-04-23 Richard Guenther <rguenther@suse.de>
12767 PR tree-optimization/43572
12768 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12770 2010-04-23 Richard Guenther <rguenther@suse.de>
12773 * tree-inline.c (tree_can_inline_p): Also check compatibility
12776 2010-04-23 Martin Jambor <mjambor@suse.cz>
12778 PR tree-optimization/43846
12779 * tree-sra.c (struct access): New flag grp_assignment_read.
12780 (build_accesses_from_assign): Set grp_assignment_read.
12781 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12782 (enum mark_read_status): New type.
12783 (analyze_access_subtree): Propagate grp_assignment_read, create
12784 accesses also if both direct_read and root->grp_assignment_read.
12786 2010-04-23 Martin Jambor <mjambor@suse.cz>
12788 PR middle-end/43835
12789 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12790 function does not have type attributes.
12792 2010-04-23 Richard Guenther <rguenther@suse.de>
12795 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12798 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12800 * sese.h (create_if_region_on_edge): Remove.
12802 * sese.c (create_if_region_on_edge): Make static.
12804 * tree-inline.c: Do not include ggc.h.
12806 * expr.c: Do not include ggc.h.
12808 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12811 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
12814 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12815 in the middle of insns for casesi_worker_2.
12817 2010-04-22 David Edelsohn <edelsohn@gnu.org>
12819 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12821 2010-04-22 Ira Rosen <irar@il.ibm.com>
12823 PR tree-optimization/43842
12824 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12825 loop unrolling in update of exit phis. Fix comment.
12826 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12827 least two reduction statements in the loop before starting SLP
12830 2010-04-22 Nick Clifton <nickc@redhat.com>
12832 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12834 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
12836 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12837 to simplify a + ~a.
12839 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12841 * tree-parloops.c (loop_parallel_p): New argument
12842 parloop_obstack. Pass it down.
12843 (parallelize_loops): New variable parloop_obstack. Initialize it,
12844 pass it down, free it.
12846 * tree-loop-linear.c (linear_transform_loops): Pass down
12849 * tree-data-ref.h (lambda_compute_access_matrices): New argument
12850 of type struct obstack *.
12852 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12853 scratch_obstack. Initialize it, pass down, free it.
12855 * lambda.h (lambda_loop_new): Remove.
12856 (lambda_matrix_new, lambda_matrix_inverse)
12857 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12858 argument of type struct obstack *.
12860 * lambda-trans.c (lambda_trans_matrix_new): New argument
12861 lambda_obstack. Pass it down, use obstack allocation for ret.
12862 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
12865 * lambda-mat.c (lambda_matrix_get_column)
12866 (lambda_matrix_project_to_null): Remove.
12867 (lambda_matrix_new): New argument lambda_obstack. Use obstack
12868 allocation for mat.
12869 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12872 * lambda-code.c (lambda_loop_new): New function.
12873 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12874 (lambda_compute_auxillary_space, lambda_compute_target_space)
12875 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12876 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12877 (build_access_matrix): New argument lambda_obstack. Use obstack
12879 (lambda_compute_step_signs, lambda_compute_access_matrices): New
12880 argument lambda_obstack. Pass it down.
12882 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12884 * optabs.h (expand_widening_mult): Declare.
12886 2010-04-22 Richard Guenther <rguenther@suse.de>
12888 PR tree-optimization/43845
12889 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12890 lookup the CALL_EXPR function and arguments.
12892 2010-04-22 Nick Clifton <nickc@redhat.com>
12894 * config/stormy16/stormy16.c
12895 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12896 * config/stormy16/stormy16.h: Tidy up formatting.
12897 (DONT_USE_BUILTIN_SETJMP): Remove definition.
12898 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12899 (ineqbranchsi): Delete pattern.
12900 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12901 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12902 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12903 stormy16-lib2-ucmpsi2.c.
12905 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12907 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12908 df_simulate_find_noclobber_defs as appropriate. Keep track of an
12909 extra set merge_set_noclobber, and use it to relax the final test
12911 * df.h (df_simulate_find_noclobber_defs): Declare.
12912 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12914 (df_simulate_find_noclobber_defs): New function.
12916 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
12918 * config/i386/i386.md: Use {} around multi-line preparation statements.
12920 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
12922 * c-tree.h (push_init_level, pop_init_level, set_init_index)
12923 (process_init_element): New argument of type struct obstack *.
12925 * c-typeck.c (push_init_level, pop_init_level, set_designator)
12926 (set_init_index, set_init_label, set_nonincremental_init)
12927 (set_nonincremental_init_from_string, find_init_member)
12928 (output_init_element, output_pending_init_elements)
12929 (process_init_element): New argument braced_init_obstack. Pass it
12931 (push_range_stack, add_pending_init): New argument
12932 braced_init_obstack. Use obstack allocation.
12934 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12935 braced_init_obstack. Pass it down.
12936 (c_parser_braced_init): New variables ret, braced_init_obstack.
12937 Initialize obstack, pass it down and finally free it.
12939 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
12941 PR middle-end/29274
12942 * tree-pass.h (pass_optimize_widening_mul): Declare.
12943 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12944 gate_optimize_widening_mul): New static functions.
12945 (pass_optimize_widening_mul): New.
12946 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12947 <case MULT_EXPR>: Remove support for widening multiplies.
12948 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12949 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12950 simplify_gen_unary rather than directly building extensions.
12951 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12953 * expmed.c (expand_widening_mult): New function.
12954 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12956 2010-04-21 Jan Hubicka <jh@suse.cz>
12958 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12959 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12960 * lto-wpa-fixup.c: Remove.
12961 * Makefile.in (lto-wpa-fixup.o): Remove.
12962 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12963 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12964 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12966 2010-04-21 Jan Hubicka <jh@suse.cz>
12968 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12969 add write_optimization_summary, read_optimization_summary.
12970 (ipa_write_summaries_of_cgraph_node_set): Remove.
12971 (ipa_write_optimization_summaries): Declare.
12972 (ipa_read_optimization_summaries): Declare.
12973 * ipa-cp.c (pass_ipa_cp): Update.
12974 * ipa-reference.c (pass_ipa_reference): Update.
12975 * ipa-pure-const.c (pass_ipa_pure_const): Update.
12976 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12978 * ipa-inline.c (pass_ipa_inline): Update.
12979 * ipa.c (pass_ipa_whole_program): Update.
12980 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12981 * passes.c (ipa_write_summaries_1): Do not test wpa.
12982 (ipa_write_optimization_summaries_1): New.
12983 (ipa_write_optimization_summaries): New.
12984 (ipa_read_summaries): Do not test ltrans.
12985 (ipa_read_optimization_summaries_1): New.
12986 (ipa_read_optimization_summaries): New.
12988 2010-04-21 Jan Hubicka <jh@suse.cz>
12990 * lto-cgraph.c (lto_output_node): Do not output comdat groups
12991 for boundary nodes.
12992 (output_cgraph): Do not arrange comdat groups for boundary nodes.
12994 2010-04-21 Jakub Jelinek <jakub@redhat.com>
12997 * dwarf2out.c (add_name_and_src_coords_attributes): Add
12998 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
13000 2010-04-21 Jan Hubicka <jh@suse.cz>
13002 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
13004 2010-04-21 Jan Hubicka <jh@suse.cz>
13006 * varpool.c (decide_is_variable_needed): Variable is always needed
13009 2010-04-21 Jan Hubicka <jh@suse.cz>
13011 * opts.c (decode_options): Enable pure-const pass for whopr.
13013 2010-04-21 Jan Hubicka <jh@suse.cz>
13015 * cgraph.c (dump_cgraph_node): Dump also assembler name.
13016 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
13018 (cgraph_decide_inlining): Do not expect callee to be removed in all
13021 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
13023 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
13025 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13027 * config/i386/i386.md (x86_shrd): Add athlon_decode and
13028 amdfam10_decode attributes.
13030 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13032 PR middle-end/43570
13033 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
13034 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
13035 (lower_copyprivate_clauses): Use private var in outer
13036 context instead of original var. Make sure the types
13037 are correct for VLAs.
13039 2010-04-21 Richard Guenther <rguenther@suse.de>
13041 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
13042 to non-pointer objects.
13044 2010-04-21 Jakub Jelinek <jakub@redhat.com>
13046 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
13047 last chain entry if it starts with the still current label.
13048 (add_location_or_const_value_attribute): Check that
13049 loc_list->first->next is NULL instead of comparing ->first with ->last.
13050 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
13051 to add_var_loc_to_decl.
13053 * dwarf2out.c (output_call_frame_info): For dw_cie_version
13054 >= 4 add also address size and segment size fields into CIE header.
13056 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
13057 long as address size is the same as sizeof (void *) and
13059 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
13060 address size or segment size is unexpected, return DW_EH_PE_omit.
13061 (classify_object_over_fdes): If get_cie_encoding returned
13062 DW_EH_PE_omit, return -1.
13063 (init_object): If classify_object_over_fdes returned -1,
13064 pretend there were no FDEs at all.
13066 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
13068 * config/i386/i386.md (bswap<mode>2): Macroize expander from
13069 bswap{si,di}2 using SWI48 mode iterator.
13070 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
13071 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
13072 set modrm attribute of bswap insn to 0 and remove length attribute.
13073 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
13074 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
13075 set mode attribute to <MODE> and remove length attribute.
13077 2010-04-20 James E. Wilson <wilson@codesourcery.com>
13079 PR rtl-optimization/43520
13080 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
13081 zero available registers.
13083 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13085 * builtins.c (fold_builtin_cproj): Fold more cases.
13087 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13089 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
13090 (fold_builtin_1): Fold builtin cproj.
13091 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
13092 Use ATTR_CONST_NOTHROW_LIST.
13094 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
13096 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
13097 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
13098 ffsi2_no_cmove for !TARGET_CMOVE.
13099 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
13100 (ffssi2): Remove expander.
13101 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
13103 (ctz<mode>2): Ditto from ctz{si,di}2.
13104 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
13106 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
13109 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13111 * dwarf2out.c (AT_linkage_name): Define.
13112 (clone_as_declaration): Handle DW_AT_linkage_name.
13113 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
13114 of DW_AT_MIPS_linkage_name.
13115 (move_linkage_attr): Likewise.
13116 (dwarf2out_finish): Likewise.
13118 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
13120 PR middle-end/41952
13121 * fold-const.c (fold_comparison): New folding rule.
13123 2010-04-20 Anatoly Sokolov <aesok@post.ru>
13125 * double-int.h (double_int_setbit): Declare.
13126 * double-int.c (double_int_setbit): New function.
13127 * rtl.h (immed_double_int_const): Declare.
13128 * emit-rtl.c (immed_double_int_const): New function.
13129 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
13130 and immed_double_int_const functions.
13131 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
13132 expand_copysign_bit): (Ditto.).
13133 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
13134 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
13135 * dojump.c (prefer_and_bit_test): (Ditto.).
13136 * expr.c (convert_modes, reduce_to_bit_field_precision,
13137 const_vector_from_tree): (Ditto.).
13138 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13140 2010-04-20 Jan Hubicka <jh@suse.cz>
13142 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
13143 (dump_cgraph_node): Dump new flags.
13144 * cgraph.h (struct cgraph_node): Add flags
13145 reachable_from_other_partition and in_other_partition.
13146 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
13147 other partition can not be removed.
13148 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
13149 the other partition must be output; silence sanity checking on
13150 leaking functions bodies from other paritition.
13151 * lto-cgraph.c (reachable_from_other_partition_p): New function.
13152 (lto_output_node): Output new flags; do not sanity check that inline
13153 clones are output; drop lto_forced_extern_inline_p code; do not mock
13154 visibility flags at partition boundaries.
13155 (add_node_to): New function.
13156 (output_cgraph): Use it to sort functions so masters appear before
13158 (input_overwrite_node): Input new flags.
13159 * passes.c (ipa_write_summaries): Do not call
13160 lto_new_extern_inline_states.
13161 * lto-section-out.c (forced_extern_inline,
13162 lto_new_extern_inline_states lto_delete_extern_inline_states,
13163 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
13164 * lto-streamer.h (lto_new_extern_inline_states,
13165 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
13166 lto_forced_extern_inline_p): Kill.
13168 2010-04-20 Richard Guenther <rguenther@suse.de>
13170 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
13171 from vars that can have pointers.
13172 (process_constraint): Dump useless constraints.
13174 2010-04-20 Richard Guenther <rguenther@suse.de>
13176 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
13177 (dump_sa_points_to_info): Remove asserts.
13178 (init_base_vars): nothing_id isn't an escape point nor does it
13181 2010-04-20 Jakub Jelinek <jakub@redhat.com>
13183 * tree.h (TYPE_REF_IS_RVALUE): Define.
13184 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
13185 should_move_die_to_comdat, prune_unused_types_walk): Handle
13186 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
13187 (modified_type_die, gen_reference_type_die): Emit
13188 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
13189 if TYPE_REF_IS_RVALUE and -gdwarf-4.
13191 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13194 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
13195 calls for -fpic -m31 if they have been sibcall optimized.
13197 2010-04-19 James E. Wilson <wilson@codesourcery.com>
13199 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
13200 ar.lc fixed and call-used.
13202 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
13204 2010-04-19 Jan Hubicka <jh@suse.cz>
13206 * opts.c (decode_options): Disable whpr incompatible passes.
13207 * lto/lto.c (lto_1_to_1_map): Skip clones.
13208 (read_cgraph_and_symbols): Do not mark everything as needed.
13209 (do_whole_program_analysis): Do map only after optimizing;
13210 set proper cgraph_state; use passmanager.
13212 2010-04-19 DJ Delorie <dj@redhat.com>
13214 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
13215 POINTER_PLUS_EXPR and fix them.
13217 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
13219 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
13220 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
13221 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
13222 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
13223 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
13224 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
13225 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
13226 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
13227 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
13228 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
13229 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
13231 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
13233 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
13234 (check_cond_move_block): Likewise.
13235 (cond_move_process_if_block): Likewise.
13236 (noce_find_if_block): Improve formatting.
13237 (find_if_header): Pass 0 to memset and tweak conditions.
13238 (cond_exec_find_if_block): Fix long lines and tweak conditions.
13240 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13242 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
13245 PR middle-end/43337
13246 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
13247 with non-local decl doesn't need chain.
13249 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
13251 * ira-color.c (allocno_reload_assign): Avoid accumulating
13252 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
13254 2010-04-19 Martin Jambor <mjambor@suse.cz>
13256 * gimple.h (create_tmp_reg): Declare.
13257 * gimplify.c (create_tmp_reg): New function.
13258 (gimplify_return_expr): Use create_tmp_reg.
13259 (gimplify_omp_atomic): Likewise.
13260 (gimple_regimplify_operands): Likewise.
13261 * tree-dfa.c (make_rename_temp): Likewise.
13262 * tree-predcom.c (predcom_tmp_var): Likewise.
13263 (reassociate_to_the_same_stmt): Likewise.
13264 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
13265 (get_replaced_param_substitute): Likewise.
13266 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13267 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
13268 * tree-ssa-pre.c (get_representative_for): Likewise.
13269 (create_expression_by_pieces): Likewise.
13270 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13271 (create_tailcall_accumulator): Likewise.
13273 2010-04-19 Martin Jambor <mjambor@suse.cz>
13275 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
13277 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
13279 2010-04-19 Richard Guenther <rguenther@suse.de>
13281 PR tree-optimization/43796
13282 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
13283 from SCEV in the lattice.
13284 (vrp_visit_phi_node): Dump change.
13286 2010-04-19 Richard Guenther <rguenther@suse.de>
13288 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
13289 * configure: Re-generated.
13291 2010-04-19 Richard Guenther <rguenther@suse.de>
13293 PR tree-optimization/43783
13294 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
13295 constant ARRAY_REF operands two and three if possible.
13297 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
13300 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
13302 2010-04-19 Jie Zhang <jie@codesourcery.com>
13305 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
13307 2010-04-19 Ira Rosen <irar@il.ibm.com>
13309 PR tree-optimization/37027
13310 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
13311 and macro to access it.
13312 (vectorizable_reduction): Add argument.
13313 (vect_get_slp_defs): Likewise.
13314 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
13315 statements for possible use in SLP.
13316 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
13317 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
13318 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
13320 (vectorizable_reduction): Likewise.
13321 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
13323 (vectorizable_type_demotion, vectorizable_type_promotion,
13324 vectorizable_store): Likewise.
13325 (vect_analyze_stmt): Update call to vectorizable_reduction.
13326 (vect_transform_stmt): Likewise.
13327 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
13328 (vect_build_slp_tree): Fix indentation. Check that there are no loads
13329 from different interleaving chains in same node.
13330 (vect_slp_rearrange_stmts): New function.
13331 (vect_supported_load_permutation_p): Allow load permutations for
13332 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
13333 inside SLP nodes if necessary.
13334 (vect_analyze_slp_instance): Handle reductions.
13335 (vect_analyze_slp): Try to build SLP instances originating from groups
13337 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
13338 (vect_get_constant_vectors): Create initial vectors for reductions
13339 according to reduction code. Add new argument.
13340 (vect_get_slp_defs): Add new argument, pass it to
13341 vect_get_constant_vectors.
13342 (vect_schedule_slp_instance): Remove SLP tree root statements.
13344 2010-04-19 Jakub Jelinek <jakub@redhat.com>
13346 * tree.h (ENUM_IS_SCOPED): Define.
13347 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
13348 for ENUM_IS_SCOPED enums.
13350 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
13352 * fold-const.c (fold_comparison): Use ssizetype.
13353 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13354 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
13355 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
13356 * tree-object-size.c (compute_object_sizes): Use size_type_node.
13358 * tree.h (initialize_sizetypes): Remove parameter.
13359 (build_common_tree_nodes): Remove second parameter.
13360 * stor-layout.c (initialize_sizetypes): Remove parameter.
13361 Always create an unsigned type.
13362 (set_sizetype): Assert that the passed type is unsigned and simplify.
13363 * tree.c (build_common_tree_nodes): Remove second parameter.
13364 Adjust call to initialize_sizetypes.
13365 * c-decl.c (c_init_decl_processing): Remove second argument in call to
13366 build_common_tree_nodes.
13368 2010-04-18 Matthias Klose <doko@ubuntu.com>
13370 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
13372 2010-04-18 Ira Rosen <irar@il.ibm.com>
13374 PR tree-optimization/43771
13375 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
13376 load permutation doesn't have gaps.
13378 2010-04-18 Jan Hubicka <jh@suse.cz>
13380 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
13381 (sse_prologue_save_insn expander): Use new pattern.
13382 (sse_prologue_save_insn1): New pattern and splitter.
13383 (sse_prologue_save_insn): Update to deal also with 64bit aligned
13385 * i386.c (setup_incoming_varargs_64): Do not compute jump
13387 (ix86_gimplify_va_arg): Update alignment needed.
13388 (ix86_local_alignment): Do not align all local arrays to 128bit.
13390 2010-04-17 Jan Hubicka <jh@suse.cz>
13392 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
13394 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13396 * arm.md (negdi2): Remove redundant code to force values into a
13399 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13401 * arm/bpabi.S: Add EABI alignment attributes to objects.
13402 * arm/bpabi-v6m.S: Likewise.
13403 * arm/crti.asm: Likewise.
13404 * arm/crtn.asm: Likewise.
13405 * arm/lib1funcs.asm: Likewise.
13406 * arm/libunwind.S: Likewise.
13408 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
13410 * arm-protos.h (tune_params): New structure.
13411 * arm.c (current_tune): New variable.
13412 (arm_constant_limit): Delete.
13413 (struct processors): Add pointer to the tune parameters.
13414 (arm_slowmul_tune): New tuning option.
13415 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
13416 (all_cores): Adjust to pick up the tuning model.
13417 (arm_constant_limit): New function.
13418 (arm_override_options): Select the appropriate tuning model. Delete
13419 initialization of arm_const_limit.
13420 (arm_split_constant): Use the new constant-limit model.
13421 (arm_rtx_costs): Pick up the current tuning model.
13422 * arm.md (is_strongarm, is_xscale): Delete.
13423 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
13424 for Xscale variant architectures.
13425 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
13427 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13429 * config/arm/arm.c (arm_gen_constant): Remove unused variable
13431 (arm_rtx_costs_1): Remove unused variable extra_cost.
13432 (arm_unwind_emit_set): Use variable offset.
13433 (thumb1_output_casesi): Remove unused variable flags.
13435 2010-04-16 Jeff Law <law@redhat.com>
13437 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
13438 needing assignment rather than doing a two-phase assignment. Remove
13439 unused variable 'm'.
13441 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13444 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
13446 2010-04-16 Doug Kwan <dougkwan@google.com>
13448 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
13449 (next_operand_entry_id): New static variable.
13450 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
13451 (add_to_ops_vec): Assigned unique ID to operand entry.
13452 (struct oecount_s): New field ID.
13453 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
13454 (undistribute_ops_list): Assign unique IDs to oecounts.
13455 (init_reassoc): reset next_operand_entry_id.
13457 2010-04-16 Doug Kwan <dougkwan@google.com>
13459 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
13460 missing left parenthesis.
13462 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
13464 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
13465 *btdi_rex64 using SWI48 mode iterator.
13466 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
13467 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
13468 *jcc_btdi_mask_rex64.
13470 2010-04-16 Anatoly Sokolov <aesok@post.ru>
13472 * double-int.h (tree_to_double_int): Convert to macro.
13473 * double-int.c (tree_to_double_int): Remove.
13475 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13478 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
13479 with want_address 2 and in case a single element list might be
13480 possible, call it again with want_address 0.
13482 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13484 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
13485 case 'W' print operands for HI mode.
13486 * config/h8300/h8300.h (Y0, Y2) : New constraints.
13487 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
13488 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
13489 * config/h8300/predicate.md (bit_register_indirect_operand): New.
13491 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
13493 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
13494 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
13495 #xx:3 and #xx:4 mode.
13497 * config/h8300/h8300.md (inverted load with HImode dest): Add
13498 support for H8300SX.
13500 * config/h8300/predicate.md (bit_operand): Allow immediate values that
13501 satisfy 'U' constraint.
13503 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13505 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
13506 * configure: Regenerate.
13507 * config.in: Regenerate.
13508 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
13511 2010-04-16 Richard Guenther <rguenther@suse.de>
13513 * tree.h (struct tree_decl_minimal): Move pt_uid ...
13514 (struct tree_decl_common): ... here.
13515 (DECL_PT_UID): Adjust.
13516 (SET_DECL_PT_UID): Likewise.
13517 (DECL_PT_UID_SET_P): Likewise.
13519 2010-04-16 Richard Guenther <rguenther@suse.de>
13521 PR tree-optimization/43572
13522 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
13523 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
13524 * tree-flow.h (is_call_clobbered): Remove.
13525 * tree-flow-inline.h (is_call_clobbered): Likewise.
13526 * tree-dfa.c (dump_variable): Do not dump call clobber state.
13527 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
13528 (execute_return_slot_opt): Adjust.
13529 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
13530 check for call clobbered vars here.
13531 (find_tail_calls): Move tailcall verification to the
13534 2010-04-16 Diego Novillo <dnovillo@google.com>
13536 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
13538 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13541 * config/arm/arm.md (cbranchqi4): New pattern.
13542 * config/arm/predicates.md (const0_operand,
13543 cbranchqi4_comparison_operator): New predicates.
13545 2010-04-16 Richard Guenther <rguenther@suse.de>
13547 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
13548 (dump_gimple_stmt): Likewise.
13550 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
13552 * recog.h (struct recog_data): New field is_operator.
13553 (struct insn_operand_data): New field is_operator.
13554 * recog.c (extract_insn): Set recog_data.is_operator.
13555 * genoutput.c (output_operand_data): Emit code to set the
13557 * reload.c (find_reloads): Use it rather than testing for an
13558 empty constraint string.
13561 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
13562 If the previous insn is a cbranchsi4_insn with the same arguments,
13563 omit the compare instruction.
13565 * config/arm/arm.md (addsi3_cbranch): If destination is a high
13566 register, inputs must be low registers and we need a low register
13567 scratch. Handle alternative 2 like alternative 3.
13569 2010-04-16 Jakub Jelinek <jakub@redhat.com>
13571 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
13572 don't call get_addr on both. If one expression is a VALUE and
13573 the other a REG, check VALUE's locs if the REG isn't among them.
13575 2010-04-16 Christian Bruel <christian.bruel@st.com>
13577 * config/sh/sh.h (sh_frame_pointer_required): New function.
13578 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
13579 (flag_omit_frame_pointer) Set.
13580 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
13581 (rounded_frame_size): Adjust size with outgoing_args_size.
13582 (sh_set_return_address): Must return from stack pointer.
13583 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
13584 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
13585 (ACCUMULATE_OUTGOING_ARGS): Define.
13586 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
13587 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
13589 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13592 * config/sh/sh.c (sh_legitimize_reload_address): Use
13593 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
13594 Remove a unneeded check for offset_base.
13596 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
13598 * configure: Regenerated.
13600 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13602 * config/s390/s390.c (s390_call_save_register_used): Switch back
13603 to HARD_REGNO_NREGS.
13605 2010-04-15 Richard Guenther <rguenther@suse.de>
13607 * alias.c (alias_set_subset_of): Handle alias-set zero
13610 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
13611 Julian Brown <julian@codesourcery.com>
13613 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
13614 alternatives according to use of high and low regs.
13615 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
13616 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
13617 optimizing for size on Thumb-2.
13619 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
13621 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
13623 2010-04-15 Richard Guenther <rguenther@suse.de>
13625 * tree-ssa-structalias.c (struct variable_info): Add
13627 (new_var_info): Initialize it.
13628 (dump_constraints): Support printing last added constraints.
13629 (debug_constraints): Adjust.
13630 (dump_constraint_graph): Likewise.
13631 (make_heapvar_for): Check for NULL cfun.
13632 (get_function_part_constraint): New function.
13633 (get_fi_for_callee): Likewise.
13634 (find_func_aliases): Properly implement IPA PTA constraints.
13635 (process_ipa_clobber): New function.
13636 (find_func_clobbers): Likewise.
13637 (insert_into_field_list_sorted): Remove.
13638 (create_function_info_for): Properly allocate vars for IPA mode.
13639 Do not use insert_into_field_list_sorted.
13640 (create_variable_info_for): Properly generate constraints for
13641 global vars in IPA mode.
13642 (dump_solution_for_var): Always dump the solution.
13643 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13644 (find_what_var_points_to): Adjust.
13645 (pt_solution_set): Change.
13646 (pt_solution_ior_into): New function.
13647 (pt_solution_empty_p): Export.
13648 (pt_solution_includes_global): Adjust.
13649 (pt_solution_includes_1): Likewise.
13650 (pt_solutions_intersect_1): Likewise.
13651 (dump_sa_points_to_info): Check some invariants.
13652 (solve_constraints): Move constraint dumping ...
13653 (compute_points_to_sets): ... here.
13654 (ipa_pta_execute): ... and here.
13655 (compute_may_aliases): Do not re-compute points-to info
13656 locally if IPA info is available.
13657 (ipa_escaped_pt): New global var.
13658 (ipa_pta_execute): Properly implement IPA PTA.
13659 * tree-into-ssa.c (dump_decl_set): Support dumping
13660 decls not in referenced-vars.
13661 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13662 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13663 (dump_points_to_solution): Likewise.
13664 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13665 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13666 (remap_gimple_stmt): Reset call clobber/use information if necessary.
13667 (copy_decl_to_var): Copy DECL_PT_UID.
13668 (copy_result_decl_to_var): Likewise.
13669 * tree.c (make_node_stat): Initialize DECL_PT_UID.
13670 (copy_node_stat): Copy it.
13671 * tree.h (DECL_PT_UID): New macro.
13672 (SET_DECL_PT_UID): Likewise.
13673 (DECL_PT_UID_SET_P): Likewise.
13674 (struct tree_decl_minimal): Add pt_uid member.
13675 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13676 (pt_solution_empty_p): Declare.
13677 (pt_solution_set): Adjust.
13678 (ipa_escaped_pt): Declare.
13679 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13680 * gimple-pretty-print.c (pp_points_to_solution): New function.
13681 (dump_gimple_call): Dump call clobber/use information.
13682 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13683 * tree-pass.h (TDF_ALIAS): New dump option.
13684 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13685 * doc/invoke.texi (-fipa-pta): Update documentation.
13687 2010-04-15 Richard Guenther <rguenther@suse.de>
13689 * Makefile.in (OBJS-common): Add gimple-fold.o.
13690 (gimple-fold.o): New rule.
13691 * tree.h (maybe_fold_offset_to_reference,
13692 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13694 * gimple.h: ... here.
13695 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13696 may_propagate_address_into_dereference): Move prototypes ...
13697 * gimple.h: ... here.
13698 * tree-ssa-ccp.c (get_symbol_constant_value,
13699 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13700 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13701 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13702 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13703 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13704 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13705 gimplify_and_update_call_from_tree): Move ...
13706 * gimple-fold.c: ... here. New file.
13707 (ccp_fold_builtin): Rename to ...
13708 (gimple_fold_builtin): ... this.
13709 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13711 2010-04-15 Richard Guenther <rguenther@suse.de>
13713 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13714 fit_double_type, force_fit_type_double, add_double_with_sign,
13715 neg_double, mul_double_with_sign, lshift_double, rshift_double,
13716 lrotate_double, rrotate_double, div_and_round_double): Move ...
13717 * double-int.c: ... here.
13718 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13719 add_double, neg_double, mul_double_with_sign, mul_double,
13720 lshift_double, rshift_double, lrotate_double, rrotate_double,
13721 div_and_round_double): Move prototypes ...
13722 * double-int.h: ... here.
13724 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
13727 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
13728 matching constraints to ensure inputs match the output.
13730 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
13733 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13734 in an input-only operand.
13736 2010-04-15 Anatoly Sokolov <aesok@post.ru>
13738 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13739 (double_int_not, double_int_lshift, double_int_rshift): Declare.
13740 (double_int_negative_p): Convert to static inline function.
13741 * double-int.c (double_int_lshift, double_int_lshift): New functions.
13742 (double_int_negative_p): Remove.
13743 * tree.h (lshift_double, rshift_double):
13744 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13745 * fold-const.c (fold_convert_const_int_from_real,
13746 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13747 (lshift_double): Change type of arith argument to bool.
13748 (rshift_double): Change type of arith argument to bool. Correct
13750 * expmed.c (mask_rtx, lshift_value): (Ditto.).
13752 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
13755 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13756 at the start and end of the then/else blocks, and omit them from the
13758 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
13759 argument; all callers changed. Pass zero to old_insns_match_p instead.
13760 (flow_find_head_matching_sequence): New function.
13761 (old_insns_match_p): Check REG_EH_REGION notes for calls.
13762 * basic-block.h (flow_find_cross_jump,
13763 flow_find_head_matching_sequence): Declare functions.
13765 2010-04-14 Jason Merrill <jason@redhat.com>
13768 * c-common.c (attribute_takes_identifier_p): New fn.
13769 * c-common.h: Declare it.
13771 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13773 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13774 splitter condition.
13775 (*udivmod<mode>4): Ditto.
13777 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13779 * config/i386/i386.md (maxmin_int): Rename code attribute from
13780 maxminiprefix and update all users.
13781 (maxmin_float): Ditto from maxminfprefix.
13782 (logic): Ditto from logicprefix.
13783 (absneg_mnemonic): Ditto from absnegprefix.
13784 * config/i386/mmx.md: Update all users of maxminiprefix,
13785 maxminfprefix and logicprefix for rename.
13786 * config/i386/sse.md: Ditto.
13787 * config/i386/sync.md (sync_<code><mode>): Update for
13788 logicprefix rename.
13790 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13793 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13794 warnings converted to errors.
13796 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13798 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13799 used insn_type variable.
13800 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13801 to avoid set-but-not-used warning.
13803 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13805 * df-core.c (df_ref_debug): Change format string placeholder
13807 * dwarf2asm.c (dw2_asm_output_data_raw,
13808 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13809 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13810 * dwarf2out.c (output_cfi, output_cfi_directive,
13811 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13812 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13814 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13815 * print-rtl.c (print_rtx): Ditto.
13817 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13819 PR middle-end/42694
13820 * builtins.c (expand_builtin_pow_root): New function to expand pow
13821 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13822 series of sqrt and cbrt calls under -ffast-math.
13823 (expand_builtin_pow): Call it.
13825 2010-04-14 Michael Matz <matz@suse.de>
13827 PR tree-optimization/42963
13828 * tree-cfg.c (touched_switch_bbs): New static variable.
13829 (group_case_labels_stmt): New function broken out from ...
13830 (group_case_labels): ... here, use the above.
13831 (start_recording_case_labels): Allocate touched_switch_bbs.
13832 (end_recording_case_labels): Deallocate it, call
13833 group_case_labels_stmt.
13834 (gimple_redirect_edge_and_branch): Remember index of affected BB.
13836 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13838 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13839 from insn template.
13841 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
13843 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13845 2010-04-13 Jan Hubicka <jh@suse.cz>
13847 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13848 of optimized out static functions.
13849 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13850 cost computation. Also sanity check for overflows.
13851 (update_caller_keys): Update cgraph_edge_badness call; properly
13852 update fibheap and sanity check that it is up to date.
13853 (add_new_edges_to_heap): Update cgraph_edge_badness.
13854 (cgraph_decide_inlining_of_small_function): Likewise;
13855 add sanity checking that badness in heap is up to date;
13856 improve dumping of reason; Update badness of calls to the
13857 offline copy of function currently inlined; dump badness
13858 of functions not inlined because of unit growth limits.
13860 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
13862 PR middle-end/32628
13863 * c-common.c (pointer_int_sum): Disregard overflow that occured only
13864 because of sign-extension change when converting to sizetype here...
13865 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13867 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13868 the folding to constants. Remove redundant final conversion.
13869 (fold_binary) <associate>: Do not associate if the re-association of
13870 constants alone overflows.
13871 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13872 to the end of the list.
13873 (multiple_of_p) <COND_EXPR>: New case.
13875 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13877 * opt-functions.awk (opt_sanitized_name): New.
13879 * optc-gen.awk: Use it
13880 * opth-gen.awk: Use it.
13882 2010-04-13 Martin Jambor <mjambor@suse.cz>
13884 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13885 (sra_modify_assign): Delete stmts loading dead data even if racc has no
13886 children. Call replace_uses_with_default_def_ssa_name to handle
13889 2010-04-13 Michael Matz <matz@suse.de>
13891 PR middle-end/43730
13892 * builtins.c (expand_builtin_interclass_mathfn): Also create
13893 a register if the predicate doesn't match.
13895 2010-04-13 Diego Novillo <dnovillo@google.com>
13897 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13898 * c-pch.c: Include timevar.h.
13899 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13900 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13901 * ggc-common.c: Include timevar.h.
13902 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13903 * timevar.def (TV_PCH_SAVE): Define.
13904 (TV_PCH_CPP_SAVE): Define.
13905 (TV_PCH_PTR_REALLOC): Define.
13906 (TV_PCH_PTR_SORT): Define.
13907 (TV_PCH_RESTORE): Define.
13908 (TV_PCH_CPP_RESTORE): Define.
13910 2010-04-13 Michael Matz <matz@suse.de>
13912 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13914 (can_reassociate_p): New function.
13915 (break_up_subtract_bb, reassociate_bb): Use it.
13917 2010-04-13 Richard Guenther <rguenther@suse.de>
13920 * builtins.c (c_readstr): Fix assert.
13922 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
13924 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13925 when generating cltd insn.
13927 (*ashl<mode>3_1): Remove special handling for register operand 2.
13928 (*ashlsi3_1_zext): Ditto.
13929 (*ashlhi3_1): Ditto.
13930 (*ashlhi3_1_lea): Ditto.
13931 (*ashlqi3_1): Ditto.
13932 (*ashlqi3_1_lea): Ditto.
13933 (*<shiftrt_insn><mode>3_1): Ditto.
13934 (*<shiftrt_insn>si3_1_zext): Ditto.
13935 (*<shiftrt_insn>qi3_1_slp): Ditto.
13936 (*<rotate_insn><mode>3_1): Ditto.
13937 (*<rotate_insn>si3_1_zext): Ditto.
13938 (*<rotate_insn>qi3_1_slp): Ditto.
13940 2010-04-13 Richard Guenther <rguenther@suse.de>
13942 * tree-ssa-structalias.c (callused_id): Remove.
13943 (call_stmt_vars): New.
13944 (get_call_vi): Likewise.
13945 (lookup_call_use_vi): Likewise.
13946 (lookup_call_clobber_vi): Likewise.
13947 (get_call_use_vi): Likewise.
13948 (get_call_clobber_vi): Likewise.
13949 (make_transitive_closure_constraints): Likewise.
13950 (handle_const_call): Adjust to do per-call call-used handling.
13951 (handle_pure_call): Likewise.
13952 (find_what_var_points_to): Remove general callused handling.
13953 (init_base_vars): Likewise.
13954 (init_alias_vars): Initialize call_stmt_vars.
13955 (compute_points_to_sets): Process call-used and call-clobbered
13956 vars for call statements.
13957 (delete_points_to_sets): Free call_stmt_vars.
13959 2010-04-13 Richard Guenther <rguenther@suse.de>
13961 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13962 Only add RW dependence for dependence distance zero.
13963 Adjust maximal vectorization factor according to dependences.
13964 Move alignment handling ...
13965 (vect_find_same_alignment_drs): ... here. New function.
13966 (vect_analyze_data_ref_dependences): Adjust.
13967 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13968 (vect_analyze_data_refs): Adjust minimal vectorization factor
13969 according to data references.
13970 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13971 dependences before determining the vectorization factor.
13972 Analyze alignment after determining the vectorization factor.
13973 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13974 dependences before alignment.
13975 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13977 (vect_analyze_data_refs): Likewise.
13978 (MAX_VECTORIZATION_FACTOR): New define.
13980 2010-04-13 Duncan Sands <baldrick@free.fr>
13982 * except.h (lang_eh_type_covers): Remove.
13983 * except.c (lang_eh_type_covers): Likewise.
13985 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13986 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13988 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13989 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13990 UNITS_PER_LONG where it is ABI relevant.
13991 (s390_return_addr_rtx): Likewise.
13992 (s390_back_chain_rtx): Likewise.
13993 (s390_frame_area): Likewise.
13994 (s390_frame_info): Likewise.
13995 (s390_initial_elimination_offset): Likewise.
13996 (save_gprs): Likewise.
13997 (s390_emit_prologue): Likewise.
13998 (s390_emit_epilogue): Likewise.
13999 (s390_function_arg_advance): Likewise.
14000 (s390_function_arg): Likewise.
14001 (s390_va_start): Likewise.
14002 (s390_gimplify_va_arg): Likewise.
14003 (s390_function_profiler): Likewise.
14004 (s390_optimize_prologue): Likewise.
14005 (s390_rtx_costs): Likewise.
14006 (s390_secondary_reload): Likewise.
14007 (s390_promote_function_mode): Likewise.
14008 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
14009 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
14010 registers available.
14011 (s390_unwind_word_mode): New function.
14012 (s390_function_value): Split 64 bit values into register pair if
14013 used as return value.
14014 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
14015 function call parameters. Handle parallels.
14016 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
14017 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
14018 (DWARF_CIE_DATA_ALIGNMENT): New macro.
14019 (s390_expand_setmem): Remove unused variable src_addr.
14020 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
14021 deal with 64 bit registers.
14022 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
14023 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
14024 (UNITS_PER_LONG): New macro.
14025 * libjava/include/s390-signal.h: Define extended ucontext
14026 structure containing the upper halfs of the 64 bit registers.
14028 2010-04-13 Simon Baldwin <simonb@google.com>
14030 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
14032 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
14034 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
14035 rvalue on the RHS if the LHS is of a non-renamable type.
14036 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
14038 2010-04-13 Matthias Klose <doko@ubuntu.com>
14040 * gcc.c (cc1_options): Handle -iplugindir before processing
14041 the cc1 spec. Only add -iplugindir once.
14042 (cpp_unique_options): Add -iplugindir option if -fplugin* options
14044 * common.opt (iplugindir): Remove `Separate' property, initialize.
14045 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
14047 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
14048 (distclean): Remove plugin dir.
14049 * doc/invoke.texi: Document -iplugindir.
14051 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
14053 * doc/plugins.texi (Loading Plugins): Document short
14054 -fplugin=foo option.
14055 (Plugin API): Mention default_plugin_dir_name function.
14057 * gcc.c (find_file_spec_function): Add new declaration.
14058 (static_spec_func): Use it for "find-file".
14059 (find_file_spec_function): Add new function.
14060 (cc1_options): Add -iplugindir option if -fplugin* options found.
14062 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
14064 * plugin.c (add_new_plugin): Updated comment, and handle short
14066 (default_plugin_dir_name): Added new function.
14068 * common.opt (iplugindir): New option to set the plugin directory.
14070 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
14072 * config/i386/i386.md (any_rotate): New code iterator.
14073 (rotate_insn): New code attribute.
14075 (SWIM124): New mode iterator.
14076 (<rotate_insn>ti3): New expander.
14077 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
14078 any_rotate code iterator.
14079 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
14080 using any_rotate code iterator and SWIM124 mode iterator.
14081 (ix86_rotlti3): New insn_and_split pattern.
14082 (ix86_rotrti3): Ditto.
14083 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
14084 ix86_rotl{di,ti}3 patterns.
14085 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
14086 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
14087 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
14088 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
14089 code iterator and SWI mode iterator.
14090 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
14091 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
14093 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
14094 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
14095 (bswap rotatert splitter): Add splitter.
14096 (bswap splitter): Macroize splitter using any_rotate code iterator.
14097 Add insn predicate to split only for TARGET_USE_XCHGB or when
14098 optimizing function for size.
14100 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14102 * config/pa/pa.c (emit_move_sequence): Remove use of
14103 deleted variable flag_argument_noalias.
14105 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14107 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
14109 Add to unsupported targets list.
14110 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
14111 sparc*-sun-solaris2.[567]* from target lists.
14112 * configure: Regenerate.
14113 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
14115 Remove Solaris 7 patch references.
14116 (Specific, sparc-sun-solaris2.7): Removed.
14117 (sparc-sun-solaris2*): Update Solaris 7 example.
14118 (sparc64-*-solaris2*): Likewise.
14120 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14122 * config.build (alpha*-dec-osf4*): Remove.
14123 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
14124 of obsolete configurations.
14125 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
14127 * config/alpha/t-osf4: Renamed to ...
14128 * config/alpha/t-osf5: ... this.
14129 * config/alpha/osf.h: Renamed to ...
14130 * config/alpha/osf5.h: ... this.
14131 Merged old osf5.h contents.
14133 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
14134 (EXTRA_SPECS): Removed.
14135 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
14136 reflect removal of Tru64 UNIX V4.0/V5.0 support.
14139 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14141 * doc/contrib.texi (Contributors, Rainer Orth): Update.
14143 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
14146 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
14147 __thiscall convention.
14149 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14151 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
14153 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
14155 2010-04-12 Steve Ellcey <sje@cup.hp.com>
14157 * function.c (assign_parms_initialize_all): Add unused attribute
14160 2010-04-12 Richard Guenther <rguenther@suse.de>
14162 * gsstruct.def (GSS_CALL): New.
14163 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
14164 * gimple.h: Include tree-ssa-alias.h.
14165 (struct gimple_statement_call): New.
14166 (union gimple_statement_struct_d): Add gimple_call member.
14167 (gimple_call_reset_alias_info): Declare.
14168 (gimple_call_use_set): New function.
14169 (gimple_call_clobber_set): Likewise.
14170 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
14171 * gimple.c (gimple_call_reset_alias_info): New function.
14172 (gimple_build_call_1): Call it.
14173 * lto-streamer-in.c (input_gimple_stmt): Likewise.
14174 * tree-inline.c (remap_gimple_stmt): Likewise.
14175 (expand_call_inline): Remove callused handling.
14176 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
14177 * tree-dfa.c (dump_variable): Likewise.
14178 * tree-parloops.c (parallelize_loops): Likewise.
14179 * tree-ssa.c (init_tree_ssa): Likewise.
14180 (delete_tree_ssa): Likewise.
14181 * tree-flow-inline.h (is_call_used): Remove.
14182 * tree-flow.h (struct gimple_df): Remove callused member.
14183 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
14184 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
14185 (ref_maybe_used_by_call_p_1): Simplify.
14186 (call_may_clobber_ref_p_1): Likewise.
14187 * tree-ssa-structalias.c (compute_points_to_sets): Set
14188 the call stmt used and clobbered sets.
14189 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
14190 (find_tail_calls): Verify the tail call.
14192 2010-04-12 Richard Guenther <rguenther@suse.de>
14194 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
14195 single-iteration always-inline inlining.
14196 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
14197 (cgraph_decide_inlining): Do not handle always-inline specially.
14198 (try_inline): Remove always-inline cycle detection special case.
14199 Do not recurse on always-inlines.
14200 (cgraph_early_inlining): Do not iterate if not optimizing.
14201 (cgraph_gate_early_inlining): remove.
14202 (pass_early_inline): Run unconditionally.
14203 (gate_cgraph_decide_inlining): New function.
14204 (pass_ipa_inline): Use it. Do not run the IPA inliner if
14205 not inlining or optimizing.
14206 (cgraph_decide_inlining_of_small_functions): Also consider
14207 always-inline functions.
14208 (cgraph_default_inline_p): Return true for nodes which should
14209 disregard inline limits.
14210 (estimate_function_body_sizes): Assume zero size and time for
14211 nodes which are marked as disregarding inline limits.
14212 (cgraph_decide_recursive_inlining): Do not perform recursive
14213 inlining on always-inline nodes.
14215 2010-04-12 Jakub Jelinek <jakub@redhat.com>
14218 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
14219 for exprs satisfying handled_component_p.
14221 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
14223 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
14224 non-constant aggregate elements.
14226 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
14227 is a real initialization.
14229 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
14232 * c-decl.c (start_function): Move forward check for nested function.
14234 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
14236 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
14237 * config/sh/sh.c: Include reload.h.
14238 (sh_legitimize_reload_address): New.
14239 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
14240 sh_legitimize_reload_address.
14242 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14244 * config/sh/sh.md (*movqi_pop): New insn pattern.
14245 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
14247 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14249 * config/i386/i386.md (any_shiftrt): New code iterator.
14250 (shiftrt_insn): New code attribute.
14252 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
14253 using any_shiftrt code iterator.
14254 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
14255 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
14256 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
14257 pattern from corresponding peephole2 patterns.
14258 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
14259 using any_shiftrt code iterator.
14260 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
14261 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
14262 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
14263 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
14264 *{ashr,lshr}<mode>3_cmp_zext.
14265 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
14267 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14269 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
14271 (*lshr<mode>3_cconly): Ditto.
14273 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
14275 * config/i386/i386.md (lshr<mode>3): Macroize expander from
14276 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14277 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14278 pattern from *lshr{di,ti}3_1 and corresponding splitters using
14280 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14281 from corresponding peephole2 patterns.
14282 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
14283 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
14284 and *lshrdi3_1_rex64 using SWI mode iterator.
14285 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
14286 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
14287 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
14288 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
14289 and *lshrdi3_cmp_rex64 using SWI mode iterator.
14290 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
14291 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
14292 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
14293 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
14296 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
14298 * config/i386/i386.md (ashr<mode>3): Macroize expander from
14299 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
14300 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
14301 pattern from *ashr{di,ti}3_1 and corresponding splitters using
14303 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
14304 from corresponding peephole2 patterns.
14305 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
14306 (ashrsi3_cvt): Rename from ashrsi3_31.
14307 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
14308 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
14309 and x86_64_shift_adj_3 using SWI48 mode iterator.
14310 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
14311 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
14312 and *ashrdi3_1_rex64 using SWI mode iterator.
14313 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
14314 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
14315 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
14316 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
14317 and *ashrdi3_cmp_rex64 using SWI mode iterator.
14318 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
14319 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
14320 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
14321 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
14323 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
14324 * config/i386/i386.c (ix86_split_ashr): Update for renamed
14325 x86_shift<mode>_adj_3 expanders.
14327 2010-04-10 Wei Guozhi <carrot@google.com>
14330 * config/arm/arm.c (arm_pic_static_addr): New function.
14331 (legitimize_pic_address): Call arm_pic_static_addr when it detects
14333 (arm_output_addr_const_extra): Output expression for new pattern.
14334 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
14336 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
14338 * ira-costs.c (record_reg_classes): Ignore alternatives that are
14341 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
14342 * web.c: Include "insn-config.h" and "recog.h".
14343 (union_match_dups): New function.
14344 (web_main): Call it.
14345 (union_defs): Don't try to recognize match_dups.
14347 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
14348 if doing so would replace the entire pattern.
14350 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14354 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
14355 and splitter pattern. Change splitter operand 1 predicate to
14358 2010-04-09 Martin Jambor <mjambor@suse.cz>
14360 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
14361 lattices are addresses of CONST_DECLs with the same initial value.
14362 (ipcp_print_all_lattices): Print values of CONST_DECLs.
14363 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
14365 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
14366 Bernd Schmidt <bernds@codesourcery.com>
14368 * loop-invariant.c (replace_uses): New static function.
14369 (move_invariant_reg): Use it to ensure we can replace the uses.
14371 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14373 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
14375 (picochip_override_options): Enable section anchors only above -O1.
14376 (picochip_reorg): Fixed a couple of build warnings.
14378 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14380 * configure.ac (plugin -rdynamic test): Log result.
14381 * configure: Regenerate.
14382 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
14383 (RDYNAMIC_SPEC): Define.
14384 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
14386 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14388 * configure.ac: Determine Sun ld version numbers.
14389 (comdat_group): Restrict GNU ld version checks to gld.
14390 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
14391 (enable_comdat): Support --enable-comdat.
14392 * configure: Regenerate.
14393 * doc/install.texi (Configuration): Document --enable-comdat.
14395 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14397 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
14398 * config/sol2-gld.h: ... here.
14399 * config.gcc (sparc*-*-solaris2*): Reflect this.
14400 (i[34567]86-*-solaris2*): Use it.
14402 2010-04-09 Steve Ellcey <sje@cup.hp.com>
14404 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
14406 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
14408 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14411 * diagnostic.c (diagnostic_initialize): Initialize
14412 some_warnings_are_errors.
14413 (diagnostic_finish): New.
14414 (diagnostic_action_after_output): Call it before exiting.
14415 (diagnostic_report_diagnostic): Do not print message here. Set
14416 some_warnings_are_errors.
14417 * diagnostic.h (diagnostic_context): Delete
14418 issue_warnings_are_errors_message. Add some_warnings_are_errors.
14419 (diagnostic_finish): Declare.
14420 * toplev.c (toplev_main): Call it before exit.
14422 2010-04-09 Jason Merrill <jason@redhat.com>
14425 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
14426 for incomplete type.
14429 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
14430 based on a warning flag.
14432 2010-04-09 Richard Guenther <rguenther@suse.de>
14434 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
14436 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
14439 * varasm.c (default_assemble_visibility): Wrap vars that are
14440 set, but unused, by targets without GAS.
14441 * config/rs6000/rs6000.c (paired_emit_vector_compare):
14442 Remove set, but unused, vars.
14443 (rs6000_legitimize_tls_address): Likewise.
14444 (altivec_expand_dst_builtin): Likewise.
14445 * config/darwin.c (machopic_classify_symbol): Likewise.
14446 (machopic_indirection_name): Likewise.
14448 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
14450 * config/i386/i386.md (DWI): New mode iterator.
14451 (S): New mode attribute.
14452 (shift_operand): Ditto.
14453 (shift_immediate_operand): Ditto.
14454 (ashl_input_operand): Ditto.
14455 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
14456 using SDWIM mode iterator.
14457 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
14458 pattern from *ashl{di,ti}3_1 and corresponding splitters using
14460 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
14461 from corresponding peephole2 patterns.
14462 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
14463 and x86_64_shift_adj_1 using SWI48 mode iterator.
14464 (x86_shift<mode>_adj_2): Ditto.
14465 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
14466 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
14467 using SWI48 mode iterator.
14468 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
14469 *ashldi3_cmp_rex64 using SWI mode iterator.
14470 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
14471 *ashldi3_cconly_rex64 using SWI mode iterator.
14472 * config/i386/i386.c (ix86_split_ashl): Update for renamed
14473 x86_shift<mode>_adj_{1,2}.
14474 (ix86_split_ashr): Ditto.
14475 (ix86_split_lshr): Ditto.
14477 2010-04-09 Richard Guenther <rguenther@suse.de>
14479 * target.h (builtin_conversion): Pass in input and output types.
14480 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
14481 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
14482 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
14483 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
14485 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
14487 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
14489 2010-04-09 Richard Guenther <rguenther@suse.de>
14492 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
14494 2010-04-09 Richard Guenther <rguenther@suse.de>
14496 * tree-vectorizer.h (struct _stmt_vec_info): Document
14497 that vectype is the type of the LHS.
14498 (supportable_widening_operation, supportable_narrowing_operation):
14499 Get both input and output vector types as arguments.
14500 (vect_is_simple_use_1): Declare.
14501 (get_same_sized_vectype): Likewise.
14502 * tree-vect-loop.c (vect_determine_vectorization_factor):
14503 Set STMT_VINFO_VECTYPE to the vector type of the def.
14504 (vectorizable_reduction): Adjust.
14505 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
14506 Adjust. Specify the output vector type.
14507 (vect_pattern_recog_1): Adjust.
14508 * tree-vect-stmts.c (get_same_sized_vectype): New function.
14509 (vectorizable_call): Adjust.
14510 (vectorizable_conversion): Likewise.
14511 (vectorizable_operation): Likewise.
14512 (vectorizable_type_demotion): Likewise.
14513 (vectorizable_type_promotion): Likewise.
14514 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
14516 (vect_is_simple_use_1): New function.
14517 (supportable_widening_operation): Get both input and output
14519 (supportable_narrowing_operation): Likewise.
14520 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
14522 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
14524 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
14525 __thiscall and _thiscall as predefined macros.
14526 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
14527 thiscall attribute handling.
14528 (ix86_comp_type_attributes): Likewise.
14529 (ix86_function_regparm): Likewise.
14530 (ix86_return_pops_args): Likewise.
14531 (init_cumulative_args): Likewise.
14532 (find_drap_reg): Likewise.
14533 (ix86_static_chain): Likewise.
14534 (x86_this_parameter): Likewise.
14535 (x86_output_mi_thunk): Likewise.
14536 (ix86_attribute_table): Add description for thiscall attribute.
14537 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
14538 * doc/extend.texi: Add documentation for thiscall.
14540 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14543 * c.opt (Wint-to-pointer-cast): Available in C++.
14544 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
14546 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
14548 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
14549 * calls.c (expand_call): Pass the function type to aggregate_value_p.
14550 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
14551 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
14552 function type instead. Reorder and simplify checks.
14554 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
14556 2010-04-08 Jing Yu <jingyu@google.com>
14557 Zdenek Dvorak <ook@ucw.cz>
14559 PR tree-optimization/42720
14560 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
14561 loop unswitch conditions here from ...
14562 (tree_unswitch_single_loop): ... here.
14564 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14566 * tree-if-conv.c: Fix comments and simplify logic.
14568 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
14570 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
14571 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
14572 (main_tree_if_conversion): Update call to tree_if_conversion.
14574 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
14577 * doc/invoke.texi (-b,-V): Delete.
14578 * doc/tm.texi: Do not mention -b.
14579 * gcc.c (display_help): Delete -b and -V.
14580 (process_command): Delete -b and -V.
14581 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
14583 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
14584 Wolfgang Gellerich <gellerich@de.ibm.com>
14586 Implement target hook for loop unrolling
14587 * target.h (loop_unroll_adjust): Add a new target hook function.
14588 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
14589 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
14590 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
14591 (s390_loop_unroll_adjust): Implement the new target hook for s390.
14592 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
14594 (decide_unroll_stupid): Likewise.
14596 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14599 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
14601 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14603 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
14604 (Specific, *-*-solaris2*): Likewise.
14605 Don't prefer Sun as over GNU as.
14607 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
14609 * config/s390/s390.c (override_options): Adjust the z10 defaults
14610 for max-unroll-times, max-completely-peeled-insns
14611 and max-completely-peel-times.
14613 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14615 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
14616 instructions for z10.
14617 (s390_expand_setmem): Likewise.
14618 (s390_expand_cmpmem): Likewise.
14620 2010-04-08 Richard Guenther <rguenther@suse.de>
14622 PR tree-optimization/43679
14623 * tree-ssa-pre.c (eliminate): Only propagate copies.
14625 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14628 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
14629 set but not used variable warning.
14631 2010-04-08 Wei Guozhi <carrot@google.com>
14634 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
14635 (arm_size_rtx_costs): Call the new function when optimized for size.
14637 2010-04-08 Jakub Jelinek <jakub@redhat.com>
14640 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
14641 op0 is not a MEM, just return NULL instead of assertion
14643 (discover_nonconstant_array_refs): Don't walk debug stmts.
14645 2010-04-08 Doug Kwan <dougkwan@google.com>
14647 * configure.ac: Recognize gold and do not use its version number
14648 to test ld features.
14649 * configure: Regenerate.
14651 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
14653 PR middle-end/40815
14654 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14655 (negate_value): Move code to push elements to broken_up_substracts ...
14656 (eliminate_plus_minus_pair): ... here. Push operands that have no
14657 negative pair to plus_negates.
14658 (repropagate_negates, init_reassoc, fini_reassoc): Update.
14660 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14662 * doc/install.texi (Configuration): Move description of
14663 --enable-lto, --with-libelf*, --enable-gold from Java section to
14666 * doc/generic.texi (Working with declarations)
14667 (Function Properties, C and C++ Trees): Fix typos.
14668 * doc/sourcebuild.texi (Top Level): Likewise.
14670 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14673 * tree.h (DECL_READ_P): Define.
14674 (struct tree_decl_common): Add decl_read_flag.
14675 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14676 a set but not used warning.
14677 (merge_decls): Merge DECL_READ_P flag.
14678 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14679 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14680 * c-common.c (handle_used_attribute, handle_unused_attribute):
14682 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14684 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14686 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14687 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14688 c_parser_binary_expression, c_parser_cast_expression,
14689 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14690 Call default_function_array_read_conversion instead of
14691 default_function_array_conversion where needed.
14692 (c_parser_unary_expression, c_parser_conditional_expression,
14693 c_parser_postfix_expression_after_primary, c_parser_initelt):
14694 Likewise. Call mark_exp_read where needed.
14695 (c_parser_statement_after_labels, c_parser_asm_operands,
14696 c_parser_typeof_specifier, c_parser_sizeof_expression,
14697 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14699 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14701 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14702 (warn_unused_but_set_parameter): Default to warn_unused
14704 * doc/invoke.texi: Document -Wunused-but-set-variable and
14705 -Wunused-but-set-parameter.
14707 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14708 used count variable.
14709 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14710 when operandN variables aren't used in the body of the expander
14712 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14713 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14714 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14715 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14716 FOR_EACH_IMM_USE_ON_STMT): Likewise.
14717 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14718 * tree.c (PROCESS_ARG): Likewise.
14720 2010-04-07 Simon Baldwin <simonb@google.com>
14722 * diagnostic.h (diagnostic_override_option_index): New macro to
14723 set a diagnostic's option_index.
14724 * c-tree.h (c_cpp_error): Add warning reason argument.
14725 * opts.c (_warning_as_error_callback): New.
14726 (register_warning_as_error_callback): Store callback for
14727 warnings enabled via enable_warning_as_error.
14728 (enable_warning_as_error): Call callback, minor code tidy.
14729 * opts.h (register_warning_as_error_callback): Declare.
14730 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14731 response to -Werror=.
14732 (c_common_init_options): Register warning_as_error_callback in opts.c.
14733 * common.opt: Add -Wno-cpp option.
14734 * c-common.c (struct reason_option_codes_t): Map cpp warning
14735 reason codes to gcc option indexes.
14736 * (c_option_controlling_cpp_error): New function, lookup the gcc
14737 option index for a cpp warning reason code.
14738 * (c_cpp_error): Add warning reason argument, call
14739 c_option_controlling_cpp_error for diagnostic_override_option_index.
14740 * doc/invoke.texi: Document -Wno-cpp.
14742 2010-04-07 Richard Guenther <rguenther@suse.de>
14744 * ipa-reference.c (mark_load): Use get_base_address.
14745 (mark_store): Likewise.
14747 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14748 inserting GIMPLE_NOPs into the IL.
14749 * tree-ssa-structalias.c (get_constraint_for_component_ref):
14750 Explicitly strip handled components and indirect references.
14752 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14753 folding address expressions.
14754 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14755 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14756 operand_equal_p to compare decls.
14757 (ptr_deref_may_alias_decl_p): Likewise.
14758 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14759 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14760 Handle reversed comparison ops.
14761 * tree-sra.c (asm_visit_addr): Use get_base_address.
14762 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14763 * ipa-reference.c (mark_address): Use get_base_address.
14765 2010-04-07 Richard Guenther <rguenther@suse.de>
14767 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14768 Propagate constants everywhere.
14770 2010-04-07 Jakub Jelinek <jakub@redhat.com>
14773 * tree.c (MAX_INT_CACHED_PREC): Define.
14774 (nonstandard_integer_type_cache): New array.
14775 (build_nonstandard_integer_type): Cache results for precision
14776 <= MAX_INT_CACHED_PREC.
14778 2010-04-07 Richard Guenther <rguenther@suse.de>
14780 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14781 -fargument-noalias-global, -fargument-noalias-anything): Remove.
14782 * common.opt: Likewise.
14783 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14784 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14785 (nonoverlapping_memrefs_p): Likewise.
14786 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14787 * opts.c (common_handle_option): Handle OPT_fargument_alias,
14788 OPT_fargument_noalias, OPT_fargument_noalias_anything and
14789 OPT_fargument_noalias_global for backward compatibility.
14791 2010-04-07 Richard Guenther <rguenther@suse.de>
14793 PR tree-optimization/43270
14794 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14795 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14796 * tree-ssa-pre.c (phi_translate_1): Adjust.
14797 (fully_constant_expression): Split out vn_reference handling to ...
14798 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14799 Fold reads from constant strings.
14800 (vn_reference_lookup): Handle fully constant references.
14801 (vn_reference_lookup_pieces): Likewise.
14802 * Makefile.in (expmed.o-warn): Add -Wno-error.
14804 2010-04-07 Martin Jambor <mjambor@suse.cz>
14806 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14808 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
14811 * gcc.c: Add -static-libstdc++ to list of recognized options.
14813 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14815 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14817 2010-04-07 Richard Guenther <rguenther@suse.de>
14819 PR middle-end/42617
14820 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14821 bases build simple mem attributes to retain points-to information.
14823 2010-04-07 Richard Guenther <rguenther@suse.de>
14825 PR middle-end/42617
14826 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14827 preserve points-to related information.
14829 2010-04-07 Richard Guenther <rguenther@suse.de>
14831 PR middle-end/42617
14832 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14833 discard plain indirect references.
14834 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14835 * tree.c (tree_nop_conversion): Likewise.
14837 2010-04-07 Dodji Seketeli <dodji@redhat.com>
14840 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14842 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
14844 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14845 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14847 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14849 * tree-if-conv.c: Fix indentation and comments.
14851 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14853 * tree-if-conv.c: Sort static functions in topological order.
14855 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
14857 * tree-if-conv.c: Fix indentation and comments.
14859 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14861 PR middle-end/43519
14862 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14863 lang_hooks.types.type_for_size instead of
14864 build_nonstandard_integer_type.
14865 When converting an unsigned type to signed, double its precision.
14866 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14867 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14868 (graphite_create_new_loop_guard): When ub + 1 wraps around,
14871 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14873 PR middle-end/43519
14874 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14875 POINTER_PLUS_EXPR for pointer types.
14877 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14879 PR middle-end/43519
14880 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14881 * graphite-clast-to-gimple.c: Include langhooks.h.
14882 (max_signed_precision_type): New.
14883 (max_precision_type): Takes two types as arguments.
14884 (precision_for_value): New.
14885 (precision_for_interval): New.
14886 (gcc_type_for_interval): New.
14887 (gcc_type_for_value): New.
14888 (gcc_type_for_clast_term): New.
14889 (gcc_type_for_clast_red): New.
14890 (gcc_type_for_clast_bin): New.
14891 (gcc_type_for_clast_expr): Split up into several functions.
14892 (gcc_type_for_clast_eq): Rewritten.
14893 (compute_bounds_for_level): New.
14894 (compute_type_for_level_1): New.
14895 (compute_type_for_level): New.
14896 (gcc_type_for_cloog_iv): Removed.
14897 (gcc_type_for_iv_of_clast_loop): Rewritten.
14898 (graphite_create_new_loop): Compute the lower and upper bound types
14899 with gcc_type_for_clast_expr.
14900 (graphite_create_new_loop_guard): Same.
14901 (find_cloog_iv_in_expr): Removed.
14902 (compute_cloog_iv_types_1): Removed.
14903 (compute_cloog_iv_types): Removed.
14904 (gloog): Do not call compute_cloog_iv_types.
14905 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14906 GBB_CLOOG_IV_TYPES.
14907 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14908 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14909 (GBB_CLOOG_IV_TYPES): Removed.
14911 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14913 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14914 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14915 (detect_commutative_reduction): Same.
14917 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14919 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14920 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
14922 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14923 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14924 (rewrite_commutative_reductions_out_of_ssa): Same.
14925 * passes.c (execute_function_todo): Call verify_ssa for every pass
14926 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
14927 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14928 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14929 with an extra argument.
14930 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
14931 verify_ssa only when the extra argument is true.
14932 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14933 with an extra argument.
14934 (tree_transform_and_unroll_loop): Same.
14936 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
14938 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14939 for all the passes of the LNO having LOOP_CLOSED_SSA.
14940 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14941 * tree-loop-distribution.c (pass_loop_distribution): Same.
14942 * tree-pass.h (TODO_verify_loops): Removed.
14943 * tree-ssa-loop.c (pass_tree_loop_init): Same.
14945 (pass_tree_unswitch): Same.
14946 (pass_predcom): Same.
14947 (pass_vectorize): Same.
14948 (pass_linear_transform): Same.
14949 (pass_graphite_transforms): Same.
14950 (pass_iv_canon): Same.
14951 (pass_complete_unroll): Same.
14952 (pass_complete_unrolli): Same.
14953 (pass_parallelize_loops): Same.
14954 (pass_loop_prefetch): Same.
14955 (pass_iv_optimize): Same.
14957 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
14959 PR middle-end/32824
14960 * passes.c (init_optimization_passes): Move pass_lim before
14961 pass_copy_prop and pass_dce_loop.
14963 2010-04-06 Jakub Jelinek <jakub@redhat.com>
14966 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14967 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14968 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14969 MULTI_* defines for 4 argument vpermil2p* builtins.
14971 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14973 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14974 * config/i386/i386.c (x86_maybe_negate_const_int): New.
14975 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14976 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14977 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14978 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14979 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14980 Use x86_maybe_negate_const_int to output insn mnemonic.
14981 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
14982 check from instruction predicate. Update comments.
14983 * config/i386/sync.md (sync_add<mode>): Use
14984 x86_maybe_negate_const_int to output insn mnemonic.
14986 2010-04-06 Jan Hubicka <jh@suse.cz>
14988 PR tree-optimization/42906
14989 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14990 IGNORE_SELF argument. Set visited_control_parents for fully
14992 (find_obviously_necessary_stmts): Update call of
14993 mark_control_dependent_edges_necessary.
14994 (propagate_necessity): Likewise. Handle PHI edges more curefully.
14996 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
14998 * config/i386/i386.md: Remove comment about 'e' and 'E'
15001 2010-04-06 Richard Guenther <rguenther@suse.de>
15003 PR tree-optimization/43627
15004 * tree-vrp.c (extract_range_from_unary_expr): Widenings
15005 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
15008 2010-04-06 Jakub Jelinek <jakub@redhat.com>
15010 * BASE-VER: Change to 4.6.0.
15013 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
15016 2010-04-06 Richard Guenther <rguenther@suse.de>
15018 PR middle-end/43661
15019 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
15021 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15023 * doc/invoke.texi (Optimize Options): Document that LTO
15024 won't remove object access purely due to incompatible
15027 2010-04-04 Matthias Klose <doko@ubuntu.com>
15029 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
15030 Initialize variable.
15032 2010-04-03 Richard Guenther <rguenther@suse.de>
15034 PR middle-end/42509
15035 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
15036 require a non-NULL MEM_OFFSET.
15038 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
15040 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
15041 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
15042 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
15043 config/alpha/predicates.md, config/arm/arm.md,
15044 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
15045 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
15046 config/darwin9.h, config/darwin.c, config/darwin.h,
15047 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
15048 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
15049 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
15050 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
15051 config/mips/mips.md, config/mn10300/mn10300.c,
15052 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
15053 config/rs6000/aix.h, config/rs6000/dfp.md,
15054 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
15055 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
15056 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
15057 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
15058 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
15059 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
15060 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
15061 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
15062 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
15063 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
15064 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
15065 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
15066 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
15067 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
15068 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
15069 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
15070 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
15071 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
15072 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
15073 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
15074 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
15075 opt-functions.awk, opth-gen.awk, params.def, passes.c,
15076 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
15077 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
15078 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
15079 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
15080 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
15081 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
15082 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
15083 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
15084 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
15085 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
15086 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
15087 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
15088 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
15089 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
15091 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15094 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
15095 * aclocal.m4: Regenerate.
15097 2010-04-02 Richard Guenther <rguenther@suse.de>
15099 PR tree-optimization/43629
15100 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
15101 if we have seen a constant value.
15103 2010-04-02 Joseph Myers <joseph@codesourcery.com>
15105 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
15107 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
15110 * arm.c (legitimize_tls_address): Adjust call to
15111 gen_tls_load_dot_plus_four.
15112 (arm_note_pic_base): New function.
15113 (arm_cannot_copy_insn_p): Use it.
15114 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
15117 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15122 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15124 * Makefile.in ($(out_object_file)): Depend on
15125 gt-$(basename $(notdir $(out_file))).h.
15127 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
15129 * config.gcc (lm32-*-rtems*): Add t-lm32.
15131 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
15133 * config.gcc: Add lm32-*-rtems*.
15134 * config/lm32/rtems.h: New file.
15136 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
15139 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
15141 2010-04-01 Jakub Jelinek <jakub@redhat.com>
15143 * dwarf2out.c (output_compilation_unit_header): For
15144 -gdwarf-4 use version 4 instead of version 3.
15145 (output_line_info): For version 4 and above emit additional
15146 maximum ops per insn header field.
15147 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
15149 * dwarf2out.c (is_c_family, is_java): Remove.
15150 (lower_bound_default): New function.
15151 (add_bound_info, gen_descr_array_type_die): Use it.
15153 2010-04-01 Dodji Seketeli <dodji@redhat.com>
15156 * dwarf2out.c (gen_variable_die): Allow debug info for variable
15157 re-declaration when it happens in a function.
15159 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
15161 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
15162 (cgraph_remove_function_insertion_hook): Same.
15163 (cgraph_call_function_insertion_hooks): Same.
15165 2010-04-01 Richard Guenther <rguenther@suse.de>
15167 PR middle-end/43614
15168 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
15169 and TREE_THIS_VOLATILE.
15170 (copy_ref_info): Likewise.
15171 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
15172 * tree.c (build6_stat): Ignore side-effects of all but arg5
15173 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
15176 2010-04-01 Richard Guenther <rguenther@suse.de>
15178 PR tree-optimization/43607
15179 * ipa-type-escape.c (check_call): Do not access non-existing
15182 2010-04-01 Richard Guenther <rguenther@suse.de>
15184 PR middle-end/43602
15186 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15187 Jack Howarth <howarth@bromo.med.uc.edu>
15189 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15192 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15194 * doc/install.texi (Prerequisites): Document libelf usability on
15195 IRIX 5/6 and Solaris 2.
15196 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
15197 Update GNU as, GNU ld requirements.
15198 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
15199 Document Sun Studio compiler download.
15200 Update and simplify as, ld recommendations.
15201 (Specific, *-*-solaris2.7): Note obsoletion, removal.
15203 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15205 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
15206 with_tune_32 to pentium4.
15208 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
15210 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
15212 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15214 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
15215 obsoletion, removal.
15217 Document GNU as requirement.
15218 Update configure requirements.
15219 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
15220 Recomment IRIX 6.5.18+.
15221 Document IDF/IDL requirement.
15222 Document GNU as requirement.
15223 Document GNU ld bootstrap failure.
15224 Remove freeware.sgi.com reference.
15226 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15228 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
15229 UNIX V4.0, V5.0 obsoletion, removal.
15230 Remove --with-gc=simple reference.
15231 Update VM requirements during bootstrap.
15232 Remove -oldas bootstrap description.
15233 Update binutils reference.
15234 Remove comparison failure note.
15236 2010-03-31 Richard Guenther <rguenther@suse.de>
15237 Zdenek Dvorak <ook@ucw.cz>
15238 Sebastian Pop <sebastian.pop@amd.com>
15240 PR middle-end/43464
15241 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
15242 with multiple arguments.
15243 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
15245 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15247 * graphite-dependences.c (print_pddr): Call print_pdr with an
15249 * graphite-poly.c (debug_pdr): Add an extra argument for the
15252 (print_pbb_domain): Same.
15254 (print_scop_context): Same.
15255 (print_scop): Same.
15256 (print_cloog): Same.
15257 (debug_pbb_domain): Same.
15259 (print_pdrs): Same.
15260 (debug_pdrs): Same.
15261 (debug_scop_context): Same.
15262 (debug_scop): Same.
15263 (debug_cloog): Same.
15264 (print_scop_params): Same.
15265 (debug_scop_params): Same.
15266 (print_iteration_domain): Same.
15267 (print_iteration_domains): Same.
15268 (debug_iteration_domain): Same.
15269 (debug_iteration_domains): Same.
15270 (print_scattering_function): Same.
15271 (print_scattering_functions): Same.
15272 (debug_scattering_function): Same.
15273 (debug_scattering_functions): Same.
15274 * graphite-poly.h (debug_pdr): Update declaration.
15276 (print_pbb_domain): Same.
15278 (print_scop_context): Same.
15279 (print_scop): Same.
15280 (print_cloog): Same.
15281 (debug_pbb_domain): Same.
15283 (print_pdrs): Same.
15284 (debug_pdrs): Same.
15285 (debug_scop_context): Same.
15286 (debug_scop): Same.
15287 (debug_cloog): Same.
15288 (print_scop_params): Same.
15289 (debug_scop_params): Same.
15290 (print_iteration_domain): Same.
15291 (print_iteration_domains): Same.
15292 (debug_iteration_domain): Same.
15293 (debug_iteration_domains): Same.
15294 (print_scattering_function): Same.
15295 (print_scattering_functions): Same.
15296 (debug_scattering_function): Same.
15297 (debug_scattering_functions): Same.
15299 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15301 * graphite-poly.c (print_scattering_function_1): New.
15302 (print_scattering_function): Call it.
15303 (print_scop_params): Remove spaces at the end of lines.
15304 (print_cloog): New.
15305 (debug_cloog): New.
15306 * graphite-poly.h (print_cloog): Declared.
15307 (debug_cloog): Declared.
15309 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15311 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
15313 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
15314 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
15315 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
15316 to switch between adding the IV bump in loop->latch or in loop->header.
15318 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
15320 * graphite-poly.c (print_scattering_function): Pretty print following
15321 the scoplib format.
15323 (print_pbb_domain): Same.
15324 (dump_gbb_cases): Same.
15325 (dump_gbb_conditions): Same.
15326 (print_pdrs): Same.
15328 (print_scop_params): Same.
15329 (print_scop_context): Same.
15330 (print_scop): Same.
15331 (print_pbb_body): New.
15332 (lst_indent_to): New.
15333 (print_lst): Start new lines with a #.
15334 * graphite-poly.h (pbb_bb): New.
15335 (pbb_index): Use pbb_bb.
15336 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
15338 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
15340 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15342 * dwarf2out.c (size_of_die): For -gdwarf-4 use
15343 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
15344 and 0 instead of 1 for dw_val_class_flag.
15345 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
15346 dw_val_class_range_list, dw_val_class_loc_list,
15347 dw_val_class_lineptr and dw_val_class_macptr, use
15348 DW_FORM_flag_present for dw_val_class_flag and
15349 DW_FORM_exprloc for dw_val_class_loc.
15350 (output_die): For -gdwarf-4 print dw_val_class_loc
15351 size as uleb128 instead of 1 or 2 bytes and don't print
15352 anything for dw_val_class_flag.
15354 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
15355 instead of cselib_lookup following by tweaking locs->setting_insn.
15358 * cselib.c (cselib_process_insn): Clear cselib_current_insn
15359 even before returning from label, setjmp call or volatile asm
15362 2010-03-31 Richard Guenther <rguenther@suse.de>
15364 PR middle-end/43600
15365 * cgraphunit.c (cgraph_output_in_order): Do not allocate
15366 temporary data on stack.
15368 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15370 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
15371 (PUSHSECTION_ASM_OP): Remove.
15372 (POPSECTION_ASM_OP): Remove.
15373 (PUSHSECTION_FORMAT): Remove.
15374 * config/sol2.h (PUSHSECTION_FORMAT): Define.
15375 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
15376 * config/sol2.c (solaris_output_init_fini): Use it.
15378 2010-03-31 Jie Zhang <jie@codesourcery.com>
15381 * opt-functions.awk (var_type_struct): Use signed char type
15382 for simple variables.
15384 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15386 * config/sol2.c: Include output.h.
15387 (solaris_assemble_visibility): New function.
15388 * config/t-sol2 (sol2.o): Add output.h dependency.
15389 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
15390 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
15393 2010-03-31 Jakub Jelinek <jakub@redhat.com>
15396 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
15397 V2SImode or XFmode on PRE_DEC.
15400 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
15403 2010-03-31 Jie Zhang <jie@codesourcery.com>
15406 * reload.h (caller_save_initialized_p): Declare.
15407 * toplev.c (backend_init_target): Don't call
15408 init_caller_save but set caller_save_initialized_p to false.
15409 * caller-save.c (caller_save_initialized_p): Define.
15410 (init_caller_save): Check caller_save_initialized_p.
15411 * ira.c (ira): Call init_caller_save if flag_caller_saves.
15413 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15416 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
15417 and soft-fp/t-softfp to tmake_file.
15418 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
15419 (LIBGCC2_TF_CEXT): Define.
15422 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
15425 * cselib.c (n_useless_values): Document handling of debug locs.
15426 (n_useless_debug_values, n_debug_values): New variables.
15427 (new_elt_loc_list): Don't add to debug values, keep count.
15428 (promote_debug_loc): New.
15429 (cselib_reset_table): Zero new variables.
15430 (entry_and_rtx_equal_p): Promote debug locs.
15431 (discard_useless_locs): Increment n_useless_debug_values for
15433 (remove_useless_values): Adjust n_useless_values and n_debug_values
15434 with n_useless_debug_values.
15435 (add_mem_for_addr): Promote debug locs.
15436 (cselib_lookup_mem): Likewise.
15437 (cselib_lookup_addr): Renamed to...
15438 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
15439 (cselib_log_lookup): ... this. Turn into...
15440 (cselib_lookup_addr): ... new wrapper.
15441 (cselib_lookup_from_insn): New.
15442 (cselib_invalidate_regno): Increment n_useless_debug_values for
15444 (cselib_invalidate_mem): Likewise.
15445 (cselib_process_insn): Take n_deleted and n_debug_values into
15446 account to guard remove_useless_value call.
15447 (cselib_finish): Zero n_useless_debug_values.
15448 * cselib.h (cselib_lookup_from_insn): Declare.
15449 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
15450 (sched_analyze_2): Likewise.
15452 2010-03-30 Jakub Jelinek <jakub@redhat.com>
15454 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
15456 (adjust_mems): Replace narrowing SUBREG of expression containing
15457 just PLUS, MINUS, MULT and ASHIFT of registers and constants
15458 with operations in the narrower mode.
15461 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
15462 regs_invalidated_by_call instead all call_used_reg_set registers.
15464 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
15466 PR middle-end/43430
15467 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
15468 pointer comparisons with types_compatible_p.
15469 * tree-vect-stmts.c (vectorizable_call): Same.
15470 (vectorizable_condition): Same.
15472 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15474 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
15475 stack check if the mask would be zero.
15477 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
15478 Jack Howarth <howarth@bromo.med.uc.edu>
15480 * tree-profile.c (tree_init_ic_make_global_vars): Make static
15483 2010-03-30 Joseph Myers <joseph@codesourcery.com>
15486 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
15488 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
15489 Include ___unordxf2 and ___unordtf2.
15490 * config/i386/libgcc-glibc.ver: Do not define inheritance from
15493 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
15495 * config/lm32/t-lm32: New file.
15496 * config.gcc: Use the above file when targetting lm32.
15498 2010-03-28 Duncan Sands <baldrick@free.fr>
15500 * Makefile.in (PLUGIN_HEADERS): Add except.h.
15502 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15504 PR middle-end/43431
15505 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
15506 Improve vectorization cost model diagnostic.
15508 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
15510 PR middle-end/43436
15511 * tree-vect-data-refs.c (vect_analyze_data_refs): When
15512 compute_data_dependences_for_loop returns false, early exit
15513 and output an extra diagnostic for the failed data reference
15516 2010-03-29 Richard Guenther <rguenther@suse.de>
15518 PR tree-optimization/43560
15519 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
15520 (can_sm_ref_p): Treat stores to readonly locations as trapping.
15522 2010-03-29 Jie Zhang <jie@codesourcery.com>
15525 * toplev.c (process_options): Set optimization_default_node
15526 and optimization_current_node.
15527 * opts.c (decode_options): Don't set optimization_default_node
15528 and optimization_current_node.
15530 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
15532 * config/rtems.h: Abandon -qrtems_debug.
15534 2010-03-28 Jan Hubicka <jh@suse.cz>
15536 PR tree-optimization/43505
15537 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
15538 map should not be copied.
15540 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15542 PR middle-end/41674
15543 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
15544 cdtors, set DECL_PRESERVE_P.
15545 * ipa.c (cgraph_externally_visible_p): Return true if declaration
15546 should be preseved.
15548 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
15550 PR tree-optimization/43528
15551 * stor-layout.c (place_field): Check that constant fits into
15552 unsigned HWI when skipping calculation of MS bitfield layout.
15554 2010-03-27 Jan Hubicka <jh@suse.cz>
15556 PR middle-end/43391
15557 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
15558 notice_global_symbol work.
15560 2010-03-27 Jakub Jelinek <jakub@redhat.com>
15562 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
15563 instead of dwarf2out_decl.
15564 (struct var_loc_node): Remove section_label field.
15565 (dwarf2out_function_decl): New function.
15566 (dwarf2out_var_location): Don't set section_label field.
15567 (dwarf2out_begin_function): Don't empty decl_loc_table here.
15569 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15571 PR tree-optimization/43544
15572 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15573 First argument for builtin vectorized function hook is now a
15574 tree to be able to distinguish between machine specific and
15576 * targhooks.c (default_builtin_vectorized_function): Ditto.
15577 * targhooks.h (default_builtin_vectorized_function): Ditto.
15578 * target.h (struct gcc_target): Ditto.
15579 * tree-vect-stmts.c (vectorizable_function): Ditto.
15580 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
15581 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
15584 2010-03-26 Joseph Myers <joseph@codesourcery.com>
15587 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
15588 nested binding iff it is a FUNCTION_DECL.
15589 (store_parm_decls_newstyle): Pass nested=true to bind for
15590 FUNCTION_DECLs amongst parameters.
15592 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15594 * var-tracking.c (vt_expand_loc_callback): Don't run
15595 cselib_expand_value_rtx_cb in dummy mode if
15596 cselib_dummy_expand_value_rtx_cb returned false.
15598 * var-tracking.c (emit_note_insn_var_location): For one part
15599 notes with offset 0, don't add EXPR_LIST around the location.
15600 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
15601 add_location_or_const_value_attribute): Adjust for that change.
15604 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
15605 into first operand and location into second.
15606 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
15607 dw_cfi_oprnd_loc for DW_CFA_expression.
15608 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
15609 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
15610 assume first argument is regnum and second argument is location.
15612 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15615 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
15616 of scratch register to DImode. Split to DImode comparison operator.
15617 Use SImode subreg of scratch register in the multiplication.
15618 (*cmp_sadd_sidi): Ditto.
15619 (*cmp_ssub_si): Ditto.
15620 (*cmp_ssub_sidi): Ditto.
15622 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
15625 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
15626 Remove invalid assert and wrong comment.
15628 2010-03-26 Jakub Jelinek <jakub@redhat.com>
15631 * flags.h (final_insns_dump_p): New extern.
15632 * final.c (final_insns_dump_p): New variable.
15633 (rest_of_clean_state): Set it before -fdump-final-insns=
15634 dumping, clear afterwards.
15635 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
15636 MEM_ALIAS_SET on MEMs.
15638 2010-03-26 David S. Miller <davem@davemloft.net>
15640 * configure.ac: Fix sparc GOTDATA_OP bug check.
15641 * configure: Rebuild.
15643 2010-03-26 Alan Modra <amodra@gmail.com>
15645 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15647 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15649 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15650 TLS_SECTION_ASM_FLAG.
15652 2010-03-25 Jakub Jelinek <jakub@redhat.com>
15655 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15656 Clear first_function_block_is_cold.
15659 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15660 argument if the argument is truth_value_p.
15662 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15664 * config/rs6000/constraints.md: Update copyright year for my changes.
15667 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15668 used in reg+reg addressing, swap registers.
15670 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15673 * target.h (struct gcc_target): Add code_end hook.
15674 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15675 if not yet defined.
15676 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15677 * toplev.c (compile_file): Call targetm.asm_out.code_end
15678 hook before unwind info/debug info output.
15679 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15680 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15681 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15682 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15683 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15684 * config/i386/i386.c (ix86_file_end): Renamed to...
15685 (ix86_code_end): ... this. Make static. Don't call
15686 file_end_indicate_exec_stack. Emit unwind info using
15687 final_start_function/final_end_function.
15688 (darwin_x86_file_end): Remove.
15689 (TARGET_ASM_CODE_END): Define.
15690 * config/i386/i386.h (TARGET_ASM_FILE_END,
15691 NEED_INDICATE_EXEC_STACK): Don't define.
15692 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15693 (TARGET_ASM_FILE_END): Define to darwin_file_end.
15694 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15695 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15698 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15699 at the beginning and final_end_function at the end.
15700 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15702 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15704 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15705 and Sun as TLS syntax.
15706 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15707 * configure: Regenerate.
15708 * config.in: Regenerate.
15709 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15710 (default_elf_asm_named_section): Use it.
15711 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15712 (i386_output_dwarf_dtprel): Likewise.
15713 (output_addr_const_extra): Likewise.
15714 (output_pic_addr_const): Lowercase @GOTTPOFF.
15715 (output_addr_const_extra): Likewise.
15716 (output_pic_addr_const): Lowercase @GOTNTPOFF.
15717 (output_addr_const_extra): Likewise.
15718 (output_pic_addr_const): Lowercase @INDNTPOFF.
15719 (output_addr_const_extra): Likewise.
15720 (output_pic_addr_const): Lowercase @NTPOFF.
15721 (output_addr_const_extra): Likewise.
15722 (output_pic_addr_const): Lowercase @TPOFF.
15723 (output_addr_const_extra): Likewise.
15724 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15725 (*tls_global_dynamic_64): Likewise.
15726 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15727 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15729 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15730 (ASM_OUTPUT_TLS_COMMON): Use it.
15731 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15734 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15735 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15736 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15737 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15738 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15739 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15741 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15743 * config/i386/i386.c (override_options): Don't accept
15744 -mtls-dialect=sun any longer.
15745 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15746 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15747 (*tls_local_dynamic_base_32_sun): Likewise.
15748 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15750 2010-03-24 Jakub Jelinek <jakub@redhat.com>
15753 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15754 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15757 * ira.c (adjust_cleared_regs): New function.
15758 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15762 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15764 * expr.c (expand_expr_real): Restore previous
15765 curr_insn_source_location and curr_insn_block after
15766 expand_expr_real_1 call.
15767 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15768 instead of expand_expr_real_1.
15770 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
15772 PR rtl-optimization/43413
15773 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15776 2010-03-22 James E. Wilson <wilson@codesourcery.com>
15779 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15780 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15782 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
15784 * config/i386/i386.c (ix86_target_string): Add -mfma.
15785 Fix a typo in comment.
15787 2010-03-22 Mike Stump <mikestump@comcast.net>
15790 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15791 Don't overly align based upon packed packed fields.
15793 2010-03-22 Jason Merrill <jason@redhat.com>
15795 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15796 Use () rather than [], and move before the element type.
15798 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15800 * doc/configfiles.texi (Configuration Files): Removed
15801 fixinc/Makefile*, intl/Makefile.*.
15802 * doc/makefile.texi: Fixed markup. Abstract from version
15803 control system used.
15804 (Makefile): Removed obsolete gcc/java/parse.y example.
15805 * doc/sourcebuild.texi: Likewise.
15806 (Top Level): Added config, gnattools, libdecnumber, libgcc,
15807 libgomp, libssp. Removed fastjar.
15808 (Miscellaneous Docs): Clarify location.
15809 Added COPYING3, COPYING3.LIB.
15810 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15812 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15815 * config/i386/i386.c (x86_function_profiler)
15816 [!NO_PROFILE_COUNTERS]: Fix typo.
15817 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15820 2010-03-22 Janis Johnson <janis187@us.ibm.com>
15821 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15823 * doc/sourcebuild.texi (Test Directives): Split into six
15824 subsections, with most of the current text in new subsections
15825 Directives, Selectors, and Final Actions.
15826 (Directives): Split list of test directives into multiple
15828 (Selectors): Describe use and syntax of selectors.
15829 (Effective-Target Keywords): Describe all existing keywords.
15830 (Add Options): Describe features for dg-add-options.
15831 (Require Support): Describe variants of dg-require-support.
15832 (Final Actions): Describe commands to use in dg-final.
15834 2010-03-22 Michael Matz <matz@suse.de>
15836 PR middle-end/43475
15837 * recog.c (validate_replace_rtx_group): Replace also in
15838 REG_EQUAL and REG_EQUIV notes.
15840 2010-03-22 Richard Guenther <rguenther@suse.de>
15842 PR tree-optimization/43390
15843 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15844 sure vector extracts are type correct.
15846 2010-03-22 Richard Guenther <rguenther@suse.de>
15848 PR middle-end/40106
15849 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15850 x * sqrt (x) even when optimizing for size if the target
15851 has native support for sqrt.
15853 2010-03-22 Jakub Jelinek <jakub@redhat.com>
15855 * varasm.c (make_decl_rtl_for_debug): Also clear
15856 flag_mudflap for the duration of make_decl_rtl call.
15859 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15860 locs from preserved VALUEs.
15862 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15864 PR middle-end/42718
15865 * pa.md (movmemsi): Set align to one if zero.
15866 (movmemdi): Likewise.
15868 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
15871 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15872 with their corresponding prologue pushes.
15874 2010-03-20 Andrew Pinski <pinskia@gmail.com>
15877 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15878 at the begining or end.
15879 (spu_expand_epilogue): Likewise.
15881 2010-03-20 Richard Guenther <rguenther@suse.de>
15883 PR rtl-optimization/43438
15884 * combine.c (make_extraction): Properly zero-/sign-extend an
15885 extraction of the low part of a CONST_INT. Also handle
15888 2010-03-19 Mike Stump <mikestump@comcast.net>
15890 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15891 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15892 (override_options): Use SUBTARGET32_DEFAULT_CPU.
15894 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15897 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15900 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
15902 PR rtl-optimization/42258
15903 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15904 use that may match DEF.
15907 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15908 the cost of loading the constant rather than assuming
15910 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15911 outer code is AND, do the same tests as the andsi3 expander and
15912 return COSTS_N_INSNS (1) if and is cheap.
15914 * optabs.c (avoid_expensive_constant): Fix formatting.
15916 2010-03-19 Michael Matz <matz@suse.de>
15919 * attribs.c (decl_attributes): When rebuilding a function pointer
15920 type use the same qualifiers as the original pointer type.
15922 2010-03-19 Martin Jambor <mjambor@suse.cz>
15924 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15925 and is_gimple_ip_invariant_address.
15927 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15930 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15932 * config/arm/arm.c (arm_override_options): Turn off
15933 flag_dwarf2_cfi_asm for AAPCS variants.
15935 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15938 * config/arm/arm.c (emit_multi_reg_push): Update comments.
15939 Use PRE_MODIFY instead of PRE_DEC.
15940 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15941 (vfp_emit_fstmd): Likewise.
15943 2010-03-19 Michael Matz <matz@suse.de>
15946 * builtins.c (expand_builtin_interclass_mathfn,
15947 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15950 2010-03-19 Richard Guenther <rguenther@suse.de>
15952 PR tree-optimization/43415
15953 * tree-ssa-pre.c (phi_translate): Split out worker to ...
15954 (phi_translate_1): ... this.
15955 (phi_translate): Move all caching here. Cache all NARY
15956 and REFERENCE translations.
15958 2010-03-19 David S. Miller <davem@davemloft.net>
15960 With help from Eric Botcazou.
15961 * config/sparc/sparc.c: Include dwarf2out.h.
15962 (emit_pic_helper): Delete.
15963 (pic_helper_symbol_name): Delete.
15964 (pic_helper_emitted_p): Delete.
15965 (pic_helper_needed): New.
15966 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15967 (get_pc_thunk_name): New.
15968 (load_pic_register): Remove 'delay_pic_helper' arg. Use
15969 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15970 Set pic_helper_needed to true. Don't call emit_pic_helper.
15971 (sparc_expand_prologue): Update load_pic_register call.
15972 (sparc_output_mi_thunk): Likewise.
15973 (sparc_file_end): Emit a hidden comdat symbol for the PIC
15974 thunk if possible. Output CFI information as needed.
15976 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15977 Jack Howarth <howarth@bromo.med.uc.edu>
15980 * config/i386/i386.h: Fix ABI on darwin x86-32.
15982 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
15984 * tree.h: Declare make_decl_rtl_for_debug.
15985 * varasm.c (make_decl_rtl_for_debug): New.
15986 * dwarf2out.c (rtl_for_decl_location): Call it.
15987 * cfgexpand.c (expand_debug_expr): Call it.
15989 2010-03-18 Jakub Jelinek <jakub@redhat.com>
15992 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15996 * var-tracking.c (vt_init_cfa_base): Do nothing if
15997 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15999 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
16002 * var-tracking.c (canonicalize_vars_star): New.
16003 (dataflow_post_merge_adjust): Use it.
16005 2010-03-18 Jakub Jelinek <jakub@redhat.com>
16008 * var-tracking.c (non_suitable_const): New function.
16009 (add_uses): For DEBUG_INSNs with constants, don't record any
16010 value, instead just the constant value itself.
16011 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
16012 is not VAR_LOC_UNKNOWN_P, set var to the constant.
16013 (emit_notes_in_bb): Likewise.
16014 (emit_note_insn_var_location): For onepart variables if
16015 cur_loc is a VOIDmode constant, use DECL_MODE.
16017 2010-03-18 Martin Jambor <mjambor@suse.cz>
16019 PR middle-end/42450
16020 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
16021 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
16022 all non-clones. Moved call redirection...
16023 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
16024 (cgraph_materialize_all_clones): Dispose of all
16025 combined_args_to_skip bitmaps.
16026 (verify_cgraph_node): Do not check for edges pointing to wrong
16027 nodes in inline clones.
16028 * tree-inline.c (copy_bb): Call
16029 cgraph_redirect_edge_call_stmt_to_callee.
16030 * ipa.c (cgraph_remove_unreachable_nodes): Call
16031 cgraph_node_remove_callees even when there are used clones.
16033 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16035 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
16037 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
16040 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
16043 2010-03-18 Michael Matz <matz@suse.de>
16045 PR middle-end/43419
16046 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
16047 into sqrt(x) if we need to preserve signed zeros.
16049 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
16050 Eric Botcazou <ebotcazou@adacore.com>
16052 PR rtl-optimization/43360
16053 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
16054 note if we don't know its invariant status.
16056 2010-03-18 Michael Matz <matz@suse.de>
16058 PR tree-optimization/43402
16059 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
16060 PHI chains of ssa names registered for update.
16062 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
16065 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
16066 non-offsettable and pre_modify update addressing.
16067 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
16068 and "2" alternatives "#".
16069 (*movdd_softfloat32): Make all alternatives "#";
16070 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
16071 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
16072 (*movdf_softfloat32): Make all alternatives "#";
16073 (movdi): Use the new DIFD mode iterator to create a common splitter
16074 for movdi, movdf and movdd patterns.
16076 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
16078 * common.opt (dumpdir): Remove redundant tab.
16080 2010-03-17 Martin Jambor <mjambor@suse.cz>
16082 PR tree-optimization/43347
16083 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
16084 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
16086 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
16088 PR rtl-optimization/42216
16089 * regrename.c (create_new_chain): New function, broken out from...
16090 (scan_rtx_reg): ... here. Call it. Handle the case where we are
16091 appending a use to an empty chain.
16092 (build_def_use): Remove previous changes that convert OP_INOUT to
16093 OP_OUT operands; instead detect the case where an OP_INOUT operand
16094 uses a previously untracked register and create an empty chain for it.
16096 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16098 * doc/extend.texi (Function Attributes): Rewrite unfinished
16099 sentence in ms_abi documentation.
16101 2010-03-17 Alan Modra <amodra@gmail.com>
16103 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
16104 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
16105 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
16106 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
16108 2010-03-16 Richard Henderson <rth@redhat.com>
16110 PR middle-end/43365
16111 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
16112 (lower_try_finally): Save and restore eh_seq around the expansion
16113 of the try-finally.
16115 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16117 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
16118 statements before splitting block.
16120 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16122 * doc/sourcebuild.texi (Testsuites): Fix markup.
16123 Use pathnames relative to gcc/testsuite.
16124 (Test Directives): Move description of how timeout is determined.
16125 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
16126 (C Tests): Correct gcc.misc-tests directory.
16127 Framework tests now live in gcc.test-framework.
16129 2010-03-16 Richard Guenther <rguenther@suse.de>
16131 PR middle-end/43379
16132 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
16133 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
16135 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
16136 Alexandre Oliva <aoliva@redhat.com>
16138 PR tree-optimization/42917
16139 * lambda-code.c (remove_iv): Skip debug statements.
16140 (lambda_loopnest_to_gcc_loopnest): Likewise.
16141 (not_interesting_stmt): Debug statements are not interesting.
16143 2010-03-16 Jakub Jelinek <jakub@redhat.com>
16147 * cselib.c (cselib_preserve_constants,
16148 cfa_base_preserved_val): New static variables.
16149 (preserve_only_constants): New function.
16150 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
16151 clear its REG_VALUES. If cselib_preserve_constants, don't
16152 empty the whole hash table, but preserve there VALUEs with constants,
16153 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
16154 (cselib_preserve_cfa_base_value): New function.
16155 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
16156 (cselib_init): Change argument to int bitfield. Set
16157 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
16159 (cselib_finish): Clear cselib_preserve_constants and
16160 cfa_base_preserved_val.
16161 * cselib.h (enum cselib_record_what): New enum.
16162 (cselib_init): Change argument to int.
16163 (cselib_preserve_cfa_base_value): New prototype.
16164 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
16165 * dse.c (dse_step1): Likewise.
16166 * cfgcleanup.c (thread_jump): Likewise.
16167 * sched-deps.c (sched_analyze): Likewise.
16168 * gcse.c (local_cprop_pass): Likewise.
16169 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
16170 If FN is non-NULL, call the callback always and whenever it returns
16171 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
16172 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
16173 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
16174 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
16175 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
16176 * var-tracking.c: Include recog.h.
16177 (bb_stack_adjust_offset): Remove.
16178 (vt_stack_adjustments): Don't call it, instead just gather the
16179 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
16180 (adjust_stack_reference): Remove.
16181 (compute_cfa_pointer): New function.
16182 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
16183 (struct adjust_mem_data): New type.
16184 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
16186 (get_address_mode): New function.
16187 (replace_expr_with_values): Use it.
16188 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
16189 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
16190 (adjust_sets): Remove.
16191 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
16192 Use get_address_mode.
16193 (get_adjusted_src): Remove.
16194 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
16195 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
16196 (add_with_sets): Don't call adjust_sets.
16197 (fp_setter, vt_init_cfa_base): New functions.
16198 (vt_initialize): Change return type to bool. Move most of pool etc.
16199 initialization to the beginning of the function from end. Pass
16200 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
16201 If !frame_pointer_needed, call vt_stack_adjustment before mos
16202 vector is filled, call vt_init_cfa_base if argp/framep has been
16203 eliminated to sp. If frame_pointer_needed and argp/framep has
16204 been eliminated to hard frame pointer, set
16205 hard_frame_pointer_adjustment and call vt_init_cfa_base after
16206 encountering fp setter in the prologue. For MO_ADJUST, call
16207 log_op_type before pusing the op into mos vector, not afterwards.
16208 Call adjust_insn before cselib_process_insn/add_with_sets,
16209 call cancel_changes (0) afterwards.
16210 (variable_tracking_main_1): Adjust for vt_initialize calling
16211 vt_stack_adjustments and returning whether it succeeded or not.
16213 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
16215 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
16218 2010-03-15 Jakub Jelinek <jakub@redhat.com>
16220 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
16222 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
16223 drap_reg has not been set.
16225 2010-03-15 Michael Matz <matz@suse.de>
16227 PR middle-end/43300
16228 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
16229 use it to expand block copies.
16230 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16231 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
16232 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
16234 2010-03-15 Richard Guenther <rguenther@suse.de>
16236 PR tree-optimization/43367
16237 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
16240 2010-03-15 Richard Guenther <rguenther@suse.de>
16242 PR tree-optimization/43317
16243 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
16245 2010-03-15 Martin Jambor <mjambor@suse.cz>
16247 PR tree-optimization/43141
16248 * tree-sra.c (create_abstract_origin): New function.
16249 (modify_function): Call create_abstract_origin.
16251 2010-03-15 Chris Demetriou <cgd@google.com>
16253 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
16256 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16258 PR middle-end/43354
16259 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
16260 call insert_out_of_ssa_copy for default definitions.
16262 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16264 * graphite-clast-to-gimple.c (my_long_long): Defined.
16265 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
16266 * graphite-sese-to-poly.c (my_long_long): Defined.
16267 (scop_ivs_can_be_represented): Use it.
16269 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16271 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
16272 graphite-max-bbs-per-function, and loop-block-tile-size.
16273 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
16275 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
16277 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16279 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
16280 forward declaration.
16281 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
16282 (add_upper_bounds_from_estimated_nit): New.
16283 (build_loop_iteration_domains): Use it.
16285 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16287 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
16289 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16291 PR middle-end/43306
16292 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
16293 should be an INTEGER_CST. Also handle CASE_CONVERT.
16295 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16297 * graphite.c (graphite_initialize): To bound the number of bbs per
16298 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16299 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
16300 * doc/invoke.texi: Document it.
16302 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16304 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
16305 * graphite-sese-to-poly.h (build_poly_scop): Same.
16307 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16309 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
16310 the number of parameters in the scop. Use as an upper bound
16311 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
16312 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
16313 * doc/invoke.texi: Document it.
16315 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
16317 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
16318 * doc/c-tree.texi: Remove.
16319 * doc/generic.texi: Merge c-tree.texi here.
16320 * doc/gccint.texi (Trees): Remove menu entry.
16321 (c-tree.texi): Remove @include.
16322 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
16323 * doc/languages.texi (Reading RTL): Ditto.
16325 2010-03-12 Steve Ellcey <sje@cup.hp.com>
16328 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
16330 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16332 PR middle-end/42431
16333 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
16334 code added to work around reload clobbering CONST insns.
16336 2010-03-12 Jakub Jelinek <jakub@redhat.com>
16338 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
16339 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
16340 (cselib_preserve_only_values): Remove retain argument, don't
16341 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
16342 * cselib.h (cselib_preserve_only_values): Remove retain argument.
16343 * var-tracking.c (micro_operation): Move insn field before union.
16344 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
16345 (struct variable_tracking_info_def): Remove n_mos field, change
16346 mos into a vector of micro_operations.
16347 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
16348 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
16349 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
16350 changing into a vector.
16351 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
16352 come before all other uops generated by add_stores.
16353 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
16355 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
16356 a vector. Run just one pass over the bbs instead of separate counting
16357 and computation phase.
16358 (vt_finalize): Free VTI (bb)->mos vector instead of array.
16361 * tree-inline.c (remap_decls): Put old_var rather than origin_var
16362 into *nonlocalized_list vector.
16363 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
16364 even if origin is non-NULL.
16365 (gen_variable_die): Likewise.
16366 (process_scope_var): Don't change origin.
16367 (gen_decl_die): Likewise.
16368 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
16369 before adding new edges instead of after it, fix moving over
16372 2010-03-11 David S. Miller <davem@davemloft.net>
16374 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
16376 * configure: Rebuild.
16378 2010-03-11 Martin Jambor <mjambor@suse.cz>
16380 PR tree-optimization/43257
16381 * tree.c (assign_assembler_name_if_neeeded): New function.
16382 (free_lang_data_in_cgraph): Assembler name assignment moved to the
16383 above new function.
16384 * tree.h (assign_assembler_name_if_neeeded): Declare.
16385 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
16386 the function if needed.
16388 2010-03-11 Chris Demetriou <cgd@google.com>
16390 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
16391 include/stdint-gcc.h, and include/stdint.h world-readable.
16393 2010-03-11 Richard Guenther <rguenther@suse.de>
16395 PR tree-optimization/43255
16396 * tree-vrp.c (process_assert_insertions_for): Do not insert
16397 asserts for trivial conditions.
16399 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16401 PR tree-optimization/43280
16402 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
16403 generation. Move calculation of size out of the if branch.
16404 (find_bswap): Modify compare number generation.
16406 2010-03-11 Richard Guenther <rguenther@suse.de>
16409 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
16410 (input_gimple_stmt): Fixup handled component types during
16411 operand read. Also fix up decls in ADDR_EXPRs.
16413 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
16415 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
16416 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
16418 2010-03-10 Jan Hubicka <jh@suse.cz>
16421 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
16422 * varasm.c (get_variable_section): Don't do that here...
16423 (make_decl_rtl): ... and here.
16424 (do_assemble_alias): Produce decl RTL.
16425 (assemble_alias): Likewise.
16427 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16430 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
16431 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
16433 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
16434 (based_loc_descr): Only express drap or vdrap regno based expressions
16435 using DW_OP_fbreg when not optimizing.
16436 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
16437 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
16438 REG_CFA_SET_VDRAP note.
16440 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
16442 PR tree-optimization/43236
16443 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
16444 error in calculation of base address in reverse iteration case.
16445 (generate_builtin): Take number of latch executions if the statement
16448 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
16450 PR middle-end/42859
16451 * tree-eh.c: Include pointer-set.h.
16452 (lower_eh_dispatch): Filter out duplicate case labels and
16453 remove the unneeded edge when the label is unused. Return
16454 true when some edges are removed.
16455 (execute_lower_eh_dispatch): When any lowering resulted in
16456 removing an edge, also delete unreachable blocks.
16458 2010-03-10 Jakub Jelinek <jakub@redhat.com>
16461 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16462 UNSPEC_MACHOPIC_OFFSET.
16464 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
16467 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
16468 (m68k_delegitimize_address): New function.
16470 2010-03-09 Jakub Jelinek <jakub@redhat.com>
16473 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
16476 * var-tracking.c (adjust_sets): New function.
16477 (count_with_sets, add_with_sets): Use it.
16478 (get_adjusted_src): New inline function.
16479 (add_stores): Use it.
16482 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
16483 call cselib_dummy_expand_value_rtx_cb instead of
16484 cselib_expand_value_rtx_cb.
16487 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
16488 * config/i386/i386.c: Include debug.h and dwarf2out.h.
16489 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
16490 and .cfi_endproc around the pic thunks.
16491 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
16492 all queued unwind info register saves are saved before the call.
16493 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
16494 considered as sp-=4 for unwind info and the pop as sp+=4 which
16495 also clobbers dest, but doesn't actually restore it.
16498 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
16499 RTX_FRAME_RELATED_P.
16501 2010-03-09 Jie Zhang <jie@codesourcery.com>
16503 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
16504 whitespaces in output template.
16506 2010-03-09 Jie Zhang <jie@codesourcery.com>
16508 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
16509 out array boundary.
16511 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16513 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
16514 builtins.exp in a separate job.
16516 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16518 * graphite-sese-to-poly.c (add_param_constraints): Use
16519 lower_bound_in_type and upper_bound_in_type.
16521 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16523 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
16524 instead of unsigned_type_node.
16526 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16527 Reza Yazdani <reza.yazdani@amd.com>
16529 PR middle-end/43065
16530 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
16531 on pointer type parameters.
16533 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16535 PR middle-end/42644
16536 PR middle-end/42130
16537 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
16538 handle conversions from pointer to integers.
16539 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
16540 induction variable, to be able to work with code generated by CLooG.
16541 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
16542 (build_poly_scop): Bail out if we cannot codegen a loop.
16544 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
16546 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
16547 code generation with gloog_error.
16549 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16551 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
16552 Call fold_convert on all the returned values.
16553 (expand_scalar_variables_expr): Pass to
16554 expand_scalar_variables_ssa_name the type of the resulting expression.
16556 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16558 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
16559 ppl_min_for_le_pointset.
16560 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
16561 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
16563 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16565 * graphite-dependences.c (map_into_dep_poly): Removed.
16566 (dependence_polyhedron_1): Use combine_context_id_scat.
16568 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16570 * graphite-poly.h (struct poly_scattering): Add layout documentation.
16571 (struct poly_bb): Same.
16572 (combine_context_id_scat): New.
16574 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16576 PR middle-end/42326
16577 * sese.c (name_defined_in_loop_p): Return false for default
16580 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16582 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
16583 and clean up the logic.
16585 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
16587 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
16590 2010-03-08 Jakub Jelinek <jakub@redhat.com>
16592 * var-tracking.c (remove_cselib_value_chains): Define only for
16594 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
16595 delete_slot_part, emit_notes_for_differences_1): Don't call
16596 remove_cselib_value_chains here.
16597 (set_slot_part, emit_notes_for_differences_2): Don't call
16598 add_cselib_value_chains here.
16599 (preserved_values): New vector.
16600 (preserve_value): New function.
16601 (add_uses, add_stores, vt_add_function_parameters): Use it
16602 instead of cselib_preserve_value.
16603 (changed_values_stack): New vector.
16604 (check_changed_vars_0): New function.
16605 (check_changed_vars_1, check_changed_vars_2): Use it.
16606 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
16607 changed_values_stack VALUEs.
16608 (vt_emit_notes): For all preserved_values call
16609 add_cselib_value_chains. If ENABLE_CHECKING call
16610 remove_cselib_value_chains before verifying value_chains is empty.
16611 Initialize and free changed_values_stack.
16612 (vt_initialize): Initialize preserved_values.
16613 (vt_finalize): Free preserved_values.
16615 2010-03-08 Richard Guenther <rguenther@suse.de>
16617 PR tree-optimization/43269
16618 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
16621 2010-03-08 Martin Jambor <mjambor@suse.cz>
16623 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
16624 (ipa_is_param_called): Removed.
16625 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
16626 (ipa_print_node_params): Do not print the called flag.
16627 (ipa_write_node_info): Do not stream the called flag.
16628 (ipa_read_node_info): Likewise.
16630 2010-03-07 Jakub Jelinek <jakub@redhat.com>
16633 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
16634 * cselib.c (struct expand_value_data): Add dummy field.
16635 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
16637 (cselib_dummy_expand_value_rtx_cb): New function.
16638 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
16640 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
16641 * var-tracking.c: Include pointer-set.h.
16642 (variable): Change n_var_parts to char from int. Add
16643 cur_loc_changed and in_changed_variables fields.
16644 (variable_canonicalize): Remove.
16645 (shared_var_p): New inline function.
16646 (unshare_variable): Maintain cur_loc_changed and
16647 in_changed_variables fields. If var was in changed_variables,
16648 replace it there with new_var. Just copy cur_loc instead of
16649 resetting it to something else.
16650 (variable_union): Don't recompute cur_loc. Use shared_var_p.
16651 (dataflow_set_union): Don't call variable_canonicalize.
16652 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16653 of their DEBUG_EXPR_TREE_DECLs.
16654 (canonicalize_loc_order_check): Verify that cur_loc is NULL
16655 and in_changed_variables and cur_loc_changed is false.
16656 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16657 and cur_loc_changed. Don't update cur_loc here.
16658 (variable_merge_over_src): Don't call variable_canonicalize.
16659 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
16660 removing loc that is equal to cur_loc, clear cur_loc,
16661 set cur_loc_changed and ensure variable_was_changed is called.
16662 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
16663 compare pointers in cur_loc check, if it is equal to loc,
16664 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
16665 (variable_different_p): Remove compare_current_location argument,
16666 don't compare cur_loc.
16667 (dataflow_set_different_1): Adjust variable_different_p caller.
16668 (variable_was_changed): If dv had some var in changed_variables
16669 already, reset in_changed_variables flag for it and propagate
16670 cur_loc_changed over to the new variable. On empty var
16671 always set cur_loc_changed. Set in_changed_variables on whatever
16672 var is added to changed_variables.
16673 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16674 Use shared_var_p. When removing loc that is equal to cur_loc,
16675 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
16676 end, don't set it to something else, just call variable_was_changed.
16677 (delete_slot_part): Use shared_var_p. When cur_loc equals to
16678 loc being removed, clear cur_loc and set cur_loc_changed.
16679 Set cur_loc_changed if all locations have been removed.
16680 (struct expand_loc_callback_data): New type.
16681 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16682 allocated. Always create SUBREGs if simplify_subreg failed.
16683 Prefer to use cur_loc, when that fails and still in
16684 changed_variables (and seen first time) recompute it. Set
16685 cur_loc_changed of variables which had to change cur_loc and
16686 compute elcd->cur_loc_changed if any of the subexpressions used
16687 had to change cur_loc.
16688 (vt_expand_loc): Adjust to pass arguments in
16689 expand_loc_callback_data structure.
16690 (vt_expand_loc_dummy): New function.
16691 (emitted_notes): New variable.
16692 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16693 that weren't used for any other decl in current
16694 emit_notes_for_changes call call vt_expand_loc_dummy to update
16695 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
16696 first loc_chain location if NULL before. Always use just
16697 cur_loc instead of first loc_chain location. When cur_loc_changed
16698 is false, when not --enable-checking=rtl just don't emit any note.
16699 When rtl checking, compute the note and assert it is the same
16700 as previous note. Clear cur_loc_changed and in_changed_variables
16701 at the end before removing from changed_variables.
16702 (check_changed_vars_3): New function.
16703 (emit_notes_for_changes): Traverse changed_vars to call
16704 check_changed_vars_3 on each changed var.
16705 (emit_notes_for_differences_1): Clear cur_loc_changed and
16706 in_changed_variables. Recompute cur_loc of new_var.
16707 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16708 (vt_emit_notes): Initialize and destroy emitted_notes.
16710 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
16712 PR rtl-optimization/42220
16713 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16714 Use verify_reg_tracked to determine if we should use OP_OUT rather
16716 (build_def_use): If we see an in-out operand for a register that we
16717 know nothing about, treat is an output if possible, fail the block if
16720 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16723 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16726 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16729 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16730 uses of relevant DEFs that are dead outside the loop too.
16732 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
16734 * var-tracking.c (dataflow_set_merge): Swap src and src2.
16736 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16738 * var-tracking.c (values_to_unmark): New variable.
16739 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16740 values_to_unmark vector. Moved body to...
16741 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16742 instead queue it into values_to_unmark vector.
16743 (vt_find_locations): Free values_to_unmark vector.
16745 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
16747 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16748 (site.exp): Export them when plugins are enabled.
16750 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
16752 PR middle-end/42326
16753 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16754 that contain scevs.
16755 (chrec_fold_multiply): Same.
16757 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
16760 * c-decl.c (build_compound_literal): Return early if init is
16761 an error_mark_node.
16763 2010-03-04 Martin Jambor <mjambor@suse.cz>
16765 PR tree-optimization/43164
16766 PR tree-optimization/43191
16767 * tree-sra.c (type_consists_of_records_p): Reject records with
16768 zero-size bit-fields at the end.
16770 2010-03-04 Mike Stump <mikestump@comcast.net>
16772 * Makefile.in (TAGS): Remove *.y.
16774 2010-03-04 Richard Guenther <rguenther@suse.de>
16776 PR tree-optimization/40761
16777 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16779 (my_rev_post_order_compute): New function.
16780 (init_pre): Call it.
16782 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
16784 PR middle-end/43209
16785 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16786 decrease the cost of an IV candidate when the cost is infinite.
16788 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16790 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16791 Use '3DNow!' for the extension of that name, ensure normal space
16793 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16795 2010-03-03 Jeff Law <law@redhat.com>
16797 * PR middle-end/32693
16798 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16799 than gen_rtx_SUBREG.
16800 (extract_bit_field_1): Likewise.
16802 2010-03-03 Janis Johnson <janis187@us.ibm.com>
16804 * doc/sourcebuild.texi (Test directives): Document that arguments
16805 include-opts and exclude-opts are now optional for dg-skip-if,
16806 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16808 2010-03-03 Jason Merrill <jason@redhat.com>
16811 * cgraph.h (varpool_node): Add extra_name field.
16812 * varpool.c (varpool_extra_name_alias): New.
16813 (varpool_assemble_decl): Emit extra name aliases.
16814 (varpool_mark_needed_node): Look past an extra name alias.
16815 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16816 * lto-streamer-in.c (lto_input_tree): Read it.
16817 * lto-streamer-out.c (output_unreferenced_globals): Write it.
16819 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
16821 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16822 (sparc*-*-solaris2*): ...this.
16824 2010-03-03 Jakub Jelinek <jakub@redhat.com>
16827 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16828 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
16829 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16830 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16833 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16834 fallthrough to default handling, just with want_address 0 instead of 2.
16835 For single element lists, add_AT_loc directly, otherwise create an
16836 artificial variable DIE and stick location list to it.
16839 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16840 (VAL_EXPR_HAS_REVERSE): Define.
16841 (reverse_op): New function.
16842 (add_stores): For reversible operations add an extra MO_VAL_USE.
16844 2010-03-02 Jason Merrill <jason@redhat.com>
16846 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16848 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
16850 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16851 (sparc64-*-linux*): Likewise.
16852 (sparc64-*-solaris2*): Include assembler files before linker ones.
16853 (sparc-*-solaris2*): Simplify and reorder to match previous case.
16854 * config/sparc/gas.h: Delete.
16855 * config/sparc/sol2-64.h: Add copyright notice.
16856 * config/sparc/sol2-gas-bi.h: Likewise.
16857 * config/sparc/sol2-gld.h: Likewise.
16858 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16859 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16860 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16861 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16862 (sparc_elf_asm_named_section): Rename into...
16863 (sparc_solaris_elf_asm_named_section): ...this. Always define.
16865 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
16867 * config/alpha/alpha.c (override_options): Fix -mtune error message.
16869 2010-03-02 Jeff Law <law@redhat.com>
16871 PR middle-end/42431
16872 * reload1.c (rtx_p, substitute_stack): Declare.
16873 (substitute): Record addresses of changed rtxs.
16874 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16875 Restore the original rtx when complete.
16876 (reload): Free subsitute_stack when complete.
16878 2010-03-02 Janis Johnson <janis187@us.ibm.com>
16880 * doc/gccint.texi (menu): Add Testsuites as a chapter.
16881 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16883 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16884 LTO Testing, gcov Testing, profopt Testing, compat Testing,
16885 Torture Tests): Change from subsection to section.
16887 2010-03-02 Jakub Jelinek <jakub@redhat.com>
16888 Steven Bosscher <steven@gcc.gnu.org>
16890 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16893 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
16895 PR middle-end/42640
16896 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16897 the assignment from the new induction variable to the assignment
16898 of the value from the original loop PHI function.
16900 2010-03-01 Janis Johnson <janis187@us.ibm.com>
16901 Daniel Jacobowitz <dan@codesourcery.com>
16903 * doc/sourcebuild.texi (Test directives): Clarify options to
16906 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16908 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16909 Disable cfi directives unless GCC and gas agree on using read-only
16910 .eh_frame sections for 64-bit.
16911 * configure: Regenerate.
16913 2010-03-01 Richard Guenther <rguenther@suse.de>
16915 PR tree-optimization/43220
16916 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16917 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16919 2010-03-01 Richard Guenther <rguenther@suse.de>
16920 Martin Jambor <mjambor@suse.cz>
16922 PR middle-end/41250
16923 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16924 gimplified parameters.
16926 2010-03-01 Christian Bruel <christian.bruel@st.com>
16928 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16930 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
16932 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16934 2010-03-01 Richard Guenther <rguenther@suse.de>
16936 PR middle-end/43213
16937 * expr.c (expand_assignment): Use the alias-oracle to tell
16938 if the rhs aliases the result decl.
16940 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16943 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16944 to sol_gt_pch_get_address.
16945 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16946 64-bit, SPARC and x86.
16947 (sol_gt_pch_get_address): New function.
16949 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
16951 * toplev.h (inform_n, error_n): Declare.
16952 * diagnostic.c (inform_n, error_n): New function.
16954 2010-03-01 Jakub Jelinek <jakub@redhat.com>
16956 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16957 has no rtl yet when processing local_decls, queue it and recheck
16958 if deferred stack allocation hasn't assigned it rtl.
16960 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
16962 * config/sh/sh.c (unspec_bbr_uid): New.
16963 (gen_block_redirect): Use it instead of INSN_UID.
16964 (gen_far_branch): Likewise.
16966 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
16968 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16969 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16971 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16973 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16974 (Warning Options): -Wno-conversion-null is valid for
16975 Objective-C++ as well.
16976 * doc/tm.texi (Named Address Spaces): Likewise.
16977 * doc/plugins.texi (Plugins): Replace TABs with spaces.
16978 * doc/tree-ssa.texi (Tree SSA): Likewise.
16980 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16983 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16984 by default. Don't set the default arch for
16985 i[34567]86-*-darwin*|x86_64-*-darwin*.
16987 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
16990 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16991 default. Set the default 32bit/64bit archs with $with_arch
16992 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16994 2010-02-27 Richard Guenther <rguenther@suse.de>
16996 PR tree-optimization/43186
16997 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16998 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16999 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
17000 unroller iterations.
17002 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
17004 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
17005 required and i[34567]86-*-* targets don't support 64bit ISA.
17007 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
17010 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17011 the same alias set.
17013 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17015 * config.gcc: Set the default arch at least to Prescott for
17016 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
17017 if SSE math is enabled.
17019 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17021 * diagnostic.c (diagnostic_initialize): Update.
17022 (diagnostic_report_diagnostic): Test inhibit_notes_p for
17024 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
17025 (diagnostic_inhibit_notes): New.
17026 * toplev.c (process_options): inhibit notes with -fcompare-debug.
17028 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17031 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
17032 * doc/standards.texi: Likewise.
17033 * doc/extend.texi: Likewise.
17034 * doc/trouble.texi: Likewise.
17035 * doc/cppopts.texi: Likewise.
17036 * doc/install.texi: Likewise.
17037 * c.opt (std=c90,std=gnu90): New options.
17038 * c-opts.c (c_common_handle_option): Handle them.
17040 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
17043 * c-decl.c (undeclared_variable): Use an informative note.
17045 2010-02-26 Richard Guenther <rguenther@suse.de>
17047 PR tree-optimization/43186
17048 * gimple.h (gimple_fold): Remove.
17049 * gimple.c (gimple_fold): Remove. Inline into single user ...
17050 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
17051 Try harder for conditions.
17053 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17056 * function.c (used_types_insert): Don't skip through named pointer
17057 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
17058 and it is different from the main variant's type.
17060 2010-02-26 Nick Clifton <nickc@redhat.com>
17062 * config/rx/rx.md (sminsi3): Remove bogus alternative.
17064 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
17066 * config.gcc: Support --with-fpmath=sse for x86.
17068 * config/i386/ssemath.h: New.
17070 * doc/install.texi (--with-fpmath=sse): Documented.
17072 2010-02-26 Richard Guenther <rguenther@suse.de>
17074 PR tree-optimization/43188
17075 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
17076 vector types of over-aligned element type.
17078 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
17081 * config/i386/i386.c (expand_vec_perm_blend): Use correct
17082 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
17084 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
17086 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
17088 2010-02-26 Jakub Jelinek <jakub@redhat.com>
17090 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
17091 * var-tracking.c: Include diagnostic.h.
17092 (debug_dv): New function.
17093 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
17096 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
17097 (add_value_chain, add_value_chains, remove_value_chain,
17098 remove_value_chains): Handle DEBUG_EXPRs.
17099 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
17102 * regcprop.c (struct queued_debug_insn_change): New type.
17103 (struct value_data_entry): Add debug_insn_changes field.
17104 (struct value_data): Add n_debug_insn_changes field.
17105 (debug_insn_changes_pool): New variable.
17106 (free_debug_insn_changes, apply_debug_insn_changes,
17107 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
17108 (kill_value_one_regno): Call free_debug_insn_changes if needed.
17109 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
17111 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
17113 (copyprop_hardreg_forward_1): Don't call apply_change_group for
17114 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
17115 changes, call cprop_find_used_regs via note_stores.
17116 (copyprop_hardreg_forward): When copying vd from predecessor
17117 which has any queued DEBUG_INSN changes, make sure the pointers are
17118 cleared. At the end call df_analyze and then if there are any
17119 DEBUG_INSN changes queued at the end of some basic block for still
17120 live registers, apply them.
17121 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
17123 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
17125 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
17128 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
17130 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
17131 targets. Set the default with_cpu/with_arch from arch/cpu.
17132 Allow x86-64 and native for with_cpu/with_arch.
17134 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
17136 * ebitmap.c: Change calls to verify_popcount with calls to
17137 sbitmap_verify_popcount.
17138 (ebitmap_clear_bit): Fixed map->cacheindex test and
17139 map>cache update when bit clearing results in an empty
17142 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17145 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
17146 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
17147 and support both V2DF and V2DI modes.
17148 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
17149 support both V2DF and V2DI modes.
17150 (general): Delete trailing whitespace from a few patterns.
17152 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17153 V2DF/V2DI interleave high/low builtins.
17155 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
17158 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
17159 interleave high/low functions.
17161 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
17163 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
17164 #pragma extern_prefix.
17166 2010-02-25 Jakub Jelinek <jakub@redhat.com>
17169 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
17170 BLKmode, assert op0 is a MEM and just adjust its mode.
17173 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
17174 if bitpos isn't multiple of mode's bitsize.
17176 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17178 * c.opt (-ftemplate-depth=): New.
17179 (-ftemplate-depth-): Deprecate.
17180 * optc-gen.awk: Handle -ftemplate-depth=.
17181 * opth-gen.awk: Likewise.
17182 * c-opts.c (c_common_handle_option): Likewise.
17183 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
17185 2010-02-24 Jason Merrill <jason@redhat.com>
17187 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
17189 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17191 * cfg.c (alloc_aux_for_block): Remove inline.
17192 (alloc_aux_for_edge): Likewise.
17194 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17196 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
17198 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17200 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
17201 * config/i386/sol2-gas.h: New file.
17202 * config.gcc (i[34567]86-*-solaris2*): Use it.
17204 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
17207 * c-typeck.c (ep_convert_and_check): New.
17208 (build_conditional_expr): Use it.
17209 (build_binary_op): Likewise.
17211 2010-02-24 Jakub Jelinek <jakub@redhat.com>
17213 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
17216 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
17217 bounds even for -O+.
17218 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
17219 expr needs to have DECL_NAME set.
17221 2010-02-24 Nick Clifton <nickc@redhat.com>
17223 * config/mep/mep.c: Include gimple.h.
17224 (mep_function_uses_sp): Delete unused function.
17225 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
17226 parameters. Use unsigned integers to count args. Return a
17227 NULL_RTX instead of an error_mark_node. Toidy up formatting.
17229 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17232 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
17233 greater or equal to nelt instead of 2 * nelt.
17234 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
17237 2010-02-23 Jason Merrill <jason@redhat.com>
17240 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
17241 in cfun->local_decls even if they have register types.
17244 * stor-layout.c (place_field): Don't warn about unnecessary
17245 DECL_PACKED if the type is packed.
17247 2010-02-23 Jakub Jelinek <jakub@redhat.com>
17250 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
17251 GOTOFF relocs, even when the base reg isn't pic pointer.
17253 2010-02-23 Michael Matz <matz@suse.de>
17256 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
17257 (expand_gimple_basic_block): Generate and use debug temps if there
17258 are debug uses left after the last real use of TERed ssa names.
17259 Unlink debug immediate uses when they are expanded.
17261 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
17264 * config/i386/i386.c (override_options): Reorganise to provide
17265 better error messages.
17267 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17269 PR middle-end/43083
17270 * graphite-scop-detection.c (create_single_exit_edge): Move
17271 the call to find_single_exit_edge to....
17272 (create_sese_edges): ...here. Don't handle multiple edges
17273 exiting the function.
17274 (build_graphite_scops): Don't handle multiple edges
17275 exiting the function.
17277 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17279 PR middle-end/43097
17280 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
17281 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
17283 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
17285 PR middle-end/43026
17286 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
17288 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
17291 * c-typeck.c (convert_arguments): Print declaration location.
17292 * c-common.c (validate_nargs): Rename as
17293 builtin_function_validate_nargs.
17294 (check_builtin_function_arguments): Update.
17296 2010-02-22 Richard Guenther <rguenther@suse.de>
17299 * tree-inline.c (declare_return_variable): Use the type of
17300 the call stmt lhs if available.
17302 2010-02-22 Duncan Sands <baldrick@free.fr>
17304 * passes.c (register_pass): Always consider all pass lists when
17305 ref_pass_instance_number is zero.
17307 2010-02-22 Richard Guenther <rguenther@suse.de>
17309 PR tree-optimization/42749
17310 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
17311 parameter. Do arithmetic in the original type.
17312 (update_accumulator_with_ops): Likewise.
17313 (adjust_accumulator_values): Adjust.
17315 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17317 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
17318 (QI to BLKmode splitter): New splitter.
17320 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
17322 * config/i386/i386.c (initial_ix86_tune_features): Turn on
17323 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
17325 2010-02-22 Richard Guenther <rguenther@suse.de>
17327 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
17329 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
17331 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
17332 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
17333 ($(T)crti.o, $(T)crtn.o): Remove rules.
17335 2010-02-21 Tobias Burnus <burnus@net-b.de>
17338 * doc/invoke.texi (-fassociative-math): Document that this
17339 option is automatically enabled for Fortran.
17341 2010-02-20 David S. Miller <davem@davemloft.net>
17343 * configure.ac: Test if linker and assembler properly support
17344 GOTDATA_OP relocations.
17345 * configure: Rebuild.
17346 * config.in: Likewise.
17347 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
17348 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
17349 (movsi_high_pic): Likewise.
17350 (movdi_lo_sum_pic): Likewise.
17351 (movdi_high_pic): Likewise.
17352 (movsi_pic_gotdata_op): New pattern.
17353 (movdi_pic_gotdata_op): Likewise.
17354 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
17355 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
17357 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
17360 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
17361 attribute to ssemul.
17362 (xop_mulv2div2di3_high): Ditto.
17364 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17367 * c.opt (Wconversion-null): New option.
17368 * doc/invoke.texi (Wconversion-null): Document.
17370 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
17372 * common.opt (Wlarger-than-): Add Undocumented.
17374 2010-02-19 Mike Stump <mikestump@comcast.net>
17376 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
17378 2010-02-19 Jason Merrill <jason@redhat.com>
17381 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
17382 * configure: Likewise.
17384 2010-02-20 Alan Modra <amodra@gmail.com>
17386 PR middle-end/42344
17387 * cgraph.h (cgraph_make_decl_local): Declare.
17388 * cgraph.c (cgraph_make_decl_local): New function.
17389 (cgraph_make_node_local): Use it.
17390 * cgraphunit.c (cgraph_function_versioning): Likewise.
17391 * ipa.c (function_and_variable_visibility): Likewise.
17393 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17396 * except.c (sjlj_emit_function_enter): Don't call
17397 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
17399 * rtl.h (add_reg_br_prob_note): Remove prototype.
17401 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
17404 * c-common.c (conversion_warning): Remove widening conversions
17405 before checking the conversion of integers to reals.
17407 2010-02-19 Mike Stump <mikestump@comcast.net>
17409 PR middle-end/43125
17410 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
17413 * cgraphunit.c (process_function_and_variable_attributes): Check
17414 DECL_PRESERVE_P instead of looking up attribute "used".
17415 * ipa-pure-const.c (check_decl): Likewise.
17416 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
17417 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
17418 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
17419 instead of attribute "used".
17420 * config/sol2-c.c (solaris_pragma_init): Likewise.
17421 (solaris_pragma_fini): Likewise.
17423 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17425 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
17426 Use XCNEW instead of xcalloc.
17427 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
17428 XNEW instead of xmalloc.
17429 (get_fields): Use XNEWVEC instead of xmalloc.
17432 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
17433 populate vars array.
17434 (create_new_general_access): For debug stmts just reset value.
17435 (get_stmt_accesses): For accesses within debug stmts just record them
17436 using add_access_to_acc_sites instead of preventing the peeling or
17437 counting them as accesses.
17439 PR middle-end/42233
17440 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
17442 2010-02-19 Richard Guenther <rguenther@suse.de>
17444 PR tree-optimization/42916
17445 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
17448 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
17450 * configure.ac: Replace all uses of changequote in macro arguments
17451 with proper quoting.
17453 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17455 PR middle-end/42233
17456 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
17458 2010-02-19 Richard Guenther <rguenther@suse.de>
17460 PR tree-optimization/42944
17461 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
17462 test for aliasing with errno.
17464 2010-02-19 Jakub Jelinek <jakub@redhat.com>
17466 PR middle-end/42233
17467 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
17468 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
17469 * dojump.c: Include output.h.
17470 (inv): New inline function.
17471 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
17472 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
17473 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
17474 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
17475 argument, pass it down to other calls.
17476 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
17477 add REG_BR_PROB note to the conditional jump.
17478 * cfgexpand.c (add_reg_br_prob_note): Removed.
17479 (expand_gimple_cond): Don't call it, add the probability
17480 as last argument to jumpif_1/jumpifnot_1.
17481 * Makefile.in (dojump.o): Depend on output.h.
17482 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
17484 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
17485 * stmt.c (do_jump_if_equal): Likewise.
17486 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
17487 * loop-unswitch.c (compare_and_jump_seq): Likewise.
17488 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
17490 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
17491 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
17492 jumpifnot_1 callers.
17493 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
17495 (store_expr): Adjust jumpifnot caller.
17496 (store_constructor): Adjust jumpif caller.
17498 PR middle-end/42233
17499 * gimplify.c (gimple_boolify): For __builtin_expect call
17500 gimple_boolify also on its first argument.
17502 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
17504 * configure.ac (gnu-unique-object): Wrap regexps using [] in
17506 (__stack_chk_fail): Ditto. Remove quadrigraphs.
17507 * configure: Regenerated.
17509 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17511 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
17512 lang_hooks.types_compatible_p instead of comptypes.
17514 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
17516 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
17517 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
17518 if __prefer_thumb__ is defined.
17520 2010-02-18 Martin Jambor <mjambor@suse.cz>
17522 PR tree-optimization/43066
17523 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
17524 array with zero-sized element type.
17526 2010-02-18 Jakub Jelinek <jakub@redhat.com>
17528 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
17529 rtx, allocate struct var_loc_node here and return it to the
17530 caller, and only if it is actually needed.
17531 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
17532 move it earlier and return immediately if it returns NULL.
17534 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
17536 * config/sparc/gas.h: New file. Restore
17537 TARGET_ASM_NAMED_SECTION to its ELF default.
17538 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
17539 check !HAVE_GNU_AS.
17540 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17541 Likewise. Add ATTRIBUTE_UNUSED to prototype.
17542 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
17543 after sparc/sysv4.h.
17545 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
17547 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
17549 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
17551 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
17552 patterns from predicated pattern.
17554 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
17557 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
17558 for insn mnemonic suffix.
17560 2010-02-17 Richard Guenther <rguenther@suse.de>
17562 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
17565 2010-02-17 Jakub Jelinek <jakub@redhat.com>
17568 * caller-save.c (save_call_clobbered_regs): If BB ends with
17569 a DEBUG_INSN, move any notes in between last real insn and the last
17570 DEBUG_INSN after the last DEBUG_INSN.
17572 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
17574 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
17575 Fix return type. Fix argument type. Explain meaning of return value.
17577 2010-02-16 Richard Guenther <rguenther@suse.de>
17579 PR tree-optimization/41043
17580 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
17581 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
17583 (vrp_visit_phi_node): ... but only for loop PHI nodes.
17585 2010-02-16 Ira Rosen <irar@il.ibm.com>
17587 PR tree-optimization/43074
17588 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
17589 * tree-vect-loop.c (vect_analyze_loop_operations): Add
17590 vectorizable cycles in hybrid SLP check.
17591 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
17593 2010-02-16 Richard Guenther <rguenther@suse.de>
17595 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
17596 (true_dependence): If memrefs_conflict_p computes must-alias
17597 trust it. Move TBAA check after offset-based disambiguation.
17598 (canon_true_dependence): Likewise.
17600 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
17602 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
17603 * doc/invoke.texi: Document it.
17604 * var-tracking.c: Include toplev.h and params.h.
17605 (vt_find_locations): Return bool indicating success. Compute
17606 hash sizes unconditionally. Check new parameter, report.
17607 (variable_tracking_main_1): Check vt_find_locations results and
17608 retry. Renamed from...
17609 (variable_tracking_main): ... this. New wrapper to preserve
17610 flag_var_tracking_assignments.
17611 * Makefile.in (var-tracking.o): Adjust dependencies.
17613 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
17614 Jakub Jelinek <jakub@redhat.com>
17617 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
17618 if weak_import attribute is present.
17619 * config/darwin.c (machopic_select_section): Likewise.
17621 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
17623 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
17624 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
17625 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
17626 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
17628 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
17631 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
17632 Fix argument types.
17634 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
17635 Rewrite text to refer to the names.
17637 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
17639 * config/i386/i386-builtin-types.def
17640 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
17641 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17642 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17643 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17644 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17645 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17646 IX86_BUILTIN_VPERMIL2PS256.
17647 (MULTI_ARG_4_DF2_DI_I): Defined.
17648 (MULTI_ARG_4_DF2_DI_I1): Defined.
17649 (MULTI_ARG_4_SF2_SI_I): Defined.
17650 (MULTI_ARG_4_SF2_SI_I1): Defined.
17651 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17652 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17653 __builtin_ia32_vpermil2ps256.
17654 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17655 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17656 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
17657 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17658 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17659 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
17660 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17661 CODE_FOR_xop_vpermil2v8sf3.
17662 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17663 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17664 * config/i386/xopintrin.h (_mm_permute2_pd): New.
17665 (_mm256_permute2_pd): New.
17666 (_mm_permute2_ps): New.
17667 (_mm256_permute2_ps): New.
17669 2010-02-15 Nick Clifton <nickc@redhat.com>
17671 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17672 boolean parameters. Use emit_jump_insn when emitting a pop
17673 instruction containing a return insn.
17674 (push): Use 'true' rather than '1' as second parameter to F.
17675 (h8300_expand_prologue): Likewise.
17676 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17677 (h8300_expand_epilogue): Likewise.
17679 2010-02-15 Richard Guenther <rguenther@suse.de>
17681 PR middle-end/43068
17682 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17685 2010-02-15 Nick Clifton <nickc@redhat.com>
17687 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17690 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
17692 * intl.c (fake_ngettext): New function.
17693 * intl.h (fake_ngettext): Declare.
17694 (ngettext): Define macro.
17695 * collect2.c (notice_translated): New function.
17696 (main): Use notice_translated and ngettext.
17697 * collect2.h (notice_translated): Declare.
17699 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
17701 * reorg.c (delete_computation): Comment fixes.
17702 * caller-save.c (setup_save_areas): Idem.
17703 * sel-sched-dump.c (dump_lv_set): Idem.
17706 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17708 * config/s390/s390.c (s390_sched_init): New function.
17709 (TARGET_SCHED_INIT): Target hook defined.
17711 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
17712 Jack Howarth <howarth@bromo.med.uc.edu>
17713 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
17716 Partial revert of unintended change in fix for PR41605.
17717 * config/darwin.h: Fix typo.
17718 * config/darwin9.h: Same.
17720 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17722 * c-pch.c (pch_init): Clear v.
17724 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17726 PR middle-end/42930
17727 * graphite-scop-detection.c (graphite_can_represent_scev): Call
17728 graphite_can_represent_init for MULT_EXPR.
17730 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17732 PR middle-end/42914
17733 PR middle-end/42530
17734 * graphite-sese-to-poly.c (remove_phi): New.
17735 (translate_scalar_reduction_to_array): Call remove_phi.
17737 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17739 PR middle-end/42771
17740 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17741 * graphite-clast-to-gimple.h (gloog): Update declaration.
17742 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17743 * graphite-poly.h (struct poly_bb): Add missing comments.
17744 (struct scop): Add poly_scop_p field.
17745 (POLY_SCOP_P): New.
17746 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17747 * graphite.c (graphite_transform_loops): Build the polyhedral
17748 representation for each scop before code generation.
17749 * sese.c (rename_variables_in_operand): Removed.
17750 (rename_variables_in_expr): Return the renamed expression.
17751 (rename_sese_parameters): New.
17752 * sese.h (rename_sese_parameters): Declared.
17754 2010-02-11 Richard Guenther <rguenther@suse.de>
17756 PR tree-optimization/42998
17757 * tree-ssa-pre.c (create_expression_by_pieces): Treat
17758 POINTER_PLUS_EXPR properly.
17760 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
17761 Changpeng Fang <changpeng.fang@amd.com>
17763 PR middle-end/40886
17764 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17765 the cost of an IV candidate when the IV is used in a test against zero.
17767 * gcc.dg/tree-ssa/ivopts-3.c: New.
17769 2010-02-11 Richard Guenther <rguenther@suse.de>
17772 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17773 pointer-vs-decl case by swapping refs. Handle some cases
17774 of pointer-vs-decl disambiguations more conservatively.
17775 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17776 to false after expanding.
17778 2010-02-11 Richard Guenther <rguenther@suse.de>
17781 * gcc.c (process_command): Handle LTO file@offset case more
17784 2010-02-11 Jakub Jelinek <jakub@redhat.com>
17786 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17787 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
17789 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17791 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17792 if MEM's mode size isn't DWARF2_ADDR_SIZE.
17793 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17794 Optimize eq/ne comparisons when both arguments are known to be
17796 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17797 Don't mask operands unnecessarily if they are known to be already
17800 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
17802 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17805 2010-02-10 Richard Guenther <rguenther@suse.de>
17807 PR tree-optimization/43017
17808 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17809 for wrapping signed arithmetic.
17811 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17814 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17815 if no debug info should be emitted for it.
17817 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
17819 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17820 note when flag_exceptions is set.
17822 2010-02-10 Duncan Sands <baldrick@free.fr>
17824 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17826 2010-02-10 Richard Guenther <rguenther@suse.de>
17829 * tree.c (get_unwidened): Handle constants.
17830 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17832 2010-02-10 Martin Jambor <mjambor@suse.cz>
17835 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17836 check for variable argument counts independently.
17838 2010-02-10 Christian Bruel <christian.bruel@st.com>
17841 * config/sh/sh.c (find_barrier): Increase length for non delayed
17842 conditional branches.
17844 2010-02-10 Christian Bruel <christian.bruel@st.com>
17846 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17848 2010-02-10 Jakub Jelinek <jakub@redhat.com>
17850 * builtins.c (set_builtin_user_assembler_name): Also handle
17851 ffs if int is smaller than word.
17853 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
17855 PR middle-end/42973
17856 * ira-conflicts.c (get_dup): Remove.
17857 (process_reg_shuffles): Add new parameter. Use it as an
17858 additional guard for copy generation.
17859 (add_insn_allocno_copies): Rewrite.
17861 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
17863 * common.opt (fsched2-use-traces): Preserved for backward
17865 * doc/invoke.texi: Remove the documentation about option
17866 -fsched2-use-traces.
17867 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17868 flag_sched2_use_traces.
17869 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17870 the backward compatibility flag section.
17872 2010-02-09 Richard Guenther <rguenther@suse.de>
17874 PR tree-optimization/43008
17875 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17876 make HEAP variables initialized from global memory if they
17877 are not known builtin functions.
17878 (find_func_aliases): Adjust.
17880 2010-02-09 Richard Guenther <rguenther@suse.de>
17882 PR tree-optimization/43000
17883 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17884 arithmetic manually.
17886 2010-02-08 Jakub Jelinek <jakub@redhat.com>
17888 PR tree-optimization/42931
17889 * tree-loop-linear.c (try_interchange_loops): Don't call
17890 double_int_mul if estimated_loop_iterations failed.
17892 2010-02-08 Martin Jambor <mjambor@suse.cz>
17894 PR middle-end/42898
17895 * tree-sra.c (build_accesses_from_assign): Do not mark in
17896 should_scalarize_away_bitmap if stmt has volatile ops.
17897 (sra_modify_assign): Do not process assigns piecemeal if if stmt
17900 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
17902 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17904 2010-02-07 Adam Nemet <adambnmet@gmail.com>
17906 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17907 before the pattern.
17909 2010-02-07 Andrew Pinski <pinskia@gmail.com>
17911 PR middle-end/42946
17912 * df-core.c (df_finish_pass): Change type of saved_flags to int.
17914 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17916 PR middle-end/42988
17917 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17918 to unknown_dependence.
17919 (graphite_legal_transform_dr): Handle the unknown_dependence.
17920 (graphite_carried_dependence_level_k): Same.
17922 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
17924 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17926 2010-02-07 Richard Guenther <rguenther@suse.de>
17928 PR middle-end/42991
17929 * expr.c (get_inner_reference): Always initialize *pbitsize.
17931 2010-02-07 Richard Guenther <rguenther@suse.de>
17933 PR middle-end/42956
17934 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17935 new ARRAY_REFs on variable size element or minimal index arrays.
17937 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17938 gimple_fold_indirect_ref.
17940 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
17943 * arm.c (arm_override_options): Just return if the user has specified
17944 an invalid fpu name.
17946 2010-02-03 Jason Merrill <jason@redhat.com>
17949 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17950 i386_pe_maybe_record_exported_symbol.
17952 2010-02-05 Steve Ellcey <sje@cup.hp.com>
17955 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17956 (pa_delegitimize_address): New function.
17958 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
17960 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17961 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17963 2010-02-05 Richard Guenther <rguenther@suse.de>
17966 * lto-streamer-in.c (get_resolution): Deal with references
17967 to undefined functions.
17969 2010-02-05 Richard Guenther <rguenther@suse.de>
17971 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17972 (fold_const_aggregate_ref): Likewise.
17973 (ccp_fold_stmt): Substitute loads.
17974 (maybe_fold_reference): Verify types before substituting.
17976 (fold_gimple_assign): Unshare properly.
17977 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17979 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
17981 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17982 for rs6000_gen_cell_microcode.
17984 2010-02-04 Richard Guenther <rguenther@suse.de>
17986 PR rtl-optimization/42952
17987 * dse.c (const_or_frame_p): Remove MEM handling.
17989 2010-02-04 Nick Clifton <nickc@redhat.com>
17991 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17992 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17993 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17994 (mn10300_asm_output_mi_thunk): New function.
17995 (mn10300_can_output_mu_thunk): New function.
17996 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17997 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
17998 (FUNCTION_ARG): Delete incorrect comment.
18000 2010-02-03 Jason Merrill <jason@redhat.com>
18003 * fold-const.c (operand_equal_p): Handle erroneous types.
18005 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
18007 * config/h8300/h8300.md (can_delay): Fix attibute condition.
18009 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
18011 PR rtl-optimization/42941
18012 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
18015 2010-02-03 Jason Merrill <jason@redhat.com>
18018 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
18020 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
18023 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
18024 (cselib_reset_table): Renamed from...
18025 (cselib_reset_table_with_next_value): ... this.
18026 (cselib_get_next_uid): Renamed from...
18027 (cselib_get_next_unknown_value): ... this.
18028 * cselib.c (next_uid): Renamed from...
18029 (next_unknown_value): ... this.
18030 (cselib_clear_table): Adjust.
18031 (cselib_reset_table): Adjust. Renamed from...
18032 (cselib_reset_table_with_next_value): ... this.
18033 (cselib_get_next_uid): Adjust. Renamed from...
18034 (cselib_get_next_unknown_value): ... this.
18035 (get_value_hash): Use hash.
18036 (cselib_hash_rtx): Likewise.
18037 (new_cselib_val): Adjust. Set and dump uid.
18038 (cselib_lookup_mem): Pass next_uid as hash.
18039 (cselib_subst_to_values): Likewise.
18040 (cselib_log_lookup): Dump uid.
18041 (cselib_lookup): Pass next_uid as hash. Adjust.
18042 (cselib_process_insn): Adjust.
18043 (cselib_init): Initialize next_uid.
18044 (cselib_finish): Adjust.
18045 (dump_cselib_table): Likewise.
18046 * dse.c (canon_address): Dump value uid.
18047 * print-rtl.c (print_rtx): Print value uid.
18048 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
18050 (dv_uid): New function, sort of renamed from...
18051 (dv_htab_hash): ... this, reimplemented in terms of it and...
18052 (dv_uid2hash): ... this. New.
18053 (variable_htab_eq): Drop excess assertions.
18054 (tie_break_pointers): Removed.
18055 (canon_value_cmp): Compare uids.
18056 (variable_post_merge_New_vals): Print uids.
18057 (vt_add_function_parameters): Adjust.
18058 (vt_initialize): Reset table. Adjust.
18060 2010-02-03 Richard Guenther <rguenther@suse.de>
18062 PR tree-optimization/42944
18063 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
18064 (call_may_clobber_ref_p_1): Likewise. Properly handle
18065 malloc and calloc clobbering errno.
18067 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
18069 * doc/invoke.texi: Fix name of sched1 dump.
18071 * opts.c (decode_options): Set flag_tree_switch_conversion
18072 only conditionally on optimize >= 2.
18074 * gcse.c: Assorted comment fixes in pass description.
18076 2010-02-03 Anthony Green <green@moxielogic.com>
18078 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
18079 nop padding in order to maintain alignment of storage location of
18080 target function address.
18081 (moxie_trampoline_init): Store target function address at newly
18083 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
18085 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
18087 2010-02-03 Richard Guenther <rguenther@suse.de>
18089 PR middle-end/42927
18090 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
18092 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18094 * config.gcc: Reenable check for obsolete targets.
18095 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
18096 mips-sgi-irix6.[0-4]*.
18098 2010-02-02 Nick Clifton <nickc@redhat.com>
18100 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
18101 constant size of 4 as being the same as 0.
18102 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
18103 can take values in the range 0..4.
18105 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
18108 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
18109 as _darwin10_Unwind_FindEnclosingFunction().
18110 * libgcc-libsystem.ver: New.
18112 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
18115 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
18116 implicitly set registers.
18118 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
18120 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
18121 (arm_override_options): Allow automatic selection of the thread
18122 pointer register if thumb2.
18123 (legitimize_pic_address): Improve code sequences for Thumb2.
18124 (arm_call_tls_get_addr): Likewise.
18125 (legitimize_tls_address): Likewise.
18126 * arm.md (pic_load_addr_arm): Delete. Replace with ...
18127 (pic_load_addr_32bit): ... this. New named pattern.
18128 * thumb2.md (pic_load_addr_thumb2): Delete.
18129 (pic_load_dot_plus_four): Delete.
18130 (tls_load_dot_plus_four): New named pattern.
18132 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18135 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
18136 Document fix for TLS bug.
18138 2010-01-31 Richard Guenther <rguenther@suse.de>
18140 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
18141 conservatively correct.
18143 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18147 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18149 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18151 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18153 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
18155 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
18157 * config.gcc: Adjust order of makefile fragments for mingw targets.
18159 2010-01-31 Richard Guenther <rguenther@suse.de>
18161 PR middle-end/42898
18162 * gimplify.c (gimplify_init_constructor): For volatile LHS
18163 initialize a temporary.
18165 2010-01-31 Matthias Klose <doko@ubuntu.com>
18167 * configure.ac: Fix __stack_chk_fail check for cross builds configured
18169 * configure: Regenerate.
18171 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
18173 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
18174 the same alias set and their sizes different constantness.
18175 (aliasing_component_refs_p): Revert 2009-10-24 change.
18177 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18179 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
18182 2010-01-29 Richard Guenther <rguenther@suse.de>
18184 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
18185 Assert we successfully updated the call.
18187 2010-01-29 Jakub Jelinek <jakub@redhat.com>
18189 PR rtl-optimization/42889
18190 * df.h (df_set_bb_dirty_nonlr): New prototype.
18191 * df-core.c (df_set_bb_dirty_nonlr): New function.
18192 * df-scan.c (df_insn_rescan): Call it instead of
18193 df_set_bb_dirty for DEBUG_INSNs.
18195 2010-01-29 Richard Guenther <rguenther@suse.de>
18197 PR middle-end/37448
18198 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
18199 quadratic behavior in most cases.
18201 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
18204 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
18205 in the call to gen_x86_movsicc_0_m1.
18207 2010-01-28 Richard Guenther <rguenther@suse.de>
18209 PR tree-optimization/42871
18210 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
18212 2010-01-28 Richard Guenther <rguenther@suse.de>
18214 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
18215 into call arguments.
18217 2010-01-28 Richard Guenther <rguenther@suse.de>
18219 PR middle-end/42883
18220 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
18221 the forwarder if the destination is an EH landing pad.
18223 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
18225 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
18226 block list passed to gimple_duplicate_sese_tail.
18227 (parallelize_loops): Avoid parallelization when the function
18228 has_nonlocal_label.
18229 Avoid parallelization when the preheader is IRREDUCIBLE.
18230 Try to optimize when estimated_loop_iterations_int is unresolved.
18231 Add the loop's location to the dump file.
18232 * tree-cfg.c (add_phi_args_after_redirect): Remove.
18233 (gimple_duplicate_sese_tail): Remove the check for the latch.
18234 Redirect nexits to the exit block.
18235 Remove handling of the incoming edges to the latch.
18236 Redirect the backedge from the copied latch to the exit bb.
18238 2010-01-28 Michael Matz <matz@suse.de>
18241 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
18242 Wrap force_reg into a sequence, emit it before user.
18244 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
18246 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
18248 (arm_legacy_rev): Likewise.
18249 (thumb_legacy_rev): Likewise.
18251 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18253 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
18254 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
18255 on MEM's address failed, try avoid_constant_pool_reference and
18256 recurse if it returned something different.
18257 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
18258 address, try avoid_constant_pool_reference and recurse if it
18259 returned something different.
18260 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
18261 address and avoid_constant_pool_reference returned something
18262 different, don't set have_address.
18264 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
18267 * var-tracking.c (val_store): Add modified argument, obey it.
18269 (count_uses): Move down logging of main.
18270 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
18271 don't need resolution.
18272 (emit_notes_in_bb): Likewise.
18274 2010-01-27 Richard Guenther <rguenther@suse.de>
18276 PR middle-end/42878
18277 * tree-inline.c (remap_decl): Delay remapping of SSA name
18278 default definitions until we need them.
18280 2010-01-27 Jakub Jelinek <jakub@redhat.com>
18282 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
18283 (rs6000_delegitimize_address): New function.
18285 * config/s390/s390.c (s390_delegitimize_address): Call
18286 delegitimize_mem_from_attrs.
18288 PR middle-end/42874
18289 * tree-inline.c (cannot_copy_type_1): Removed.
18290 (copy_forbidden): Don't forbid copying of functions containing
18291 records/unions with variable length fields.
18293 2010-01-27 Christian Bruel <christian.bruel@st.com>
18297 * config/sh/sh.c (find_barrier): Increase length for non delayed
18298 conditional branches.
18300 2010-01-27 Matthias Klose <doko@ubuntu.com>
18302 * configure.ac (gnu-unique-object): Fix ldd version check.
18303 * configure: Regenerate.
18305 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18307 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
18309 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
18310 Test for HAVE_GNU_AS value.
18312 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18314 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
18315 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
18316 INT64_TYPE): Define.
18317 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
18318 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
18319 INT_LEAST64_TYPE): Define.
18320 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
18321 UINT_LEAST64_TYPE): Define.
18322 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
18323 INT_FAST64_TYPE): Define.
18324 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
18325 UINT_FAST64_TYPE): Define.
18326 (INTMAX_TYPE, UINTMAX_TYPE): Define.
18327 (INTPTR_TYPE, UINTPTR_TYPE): Define.
18328 (SIG_ATOMIC_TYPE): Define.
18330 2010-01-26 Richard Guenther <rguenther@suse.de>
18332 * df-scan.c (df_scan_set_bb_info): Remove assert.
18333 (df_insn_rescan_debug_internal): Merge asserts.
18334 (df_install_ref): Likewise.
18335 (df_mark_reg): Use bitmap_set_range.
18336 (df_hard_reg_used_p): Remove assert.
18337 (df_hard_reg_used_count): Likewise.
18339 2010-01-26 Richard Guenther <rguenther@suse.de>
18341 PR rtl-optimization/42685
18342 * web.c (web_main): Ignore DEBUG_INSNs.
18344 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
18346 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
18348 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
18349 Fix types of fndecl and arglist parameters.
18351 2010-01-26 Richard Guenther <rguenther@suse.de>
18353 PR middle-end/42806
18354 * tree-eh.c (unsplit_eh): Skip debug insns.
18356 2010-01-26 Richard Guenther <rguenther@suse.de>
18358 PR tree-optimization/42250
18359 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
18361 2010-01-26 Jakub Jelinek <jakub@redhat.com>
18364 * omp-low.c (expand_omp_sections): Only use single_pred if
18365 l2_bb is single_pred_p.
18367 2010-01-25 Christian Bruel <christian.bruel@st.com>
18370 * config/sh/sh.c (find_barrier): Increase length for non delayed
18371 conditional branches.
18372 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
18374 2010-01-24 David S. Miller <davem@davemloft.net>
18376 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
18377 define if not using GAS.
18378 * config/sparc/sparc.c (sparc_elf_asm_named_section):
18379 Likewise. Delete SECTION_MERGE code, which is only applicable
18382 2010-01-24 Mark Mitchell <mark@codesourcery.com>
18385 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
18386 mangling of va_list in system headers.
18388 2010-01-23 Toon Moene <toon@moene.org>
18390 * tree-predcom.c (combine_chains): Return NULL, not false.
18392 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
18394 * tree-loop-distribution.c (distribute_loop): Fix declaration and
18395 initialization of variable res to agree with return type.
18397 2010-01-22 Steve Ellcey <sje@cup.hp.com>
18399 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
18400 * tree-sra.c: Add include of expr.h.
18402 2010-01-22 Jakub Jelinek <jakub@redhat.com>
18404 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
18405 insert the debug stmt on the single non-EH edge from the stmt.
18407 2010-01-22 Richard Henderson <rth@redhat.com>
18410 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
18411 the RHS until after generate_subtree_copies has insertted its
18412 code before the current statement.
18414 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
18416 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
18418 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
18420 2010-01-21 Martin Jambor <mjambor@suse.cz>
18422 PR tree-optimization/42585
18423 * tree-sra.c (struct access): New field grp_total_scalarization.
18424 (dump_access): Dump the new field.
18425 (should_scalarize_away_bitmap): New variable.
18426 (cannot_scalarize_away_bitmap): Likewise.
18427 (sra_initialize): Allocate new bitmaps.
18428 (sra_deinitialize): Free new bitmaps.
18429 (create_access_1): New function.
18430 (create_access): Parts moved to create_access_1.
18431 (type_consists_of_records_p): New function.
18432 (completely_scalarize_record): Likewise.
18433 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
18434 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
18435 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
18437 (analyze_all_variable_accesses): Completely scalarize small eligible
18440 2010-01-21 Martin Jambor <mjambor@suse.cz>
18442 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
18444 2010-01-21 Andrew Haley <aph@redhat.com>
18446 * gcc.c (process_command): Move lang_specific_driver before
18447 setting cc_libexec_prefix.
18449 2010-01-21 Richard Guenther <rguenther@suse.de>
18451 PR middle-end/19988
18452 * fold-const.c (negate_expr_p): Pretend only negative
18453 real constants are easily negatable.
18455 2010-01-20 Janis Johnson <janis187@us.ibm.com>
18456 Jason Merrill <jason@redhat.com>
18458 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
18459 (TYPE_TRANSPARENT_AGGR): this, for union and record.
18460 * calls.c (initialize argument_information): Handle it.
18461 * c-common.c (handle_transparent_union_attribute): Use new name.
18462 * c-decl.c (finish_struct): Ditto.
18463 * c-typeck.c (type_lists_compatible_p): Ditto.
18464 (convert_for_assignment): Use new name and also handle record.
18465 * function.c (aggregate_value_p): Handle it.
18466 (pass_by_reference): Ditto.
18467 (assign_parm_data_types): Ditto.
18468 * print-tree.c (print_node): Ditto.
18469 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
18470 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
18471 * tree.c (first_field): New fn.
18473 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
18476 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
18477 even when linking statically, for now.
18479 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18482 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
18483 without a cselib val.
18484 (count_uses): Accept MO_VAL_SET with no val on stores.
18485 (add_stores): Likewise.
18487 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18489 * var-tracking.c (check_value_val): Add a compile time assertion.
18490 (dv_is_decl_p): Simplify.
18491 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
18492 gcc_assert if ENABLE_CHECKING.
18494 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
18497 * var-tracking.c: Include tree-flow.h.
18498 (mem_dies_at_call): New.
18499 (dataflow_set_preserve_mem_locs): Use it.
18500 (dataflow_set_remove_mem_locs): Likewise.
18501 (dump_var): Renamed from dump_variable. Adjust all callers.
18502 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
18503 * Makefile.in (var-tracking.o): Adjust deps.
18505 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
18507 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
18509 2010-01-20 Richard Guenther <rguenther@suse.de>
18511 PR tree-optimization/42717
18512 * tree-ssa-dce.c (get_live_post_dom): Remove.
18513 (forward_edge_to_pdom): Take an arbitrary edge to copy
18514 degenerate PHI args from.
18515 (remove_dead_stmt): Use the first post-dominator even if it
18516 does not contain live statements as redirection destination.
18518 2010-01-20 Richard Guenther <rguenther@suse.de>
18520 * tree-inline.c (estimate_num_insns): Handle EH builtins.
18522 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18524 * sel-sched.c (create_speculation_check): Remove set but not used
18526 (try_transformation_cache): Remove set but not used variable ds.
18527 (calculate_privileged_insns): Remove set but not used variables
18528 cur_insn and min_spec_insn.
18529 (find_best_expr): Remove set but not used variable avail_n.
18530 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
18532 * cgraphunit.c (assemble_thunk): Remove set but not used variable
18534 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
18535 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
18536 new_scop_exit_edge.
18538 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
18541 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
18542 cpu types. Add support for *-sse3 cpu types.
18543 (x86_64-*-*): Ditto.
18545 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18547 PR middle-end/42803
18548 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
18549 argument, call initializer_constant_valid_p_1 instead of
18550 initializer_constant_valid_p, pass CACHE to it, return NULL
18551 immediately if first call returns NULL.
18552 (initializer_constant_valid_p_1): New function.
18553 (initializer_constant_valid_p): Use it.
18555 2010-01-20 Thomas Quinot <quinot@adacore.com>
18557 * tree.def (PLACEHOLDER_EXPR): Fix comment.
18559 2010-01-20 Jakub Jelinek <jakub@redhat.com>
18561 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
18562 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
18563 (loc_list_from_tree): Don't handle unsigned division. Handle
18564 signed modulo using DW_OP_{over,over,div,mul,minus}.
18565 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
18566 modulo instead of signed.
18568 2010-01-20 DJ Delorie <dj@redhat.com>
18570 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
18572 (h8300_emit_stack_adjustment): Propogate it.
18574 (h8300_expand_prologue): Likewise.
18575 (h8300_expand_epilogue): Likewise.
18577 2010-01-19 Michael Matz <matz@suse.de>
18579 PR tree-optimization/41783
18580 * tree-data-ref.c (toplevel): Include flags.h.
18581 (dump_data_dependence_relation): Also dump the inputs if the
18582 result will be unknown.
18583 (split_constant_offset_1): Look through some conversions.
18584 * tree-predcom.c (determine_roots_comp): Restart a new chain if
18585 the offset from last element is too large.
18586 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
18587 (reassociate_to_the_same_stmt): Handle vector registers.
18588 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
18589 (e.g. conversions).
18590 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
18591 wide_prolog_niters argument, emit widening instructions.
18592 (vect_do_peeling_for_alignment): Adjust caller, use widened
18593 variant of the iteration cound.
18594 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
18596 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18599 * config/arm/neon-testgen.m (emit_automatics): New parameter
18600 features. Adjust for Fixed_return_reg feature.
18601 (test_intrinsic): Call emit_automatics with new feature.
18602 * config/arm/neon.ml: Update copyright years.
18603 (features): New Fixed_return_reg feature.
18604 (ops): Update feature for Vget_low.
18606 2010-01-19 Jakub Jelinek <jakub@redhat.com>
18608 PR tree-optimization/42719
18609 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
18613 * fwprop.c (all_uses_available_at): Return false if def_set dest
18614 is a REG that is used in def_insn.
18616 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
18618 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
18620 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
18621 Add argument names.
18623 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
18625 * target.h (struct gcc_target) <secondary_reload>: Change type
18626 of last argument to secondary_reload_info *.
18628 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
18631 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
18632 memory references with unaligned offsets. Remove CQImode handling.
18633 (unaligned_memory_operand): Return 1 for memory references with
18634 unaligned offsets. Remove CQImode handling.
18636 2010-01-18 Richard Guenther <rguenther@suse.de>
18638 PR middle-end/39954
18639 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
18642 2010-01-18 Richard Guenther <rguenther@suse.de>
18644 PR tree-optimization/42781
18645 * tree-ssa-structalias.c (find_what_var_points_to): Skip
18646 restrict processing only if the original variable was artificial.
18648 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
18650 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18651 find number of popped argument bytes.
18653 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18654 Fix the text that describes the return value for invalid insns.
18656 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
18658 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18659 Clarify what 'cost of the -dependence' is. Fix quoting.
18661 * toplev.c (default_get_pch_validity): Rename argument to "sz".
18662 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18664 2010-01-17 Jakub Jelinek <jakub@redhat.com>
18666 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18667 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18669 2010-01-17 Richard Guenther <rguenther@suse.de>
18671 PR middle-end/42248
18672 * function.c (split_complex_args): Take a VEC to modify.
18673 (assign_parms_augmented_arg_list): Build a VEC instead of
18674 a chain of PARM_DECLs.
18675 (assign_parms_unsplit_complex): Take a VEC of arguments.
18676 Do not fixup unmodified parms.
18677 (assign_parms): Deal with the VEC.
18678 (gimplify_parameters): Likewise.
18680 2010-01-17 Richard Guenther <rguenther@suse.de>
18682 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18683 node existence check.
18684 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18685 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18686 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18687 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18688 (gimple_execute_on_growing_pred): Likewise.
18690 2010-01-17 Richard Guenther <rguenther@suse.de>
18692 PR tree-optimization/42773
18693 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18694 (compute_antic_aux): Likewise.
18695 (compute_partial_antic_aux): Likewise.
18697 2010-01-17 Jie Zhang <jie.zhang@analog.com>
18700 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18703 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
18705 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18708 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18709 Fix markup for strict argument.
18711 (TARGET_SCHED_REORDER2): Fix argument types.
18713 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18714 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18716 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18717 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18719 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18722 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18723 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18724 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18725 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18726 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18728 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18730 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18732 (TARGET_ASM_RELOC_RW_MASK): Add return type.
18733 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18735 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18737 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18740 (TARGET_ASM_NAMED_SECTION): Fix argument list.
18742 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18743 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18745 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18747 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18749 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18750 referring to it. Fix language.
18752 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18754 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18756 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18758 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18760 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18761 '@var{stream}. Remove stray 'and'.
18763 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18765 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18767 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18769 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18770 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18772 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18773 Fix description of return value.
18774 Rename argument "sz" to "len."
18776 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18777 Clarify meaning of 'true' return value.
18779 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18781 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18782 rep_mode versus mode_rep.
18784 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18786 (TARGET_BUILTIN_DECL): Fix name.
18788 (TARGET_COMMUTATIVE_P): Fix type of first argument.
18790 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18792 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18794 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18796 (TARGET_RELAXED_ORDERING): Use @deftypevr.
18798 (TARGET_GET_DRAP_RTX): Note that this is a hook.
18801 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18802 Rename argument tm_fn to md_fn.
18804 (TARGET_OPTION_PRINT): Fix argument list.
18806 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
18809 * config/i386/i386.c (ix86_fixup_binary_operands):
18810 Revert FMA4 fixup of operands.
18812 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18815 * Makefile.in (write_entries_to_file, install-plugin):
18816 Use \012 instead of \n with tr.
18818 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
18820 * configure.ac (HAVE_AS_REF): New C macro.
18821 * configure: Regenerate.
18822 * config.in: Likewise.
18823 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18825 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18828 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
18830 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18832 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18834 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18836 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18838 (TARGET_IN_SMALL_DATA_P): Fix argument type.
18840 (TARGET_BINDS_LOCAL_P): Fix argument type.
18842 (TARGET_ASM_FILE_END): Use prototype.
18844 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18846 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18848 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18850 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18852 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18853 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18855 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18856 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18858 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18859 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18860 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18861 (TARGET_ADDR_SPACE_CONVERT): Likewise.
18863 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18865 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18867 (TARGET_INIT_BUILTINS): Use prototype.
18869 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18870 Put 'const char *' in braces. Fix parameter types.
18871 (TARGET_INVALID_CONVERSION): Fix parameter types.
18872 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18873 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18875 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18878 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18880 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18882 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
18884 * doc/tm.texi (TARGET_HELP): Fix return type.
18886 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18887 in braces. Fix argument types.
18889 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18891 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18893 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18895 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18896 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18898 (TARGET_MANGLE_TYPE): Fix argument types.
18900 (TARGET_IRA_COVER_CLASSES): Use prototype.
18902 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
18904 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18906 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18908 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18910 (TARGET_CALLEE_COPIES): Fix argument types.
18912 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18914 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18916 (TARGET_FUNCTION_VALUE): Fix argument types.
18918 (TARGET_RETURN_IN_MSB): Fix argument type.
18920 (TARGET_RETURN_IN_MEMORY): Fix argument types.
18922 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18924 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18926 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18927 agree with return type.
18929 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18931 2010-01-15 Jing Yu <jingyu@google.com>
18933 PR rtl-optimization/42691
18934 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18935 a pseudo to a constant and are merged, and adjust comments.
18937 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
18939 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18941 2010-01-15 Richard Guenther <rguenther@suse.de>
18943 PR middle-end/42739
18944 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18945 labels of computed or non-local gotos to the destination.
18946 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18947 landing pad label is the first label.
18949 2010-01-15 Richard Guenther <rguenther@suse.de>
18951 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18953 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
18956 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18957 to allow generation of the xssqrtdp instruction on power7.
18958 (sqrtdf2_fpr): Ditto.
18960 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18962 PR middle-end/42674
18963 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18964 functions with noreturn attribute.
18967 * varasm.c (declare_weak): Add weak attribute to decl if it
18968 doesn't have one already.
18969 (assemble_external): Only add decls to weak_decls if they also
18970 have weak attribute.
18972 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
18974 * var-tracking.c (var_reg_delete): Don't delete the association
18975 between REGs and values or one-part variables if the register
18978 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18981 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18982 because its first operand is a non-localized variable.
18984 2010-01-14 Martin Jambor <mjambor@suse.cz>
18986 PR tree-optimization/42706
18987 * tree-sra.c (encountered_recursive_call): New variable.
18988 (encountered_unchangable_recursive_call): Likewise.
18989 (sra_initialize): Initialize both new variables.
18990 (callsite_has_enough_arguments_p): New function.
18991 (scan_function): Call decl and flags check only for IPA-SRA, check
18992 whether there is a recursive call and whether it has enough arguments.
18993 (all_callers_have_enough_arguments_p): New function.
18994 (convert_callers): Look for recursive calls only when
18995 encountered_recursive_call is set.
18996 (ipa_early_sra): Bail out either if
18997 !all_callers_have_enough_arguments_p or
18998 encountered_unchangable_recursive_call.
19000 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19002 * sel-sched.c: Add 2010 to copyright years.
19003 * sel-sched-ir.c: Likewise.
19004 * sel-sched-ir.h: Likewise.
19006 2010-01-14 Martin Jambor <mjambor@suse.cz>
19008 PR tree-optimization/42714
19009 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
19010 constructors specially.
19012 2010-01-14 Andi Kleen <ak@linux.intel.com>
19014 * config/i386/drivers-i386.c (detect_caches_intel):
19015 Add l2sizekb parameter and fill in.
19016 (host_detect_local_cpu): Add l2sizekb, fill in.
19017 Add Atom small cache heuristic.
19019 2010-01-14 Andi Kleen <ak@linux.intel.com>
19021 * config/i386/drivers-i386.c (detect_caches_cpuid4):
19022 Add level3 parameter and fill in.
19023 (detect_caches_intel): Handle level3 cache.
19025 2010-01-14 Andi Kleen <ak@linux.intel.com>
19027 * config/i386/drivers-i386.c (host_detect_local_cpu):
19028 Fix core duo detection.
19030 2010-01-14 Andi Kleen <ak@linux.intel.com>
19032 * config/i386/drivers-i386.c (host_detect_local_cpu):
19033 Fix Atom detection.
19035 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19037 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
19038 (rs6000_variable_issue_1): this. Use...
19039 (rs6000_variable_issue): here. Reimplement. Print debug info.
19041 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19043 * sel-sched-ir.c (sel_restore_other_notes): Rename to
19044 sel_restore_notes. Update all callers. Call reemit_notes
19047 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19049 PR rtl-optimization/42246
19050 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
19053 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19055 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
19056 all successors is the same as number of successors in current region.
19058 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19060 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
19061 to rename is not separable. Otherwise check that its LHS is not NULL.
19063 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19065 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
19067 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19069 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
19070 available registers when failed to discover LHS register class.
19071 Fix indentation. Update comment.
19073 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19074 Alexander Monakov <amonakov@ispras.ru>
19076 PR rtl-optimization/42389
19077 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
19079 (advance_state_on_fence): Likewise.
19080 (sel_target_adjust_priority): Print debug output only when
19081 sched_verbose >= 4, not 2.
19082 (get_expr_cost): Do not issue all unique insns on the next cycle.
19083 (fill_insns): Initialize can_issue_more from the value saved
19085 * sel-sched-ir.c (flist_add): New parameter issue_more.
19086 Init FENCE_ISSUE_MORE with it.
19087 (merge_fences): Likewise.
19088 (init_fences): Update call to flist_add.
19089 (add_to_fences, add_clean_fence_to_fences)
19090 (add_dirty_fence_to_fences): Likewise.
19091 (move_fence_to_fences): Update call to merge_fences.
19092 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
19094 * sel-sched-ir.h (struct _fence): New field issue_more.
19095 (FENCE_ISSUE_MORE): New accessor macro.
19097 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19099 PR rtl-optimization/42388
19100 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
19101 that have no predecessors nor successors. Do not call move_bb_info
19102 for empty blocks outside of current region.
19104 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19106 PR rtl-optimization/42294
19107 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
19108 * sel-sched.c (move_exprs_to_boundary): Transitively add all
19109 originators' originators.
19111 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
19113 PR rtl-optimization/39453
19114 PR rtl-optimization/42246
19115 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
19117 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
19119 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19120 Alexander Monakov <amonakov@ispras.ru>
19122 PR middle-end/42245
19123 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
19124 (maybe_tidy_empty_bb): ... here. Make static. Add new
19125 argument. Update all callers.
19126 (tidy_control_flow): ... and here. Recompute topological order
19127 of basic blocks in region if necessary.
19128 (sel_redirect_edge_and_branch): Change return type. Return true
19129 if topological order might have been invalidated.
19130 (purge_empty_blocks): Export and move from...
19131 * sel-sched.c (purge_empty_blocks): ... here.
19132 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
19133 (maybe_tidy_empty_bb): Delete prototype.
19134 (purge_empty_blocks): Declare.
19136 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
19138 PR rtl-optimization/42249
19139 * sel-sched.c (try_replace_dest_reg): When chosen register
19140 and original register is the same, do not bail out early, but
19141 still check all original insns for validity of replacing destination
19142 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
19145 2010-01-14 Jakub Jelinek <jakub@redhat.com>
19148 Port from no-undefined-overflow branch:
19149 2009-03-09 Richard Guenther <rguenther@suse.de>
19151 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
19153 2010-01-14 Richard Guenther <rguenther@suse.de>
19156 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
19158 2010-01-14 Ira Rosen <irar@il.ibm.com>
19160 PR tree-optimization/42709
19161 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
19162 as scalar type in creation of constant vector operand.
19164 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19167 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
19168 (check-parallel-%): Match `testsuite' directory component only
19171 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
19173 PR translation/39521
19174 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
19177 2010-01-13 Richard Guenther <rguenther@suse.de>
19179 PR tree-optimization/42730
19180 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
19183 2010-01-13 Steve Ellcey <sje@cup.hp.com>
19186 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
19187 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
19190 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
19192 * config/bfin/libgcc-bfin.ver: Regenerate based on current
19193 libgcc-std.ver. Add entries for ___smulsi3_highpart and
19194 ___umulsi3_highpart.
19196 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
19197 rather than schedule_insns if the pass is enabled.
19199 2010-01-13 Martin Jambor <mjambor@suse.cz>
19201 PR tree-optimization/42704
19202 * tree-sra.c (sra_modify_assign): Do not delete assignments to
19205 2010-01-13 Martin Jambor <mjambor@suse.cz>
19207 PR tree-optimization/42703
19208 * tree-sra.c (analyze_access_subtree): Check that we can build a
19209 reference to the original data within the aggregate.
19211 2010-01-13 Richard Guenther <rguenther@suse.de>
19213 PR tree-optimization/42705
19214 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
19216 2010-01-13 Richard Guenther <rguenther@suse.de>
19218 PR middle-end/42716
19219 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
19221 2010-01-13 Jakub Jelinek <jakub@redhat.com>
19224 * var-tracking.c (values_to_unmark): New variable.
19225 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19226 values_to_unmark vector. Moved body to...
19227 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
19228 instead queue it into values_to_unmark vector.
19229 (vt_find_locations): Free values_to_unmark vector.
19231 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
19233 * config/s390/s390.c (override_options): Set
19234 default of max-pending-list-length to 256
19236 2010-01-13 Richard Guenther <rguenther@suse.de>
19239 * tree-pass.h (PROP_gimple_lcx): New.
19240 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
19241 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
19242 before the final cleanup_eh.
19243 (dump_properties): Dump PROP_gimple_lcx.
19244 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
19245 (tree_lower_complex_O0): Remove.
19246 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
19247 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
19248 tree_lower_complex, schedule TODO_update_ssa.
19249 * lto-streamer-out.c (output_function): Stream the functions
19251 * lto-streamer-in.c (input_function): Likewise.
19252 (lto_read_body): Do not override them here.
19254 2010-01-12 Joseph Myers <joseph@codesourcery.com>
19257 * c-typeck.c (build_c_cast): Fold value cast to union type before
19258 wrapping it in a CONSTRUCTOR.
19260 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19262 PR rtl-optimization/42699
19263 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
19266 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19268 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19269 SUBTARGET_WARN_UNUSED_SPEC): Move ...
19270 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
19271 SUBTARGET_WARN_UNUSED_SPEC): ... here
19272 * config/mips/iris5.h (LIBGCC_SPEC): Define.
19274 2010-01-12 Julian Brown <julian@codesourcery.com>
19276 * config/arm/neon-schedgen.ml (Utils): Don't try to
19277 open missing module.
19278 (find_with_result): New.
19280 2010-01-12 Jakub Jelinek <jakub@redhat.com>
19283 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
19284 sharing when canonicalizing ({lt,ge}u (plus a b) b).
19286 PR tree-optimization/42645
19287 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
19288 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
19289 decl_map, set processing_debug_stmt to -1 and return name without
19292 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
19294 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
19295 binutils version, and reword target configuration description.
19297 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19299 * config/avr/avr.h (LINKER_NAME): Remove.
19301 2010-01-11 Janis Johnson <janis187@us.ibm.com>
19304 * config/rs6000/rs6000.c (rs6000_override_options): On targets
19305 that support VSX, warn for -mno-altivec if vsx is not disabled,
19308 2010-01-11 Joseph Myers <joseph@codesourcery.com>
19309 Shujing Zhao <pearly.zhao@oracle.com>
19311 PR translation/42469
19312 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
19313 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
19314 character between option name and help text.
19315 * c.opt (imultilib): Likewise.
19317 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
19319 * lto-streamer-out.c (output_unreferenced_globals): Output static
19322 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
19324 PR rtl-optimization/42621
19325 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
19326 optimizing for size.
19327 (duplicate_computed_gotos): Remove now-redundant check.
19329 2010-01-10 Steve Ellcey <sje@cup.hp.com>
19332 * configure.ac: Save and restore LDFLAGS and LIBS
19333 * configure: Regenerate.
19335 2010-01-10 Richard Guenther <rguenther@suse.de>
19337 PR middle-end/42667
19338 * builtins.c (fold_builtin_strlen): Add type argument and
19339 convert the resulting length to it.
19340 (fold_builtin_1): Adjust.
19342 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19344 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
19345 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
19347 (num_insns_constant_wide): Adjust for that change.
19349 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19352 * web.c (union_defs): Add used argument, to combine uses of
19353 uninitialized regs.
19354 (entry_register): Adjust type and tests of used argument.
19355 (web_main): Widen used for new use. Pass it to union_defs.
19356 * df.h (union_defs): Adjust prototype.
19358 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19361 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
19362 uses in new incoming argument. Free body.
19363 (reset_debug_uses_in_loop): New.
19364 (analyze_insn_to_expand_var): Call the latter if the former found
19365 anything. Fix whitespace. Reject invalid dest overlaps before
19366 going through all insns in the loop.
19368 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19371 * haifa-sched.c (dying_use_p): Debug insns don't count.
19373 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19375 PR middle-end/42363
19376 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
19377 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
19378 (verify_gimple_call): Reject LHS in noreturn calls.
19380 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19384 * tree-vect-loop-manip.c (adjust_info): New type.
19385 (adjust_vec): New pointer to vector.
19386 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
19387 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
19388 (slpeel_update_phis_for_duplicate_loop): Use them.
19389 (slpeel_update_phi_nodes_for_guard1): Likewise.
19390 (slpeel_update_phi_nodes_for_guard2): Likewise.
19391 (slpeel_tree_peel_loop_to_edge): Likewise.
19392 (vect_update_ivs_after_vectorizer): Likewise.
19394 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19396 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
19397 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
19399 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
19401 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
19402 bogus uninitialized warning.
19404 2010-01-09 Richard Guenther <rguenther@suse.de>
19406 PR middle-end/42512
19407 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
19408 the evolution is compatible with the initial condition.
19410 2010-01-09 Jakub Jelinek <jakub@redhat.com>
19412 * gcc.c (process_command): Update copyright notice dates.
19413 * gcov.c (print_version): Likewise.
19414 * gcov-dump.c (print_version): Likewise.
19415 * mips-tfile.c (main): Likewise.
19416 * mips-tdump.c (main): Likewise.
19418 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
19421 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
19423 (rotlhi3_8): Delete.
19425 (rotlsi3_8): Delete.
19426 (rotlsi3_16): Delete.
19427 (rotlsi3_24): Delete.
19428 (rotl<mode>3): New.
19429 (*rotw<mode>3): New.
19430 (*rotb<mode>3): New.
19431 * config/avr/avr.c (avr_rotate_bytes): New function.
19432 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
19434 2010-01-08 Steve Ellcey <sje@cup.hp.com>
19437 * configure.ac: Modify -rdynamic check.
19438 * configure: Regenerate.
19440 2010-01-08 DJ Delorie <dj@redhat.com>
19442 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
19443 register popping order.
19445 2010-01-08 Richard Guenther <rguenther@suse.de>
19448 * c.opt (fsigned-char): Also let LTO handle this option.
19449 (funsigned-char): Likewise.
19451 2010-01-07 Richard Guenther <rguenther@suse.de>
19453 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
19454 (gimple_op): Likewise.
19455 (gimple_op_ptr): Likewise.
19456 (gimple_assign_set_lhs): Remove gcc_assert.
19457 (gimple_assign_set_rhs1): Likewise.
19458 (gimple_assign_set_rhs2): Likewise.
19459 (gimple_call_set_lhs): Likewise.
19460 (gimple_call_set_fn): Likewise.
19461 (gimple_call_set_fndecl): Likewise.
19462 (gimple_call_fndecl): Likewise.
19463 (gimple_call_return_type): Likewise.
19464 (gimple_call_set_chain): Likewise.
19465 (gimple_call_num_args): Likewise.
19466 (gimple_call_set_arg): Likewise.
19467 (gimple_cond_set_code): Likewise.
19468 (gimple_cond_set_lhs): Likewise.
19469 (gimple_cond_set_rhs): Likewise.
19470 (gimple_cond_set_true_label): Likewise.
19471 (gimple_cond_set_false_label): Likewise.
19472 (gimple_label_set_label): Likewise.
19473 (gimple_goto_set_dest): Likewise.
19474 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
19475 (gimple_debug_bind_get_value): Likewise.
19476 (gimple_debug_bind_get_value_ptr): Likewise.
19477 (gimple_debug_bind_set_var): Likewise.
19478 (gimple_debug_bind_set_value): Likewise.
19479 (gimple_debug_bind_reset_value): Likewise.
19480 (gimple_debug_bind_has_value_p): Likewise.
19481 (gimple_return_retval_ptr): Remove gcc_assert.
19482 (gimple_return_retval): Likewise.
19483 (gimple_return_set_retval): Likewise.
19484 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
19485 (safe_referenced_var_iterator): Remove.
19486 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
19487 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
19488 (fill_referenced_var_vec): Remove.
19489 (first_readonly_imm_use): Remove redundant gcc_assert.
19490 (phi_arg_index_from_use): Combine gcc_asserts.
19491 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
19492 (first_imm_use_stmt): Remove redundant gcc_assert.
19493 * tree-cfg.c (verify_gimple_call): Verify function and chain
19494 operands. Verify arguments.
19495 (verify_types_in_gimple_stmt): Verify condition code and labels.
19497 2010-01-07 Richard Guenther <rguenther@suse.de>
19499 PR tree-optimization/42641
19500 * sese.c (rename_map_elt_info): Use the SSA name version, do
19503 2010-01-07 Jakub Jelinek <jakub@redhat.com>
19505 PR tree-optimization/42625
19506 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
19507 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
19509 2010-01-07 Duncan Sands <baldrick@free.fr>
19511 * Makefile.in (PLUGIN_HEADERS): Add version.h.
19513 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
19516 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
19517 note itself is not function_invariant_p.
19519 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
19521 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
19522 Do not add the DF_NOTE problem.
19523 * store-motion.c (execute_rtl_store_motion): Likewise.
19525 2010-01-07 Martin Jambor <mjambor@suse.cz>
19527 PR tree-optimization/42157
19528 * tree-sra.c (compare_access_positions): Stabilize sort if both
19529 accesses have integer types, return zero immediately if they are the
19532 2010-01-06 Richard Henderson <rth@redhat.com>
19534 PR middle-end/41883
19535 * haifa-sched.c (add_to_note_list): Merge into ...
19536 (concat_note_lists): ... here, and ...
19537 (unlink_other_notes, rm_other_notes): Merge into...
19538 (remove_notes): ... here. Create REG_SAVE_NOTEs for
19539 NOTE_INSN_EPILOGUE_BEG.
19541 2010-01-06 Richard Guenther <rguenther@suse.de>
19543 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
19544 not inline regular functions into always-inline functions.
19546 2010-01-06 Nick Clifton <nickc@redhat.com>
19548 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
19549 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
19551 (OVERRIDE_OPTIONS): Delete.
19552 (OPTIMIZATION_OPTIONS): Define.
19553 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
19554 * config/rx/rx.c (rx_handle_option): Issue an error message if
19555 -mcpu=rx200 and -fpu are used together.
19556 (rx_set_optimization_options): New function. Issue an error
19557 message if an optimization attribute attempts to reset the FPU/
19558 math optimization pairing.
19559 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
19560 * config/rx/rx.opt: Set the default to 32-bit doubles.
19561 * config/rx/t-rx: Add multilibs for -nofpu option.
19562 * doc/invoke.texi: Update documentation of RX options.
19564 2010-01-06 Richard Guenther <rguenther@suse.de>
19566 * tree-ssa-pre.c (name_to_id): New global.
19567 (alloc_expression_id): Simplify SSA name handling.
19568 (lookup_expression_id): Likewise.
19569 (init_pre): Zero name_to_id.
19570 (fini_pre): Free it.
19572 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
19574 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
19576 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
19579 * config/i386/sse.md (smaxv2di3): New.
19580 (umaxv2di3): Likewise.
19581 (sminv2di3): Likewise.
19582 (uminv2di3): Likewise.
19584 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
19587 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
19588 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
19589 (legitimize_tls_address): Likewise.
19590 (sparc_tls_referenced_p): Likewise.
19591 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
19592 and adjust calls to legitimize_pic_address.
19593 (legitimate_constant_p) Use sparc_tls_referenced_p.
19594 (legitimate_pic_operand_p): Likewise.
19595 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
19596 (sparc_tls_symbol_ref_1): Delete.
19597 (sparc_tls_referenced_p): Make static, recognize specific patterns.
19598 (legitimize_tls_address): Make static, handle CONST patterns.
19599 (legitimize_pic_address): Make static, remove unused parameter and
19600 adjust recursive calls.
19601 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
19602 and adjust call to legitimize_pic_address.
19603 (sparc_output_mi_thunk): Likewise.
19605 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
19606 H.J. Lu <hongjiu.lu@intel.com>
19609 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
19610 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
19611 operands to make them signed.
19614 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19617 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19618 GTU to GT for V4SI and V2DI.
19620 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19621 (umin<mode>3): Removed.
19623 (uminv4si3): Likewise.
19625 2010-01-05 Martin Jambor <mjambor@suse.cz>
19627 PR tree-optimization/42462
19628 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
19629 current_function_decl to helper functions and macros.
19631 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19634 * flags.h: Don't include real.h.
19635 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
19636 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
19637 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
19638 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
19639 * dominance.c: Update copyright.
19640 * gimple.c (walk_gimple_op): Remove inline.
19641 * tree-ssa-reassoc.c: Include real.h.
19642 * Makefile.in (FLAGS_H): Remove $(REAL_H).
19643 (tree-ssa-reassoc.o): Depend on $(REAL_H).
19645 2010-01-05 Nick Clifton <nickc@redhat.com>
19647 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19648 register to push into the stack frame when the accumulator has to
19649 be saved during interrupts.
19651 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
19653 * doc/invoke.texi: Remove the documentation about option
19654 -Wunreachable-code.
19655 * common.opt (Wunreachable-code): Preserved for backward
19657 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19658 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19659 the backward compatibility flag section.
19661 2010-01-05 Richard Guenther <rguenther@suse.de>
19663 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19665 2010-01-05 Jakub Jelinek <jakub@redhat.com>
19668 * cfgexpand.c (expand_one_var): Diagnose too large variables.
19670 PR tree-optimization/42508
19671 * tree-sra.c (convert_callers): Check for recursive call
19672 by comparing cgraph nodes instead of decls.
19673 (modify_function): Call ipa_modify_formal_parameters also
19674 on all same_body aliases.
19676 * cgraphunit.c (cgraph_materialize_all_clones): Compare
19677 cgraph nodes when checking for same_body aliases.
19679 2010-01-05 Richard Guenther <rguenther@suse.de>
19681 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19682 allocation and lookup.
19683 (get_or_alloc_expr_for_constant): Likewise.
19684 (phi_translate): Sink allocation.
19686 2010-01-04 Richard Guenther <rguenther@suse.de>
19688 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19689 a new entry only if needed.
19690 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19691 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19693 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19695 (phi_translate): Handle CONSTANTs early.
19697 2010-01-04 Martin Jambor <mjambor@suse.cz>
19699 PR tree-optimization/42398
19700 * tree-sra.c (struct access): Removed flag grp_different_types.
19701 (dump_access): Do not dump the removed flag.
19702 (sort_and_splice_var_accesses): Do not set the removed flag.
19703 (sra_modify_expr): Check for type compatibility directly.
19705 2010-01-04 Martin Jambor <mjambor@suse.cz>
19707 PR tree-optimization/42366
19708 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19709 edges with variable number of parameters.
19710 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19711 flag instead of asserting it.
19712 (ipa_read_node_info): Read uses_analysis_done flag.
19714 2010-01-04 Richard Guenther <rguenther@suse.de>
19716 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19717 iterative_hash_* as intended.
19718 (vn_reference_compute_hash): Likewise. Simplify hashing
19720 (vn_reference_lookup_2): Likewise.
19721 (vn_nary_op_compute_hash): Likewise.
19722 (vn_phi_compute_hash): Likewise.
19723 (expressions_equal_p): Remove strange code.
19724 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19725 (pre_expr_hash): Likewise. Simplify hashing SSA names.
19726 (bitmap_insert_into_set_1): Take value-id as parameter.
19727 (add_to_value): Pass it.
19728 (bitmap_insert_into_set): Likewise.
19729 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
19731 2010-01-04 Jakub Jelinek <jakub@redhat.com>
19734 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19735 (do_self_spec): For switches with SWITCH_IGNORE set set also
19736 SWITCH_IGNORE_PERMANENTLY.
19737 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19740 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
19742 * lto-streamer-out.c (output_unreferenced_globals): Output the full
19743 tree of an unreferenced global var.
19745 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19748 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19749 GTU to GT for V4SI and V2DI.
19751 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19752 (umin<mode>3): Removed.
19754 (uminv4si3): Likewise.
19756 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
19759 * collect2.c (main): Turn on trace in collect2 if -v is passed
19762 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
19764 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
19765 description of expression operand.
19767 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
19769 * configure.ac: Add install-html to target_list for Make-hooks.
19770 * configure: Regenerate.
19771 * fortran/Make-lang.in (F95_HTMLFILES): New.
19772 (fortran.html): Use it.
19773 (fortran.install-html): New.
19774 * Makefile.in (install-html): Add lang.install-html.
19775 * java/Make-lang.in (JAVA_HTMLFILES): New.
19776 (java.html): Use it.
19777 (java.install-html): New.
19778 * objc/Make-lang.in (objc.install-html): New.
19779 * objcp/Make-lang.in (obj-c++.install-html): New.
19780 * cp/Make-lang.in (c++.install-html): New.
19781 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19782 * lto/Make-lang.in (lto.install-html): New.
19784 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19787 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19789 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
19791 PR rtl-optimization/41862
19792 * store-motion.c (store_killed_in_insn, compute_store_table,
19793 remove_reachable_equiv_notes, replace_store_insn,
19794 build_store_vectors): Ignore all DEBUG_INSNs.
19796 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
19799 * common.opt: Add dumpdir.
19801 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19803 (option_map): Add --dumpdir.
19805 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19807 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19809 * opts.c (decode_options): Try dump_dir_name first if
19810 dump_base_name isn't an absolute path.
19811 (common_handle_option): Handle OPT_dumpdir.
19813 * toplev.c (dump_dir_name): New.
19814 (print_switch_values): Also ignore -dumpdir.
19816 * toplev.h (dump_dir_name): New.
19818 2010-01-03 Richard Guenther <rguenther@suse.de>
19820 PR tree-optimization/42589
19821 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19822 double-word expansion of bswap32.
19824 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
19826 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19827 with BLOCK_FOR_INSN.
19828 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19829 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19830 noce_process_if_block): Likewise.
19831 * gcse.c (compute_local_properties, insert_expr_in_table,
19832 insert_set_in_table, canon_list_insert, find_avail_set,
19833 pre_insert_copy_insn): Likewise.
19835 * basic-block.h (BLOCK_NUM): Move from here...
19836 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19838 2010-01-03 Richard Guenther <rguenther@suse.de>
19840 PR tree-optimization/42438
19841 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19842 contains_may_not_return_call flag.
19843 (BB_MAY_NOTRETURN): New.
19844 (valid_in_sets): Trapping nary operations are not valid
19845 in blocks that may not return.
19846 (insert_into_preds_of_block): Remove check for trapping expressions.
19847 (compute_avail): Compute also BB_MAY_NOTRETURN.
19849 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
19851 * doc/invoke.texi: Add 2010 to copyright years.
19853 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
19855 * config/sparc/sparc.c: Fix formatting nits.
19857 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
19858 Alexander Monakov <amonakov@ispras.ru>
19860 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19862 2010-01-02 Richard Guenther <rguenther@suse.de>
19864 PR middle-end/42577
19865 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19866 (simplify_switch_using_ranges): Mark to be removed edges
19869 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19871 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19873 * collect2.c (scan_libraries): Add missing argument in call to
19876 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
19879 * config/alpha/predicates.md (aligned_memory_operand): Return false
19881 (unaligned_memory_operand): Return true for CQImode.
19882 * config/alpha/alpha.c (get_aligned_mem): Assert that location
19883 doesn not cross aligned SImode word boundary.
19885 2010-01-02 Anatoly Sokolov <aesok@post.ru>
19887 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19889 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19890 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19892 2010-01-02 Richard Guenther <rguenther@suse.de>
19895 * toplev.c (compile_file): Emit LTO marker properly. Change
19896 it to __gnu_lto_v1.
19897 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19899 2010-01-01 Richard Guenther <rguenther@suse.de>
19902 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19904 2010-01-01 Richard Guenther <rguenther@suse.de>
19907 * c-decl.c (grokdeclarator): For zero-size arrays force
19908 structural equality checks as layout_type does.
19910 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19912 * builtins.c: Update copyright to 2010.
19914 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
19917 * lto-streamer-out.c (produce_asm): Revert the last change.
19918 (copy_function): Likewise.
19920 * lto-streamer.c (lto_get_section_name): Skip any leading
19923 2010-01-01 Richard Guenther <rguenther@suse.de>
19925 PR middle-end/42559
19926 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19930 Copyright (C) 2010 Free Software Foundation, Inc.
19932 Copying and distribution of this file, with or without modification,
19933 are permitted in any medium without royalty provided the copyright
19934 notice and this notice are preserved.